-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
/
toggle.css
95 lines (82 loc) · 1.79 KB
/
toggle.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
.kg-toggle-card,
.kg-toggle-card * {
box-sizing: border-box;
}
.kg-toggle-card {
background: transparent;
box-shadow: inset 0 0 0 1px rgba(124, 139, 154, 0.25);
border-radius: 4px;
padding: 1.2em;
}
.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content{
height: 0;
overflow: hidden;
transition: opacity .5s ease, top .35s ease;
opacity: 0;
top: -0.5em;
position: relative;
}
.kg-toggle-content {
height: auto;
opacity: 1;
transition: opacity 1s ease, top .35s ease;
top: 0;
position: relative;
}
.kg-toggle-card[data-kg-toggle-state="close"] svg {
transform: unset;
}
.kg-toggle-heading {
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.kg-toggle-card h4.kg-toggle-heading-text {
font-size: 1.15em;
font-weight: 700;
line-height: 1.3em;
margin-top: 0;
margin-bottom: 0;
}
.kg-toggle-content p:first-of-type {
margin-top: 0.5em;
}
.kg-toggle-card .kg-toggle-content p,
.kg-toggle-card .kg-toggle-content ol,
.kg-toggle-card .kg-toggle-content ul {
font-size: 0.95em;
line-height: 1.5em;
margin-top: 0.95em;
margin-bottom: 0;
}
.kg-toggle-card li + li {
margin-top: 0.5em;
}
.kg-toggle-card-icon {
height: 24px;
width: 24px;
display: flex;
justify-content: center;
align-items: center;
margin-left: 1em;
background: none;
border: 0;
}
.kg-toggle-heading svg {
width: 14px;
color: rgba(124, 139, 154, 0.5);
transition: all 0.3s;
transform: rotate(-180deg);
}
.kg-toggle-heading path {
fill: none;
stroke: currentcolor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.5;
fill-rule: evenodd;
}
.kg-toggle-card + .kg-toggle-card {
margin-top: 1em;
}