fomantic-ui 2.9.0-beta.283 → 2.9.0-beta.286

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/.all-contributorsrc +9 -0
  2. package/.github/dependabot.yml +10 -0
  3. package/.github/workflows/ci.yml +2 -2
  4. package/.github/workflows/nightly.yml +2 -2
  5. package/.github/workflows/release.yml +2 -2
  6. package/CONTRIBUTORS.md +1 -0
  7. package/FAQ.md +38 -38
  8. package/dist/components/accordion.css +1 -1
  9. package/dist/components/accordion.js +1 -1
  10. package/dist/components/accordion.min.css +1 -1
  11. package/dist/components/accordion.min.js +1 -1
  12. package/dist/components/ad.css +1 -1
  13. package/dist/components/ad.min.css +1 -1
  14. package/dist/components/api.js +2 -2
  15. package/dist/components/api.min.js +2 -2
  16. package/dist/components/breadcrumb.css +1 -1
  17. package/dist/components/breadcrumb.min.css +1 -1
  18. package/dist/components/button.css +1 -1
  19. package/dist/components/button.min.css +1 -1
  20. package/dist/components/calendar.css +1 -1
  21. package/dist/components/calendar.js +1 -1
  22. package/dist/components/calendar.min.css +1 -1
  23. package/dist/components/calendar.min.js +1 -1
  24. package/dist/components/card.css +1 -1
  25. package/dist/components/card.min.css +1 -1
  26. package/dist/components/checkbox.css +1 -1
  27. package/dist/components/checkbox.js +1 -1
  28. package/dist/components/checkbox.min.css +1 -1
  29. package/dist/components/checkbox.min.js +1 -1
  30. package/dist/components/comment.css +1 -1
  31. package/dist/components/comment.min.css +1 -1
  32. package/dist/components/container.css +1 -1
  33. package/dist/components/container.min.css +1 -1
  34. package/dist/components/dimmer.css +1 -1
  35. package/dist/components/dimmer.js +1 -1
  36. package/dist/components/dimmer.min.css +1 -1
  37. package/dist/components/dimmer.min.js +1 -1
  38. package/dist/components/divider.css +1 -1
  39. package/dist/components/divider.min.css +1 -1
  40. package/dist/components/dropdown.css +1 -1
  41. package/dist/components/dropdown.js +38 -60
  42. package/dist/components/dropdown.min.css +1 -1
  43. package/dist/components/dropdown.min.js +2 -2
  44. package/dist/components/embed.css +1 -1
  45. package/dist/components/embed.js +1 -1
  46. package/dist/components/embed.min.css +1 -1
  47. package/dist/components/embed.min.js +1 -1
  48. package/dist/components/emoji.css +8 -10
  49. package/dist/components/feed.css +1 -1
  50. package/dist/components/feed.min.css +1 -1
  51. package/dist/components/flag.css +8 -8
  52. package/dist/components/flag.min.css +1 -1
  53. package/dist/components/form.css +1 -1
  54. package/dist/components/form.js +1 -1
  55. package/dist/components/form.min.css +1 -1
  56. package/dist/components/form.min.js +1 -1
  57. package/dist/components/grid.css +1 -1
  58. package/dist/components/grid.min.css +1 -1
  59. package/dist/components/header.css +1 -1
  60. package/dist/components/header.min.css +1 -1
  61. package/dist/components/icon.css +1 -1
  62. package/dist/components/icon.min.css +1 -1
  63. package/dist/components/image.css +1 -1
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +1 -1
  66. package/dist/components/input.min.css +1 -1
  67. package/dist/components/item.css +1 -1
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +9 -5
  70. package/dist/components/label.min.css +2 -2
  71. package/dist/components/list.css +1 -1
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +1 -1
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +1 -1
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +1 -1
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +1 -1
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +1 -1
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +1 -1
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.js +1 -1
  124. package/dist/components/slider.min.js +1 -1
  125. package/dist/components/state.js +1 -1
  126. package/dist/components/state.min.js +1 -1
  127. package/dist/components/statistic.css +1 -1
  128. package/dist/components/statistic.min.css +1 -1
  129. package/dist/components/step.css +1 -1
  130. package/dist/components/step.min.css +1 -1
  131. package/dist/components/sticky.css +1 -1
  132. package/dist/components/sticky.js +1 -1
  133. package/dist/components/sticky.min.css +1 -1
  134. package/dist/components/sticky.min.js +1 -1
  135. package/dist/components/tab.css +1 -1
  136. package/dist/components/tab.js +1 -1
  137. package/dist/components/tab.min.css +1 -1
  138. package/dist/components/tab.min.js +1 -1
  139. package/dist/components/table.css +1 -1
  140. package/dist/components/table.min.css +1 -1
  141. package/dist/components/text.css +1 -1
  142. package/dist/components/text.min.css +1 -1
  143. package/dist/components/toast.css +4 -1
  144. package/dist/components/toast.js +9 -5
  145. package/dist/components/toast.min.css +2 -2
  146. package/dist/components/toast.min.js +2 -2
  147. package/dist/components/transition.css +1 -1
  148. package/dist/components/transition.js +1 -1
  149. package/dist/components/transition.min.css +1 -1
  150. package/dist/components/transition.min.js +1 -1
  151. package/dist/components/visibility.js +1 -1
  152. package/dist/components/visibility.min.js +1 -1
  153. package/dist/semantic.css +75 -67
  154. package/dist/semantic.js +71 -89
  155. package/dist/semantic.min.css +2 -2
  156. package/dist/semantic.min.js +2 -2
  157. package/dist/themes/{default → famfamfam}/assets/images/flags.png +0 -0
  158. package/examples/components/button.html +1 -1
  159. package/examples/components/card.html +1 -1
  160. package/examples/components/input.html +1 -1
  161. package/examples/components/menu.html +1 -1
  162. package/examples/components/site.html +1 -1
  163. package/examples/components/table.html +1 -1
  164. package/package.json +1 -1
  165. package/src/definitions/behaviors/api.js +1 -1
  166. package/src/definitions/elements/emoji.less +23 -0
  167. package/src/definitions/elements/flag.less +45 -0
  168. package/src/definitions/elements/label.less +7 -4
  169. package/src/definitions/modules/accordion.less +371 -371
  170. package/src/definitions/modules/dropdown.js +37 -59
  171. package/src/definitions/modules/toast.js +8 -4
  172. package/src/definitions/modules/toast.less +3 -0
  173. package/src/themes/default/elements/emoji.overrides +0 -3592
  174. package/src/themes/default/elements/emoji.variables +3574 -0
  175. package/src/themes/default/elements/flag.overrides +0 -1646
  176. package/src/themes/default/elements/flag.variables +1602 -0
  177. package/src/themes/{default → famfamfam}/assets/images/flags.png +0 -0
  178. package/src/themes/famfamfam/elements/flag.variables +8 -1
  179. package/src/themes/joypixels/elements/emoji.overrides +0 -3591
  180. package/src/themes/joypixels/elements/emoji.variables +3573 -4
  181. package/src/themes/twitter/elements/emoji.overrides +0 -3593
  182. package/src/themes/twitter/elements/emoji.variables +3570 -6
  183. package/tasks/admin/distributions/create.js +1 -1
  184. package/tasks/admin/publish.js +1 -1
  185. package/tasks/admin/release.js +1 -1
  186. package/tasks/build/assets.js +1 -1
  187. package/tasks/build/css.js +1 -1
  188. package/tasks/build/javascript.js +1 -1
  189. package/tasks/check-install.js +1 -1
  190. package/tasks/clean.js +1 -1
  191. package/tasks/collections/README.md +1 -1
  192. package/tasks/collections/admin.js +1 -1
  193. package/tasks/config/admin/oauth.example.js +1 -1
  194. package/tasks/config/admin/templates/composer.json +1 -1
  195. package/tasks/rtl/watch.js +1 -1
  196. package/tasks/version.js +1 -1
  197. package/test/fixtures/accordion.html +1 -1
  198. package/test/fixtures/checkbox.html +1 -1
  199. package/test/fixtures/dropdown.html +1 -1
  200. package/test/fixtures/modal.html +1 -1
  201. package/test/fixtures/popup.html +1 -1
  202. package/test/fixtures/rating.html +1 -1
  203. package/test/fixtures/shape.html +1 -1
  204. package/test/fixtures/sidebar.html +1 -1
  205. package/test/fixtures/tab.html +1 -1
  206. package/test/fixtures/transition.html +1 -1
  207. package/test/fixtures/video.html +1 -1
  208. package/test/helpers/jasmine-jquery.js +1 -1
  209. package/test/helpers/jasmine-sinon.js +1 -1
  210. package/test/helpers/jquery-events.js +1 -1
  211. package/test/helpers/sinon.js +1 -1
  212. package/test/meteor/fonts.js +1 -1
  213. package/test/modules/accordion.spec.js +1 -1
  214. package/test/modules/checkbox.spec.js +1 -1
  215. package/test/modules/dropdown.spec.js +1 -1
  216. package/test/modules/modal.spec.js +1 -1
  217. package/test/modules/module.spec.js +1 -1
  218. package/test/modules/popup.spec.js +1 -1
  219. package/test/modules/search.spec.js +1 -1
  220. package/test/modules/shape.spec.js +1 -1
  221. package/test/modules/sidebar.spec.js +1 -1
  222. package/test/modules/tab.spec.js +1 -1
  223. package/test/modules/transition.spec.js +1 -1
  224. package/test/modules/video.spec.js +1 -1
@@ -1,371 +1,371 @@
1
- /*!
2
- * # Fomantic-UI - Accordion
3
- * http://github.com/fomantic/Fomantic-UI/
4
- *
5
- *
6
- * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
8
- *
9
- */
10
-
11
- /*******************************
12
- Theme
13
- *******************************/
14
-
15
- @type : 'module';
16
- @element : 'accordion';
17
-
18
- @import (multiple) '../../theme.config';
19
-
20
- /*******************************
21
- Accordion
22
- *******************************/
23
-
24
- .ui.accordion,
25
- .ui.accordion .accordion {
26
- max-width: 100%;
27
- }
28
- .ui.accordion .accordion {
29
- margin: @childAccordionMargin;
30
- padding: @childAccordionPadding;
31
- }
32
-
33
- /* Title */
34
- .ui.accordion.menu .item > .title,
35
- .ui.accordion > .title,
36
- .ui.accordion .accordion > .title {
37
- cursor: pointer;
38
- padding: @titlePadding;
39
- font-family: @titleFont;
40
- font-size: @titleFontSize;
41
- color: @titleColor;
42
- list-style: none;
43
- line-height: @titleLineHeight;
44
- }
45
-
46
- /* Default Styling */
47
- .ui.accordion:not(.styled) .title ~ .content,
48
- .ui.accordion:not(.styled) .accordion .title ~ .content {
49
- margin: @contentMargin;
50
- padding: @contentPadding;
51
- }
52
- .ui.accordion:not(.styled) .title ~ .content:last-child {
53
- padding-bottom: 0;
54
- }
55
-
56
- /* Arrow */
57
- .ui.accordion .ui.header > .dropdown.icon,
58
- .ui.accordion .title > .dropdown.icon,
59
- .ui.accordion .accordion .title > .dropdown.icon {
60
- display: @iconDisplay;
61
- float: @iconFloat;
62
- opacity: @iconOpacity;
63
- width: @iconWidth;
64
- height: @iconHeight;
65
- margin: @iconMargin;
66
- padding: @iconPadding;
67
- font-size: @iconFontSize;
68
- transition: @iconTransition;
69
- vertical-align: @iconVerticalAlign;
70
- transform: @iconTransform;
71
- &.right when (@variationAccordionRightDropdown) {
72
- float:right;
73
- transform: @iconTransformRight;
74
- }
75
- }
76
-
77
- /*--------------
78
- Coupling
79
- ---------------*/
80
-
81
- /* Menu */
82
- .ui.accordion.menu .item .title {
83
- display: block;
84
- padding: @menuTitlePadding;
85
- }
86
- .ui.accordion.menu .item .title > .dropdown.icon {
87
- float: @menuIconFloat;
88
- margin: @menuIconMargin;
89
- transform: @menuIconTransform;
90
- }
91
-
92
- /* Header */
93
- .ui.accordion .ui.header > .dropdown.icon {
94
- font-size: @iconFontSize;
95
- margin: @iconMargin;
96
- }
97
-
98
- /*******************************
99
- States
100
- *******************************/
101
-
102
- .ui.accordion[open] > .title > .dropdown.icon,
103
- .ui.accordion .accordion[open] > .title > .dropdown.icon,
104
- .ui.accordion .active.title > .dropdown.icon,
105
- .ui.accordion .accordion .active.title > .dropdown.icon {
106
- transform: @activeIconTransform;
107
- }
108
-
109
- .ui.accordion.menu .item .active.title > .dropdown.icon {
110
- transform: @activeIconTransform;
111
- }
112
-
113
- /*******************************
114
- Types
115
- *******************************/
116
-
117
- & when (@variationAccordionStyled) {
118
- /*--------------
119
- Styled
120
- ---------------*/
121
-
122
- .ui.styled.accordion {
123
- width: @styledWidth;
124
- }
125
-
126
- .ui.styled.accordion,
127
- .ui.styled.accordion .accordion {
128
- border-radius: @styledBorderRadius;
129
- background: @styledBackground;
130
- box-shadow: @styledBoxShadow;
131
- }
132
- .ui.styled.accordion > .title,
133
- .ui.styled.accordion .accordion > .title {
134
- margin: @styledTitleMargin;
135
- padding: @styledTitlePadding;
136
- color: @styledTitleColor;
137
- font-weight: @styledTitleFontWeight;
138
- border-top: @styledTitleBorder;
139
- transition: @styledTitleTransition;
140
- }
141
- .ui.styled.accordion > .title:first-child,
142
- .ui.styled.accordion .accordion > .title:first-child {
143
- border-top: none;
144
- }
145
-
146
-
147
- /* Content */
148
- .ui.styled.accordion > .content {
149
- margin: @styledContentMargin;
150
- padding: @styledContentPadding;
151
- }
152
- .ui.styled.accordion .accordion > .content {
153
- margin: @styledChildContentMargin;
154
- padding: @styledChildContentPadding;
155
- }
156
-
157
-
158
- /* Hover */
159
- .ui.styled.accordion > .title:hover {
160
- background: @styledTitleHoverBackground;
161
- color: @styledTitleHoverColor;
162
- }
163
- .ui.styled.accordion .accordion > .title:hover {
164
- background: @styledHoverChildTitleBackground;
165
- color: @styledHoverChildTitleColor;
166
- }
167
-
168
-
169
- /* Active */
170
- .ui.styled.accordion[open] > .title,
171
- .ui.styled.accordion .active.title {
172
- background: @styledActiveTitleBackground;
173
- color: @styledActiveTitleColor;
174
- }
175
- .ui.styled.accordion .accordion[open] > .title,
176
- .ui.styled.accordion .accordion .active.title {
177
- background: @styledActiveChildTitleBackground;
178
- color: @styledActiveChildTitleColor;
179
- }
180
- }
181
-
182
- & when (@variationAccordionCompact) {
183
- /*--------------
184
- Compact
185
- ---------------*/
186
-
187
- /* Default Styling */
188
-
189
- .ui.compact.accordion:not(.styled) > .title,
190
- .ui.compact.accordion:not(.styled) .accordion > .title {
191
- padding: @titlePaddingCompact;
192
- }
193
-
194
- .ui.compact.accordion:not(.styled) .title ~ .content,
195
- .ui.compact.accordion:not(.styled) .accordion .title ~ .content {
196
- padding: @contentPaddingCompact;
197
- }
198
-
199
- /* Styled */
200
-
201
- .ui.compact.styled.accordion > .title,
202
- .ui.compact.styled.accordion .accordion > .title {
203
- padding: @styledTitlePaddingCompact;
204
- }
205
-
206
- .ui.compact.styled.accordion .title ~ .content,
207
- .ui.compact.styled.accordion .accordion .title ~ .content {
208
- padding: @styledContentPaddingCompact;
209
- }
210
- }
211
- /*--------------
212
- Very Compact
213
- ---------------*/
214
-
215
- & when (@variationAccordionVeryCompact) {
216
- .ui[class*="very compact"].accordion:not(.styled) > .title,
217
- .ui[class*="very compact"].accordion:not(.styled) .accordion > .title {
218
- padding: @titlePaddingVeryCompact;
219
- }
220
-
221
- .ui[class*="very compact"].accordion:not(.styled) .title ~ .content,
222
- .ui[class*="very compact"].accordion:not(.styled) .accordion .title ~ .content {
223
- padding: @contentPaddingVeryCompact;
224
- }
225
-
226
- .ui[class*="very compact"].styled.accordion > .title,
227
- .ui[class*="very compact"].styled.accordion .accordion > .title {
228
- padding: @styledTitlePaddingVeryCompact;
229
- }
230
-
231
- .ui[class*="very compact"].styled.accordion .title ~ .content,
232
- .ui[class*="very compact"].styled.accordion .accordion .title ~ .content {
233
- padding: @styledContentPaddingVeryCompact;
234
- }
235
- }
236
-
237
-
238
- /*******************************
239
- States
240
- *******************************/
241
-
242
- /*--------------
243
- Not Active
244
- ---------------*/
245
-
246
- .ui.accordion:not(details) .title ~ .content:not(.active),
247
- .ui.accordion .accordion:not(details) .title ~ .content:not(.active) {
248
- display: none;
249
- }
250
-
251
- /*******************************
252
- Variations
253
- *******************************/
254
-
255
- & when (@variationAccordionFluid) {
256
- /*--------------
257
- Fluid
258
- ---------------*/
259
-
260
- .ui.fluid.accordion,
261
- .ui.fluid.accordion .accordion {
262
- width: 100%;
263
- }
264
- }
265
-
266
- & when (@variationAccordionInverted) {
267
- /*--------------
268
- Inverted
269
- ---------------*/
270
-
271
- .ui.inverted.accordion.menu .item > .title,
272
- .ui.inverted.accordion > .title,
273
- .ui.inverted.accordion .accordion > .title {
274
- color: @invertedTitleColor;
275
- }
276
- & when (@variationAccordionStyled) {
277
- .ui.inverted.styled.accordion,
278
- .ui.inverted.styled.accordion .accordion {
279
- background: @invertedStyledBackground;
280
- box-shadow: @invertedStyledBoxShadow;
281
- }
282
- .ui.inverted.styled.accordion > .title,
283
- .ui.inverted.styled.accordion .accordion > .title {
284
- color: @invertedStyledTitleColor;
285
- border-top: @invertedStyledTitleBorder;
286
- }
287
-
288
- /* Hover */
289
- .ui.inverted.styled.accordion > .title:hover {
290
- background: @invertedStyledTitleHoverBackground;
291
- color: @invertedStyledTitleHoverColor;
292
- }
293
- .ui.inverted.styled.accordion .accordion > .title:hover {
294
- background: @invertedStyledHoverChildTitleBackground;
295
- color: @invertedStyledHoverChildTitleColor;
296
- }
297
-
298
- /* Active */
299
- .ui.inverted.styled.accordion[open] > .title,
300
- .ui.inverted.styled.accordion .active.title {
301
- background: @invertedStyledActiveTitleBackground;
302
- color: @invertedStyledActiveTitleColor;
303
- }
304
- .ui.inverted.styled.accordion .accordion[open] > .title,
305
- .ui.inverted.styled.accordion .accordion .active.title {
306
- background: @invertedStyledActiveChildTitleBackground;
307
- color: @invertedStyledActiveChildTitleColor;
308
- }
309
- }
310
- }
311
-
312
- & when (@variationAccordionBasicStyled) {
313
- .ui.basic.styled.accordion,
314
- .ui.basic.styled.accordion .accordion {
315
- background: transparent;
316
- box-shadow: none;
317
- }
318
- .ui.basic.styled.accordion > .title,
319
- .ui.basic.styled.accordion .accordion > .title {
320
- border: none;
321
- color: @basicStyledTitleColor;
322
- }
323
- .ui.basic.styled.accordion > .title:hover,
324
- .ui.basic.styled.accordion .accordion > .title:hover {
325
- background: transparent;
326
- color: @basicStyledTitleHoverColor;
327
- }
328
- .ui.basic.styled.accordion[open] > .title,
329
- .ui.basic.styled.accordion .active.title,
330
- .ui.basic.styled.accordion .accordion[open] > .title,
331
- .ui.basic.styled.accordion .accordion .active.title {
332
- background: transparent;
333
- color: @basicStyledActiveTitleColor;
334
- }
335
- & when (@variationAccordionInverted) {
336
- .ui.inverted.basic.styled.accordion > .title,
337
- .ui.inverted.basic.styled.accordion .accordion > .title {
338
- background: transparent;
339
- color: @invertedBasicStyledTitleColor;
340
- }
341
- .ui.inverted.basic.styled.accordion > .title:hover,
342
- .ui.inverted.basic.styled.accordion .accordion > .title:hover {
343
- background: transparent;
344
- color: @invertedBasicStyledTitleHoverColor;
345
- }
346
- .ui.inverted.basic.styled.accordion[open] > .title,
347
- .ui.inverted.basic.styled.accordion .active.title,
348
- .ui.inverted.basic.styled.accordion .accordion[open] > .title,
349
- .ui.inverted.basic.styled.accordion .accordion .active.title {
350
- background: transparent;
351
- color: @invertedBasicStyledActiveTitleColor;
352
- }
353
- }
354
- }
355
-
356
- & when (@variationAccordionTree) {
357
- .ui.tree.accordion:not(.styled) .title ~ .content,
358
- .ui.tree.accordion:not(.styled) .accordion .title ~ .content {
359
- padding:@treeContentPadding;
360
- }
361
- .ui.tree.accordion > .content,
362
- .ui.tree.accordion .accordion > .content {
363
- margin-left: @treeContentLeftMargin;
364
- }
365
- .ui.tree.accordion .accordion {
366
- margin-top: @treeContentTopMargin;
367
- }
368
- }
369
-
370
- .loadUIOverrides();
371
-
1
+ /*!
2
+ * # Fomantic-UI - Accordion
3
+ * http://github.com/fomantic/Fomantic-UI/
4
+ *
5
+ *
6
+ * Released under the MIT license
7
+ * http://opensource.org/licenses/MIT
8
+ *
9
+ */
10
+
11
+ /*******************************
12
+ Theme
13
+ *******************************/
14
+
15
+ @type : 'module';
16
+ @element : 'accordion';
17
+
18
+ @import (multiple) '../../theme.config';
19
+
20
+ /*******************************
21
+ Accordion
22
+ *******************************/
23
+
24
+ .ui.accordion,
25
+ .ui.accordion .accordion {
26
+ max-width: 100%;
27
+ }
28
+ .ui.accordion .accordion {
29
+ margin: @childAccordionMargin;
30
+ padding: @childAccordionPadding;
31
+ }
32
+
33
+ /* Title */
34
+ .ui.accordion.menu .item > .title,
35
+ .ui.accordion > .title,
36
+ .ui.accordion .accordion > .title {
37
+ cursor: pointer;
38
+ padding: @titlePadding;
39
+ font-family: @titleFont;
40
+ font-size: @titleFontSize;
41
+ color: @titleColor;
42
+ list-style: none;
43
+ line-height: @titleLineHeight;
44
+ }
45
+
46
+ /* Default Styling */
47
+ .ui.accordion:not(.styled) .title ~ .content,
48
+ .ui.accordion:not(.styled) .accordion .title ~ .content {
49
+ margin: @contentMargin;
50
+ padding: @contentPadding;
51
+ }
52
+ .ui.accordion:not(.styled) .title ~ .content:last-child {
53
+ padding-bottom: 0;
54
+ }
55
+
56
+ /* Arrow */
57
+ .ui.accordion .ui.header > .dropdown.icon,
58
+ .ui.accordion .title > .dropdown.icon,
59
+ .ui.accordion .accordion .title > .dropdown.icon {
60
+ display: @iconDisplay;
61
+ float: @iconFloat;
62
+ opacity: @iconOpacity;
63
+ width: @iconWidth;
64
+ height: @iconHeight;
65
+ margin: @iconMargin;
66
+ padding: @iconPadding;
67
+ font-size: @iconFontSize;
68
+ transition: @iconTransition;
69
+ vertical-align: @iconVerticalAlign;
70
+ transform: @iconTransform;
71
+ &.right when (@variationAccordionRightDropdown) {
72
+ float:right;
73
+ transform: @iconTransformRight;
74
+ }
75
+ }
76
+
77
+ /*--------------
78
+ Coupling
79
+ ---------------*/
80
+
81
+ /* Menu */
82
+ .ui.accordion.menu .item .title {
83
+ display: block;
84
+ padding: @menuTitlePadding;
85
+ }
86
+ .ui.accordion.menu .item .title > .dropdown.icon {
87
+ float: @menuIconFloat;
88
+ margin: @menuIconMargin;
89
+ transform: @menuIconTransform;
90
+ }
91
+
92
+ /* Header */
93
+ .ui.accordion .ui.header > .dropdown.icon {
94
+ font-size: @iconFontSize;
95
+ margin: @iconMargin;
96
+ }
97
+
98
+ /*******************************
99
+ States
100
+ *******************************/
101
+
102
+ .ui.accordion[open] > .title > .dropdown.icon,
103
+ .ui.accordion .accordion[open] > .title > .dropdown.icon,
104
+ .ui.accordion .active.title > .dropdown.icon,
105
+ .ui.accordion .accordion .active.title > .dropdown.icon {
106
+ transform: @activeIconTransform;
107
+ }
108
+
109
+ .ui.accordion.menu .item .active.title > .dropdown.icon {
110
+ transform: @activeIconTransform;
111
+ }
112
+
113
+ /*******************************
114
+ Types
115
+ *******************************/
116
+
117
+ & when (@variationAccordionStyled) {
118
+ /*--------------
119
+ Styled
120
+ ---------------*/
121
+
122
+ .ui.styled.accordion {
123
+ width: @styledWidth;
124
+ }
125
+
126
+ .ui.styled.accordion,
127
+ .ui.styled.accordion .accordion {
128
+ border-radius: @styledBorderRadius;
129
+ background: @styledBackground;
130
+ box-shadow: @styledBoxShadow;
131
+ }
132
+ .ui.styled.accordion > .title,
133
+ .ui.styled.accordion .accordion > .title {
134
+ margin: @styledTitleMargin;
135
+ padding: @styledTitlePadding;
136
+ color: @styledTitleColor;
137
+ font-weight: @styledTitleFontWeight;
138
+ border-top: @styledTitleBorder;
139
+ transition: @styledTitleTransition;
140
+ }
141
+ .ui.styled.accordion > .title:first-child,
142
+ .ui.styled.accordion .accordion > .title:first-child {
143
+ border-top: none;
144
+ }
145
+
146
+
147
+ /* Content */
148
+ .ui.styled.accordion > .content {
149
+ margin: @styledContentMargin;
150
+ padding: @styledContentPadding;
151
+ }
152
+ .ui.styled.accordion .accordion > .content {
153
+ margin: @styledChildContentMargin;
154
+ padding: @styledChildContentPadding;
155
+ }
156
+
157
+
158
+ /* Hover */
159
+ .ui.styled.accordion > .title:hover {
160
+ background: @styledTitleHoverBackground;
161
+ color: @styledTitleHoverColor;
162
+ }
163
+ .ui.styled.accordion .accordion > .title:hover {
164
+ background: @styledHoverChildTitleBackground;
165
+ color: @styledHoverChildTitleColor;
166
+ }
167
+
168
+
169
+ /* Active */
170
+ .ui.styled.accordion[open] > .title,
171
+ .ui.styled.accordion .active.title {
172
+ background: @styledActiveTitleBackground;
173
+ color: @styledActiveTitleColor;
174
+ }
175
+ .ui.styled.accordion .accordion[open] > .title,
176
+ .ui.styled.accordion .accordion .active.title {
177
+ background: @styledActiveChildTitleBackground;
178
+ color: @styledActiveChildTitleColor;
179
+ }
180
+ }
181
+
182
+ & when (@variationAccordionCompact) {
183
+ /*--------------
184
+ Compact
185
+ ---------------*/
186
+
187
+ /* Default Styling */
188
+
189
+ .ui.compact.accordion:not(.styled) > .title,
190
+ .ui.compact.accordion:not(.styled) .accordion > .title {
191
+ padding: @titlePaddingCompact;
192
+ }
193
+
194
+ .ui.compact.accordion:not(.styled) .title ~ .content,
195
+ .ui.compact.accordion:not(.styled) .accordion .title ~ .content {
196
+ padding: @contentPaddingCompact;
197
+ }
198
+
199
+ /* Styled */
200
+
201
+ .ui.compact.styled.accordion > .title,
202
+ .ui.compact.styled.accordion .accordion > .title {
203
+ padding: @styledTitlePaddingCompact;
204
+ }
205
+
206
+ .ui.compact.styled.accordion .title ~ .content,
207
+ .ui.compact.styled.accordion .accordion .title ~ .content {
208
+ padding: @styledContentPaddingCompact;
209
+ }
210
+ }
211
+ /*--------------
212
+ Very Compact
213
+ ---------------*/
214
+
215
+ & when (@variationAccordionVeryCompact) {
216
+ .ui[class*="very compact"].accordion:not(.styled) > .title,
217
+ .ui[class*="very compact"].accordion:not(.styled) .accordion > .title {
218
+ padding: @titlePaddingVeryCompact;
219
+ }
220
+
221
+ .ui[class*="very compact"].accordion:not(.styled) .title ~ .content,
222
+ .ui[class*="very compact"].accordion:not(.styled) .accordion .title ~ .content {
223
+ padding: @contentPaddingVeryCompact;
224
+ }
225
+
226
+ .ui[class*="very compact"].styled.accordion > .title,
227
+ .ui[class*="very compact"].styled.accordion .accordion > .title {
228
+ padding: @styledTitlePaddingVeryCompact;
229
+ }
230
+
231
+ .ui[class*="very compact"].styled.accordion .title ~ .content,
232
+ .ui[class*="very compact"].styled.accordion .accordion .title ~ .content {
233
+ padding: @styledContentPaddingVeryCompact;
234
+ }
235
+ }
236
+
237
+
238
+ /*******************************
239
+ States
240
+ *******************************/
241
+
242
+ /*--------------
243
+ Not Active
244
+ ---------------*/
245
+
246
+ .ui.accordion:not(details) .title ~ .content:not(.active),
247
+ .ui.accordion .accordion:not(details) .title ~ .content:not(.active) {
248
+ display: none;
249
+ }
250
+
251
+ /*******************************
252
+ Variations
253
+ *******************************/
254
+
255
+ & when (@variationAccordionFluid) {
256
+ /*--------------
257
+ Fluid
258
+ ---------------*/
259
+
260
+ .ui.fluid.accordion,
261
+ .ui.fluid.accordion .accordion {
262
+ width: 100%;
263
+ }
264
+ }
265
+
266
+ & when (@variationAccordionInverted) {
267
+ /*--------------
268
+ Inverted
269
+ ---------------*/
270
+
271
+ .ui.inverted.accordion.menu .item > .title,
272
+ .ui.inverted.accordion > .title,
273
+ .ui.inverted.accordion .accordion > .title {
274
+ color: @invertedTitleColor;
275
+ }
276
+ & when (@variationAccordionStyled) {
277
+ .ui.inverted.styled.accordion,
278
+ .ui.inverted.styled.accordion .accordion {
279
+ background: @invertedStyledBackground;
280
+ box-shadow: @invertedStyledBoxShadow;
281
+ }
282
+ .ui.inverted.styled.accordion > .title,
283
+ .ui.inverted.styled.accordion .accordion > .title {
284
+ color: @invertedStyledTitleColor;
285
+ border-top: @invertedStyledTitleBorder;
286
+ }
287
+
288
+ /* Hover */
289
+ .ui.inverted.styled.accordion > .title:hover {
290
+ background: @invertedStyledTitleHoverBackground;
291
+ color: @invertedStyledTitleHoverColor;
292
+ }
293
+ .ui.inverted.styled.accordion .accordion > .title:hover {
294
+ background: @invertedStyledHoverChildTitleBackground;
295
+ color: @invertedStyledHoverChildTitleColor;
296
+ }
297
+
298
+ /* Active */
299
+ .ui.inverted.styled.accordion[open] > .title,
300
+ .ui.inverted.styled.accordion .active.title {
301
+ background: @invertedStyledActiveTitleBackground;
302
+ color: @invertedStyledActiveTitleColor;
303
+ }
304
+ .ui.inverted.styled.accordion .accordion[open] > .title,
305
+ .ui.inverted.styled.accordion .accordion .active.title {
306
+ background: @invertedStyledActiveChildTitleBackground;
307
+ color: @invertedStyledActiveChildTitleColor;
308
+ }
309
+ }
310
+ }
311
+
312
+ & when (@variationAccordionBasicStyled) {
313
+ .ui.basic.styled.accordion,
314
+ .ui.basic.styled.accordion .accordion {
315
+ background: transparent;
316
+ box-shadow: none;
317
+ }
318
+ .ui.basic.styled.accordion > .title,
319
+ .ui.basic.styled.accordion .accordion > .title {
320
+ border: none;
321
+ color: @basicStyledTitleColor;
322
+ }
323
+ .ui.basic.styled.accordion > .title:hover,
324
+ .ui.basic.styled.accordion .accordion > .title:hover {
325
+ background: transparent;
326
+ color: @basicStyledTitleHoverColor;
327
+ }
328
+ .ui.basic.styled.accordion[open] > .title,
329
+ .ui.basic.styled.accordion .active.title,
330
+ .ui.basic.styled.accordion .accordion[open] > .title,
331
+ .ui.basic.styled.accordion .accordion .active.title {
332
+ background: transparent;
333
+ color: @basicStyledActiveTitleColor;
334
+ }
335
+ & when (@variationAccordionInverted) {
336
+ .ui.inverted.basic.styled.accordion > .title,
337
+ .ui.inverted.basic.styled.accordion .accordion > .title {
338
+ background: transparent;
339
+ color: @invertedBasicStyledTitleColor;
340
+ }
341
+ .ui.inverted.basic.styled.accordion > .title:hover,
342
+ .ui.inverted.basic.styled.accordion .accordion > .title:hover {
343
+ background: transparent;
344
+ color: @invertedBasicStyledTitleHoverColor;
345
+ }
346
+ .ui.inverted.basic.styled.accordion[open] > .title,
347
+ .ui.inverted.basic.styled.accordion .active.title,
348
+ .ui.inverted.basic.styled.accordion .accordion[open] > .title,
349
+ .ui.inverted.basic.styled.accordion .accordion .active.title {
350
+ background: transparent;
351
+ color: @invertedBasicStyledActiveTitleColor;
352
+ }
353
+ }
354
+ }
355
+
356
+ & when (@variationAccordionTree) {
357
+ .ui.tree.accordion:not(.styled) .title ~ .content,
358
+ .ui.tree.accordion:not(.styled) .accordion .title ~ .content {
359
+ padding:@treeContentPadding;
360
+ }
361
+ .ui.tree.accordion > .content,
362
+ .ui.tree.accordion .accordion > .content {
363
+ margin-left: @treeContentLeftMargin;
364
+ }
365
+ .ui.tree.accordion .accordion {
366
+ margin-top: @treeContentTopMargin;
367
+ }
368
+ }
369
+
370
+ .loadUIOverrides();
371
+