forked from zombieFox/nightTab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackground.css
More file actions
executable file
·56 lines (52 loc) · 1.22 KB
/
Copy pathbackground.css
File metadata and controls
executable file
·56 lines (52 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.background {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: var(--z-index-background);
display: none;
}
.is-background-image-show .background {
display: block;
}
.background-image {
background-image: var(--background-image);
background-attachment: fixed;
background-size: cover;
background-position: center;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
display: block;
opacity: var(--background-opacity);
transform: scale(var(--background-scale));
filter: blur(var(--background-blur)) grayscale(var(--background-grayscale));
}
.background-accent {
background-color: rgba(var(--theme-accent), var(--background-accent));
position: absolute;
top: -1em;
left: -1em;
width: calc(100% + 2em);
height: calc(100% + 2em);
pointer-events: none;
display: block;
}
.background-vignette {
position: absolute;
top: -1em;
left: -1em;
width: calc(100% + 2em);
height: calc(100% + 2em);
pointer-events: none;
background-image: radial-gradient(
circle,
transparent var(--background-vignette-end),
rgba(0, 0, 0, var(--background-vignette-opacity)) var(--background-vignette-start)
);
}