-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdetails-style.css
103 lines (103 loc) · 1.94 KB
/
details-style.css
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
:root {
--gutter-horizontal: 10vw;
--gutter-vertical: 10vh;
}
img {
max-width: 100%;
}
details+details {
margin-top: 1em;
}
details.modal summary {
background: #000000;
border: 2px solid black;
cursor: pointer;
display: inline-block;
padding: .25em .5em;
}
details.modal summary::-webkit-details-marker {
display: none;
}
details.modal summary::before {
content: " ";
display: inline-block;
padding-right: .25em;
}
details[open].modal summary::before {
content: "✖️";
}
details[open].modal {
overflow: auto;
padding: 1em;
position: fixed;
z-index: 10;
}
details[open].modal, details[open].modal::after {
bottom: 10vh;
bottom: var(--gutter-vertical);
left: 10vw;
left: var(--gutter-horizontal);
right: 10vw;
right: var(--gutter-horizontal);
top: 10vh;
top: var(--gutter-vertical);
}
details[open].modal::before, details[open].modal::after {
content: "";
position: fixed;
z-index: -1;
}
details[open].modal::before {
background: rgba(0, 0, 0, .75);
bottom: 0;
left: 0;
right: 0;
top: 0;
}
details[open].modal::after {
background: rgba(0, 0, 0, 0.9);
}
.embed-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
max-width: 100%;
}
.embed-container iframe, .embed-container object, .embed-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.loader {
border: 2px solid #FFF;
width: 48px;
height: 48px;
background: #FF3D00;
border-radius: 50%;
display: inline-block;
position: relative;
box-sizing: border-box;
animation: rotation 2s linear infinite;
}
.loader::after {
content: '';
box-sizing: border-box;
position: absolute;
left: 50%;
top: 50%;
border: 24px solid;
border-color: transparent #FFF;
border-radius: 50%;
transform: translate(-50%, -50%);
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}