|
50 | 50 | background: $lightgray;
|
51 | 51 | }
|
52 | 52 | }
|
| 53 | + } |
53 | 54 |
|
54 |
| - &.toc-heading { |
55 |
| - mat-icon.rotating-icon { |
56 |
| - height: 18px; |
57 |
| - width: 18px; |
58 |
| - position: relative; |
59 |
| - left: -4px; |
60 |
| - top: 5px; |
61 |
| - } |
| 55 | + &.toc-heading { |
| 56 | + mat-icon.rotating-icon { |
| 57 | + height: 18px; |
| 58 | + width: 18px; |
| 59 | + position: relative; |
| 60 | + left: -4px; |
| 61 | + top: 5px; |
| 62 | + } |
62 | 63 |
|
63 |
| - &:hover:not(.embedded) { |
64 |
| - color: $accentblue; |
65 |
| - } |
| 64 | + &:hover:not(.embedded) { |
| 65 | + color: $accentblue; |
66 | 66 | }
|
| 67 | + } |
67 | 68 |
|
68 |
| - &.toc-more-items { |
69 |
| - color: $mediumgray; |
70 |
| - top: 10px; |
71 |
| - position: relative; |
| 69 | + &.toc-more-items { |
| 70 | + color: $mediumgray; |
| 71 | + top: 10px; |
| 72 | + position: relative; |
72 | 73 |
|
73 |
| - &:hover { |
74 |
| - color: $accentblue; |
75 |
| - } |
| 74 | + &:hover { |
| 75 | + color: $accentblue; |
| 76 | + } |
76 | 77 |
|
77 |
| - &::after { |
78 |
| - content: 'expand_less'; |
79 |
| - } |
| 78 | + &::after { |
| 79 | + content: 'expand_less'; |
| 80 | + } |
80 | 81 |
|
81 |
| - &.collapsed::after { |
82 |
| - content: 'more_horiz'; |
83 |
| - } |
| 82 | + &.collapsed::after { |
| 83 | + content: 'more_horiz'; |
84 | 84 | }
|
| 85 | + } |
85 | 86 |
|
86 |
| - .mat-icon { |
87 |
| - &.collapsed { |
88 |
| - @include rotate(0deg); |
89 |
| - } |
| 87 | + .mat-icon { |
| 88 | + &.collapsed { |
| 89 | + @include rotate(0deg); |
| 90 | + } |
90 | 91 |
|
91 |
| - &:not(.collapsed) { |
92 |
| - @include rotate(90deg); |
93 |
| - } |
| 92 | + &:not(.collapsed) { |
| 93 | + @include rotate(90deg); |
| 94 | + } |
| 95 | + } |
| 96 | + |
| 97 | + ul.toc-list { |
| 98 | + list-style-type: none; |
| 99 | + margin: 0; |
| 100 | + padding: 0 8px 0 0; |
| 101 | + |
| 102 | + @media (max-width: 800px) { |
| 103 | + width: auto; |
94 | 104 | }
|
95 | 105 |
|
96 |
| - ul.toc-list { |
97 |
| - list-style-type: none; |
98 |
| - margin: 0; |
99 |
| - padding: 0 8px 0 0; |
| 106 | + li { |
| 107 | + box-sizing: border-box; |
| 108 | + @include font-size(12); |
| 109 | + @include line-height(16); |
| 110 | + padding: 3px 0 3px 12px; |
| 111 | + position: relative; |
| 112 | + transition: all 0.3s ease-in-out; |
| 113 | + |
| 114 | + &.h1:after { |
| 115 | + content: ''; |
| 116 | + display: block; |
| 117 | + height: 1px; |
| 118 | + width: 40%; |
| 119 | + margin: 7px 0 4px 0; |
| 120 | + background: $lightgray; |
| 121 | + clear: both; |
| 122 | + } |
100 | 123 |
|
101 |
| - @media (max-width: 800px) { |
102 |
| - width: auto; |
| 124 | + &.h3 { |
| 125 | + padding-left: 24px; |
103 | 126 | }
|
104 | 127 |
|
105 |
| - li { |
106 |
| - box-sizing: border-box; |
| 128 | + a { |
| 129 | + color: lighten($darkgray, 10); |
| 130 | + overflow: visible; |
107 | 131 | @include font-size(12);
|
108 |
| - @include line-height(16); |
109 |
| - padding: 3px 0 3px 12px; |
110 |
| - position: relative; |
111 |
| - transition: all 0.3s ease-in-out; |
112 |
| - |
113 |
| - &.h1:after { |
114 |
| - content: ''; |
115 |
| - display: block; |
116 |
| - height: 1px; |
117 |
| - width: 40%; |
118 |
| - margin: 7px 0 4px 0; |
119 |
| - background: $lightgray; |
120 |
| - clear: both; |
121 |
| - } |
122 |
| - |
123 |
| - &.h3 { |
124 |
| - padding-left: 24px; |
125 |
| - } |
126 |
| - |
127 |
| - a { |
128 |
| - color: lighten($darkgray, 10); |
129 |
| - overflow: visible; |
130 |
| - @include font-size(12); |
131 |
| - display: table-cell; |
132 |
| - } |
| 132 | + display: table-cell; |
| 133 | + } |
133 | 134 |
|
134 |
| - &:hover { |
135 |
| - * { |
136 |
| - color: $accentblue; |
137 |
| - } |
| 135 | + &:hover { |
| 136 | + * { |
| 137 | + color: $accentblue; |
138 | 138 | }
|
| 139 | + } |
139 | 140 |
|
140 |
| - &.active { |
141 |
| - * { |
142 |
| - color: $blue; |
143 |
| - font-weight: 500; |
144 |
| - |
145 |
| - &:before { |
146 |
| - content: ''; |
147 |
| - border-radius: 50%; |
148 |
| - left: -3px; |
149 |
| - top: 12px; |
150 |
| - background: $blue; |
151 |
| - position: absolute; |
152 |
| - width: 6px; |
153 |
| - height: 6px; |
154 |
| - } |
| 141 | + &.active { |
| 142 | + * { |
| 143 | + color: $blue; |
| 144 | + font-weight: 500; |
| 145 | + |
| 146 | + &:before { |
| 147 | + content: ''; |
| 148 | + border-radius: 50%; |
| 149 | + left: -3px; |
| 150 | + top: 12px; |
| 151 | + background: $blue; |
| 152 | + position: absolute; |
| 153 | + width: 6px; |
| 154 | + height: 6px; |
155 | 155 | }
|
156 | 156 | }
|
157 | 157 | }
|
| 158 | + } |
158 | 159 |
|
159 |
| - &:not(.embedded) li { |
160 |
| - &:before { |
161 |
| - border-left: 1px solid $lightgray; |
162 |
| - bottom: 0; |
163 |
| - content: ''; |
164 |
| - left: 0; |
165 |
| - position: absolute; |
166 |
| - top: 0; |
167 |
| - } |
| 160 | + &:not(.embedded) li { |
| 161 | + &:before { |
| 162 | + border-left: 1px solid $lightgray; |
| 163 | + bottom: 0; |
| 164 | + content: ''; |
| 165 | + left: 0; |
| 166 | + position: absolute; |
| 167 | + top: 0; |
| 168 | + } |
168 | 169 |
|
169 |
| - &:first-child:before { |
170 |
| - top: 13px; |
171 |
| - } |
| 170 | + &:first-child:before { |
| 171 | + top: 13px; |
| 172 | + } |
172 | 173 |
|
173 |
| - &:last-child:before { |
174 |
| - bottom: calc(100% - 14px); |
175 |
| - } |
| 174 | + &:last-child:before { |
| 175 | + bottom: calc(100% - 14px); |
| 176 | + } |
176 | 177 |
|
177 |
| - &:not(.active):hover a:before { |
178 |
| - content: ''; |
179 |
| - border-radius: 50%; |
180 |
| - left: -3px; |
181 |
| - top: 12px; |
182 |
| - background: $lightgray; |
183 |
| - position: absolute; |
184 |
| - width: 6px; |
185 |
| - height: 6px; |
186 |
| - } |
| 178 | + &:not(.active):hover a:before { |
| 179 | + content: ''; |
| 180 | + border-radius: 50%; |
| 181 | + left: -3px; |
| 182 | + top: 12px; |
| 183 | + background: $lightgray; |
| 184 | + position: absolute; |
| 185 | + width: 6px; |
| 186 | + height: 6px; |
187 | 187 | }
|
188 | 188 | }
|
189 | 189 | }
|
|
0 commit comments