-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoverlay.css
More file actions
79 lines (69 loc) · 1.69 KB
/
Copy pathoverlay.css
File metadata and controls
79 lines (69 loc) · 1.69 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#login, #register, #setup{
width: 20rem;
}
#overlay{
position: fixed;
top: 50%;
left: 50%;
z-index: 1;
}
.overlay{
translate: -50% -50%;
opacity: 0;
display: none;
position: absolute;
overflow-x: hidden;
overflow-y: scroll;
background-color: var(--overlay-bg);
padding: var(--overlay-padding);
border-radius: calc(var(--overlay-padding) + var(--ui-elements-roundness));
border: var(--ui-elements-border-width) solid var(--clr-desat);
backdrop-filter: blur(var(--overlay-blur));
max-height: 80vh;
max-width: 80vw;
}
.overlay[show]{
opacity: 1;
display: inline-block;
}
.overlay > *:not(:last-child){
margin-bottom: var(--overlay-padding-elements);
}
.overlay-title{
font-size: 1.5rem;
font-weight: bold;
color: var(--clr-text);
box-shadow: 0 -10rem 0 10rem var(--overlay-title-bg);
background-color: var(--overlay-title-bg);
padding-bottom: calc(var(--overlay-padding-elements) / 2);
position: sticky;
}
.overlay-x{
position: absolute;
top: var(--overlay-padding);
right: var(--overlay-padding);
width: 1.5rem;
height: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
background-color: var(--overlay-title-bg);
border-radius: 50%;
background-image: url(./icons/close.svg);
background-size: cover;
background-position: center;
outline: .1rem solid transparent;
}
.overlay-x:hover{
scale: 1.1;
outline-color: var(--clr-text);
}
.overlay-x:active{
scale: 0.9;
filter: invert(1);
}
/* fix bottom padding in case of x */
.overlay:has(.overlay-x){
padding-bottom: calc(var(--overlay-padding) - 1rem);
}