forked from webmachinelearning/webmachinelearning.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfaq.scss
More file actions
125 lines (118 loc) · 2.22 KB
/
faq.scss
File metadata and controls
125 lines (118 loc) · 2.22 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
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
.faqs .box {
margin-top: 2rem;
}
.faq-webnn {
margin-right: 0.5rem;
}
.faq-modelloader {
margin-left: 0.5rem;
}
.faqs.mt {
margin-top: 2rem;
}
@media screen and (max-width: 640px) {
.faq-webnn {
margin-right: 0;
}
.faq-modelloader {
margin-left: 0;
}
}
.accordion {
.accordion-item {
border-bottom: 1px dashed $grey-color-light;
button[aria-expanded='true'] {
border-bottom: 1px dashed $brand-color;
}
}
button {
position: relative;
display: block;
text-align: left;
width: 100%;
padding: 1em 0;
font-size: 0.9rem;
color: $grey-color;
border: none;
background: none;
outline: none;
&:hover, &:focus {
cursor: pointer;
color: $brand-color;
&::after {
cursor: pointer;
color: $brand-color;
border: 1px solid $brand-color;
}
}
.accordion-title {
padding: 1em 1.5em 1em 0;
}
.icon {
display: inline-block;
position: absolute;
top: 18px;
right: 0;
width: 22px;
height: 22px;
&::before {
display: block;
position: absolute;
content: '';
top: 9px;
left: 5px;
width: 10px;
height: 2px;
background: $brand-color;
}
&::after {
display: block;
position: absolute;
content: '';
top: 5px;
left: 9px;
width: 2px;
height: 10px;
background: $brand-color;
}
}
}
button[aria-expanded='true'] {
color: $brand-color;
.icon {
&::after {
width: 0;
}
}
+ .accordion-content {
opacity: 1;
max-height: 200rem;
transition: all 200ms linear;
will-change: opacity, max-height;
}
}
.accordion-content {
opacity: 0;
max-height: 0;
overflow: hidden;
transition: opacity 200ms linear, max-height 200ms linear;
will-change: opacity, max-height;
p {
font-size: 0.9rem;
margin: 1rem 0;
}
p img {
display: block;
text-align: center;
}
h3 {
margin: 1rem 0;
font-weight: 600;
}
ul li {
list-style: disc outside none;
display: list-item;
margin-left: 2rem;
}
}
}