Newer
Older
// Details-item.
details,
.details-item {
margin-bottom: 3px;
padding: 0.675em 1em;
font-size: rem-calc(18);
font-weight: 600;
&:hover,
&[aria-expanded='true'] {
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
}
&:focus {
outline: 1px dotted $teal;
}
}
.details__inner {
padding: 1em;
}
}
// Plus variation.
.details-item--plus {
summary {
// Hide arrows.
list-style: none;
list-style-image: none;
&::-webkit-details-marker {
display: none;
}
.summary__inner {
display: flex;
align-items: center;
position: relative;
}
// Plus/Minus.
.summary__controls {
position: absolute;
right: 18px;
.pm-control {
position: relative;
height: 24px;
width: 2px;
&.plus {
-webkit-transition: all 0.8s ease;
-moz-transition: all 0.8s ease;
-o-transition: all 0.8s ease;
transition: all 0.8s ease;
}
&.minus {
background: $clear;
-webkit-transition: all 0.4s ease;
-moz-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
}
&:after {
content: '';
position: absolute;
height: 2px;
width: 24px;
left: -11px;
top: 11px;
}
}
}
}
}
// If icon.
.summary__icon {
display: inline-block;
width: 36px;
line-height: 1;
margin-right: 16px;
text-align: center;
.svg-inline--fa {
font-size: 26px;
color: $red;
}
}