|
31 | 31 | }
|
32 | 32 |
|
33 | 33 | /* Title */
|
34 |
| -.ui.accordion .title, |
35 |
| -.ui.accordion .accordion .title { |
| 34 | +.ui.accordion.menu .item > .title, |
| 35 | +.ui.accordion > .title, |
| 36 | +.ui.accordion .accordion > .title { |
36 | 37 | cursor: pointer;
|
37 |
| -} |
38 |
| - |
39 |
| -/* Default Styling */ |
40 |
| -.ui.accordion .title { |
41 | 38 | padding: @titlePadding;
|
42 | 39 | font-family: @titleFont;
|
43 | 40 | font-size: @titleFontSize;
|
44 | 41 | color: @titleColor;
|
| 42 | + list-style: none; |
| 43 | + line-height: @titleLineHeight; |
45 | 44 | }
|
46 | 45 |
|
47 | 46 | /* Default Styling */
|
|
68 | 67 | transition: @iconTransition;
|
69 | 68 | vertical-align: @iconVerticalAlign;
|
70 | 69 | transform: @iconTransform;
|
| 70 | + &.right when (@variationAccordionRightDropdown) { |
| 71 | + float:right; |
| 72 | + transform: @iconTransformRight; |
| 73 | + } |
71 | 74 | }
|
72 | 75 |
|
73 | 76 | /*--------------
|
|
95 | 98 | States
|
96 | 99 | *******************************/
|
97 | 100 |
|
| 101 | +.ui.accordion[open] > .title .dropdown.icon, |
| 102 | +.ui.accordion .accordion[open] > .title .dropdown.icon, |
98 | 103 | .ui.accordion .active.title .dropdown.icon,
|
99 | 104 | .ui.accordion .accordion .active.title .dropdown.icon {
|
100 | 105 | transform: @activeIconTransform;
|
|
123 | 128 | background: @styledBackground;
|
124 | 129 | box-shadow: @styledBoxShadow;
|
125 | 130 | }
|
126 |
| - .ui.styled.accordion .title, |
127 |
| - .ui.styled.accordion .accordion .title { |
| 131 | + .ui.styled.accordion > .title, |
| 132 | + .ui.styled.accordion .accordion > .title { |
128 | 133 | margin: @styledTitleMargin;
|
129 | 134 | padding: @styledTitlePadding;
|
130 | 135 | color: @styledTitleColor;
|
|
133 | 138 | transition: @styledTitleTransition;
|
134 | 139 | }
|
135 | 140 | .ui.styled.accordion > .title:first-child,
|
136 |
| - .ui.styled.accordion .accordion .title:first-child { |
| 141 | + .ui.styled.accordion .accordion > .title:first-child { |
137 | 142 | border-top: none;
|
138 | 143 | }
|
139 | 144 |
|
140 | 145 |
|
141 | 146 | /* Content */
|
142 |
| - .ui.styled.accordion .content, |
143 |
| - .ui.styled.accordion .accordion .content { |
| 147 | + .ui.styled.accordion > .content { |
144 | 148 | margin: @styledContentMargin;
|
145 | 149 | padding: @styledContentPadding;
|
146 | 150 | }
|
147 |
| - .ui.styled.accordion .accordion .content { |
| 151 | + .ui.styled.accordion .accordion > .content { |
148 | 152 | margin: @styledChildContentMargin;
|
149 | 153 | padding: @styledChildContentPadding;
|
150 | 154 | }
|
151 | 155 |
|
152 | 156 |
|
153 | 157 | /* Hover */
|
154 |
| - .ui.styled.accordion .title:hover, |
155 |
| - .ui.styled.accordion .active.title, |
156 |
| - .ui.styled.accordion .accordion .title:hover, |
157 |
| - .ui.styled.accordion .accordion .active.title { |
| 158 | + .ui.styled.accordion > .title:hover { |
158 | 159 | background: @styledTitleHoverBackground;
|
159 | 160 | color: @styledTitleHoverColor;
|
160 | 161 | }
|
161 |
| - .ui.styled.accordion .accordion .title:hover, |
162 |
| - .ui.styled.accordion .accordion .active.title { |
| 162 | + .ui.styled.accordion .accordion > .title:hover { |
163 | 163 | background: @styledHoverChildTitleBackground;
|
164 | 164 | color: @styledHoverChildTitleColor;
|
165 | 165 | }
|
166 | 166 |
|
167 | 167 |
|
168 | 168 | /* Active */
|
| 169 | + .ui.styled.accordion[open] > .title, |
169 | 170 | .ui.styled.accordion .active.title {
|
170 | 171 | background: @styledActiveTitleBackground;
|
171 | 172 | color: @styledActiveTitleColor;
|
172 | 173 | }
|
| 174 | + .ui.styled.accordion .accordion[open] > .title, |
173 | 175 | .ui.styled.accordion .accordion .active.title {
|
174 | 176 | background: @styledActiveChildTitleBackground;
|
175 | 177 | color: @styledActiveChildTitleColor;
|
|
182 | 184 | ---------------*/
|
183 | 185 |
|
184 | 186 | /* Default Styling */
|
185 |
| - .ui.compact.accordion:not(.styled) .title { |
| 187 | + |
| 188 | + .ui.compact.accordion:not(.styled) > .title, |
| 189 | + .ui.compact.accordion:not(.styled) .accordion > .title { |
186 | 190 | padding: @titlePaddingCompact;
|
187 | 191 | }
|
188 | 192 |
|
|
192 | 196 | }
|
193 | 197 |
|
194 | 198 | /* Styled */
|
195 |
| - .ui.compact.styled.accordion .title, |
196 |
| - .ui.compact.styled.accordion .accordion .title { |
| 199 | + |
| 200 | + .ui.compact.styled.accordion > .title, |
| 201 | + .ui.compact.styled.accordion .accordion > .title { |
197 | 202 | padding: @styledTitlePaddingCompact;
|
198 | 203 | }
|
199 | 204 |
|
200 | 205 | .ui.compact.styled.accordion .title ~ .content,
|
201 | 206 | .ui.compact.styled.accordion .accordion .title ~ .content {
|
202 | 207 | padding: @styledContentPaddingCompact;
|
203 | 208 | }
|
204 |
| - |
| 209 | +} |
205 | 210 | /*--------------
|
206 | 211 | Very Compact
|
207 | 212 | ---------------*/
|
208 | 213 |
|
209 |
| - .ui[class*="very compact"].accordion:not(.styled) .title { |
| 214 | +& when (@variationAccordionVeryCompact) { |
| 215 | + .ui[class*="very compact"].accordion:not(.styled) > .title, |
| 216 | + .ui[class*="very compact"].accordion:not(.styled) .accordion > .title { |
210 | 217 | padding: @titlePaddingVeryCompact;
|
211 | 218 | }
|
212 | 219 |
|
|
215 | 222 | padding: @contentPaddingVeryCompact;
|
216 | 223 | }
|
217 | 224 |
|
218 |
| - .ui[class*="very compact"].styled.accordion .title, |
219 |
| - .ui[class*="very compact"].styled.accordion .accordion .title { |
| 225 | + .ui[class*="very compact"].styled.accordion > .title, |
| 226 | + .ui[class*="very compact"].styled.accordion .accordion > .title { |
220 | 227 | padding: @styledTitlePaddingVeryCompact;
|
221 | 228 | }
|
222 | 229 |
|
|
235 | 242 | Not Active
|
236 | 243 | ---------------*/
|
237 | 244 |
|
238 |
| -.ui.accordion .title ~ .content:not(.active), |
239 |
| -.ui.accordion .accordion .title ~ .content:not(.active) { |
| 245 | +.ui.accordion:not(details) .title ~ .content:not(.active), |
| 246 | +.ui.accordion .accordion:not(details) .title ~ .content:not(.active) { |
240 | 247 | display: none;
|
241 | 248 | }
|
242 | 249 |
|
|
260 | 267 | Inverted
|
261 | 268 | ---------------*/
|
262 | 269 |
|
263 |
| - .ui.inverted.accordion .title { |
| 270 | + .ui.inverted.accordion.menu .item > .title, |
| 271 | + .ui.inverted.accordion > .title, |
| 272 | + .ui.inverted.accordion .accordion > .title { |
264 | 273 | color: @invertedTitleColor;
|
265 | 274 | }
|
| 275 | + & when (@variationAccordionStyled) { |
| 276 | + .ui.inverted.styled.accordion, |
| 277 | + .ui.inverted.styled.accordion .accordion { |
| 278 | + background: @invertedStyledBackground; |
| 279 | + box-shadow: @invertedStyledBoxShadow; |
| 280 | + } |
| 281 | + .ui.inverted.styled.accordion > .title, |
| 282 | + .ui.inverted.styled.accordion .accordion > .title { |
| 283 | + color: @invertedStyledTitleColor; |
| 284 | + border-top: @invertedStyledTitleBorder; |
| 285 | + } |
| 286 | + |
| 287 | + /* Hover */ |
| 288 | + .ui.inverted.styled.accordion > .title:hover { |
| 289 | + background: @invertedStyledTitleHoverBackground; |
| 290 | + color: @invertedStyledTitleHoverColor; |
| 291 | + } |
| 292 | + .ui.inverted.styled.accordion .accordion > .title:hover { |
| 293 | + background: @invertedStyledHoverChildTitleBackground; |
| 294 | + color: @invertedStyledHoverChildTitleColor; |
| 295 | + } |
| 296 | + |
| 297 | + /* Active */ |
| 298 | + .ui.inverted.styled.accordion[open] > .title, |
| 299 | + .ui.inverted.styled.accordion .active.title { |
| 300 | + background: @invertedStyledActiveTitleBackground; |
| 301 | + color: @invertedStyledActiveTitleColor; |
| 302 | + } |
| 303 | + .ui.inverted.styled.accordion .accordion[open] > .title, |
| 304 | + .ui.inverted.styled.accordion .accordion .active.title { |
| 305 | + background: @invertedStyledActiveChildTitleBackground; |
| 306 | + color: @invertedStyledActiveChildTitleColor; |
| 307 | + } |
| 308 | + } |
| 309 | +} |
| 310 | + |
| 311 | +& when (@variationAccordionBasicStyled) { |
| 312 | + .ui.basic.styled.accordion, |
| 313 | + .ui.basic.styled.accordion .accordion { |
| 314 | + background: transparent; |
| 315 | + box-shadow: none; |
| 316 | + } |
| 317 | + .ui.basic.styled.accordion > .title, |
| 318 | + .ui.basic.styled.accordion .accordion > .title { |
| 319 | + border: none; |
| 320 | + color: @basicStyledTitleColor; |
| 321 | + } |
| 322 | + .ui.basic.styled.accordion > .title:hover, |
| 323 | + .ui.basic.styled.accordion .accordion > .title:hover { |
| 324 | + background: transparent; |
| 325 | + color: @basicStyledTitleHoverColor; |
| 326 | + } |
| 327 | + .ui.basic.styled.accordion[open] > .title, |
| 328 | + .ui.basic.styled.accordion .active.title, |
| 329 | + .ui.basic.styled.accordion .accordion[open] > .title, |
| 330 | + .ui.basic.styled.accordion .accordion .active.title { |
| 331 | + background: transparent; |
| 332 | + color: @basicStyledActiveTitleColor; |
| 333 | + } |
| 334 | + & when (@variationAccordionInverted) { |
| 335 | + .ui.inverted.basic.styled.accordion > .title, |
| 336 | + .ui.inverted.basic.styled.accordion .accordion > .title { |
| 337 | + background: transparent; |
| 338 | + color: @invertedBasicStyledTitleColor; |
| 339 | + } |
| 340 | + .ui.inverted.basic.styled.accordion > .title:hover, |
| 341 | + .ui.inverted.basic.styled.accordion .accordion > .title:hover { |
| 342 | + background: transparent; |
| 343 | + color: @invertedBasicStyledTitleHoverColor; |
| 344 | + } |
| 345 | + .ui.inverted.basic.styled.accordion[open] > .title, |
| 346 | + .ui.inverted.basic.styled.accordion .active.title, |
| 347 | + .ui.inverted.basic.styled.accordion .accordion[open] > .title, |
| 348 | + .ui.inverted.basic.styled.accordion .accordion .active.title { |
| 349 | + background: transparent; |
| 350 | + color: @invertedBasicStyledActiveTitleColor; |
| 351 | + } |
| 352 | + } |
| 353 | +} |
| 354 | + |
| 355 | +& when (@variationAccordionTree) { |
| 356 | + .ui.tree.accordion:not(.styled) .title ~ .content, |
| 357 | + .ui.tree.accordion:not(.styled) .accordion .title ~ .content { |
| 358 | + padding:@treeContentPadding; |
| 359 | + } |
| 360 | + .ui.tree.accordion > .content, |
| 361 | + .ui.tree.accordion .accordion > .content { |
| 362 | + margin-left: @treeContentLeftMargin; |
| 363 | + } |
| 364 | + .ui.tree.accordion .accordion { |
| 365 | + margin-top: @treeContentTopMargin; |
| 366 | + } |
266 | 367 | }
|
267 | 368 |
|
268 | 369 | .loadUIOverrides();
|
|
0 commit comments