-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSectionDivider.css
More file actions
46 lines (43 loc) · 944 Bytes
/
SectionDivider.css
File metadata and controls
46 lines (43 loc) · 944 Bytes
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
.SectionDivider {
font-size: 1em;
text-transform: uppercase;
text-align: center;
display: table;
white-space: nowrap;
height: auto;
line-height: 1;
color: var(--text-color-light);
}
.SectionDivider > span {
padding: 0 1em;
}
.SectionDivider > span:has(.Caret) {
cursor: pointer;
user-select: none;
}
.SectionDivider:before,
.SectionDivider:after {
content: "";
display: table-cell;
position: relative;
top: -6px;
width: 50%;
border-bottom: 1px solid var(--border-color);
}
.SectionDivider .Caret {
display: inline-block;
padding: 0;
width: 0;
height: 0;
position: relative;
top: -0.125em;
left: 0.5em;
--caret-size: 0.375em;
border-left: var(--caret-size) solid transparent;
border-right: var(--caret-size) solid transparent;
border-top: var(--caret-size) solid var(--text-color-lightest);
transition: transform 0.125s;
}
.SectionDivider .CaretRight {
transform: rotate(-90deg);
}