-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb-accordion.css
138 lines (115 loc) · 2.09 KB
/
web-accordion.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
ay-accordion,
ay-accordion-header {
display: block;
}
[hidden] {
display: none !important;
}
body {
font-family: system-ui, sans-serif;
margin: 0;
padding: 0;
color: #6b6b6b;
background: #f1f1f1;
}
a[href] {
color: #db003e;
}
a[href]:focus {
color: #7a0023;
}
dl dt {
font-size: 16px;
font-family: monospace;
}
h1, h2, h3 {
margin: 0;
font-weight: 300;
font-family: 'Fjalla One', serif;
}
h3 {
border-bottom: 1px solid #e5e5e5;
padding-top: 1rem;
color: #3b3b3b;
}
p.lead {
margin-top: 0;
font-size: 1.25em;
}
pre, code {
font-size: 16px;
color: #333333;
padding: 0.25rem;
background: white;
display: inline-block;
}
header {
background: white;
box-shadow: 0 2px 6px -1px rgba(0,0,0,0.3);
padding: 1.1rem 1rem;
}
header h1 {
color: #ff0046;
}
header .gh-logo {
float: right;
text-decoration: none;
color: #6b6b6b;
}
.gh-logo svg {
height: 2rem;
width: 2rem;
}
ay-accordion-root {
margin: 0 2rem;
}
ay-accordion {
margin-top: 1rem;
overflow: hidden;
padding: 10px;
border-radius: 7px;
background: #fafafa;
}
ay-accordion ay-accordion-header:before {
content: '';
display: inline-block;
border-left: 10px solid #58c4e0;
border-right: 10px solid transparent;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
margin-top: 0.6rem;
-ms-transform-origin: 5px 10px;
-webkit-transform-origin: 5px 10px;
transform-origin: 5px 10px;
-webkit-transition: -webkit-transform 0.25s ease-in-out;
transition: transform 0.25s ease-in-out;
will-change: transform;
}
ay-accordion[open] ay-accordion-header:before {
-ms-transform: rotate(90deg);
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.container {
margin: 0px 20px;
}
ay-accordion-header {
line-height: 1.5rem;
color: black;
cursor: pointer;
margin: 0;
font-weight: 300;
font-family: 'Fjalla One', serif;
font-size: 24px;
}
ay-accordion-header:focus {
outline: none;
}
ay-accordion:focus-within {
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}
footer {
font-size: 0.8em;
margin-top: 1rem;
text-align: center;
}