This repository has been archived by the owner on May 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
_series.less
125 lines (101 loc) · 1.61 KB
/
_series.less
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
@related-expand-time: 0.5s;
.serieslinks {
.topborder();
display: block;
padding-bottom: @line-margin;
}
.serieslinks-label {
color: @gray-text;
font-weight: bold;
transition: margin-bottom @related-expand-time ease;
display: flex;
align-items: center;
justify-content: space-between;
.expand-icon {
display: none;
width: 24px;
}
}
.serieslinks-linklist {
transition: max-height @related-expand-time ease;
}
.serieslink {
display: block;
padding: 0.5em 0;
text-decoration: none;
color: @accent-color;
transition: color @fade-time ease;
line-height: 1.5;
&:hover, &:focus {
color: @dark-gray-text;
}
}
.serieslink-meta {
color: @gray-text;
font-size: 0.8em;
svg {
fill: @gray-text;
}
svg:not(:first-child) {
margin-left: 0.6em;
}
}
.expand-icon {
use {
transition: transform @related-expand-time ease;
transform-origin: 12px 12px;
fill: @gray-text;
}
#t {
transform: translate(0, -6px);
}
#b {
transform: translate(0, 6px);
}
#t {
transform: rotate(90deg);
}
#m {
transform: rotate(90deg);
}
#b {
transform: rotate(180deg);
}
}
.expanded {
#t {
transform: rotate(180deg);
}
#m {
transform: rotate(180deg);
}
#b {
transform: rotate(180deg);
}
}
@media @min-large {
.serieslinks-linklist {
max-height: none !important;
}
}
@media @large {
.expandable {
.serieslinks-label {
cursor: pointer;
.expand-icon {
display: inline;
}
}
.serieslinks-linklist {
overflow: hidden;
}
&:not(.expanded) .serieslinks-linklist {
max-height: 0 !important;
}
}
.expanded {
.serieslinks-label {
margin-bottom: 1em;
}
}
}