fomantic-ui 2.9.0-beta.25 → 2.9.0-beta.252
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.
- package/.all-contributorsrc +206 -3
- package/.github/workflows/ci.yml +4 -4
- package/.github/workflows/nightly.yml +4 -4
- package/.github/workflows/release.yml +30 -0
- package/CONTRIBUTORS.md +75 -37
- package/README.md +8 -8
- package/dist/components/accordion.css +162 -26
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +2 -2
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +34 -30
- package/dist/components/api.min.js +3 -3
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +176 -134
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +18 -1
- package/dist/components/calendar.js +10 -9
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +3 -3
- package/dist/components/card.css +26 -19
- package/dist/components/card.min.css +2 -2
- package/dist/components/checkbox.css +2 -1
- package/dist/components/checkbox.js +17 -11
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +3 -3
- package/dist/components/comment.css +11 -11
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +94 -1
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +28 -14
- package/dist/components/dimmer.js +11 -5
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +3 -3
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +49 -13
- package/dist/components/dropdown.js +62 -38
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +10147 -8139
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +28 -28
- package/dist/components/feed.min.css +2 -2
- package/dist/components/flag.css +734 -625
- package/dist/components/flag.min.css +2 -2
- package/dist/components/form.css +118 -55
- package/dist/components/form.js +30 -28
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +11 -8
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +3 -1
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +126 -47
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +742 -17
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +13 -13
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +29 -5
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +41 -41
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +13 -1
- package/dist/components/modal.js +127 -49
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +3 -3
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +2 -2
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +3 -3
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +4 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +3 -3
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +2 -2
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +3 -3
- package/dist/components/segment.css +91 -7
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +3 -3
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +3 -3
- package/dist/components/sidebar.css +4 -2
- package/dist/components/sidebar.js +8 -6
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +3 -3
- package/dist/components/site.css +61 -39
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +4 -4
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +23 -5
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +3 -3
- package/dist/components/table.css +1168 -26
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +39 -1
- package/dist/components/toast.js +56 -28
- package/dist/components/toast.min.css +2 -2
- package/dist/components/toast.min.js +3 -3
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +21 -16
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +3 -3
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +21916 -16238
- package/dist/semantic.js +421 -244
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.svg +801 -654
- package/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/dist/themes/default/assets/fonts/icons.eot +0 -0
- package/dist/themes/default/assets/fonts/icons.svg +1175 -1079
- package/dist/themes/default/assets/fonts/icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/icons.woff +0 -0
- package/dist/themes/default/assets/fonts/icons.woff2 +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.svg +93 -95
- package/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/examples/assets/library/iframe-content.js +8 -8
- package/examples/assets/library/iframe.js +3 -3
- package/package.json +10 -9
- package/src/definitions/behaviors/api.js +33 -29
- package/src/definitions/behaviors/form.js +29 -27
- package/src/definitions/collections/form.less +204 -140
- package/src/definitions/collections/grid.less +716 -680
- package/src/definitions/collections/menu.less +173 -126
- package/src/definitions/collections/message.less +48 -46
- package/src/definitions/collections/table.less +849 -262
- package/src/definitions/elements/button.less +586 -449
- package/src/definitions/elements/container.less +145 -8
- package/src/definitions/elements/emoji.less +15 -9
- package/src/definitions/elements/flag.less +7 -17
- package/src/definitions/elements/header.less +44 -35
- package/src/definitions/elements/icon.less +38 -31
- package/src/definitions/elements/input.less +264 -22
- package/src/definitions/elements/label.less +92 -91
- package/src/definitions/elements/list.less +55 -45
- package/src/definitions/elements/loader.less +30 -29
- package/src/definitions/elements/segment.less +147 -28
- package/src/definitions/elements/step.less +52 -48
- package/src/definitions/elements/text.less +17 -15
- package/src/definitions/globals/site.less +23 -2
- package/src/definitions/modules/accordion.less +175 -24
- package/src/definitions/modules/calendar.js +9 -8
- package/src/definitions/modules/calendar.less +20 -0
- package/src/definitions/modules/checkbox.js +16 -10
- package/src/definitions/modules/checkbox.less +34 -178
- package/src/definitions/modules/dimmer.js +10 -4
- package/src/definitions/modules/dimmer.less +21 -8
- package/src/definitions/modules/dropdown.js +61 -37
- package/src/definitions/modules/dropdown.less +145 -94
- package/src/definitions/modules/modal.js +126 -48
- package/src/definitions/modules/modal.less +12 -0
- package/src/definitions/modules/nag.less +20 -19
- package/src/definitions/modules/popup.js +1 -1
- package/src/definitions/modules/progress.js +3 -0
- package/src/definitions/modules/progress.less +19 -18
- package/src/definitions/modules/rating.less +35 -34
- package/src/definitions/modules/search.js +1 -1
- package/src/definitions/modules/search.less +32 -16
- package/src/definitions/modules/shape.js +2 -2
- package/src/definitions/modules/sidebar.js +7 -5
- package/src/definitions/modules/sidebar.less +33 -19
- package/src/definitions/modules/slider.less +39 -38
- package/src/definitions/modules/tab.js +22 -4
- package/src/definitions/modules/toast.js +55 -27
- package/src/definitions/modules/toast.less +48 -16
- package/src/definitions/modules/transition.js +20 -15
- package/src/definitions/views/card.less +402 -361
- package/src/definitions/views/comment.less +92 -81
- package/src/definitions/views/feed.less +164 -144
- package/src/definitions/views/item.less +249 -196
- package/src/definitions/views/statistic.less +90 -88
- package/src/themes/bookish/elements/header.overrides +1 -1
- package/src/themes/chubby/elements/button.overrides +1 -1
- package/src/themes/chubby/elements/header.overrides +1 -1
- package/src/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/src/themes/default/assets/fonts/brand-icons.svg +801 -654
- package/src/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/src/themes/default/assets/fonts/icons.eot +0 -0
- package/src/themes/default/assets/fonts/icons.svg +1175 -1079
- package/src/themes/default/assets/fonts/icons.ttf +0 -0
- package/src/themes/default/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/icons.woff2 +0 -0
- package/src/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/src/themes/default/assets/fonts/outline-icons.svg +93 -95
- package/src/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/src/themes/default/collections/form.variables +4 -0
- package/src/themes/default/collections/menu.variables +6 -0
- package/src/themes/default/collections/table.variables +52 -0
- package/src/themes/default/elements/button.variables +7 -1
- package/src/themes/default/elements/container.variables +12 -0
- package/src/themes/default/elements/emoji.overrides +1734 -1232
- package/src/themes/default/elements/flag.overrides +1641 -986
- package/src/themes/default/elements/flag.variables +7 -5
- package/src/themes/default/elements/icon.overrides +75 -48
- package/src/themes/default/elements/icon.variables +1 -0
- package/src/themes/default/elements/input.variables +15 -0
- package/src/themes/default/elements/segment.variables +8 -0
- package/src/themes/default/elements/step.overrides +1 -1
- package/src/themes/default/globals/site.variables +6 -0
- package/src/themes/default/globals/variation.variables +139 -6
- package/src/themes/default/modules/accordion.variables +49 -2
- package/src/themes/default/modules/calendar.variables +3 -0
- package/src/themes/default/modules/checkbox.variables +5 -5
- package/src/themes/default/modules/dimmer.variables +1 -1
- package/src/themes/default/modules/dropdown.variables +4 -10
- package/src/themes/default/modules/modal.variables +13 -0
- package/src/themes/default/modules/toast.variables +3 -0
- package/src/themes/famfamfam/elements/flag.overrides +1026 -0
- package/src/themes/famfamfam/elements/flag.variables +13 -0
- package/src/themes/instagram/views/card.overrides +1 -1
- package/src/themes/joypixels/elements/emoji.overrides +1759 -1257
- package/src/themes/joypixels/elements/emoji.variables +1 -1
- package/src/themes/material/collections/menu.overrides +1 -1
- package/src/themes/material/elements/button.overrides +1 -1
- package/src/themes/material/elements/header.overrides +1 -1
- package/src/themes/material/modules/dropdown.overrides +1 -1
- package/src/themes/material/modules/modal.overrides +1 -1
- package/src/themes/rtl/globals/site.overrides +1 -1
- package/src/themes/twitter/elements/emoji.overrides +1734 -1232
- package/tasks/build/css.js +6 -1
- package/tasks/config/project/install.js +11 -5
- package/tasks/install.js +1 -0
- package/test/helpers/sinon.js +2 -2
@@ -123,51 +123,52 @@
|
|
123
123
|
background-image: @activeBackgroundImage;
|
124
124
|
}
|
125
125
|
|
126
|
+
& when (@variationButtonLoading) {
|
127
|
+
/*--------------
|
128
|
+
Loading
|
129
|
+
---------------*/
|
126
130
|
|
127
|
-
|
128
|
-
|
129
|
-
|
131
|
+
/* Specificity hack */
|
132
|
+
.ui.loading.loading.loading.loading.loading.loading.button {
|
133
|
+
position: relative;
|
134
|
+
cursor: default;
|
135
|
+
text-shadow: none !important;
|
136
|
+
color: transparent;
|
137
|
+
opacity: @loadingOpacity;
|
138
|
+
pointer-events: @loadingPointerEvents;
|
139
|
+
transition: @loadingTransition;
|
140
|
+
}
|
141
|
+
.ui.loading.button:before {
|
142
|
+
position: absolute;
|
143
|
+
content: '';
|
144
|
+
top: 50%;
|
145
|
+
left: 50%;
|
130
146
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
cursor: default;
|
135
|
-
text-shadow: none !important;
|
136
|
-
color: transparent;
|
137
|
-
opacity: @loadingOpacity;
|
138
|
-
pointer-events: @loadingPointerEvents;
|
139
|
-
transition: @loadingTransition;
|
140
|
-
}
|
141
|
-
.ui.loading.button:before {
|
142
|
-
position: absolute;
|
143
|
-
content: '';
|
144
|
-
top: 50%;
|
145
|
-
left: 50%;
|
146
|
-
|
147
|
-
margin: @loaderMargin;
|
148
|
-
width: @loaderSize;
|
149
|
-
height: @loaderSize;
|
150
|
-
|
151
|
-
border-radius: @circularRadius;
|
152
|
-
border: @loaderLineWidth solid @invertedLoaderFillColor;
|
153
|
-
}
|
154
|
-
.ui.loading.button:after {
|
155
|
-
position: absolute;
|
156
|
-
content: '';
|
157
|
-
top: 50%;
|
158
|
-
left: 50%;
|
147
|
+
margin: @loaderMargin;
|
148
|
+
width: @loaderSize;
|
149
|
+
height: @loaderSize;
|
159
150
|
|
160
|
-
|
161
|
-
|
162
|
-
|
151
|
+
border-radius: @circularRadius;
|
152
|
+
border: @loaderLineWidth solid @invertedLoaderFillColor;
|
153
|
+
}
|
154
|
+
.ui.loading.button:after {
|
155
|
+
position: absolute;
|
156
|
+
content: '';
|
157
|
+
top: 50%;
|
158
|
+
left: 50%;
|
159
|
+
|
160
|
+
margin: @loaderMargin;
|
161
|
+
width: @loaderSize;
|
162
|
+
height: @loaderSize;
|
163
163
|
|
164
|
-
|
164
|
+
border-radius: @circularRadius;
|
165
165
|
|
166
|
-
|
167
|
-
|
168
|
-
|
166
|
+
animation: loader @loaderSpeed infinite linear;
|
167
|
+
border: @loaderLineWidth solid currentColor;
|
168
|
+
color: @invertedLoaderLineColor;
|
169
169
|
|
170
|
-
|
170
|
+
box-shadow: 0 0 0 1px transparent;
|
171
|
+
}
|
171
172
|
}
|
172
173
|
& when (@variationButtonLabeledIcon){
|
173
174
|
.ui.labeled.icon.loading.button .icon {
|
@@ -261,61 +262,64 @@
|
|
261
262
|
right: 0;
|
262
263
|
}
|
263
264
|
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
/* Fade */
|
290
|
-
.ui.fade.animated.button .visible.content,
|
291
|
-
.ui.fade.animated.button .hidden.content {
|
292
|
-
transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
|
293
|
-
}
|
294
|
-
.ui.fade.animated.button .visible.content {
|
295
|
-
left: auto;
|
296
|
-
right: auto;
|
297
|
-
opacity: 1;
|
298
|
-
transform: scale(1);
|
299
|
-
}
|
300
|
-
.ui.fade.animated.button .hidden.content {
|
301
|
-
opacity: 0;
|
302
|
-
left: 0;
|
303
|
-
right: auto;
|
304
|
-
transform: scale(@fadeScaleHigh);
|
305
|
-
}
|
306
|
-
.ui.fade.animated.button:focus .visible.content,
|
307
|
-
.ui.fade.animated.button:hover .visible.content {
|
308
|
-
left: auto;
|
309
|
-
right: auto;
|
310
|
-
opacity: 0;
|
311
|
-
transform: scale(@fadeScaleLow);
|
265
|
+
& when (@variationButtonVertical) {
|
266
|
+
/* Vertical */
|
267
|
+
.ui.vertical.animated.button .visible.content,
|
268
|
+
.ui.vertical.animated.button .hidden.content {
|
269
|
+
transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing;
|
270
|
+
}
|
271
|
+
.ui.vertical.animated.button .visible.content {
|
272
|
+
transform: translateY(0%);
|
273
|
+
right: auto;
|
274
|
+
}
|
275
|
+
.ui.vertical.animated.button .hidden.content {
|
276
|
+
top: -50%;
|
277
|
+
left: 0;
|
278
|
+
right: auto;
|
279
|
+
}
|
280
|
+
.ui.vertical.animated.button:focus .visible.content,
|
281
|
+
.ui.vertical.animated.button:hover .visible.content {
|
282
|
+
transform: translateY(200%);
|
283
|
+
right: auto;
|
284
|
+
}
|
285
|
+
.ui.vertical.animated.button:focus .hidden.content,
|
286
|
+
.ui.vertical.animated.button:hover .hidden.content {
|
287
|
+
top: 50%;
|
288
|
+
right: auto;
|
289
|
+
}
|
312
290
|
}
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
291
|
+
& when (@variationButtonAnimatedFade) {
|
292
|
+
/* Fade */
|
293
|
+
.ui.fade.animated.button .visible.content,
|
294
|
+
.ui.fade.animated.button .hidden.content {
|
295
|
+
transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
|
296
|
+
}
|
297
|
+
.ui.fade.animated.button .visible.content {
|
298
|
+
left: auto;
|
299
|
+
right: auto;
|
300
|
+
opacity: 1;
|
301
|
+
transform: scale(1);
|
302
|
+
}
|
303
|
+
.ui.fade.animated.button .hidden.content {
|
304
|
+
opacity: 0;
|
305
|
+
left: 0;
|
306
|
+
right: auto;
|
307
|
+
transform: scale(@fadeScaleHigh);
|
308
|
+
}
|
309
|
+
.ui.fade.animated.button:focus .visible.content,
|
310
|
+
.ui.fade.animated.button:hover .visible.content {
|
311
|
+
left: auto;
|
312
|
+
right: auto;
|
313
|
+
opacity: 0;
|
314
|
+
transform: scale(@fadeScaleLow);
|
315
|
+
}
|
316
|
+
.ui.fade.animated.button:focus .hidden.content,
|
317
|
+
.ui.fade.animated.button:hover .hidden.content {
|
318
|
+
left: 0;
|
319
|
+
right: auto;
|
320
|
+
opacity: 1;
|
321
|
+
transform: scale(1);
|
322
|
+
}
|
319
323
|
}
|
320
324
|
}
|
321
325
|
|
@@ -331,20 +335,23 @@
|
|
331
335
|
text-shadow: none !important;
|
332
336
|
}
|
333
337
|
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
338
|
+
& when (@variationButtonGroups) {
|
339
|
+
/* Group */
|
340
|
+
.ui.inverted.buttons .button {
|
341
|
+
margin: @invertedGroupButtonOffset;
|
342
|
+
}
|
343
|
+
.ui.inverted.buttons .button:first-child {
|
344
|
+
margin-left: 0;
|
345
|
+
}
|
346
|
+
& when (@variationButtonVertical) {
|
347
|
+
.ui.inverted.vertical.buttons .button {
|
348
|
+
margin: @invertedVerticalGroupButtonOffset;
|
349
|
+
}
|
350
|
+
.ui.inverted.vertical.buttons .button:first-child {
|
351
|
+
margin-top: 0;
|
352
|
+
}
|
353
|
+
}
|
346
354
|
}
|
347
|
-
|
348
355
|
/* States */
|
349
356
|
|
350
357
|
/* Hover */
|
@@ -730,23 +737,27 @@
|
|
730
737
|
})
|
731
738
|
}
|
732
739
|
|
733
|
-
|
734
|
-
|
735
|
-
|
740
|
+
& when (@variationButtonIcon) {
|
741
|
+
/*--------------
|
742
|
+
Icon Only
|
743
|
+
---------------*/
|
736
744
|
|
737
|
-
.ui.icon.buttons .button,
|
738
|
-
.ui.icon.button:not(.animated):not(.compact):not(.labeled) {
|
739
|
-
|
740
|
-
}
|
741
|
-
.ui.animated.icon.button > .content > .icon,
|
742
|
-
.ui.icon.buttons .button > .icon,
|
743
|
-
.ui.icon.button > .icon {
|
744
|
-
|
745
|
-
|
746
|
-
|
745
|
+
.ui.icon.buttons .button,
|
746
|
+
.ui.icon.button:not(.animated):not(.compact):not(.labeled) {
|
747
|
+
padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
|
748
|
+
}
|
749
|
+
.ui.animated.icon.button > .content > .icon,
|
750
|
+
.ui.icon.buttons .button > .icon,
|
751
|
+
.ui.icon.button > .icon {
|
752
|
+
opacity: @iconButtonOpacity;
|
753
|
+
margin: 0 !important;
|
754
|
+
vertical-align: top;
|
755
|
+
}
|
747
756
|
}
|
748
|
-
|
749
|
-
|
757
|
+
& when (@variationButtonAnimated) {
|
758
|
+
.ui.animated.button > .content > .icon {
|
759
|
+
vertical-align: top;
|
760
|
+
}
|
750
761
|
}
|
751
762
|
|
752
763
|
& when (@variationButtonBasic) {
|
@@ -764,15 +775,17 @@
|
|
764
775
|
text-shadow: none !important;
|
765
776
|
box-shadow: @basicBoxShadow;
|
766
777
|
}
|
778
|
+
& when (@variationButtonGroups) {
|
779
|
+
.ui.basic.buttons {
|
780
|
+
box-shadow: @basicGroupBoxShadow;
|
781
|
+
border: @basicGroupBorder;
|
782
|
+
border-radius: @borderRadius;
|
783
|
+
border-right: none;
|
784
|
+
}
|
767
785
|
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
border-radius: @borderRadius;
|
772
|
-
}
|
773
|
-
|
774
|
-
.ui.basic.buttons .button {
|
775
|
-
border-radius: 0;
|
786
|
+
.ui.basic.buttons .button {
|
787
|
+
border-radius: 0;
|
788
|
+
}
|
776
789
|
}
|
777
790
|
|
778
791
|
.ui.basic.buttons .button:hover,
|
@@ -807,18 +820,19 @@
|
|
807
820
|
.ui.basic.active.button:hover {
|
808
821
|
background-color: @transparentBlack;
|
809
822
|
}
|
823
|
+
& when (@variationButtonGroups) {
|
810
824
|
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
}
|
825
|
+
.ui.basic.buttons .button:hover {
|
826
|
+
box-shadow: @basicHoverBoxShadow inset;
|
827
|
+
}
|
815
828
|
|
816
|
-
|
817
|
-
|
818
|
-
|
829
|
+
.ui.basic.buttons .button:active {
|
830
|
+
box-shadow: @basicDownBoxShadow inset;
|
831
|
+
}
|
819
832
|
|
820
|
-
|
821
|
-
|
833
|
+
.ui.basic.buttons .active.button {
|
834
|
+
box-shadow: @basicActiveBoxShadow;
|
835
|
+
}
|
822
836
|
}
|
823
837
|
& when (@variationButtonInverted) {
|
824
838
|
/* Standard Basic Inverted */
|
@@ -864,21 +878,23 @@
|
|
864
878
|
}
|
865
879
|
}
|
866
880
|
|
867
|
-
& when (@
|
881
|
+
& when (@variationButtonGroups) {
|
868
882
|
/* Basic Group */
|
869
|
-
.ui.basic.buttons .button {
|
870
|
-
border-
|
883
|
+
.ui.basic.buttons:not(.inverted) .button:not(.basic) {
|
884
|
+
border-right: @basicGroupBorder;
|
871
885
|
box-shadow: none;
|
872
886
|
}
|
873
887
|
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
888
|
+
& when (@variationButtonVertical) {
|
889
|
+
.ui.basic.vertical.buttons .button {
|
890
|
+
border-left: none;
|
891
|
+
border-left-width: 0;
|
892
|
+
border-top: @basicGroupBorder;
|
893
|
+
}
|
879
894
|
|
880
|
-
|
881
|
-
|
895
|
+
.ui.basic.vertical.buttons:not(.spaced) .button:first-child {
|
896
|
+
border-top: none;
|
897
|
+
}
|
882
898
|
}
|
883
899
|
}
|
884
900
|
}
|
@@ -892,11 +908,11 @@
|
|
892
908
|
.ui.tertiary.button {
|
893
909
|
transition: color @defaultDuration @defaultEasing !important;
|
894
910
|
border-radius: 0;
|
895
|
-
margin: (@verticalPadding
|
911
|
+
margin: (@verticalPadding - @tertiaryVerticalPadding)
|
896
912
|
(@horizontalMargin)
|
897
|
-
(@verticalPadding + @shadowOffset + @verticalMargin - @
|
913
|
+
(@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding)
|
898
914
|
0 !important;
|
899
|
-
padding: @
|
915
|
+
padding: @tertiaryVerticalPadding @tertiaryHorizontalPadding !important;
|
900
916
|
|
901
917
|
& when (@tertiaryWithUnderline = true) {
|
902
918
|
box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryLineColor;
|
@@ -1217,7 +1233,7 @@
|
|
1217
1233
|
|
1218
1234
|
/* Top / Bottom */
|
1219
1235
|
.ui[class*="top attached"].buttons {
|
1220
|
-
margin-bottom: @
|
1236
|
+
margin-bottom: @topAttachedOffset;
|
1221
1237
|
border-radius: @borderRadius @borderRadius 0 0;
|
1222
1238
|
}
|
1223
1239
|
|
@@ -1230,7 +1246,7 @@
|
|
1230
1246
|
}
|
1231
1247
|
|
1232
1248
|
.ui[class*="bottom attached"].buttons {
|
1233
|
-
margin-top: @
|
1249
|
+
margin-top: @bottomAttachedOffset;
|
1234
1250
|
border-radius: 0 0 @borderRadius @borderRadius;
|
1235
1251
|
}
|
1236
1252
|
|
@@ -1291,7 +1307,8 @@
|
|
1291
1307
|
.ui.fluid.button {
|
1292
1308
|
display: block;
|
1293
1309
|
}
|
1294
|
-
|
1310
|
+
}
|
1311
|
+
& when (@variationButtonEqualWidth) {
|
1295
1312
|
.ui.two.buttons {
|
1296
1313
|
width: 100%;
|
1297
1314
|
}
|
@@ -1379,57 +1396,63 @@
|
|
1379
1396
|
.ui.twelve.buttons > .button {
|
1380
1397
|
width: 8.3333%;
|
1381
1398
|
}
|
1399
|
+
}
|
1382
1400
|
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1401
|
+
& when (@variationButtonVertical) {
|
1402
|
+
& when (@variationButtonFluid) {
|
1403
|
+
/* Fluid Vertical Buttons */
|
1404
|
+
.ui.fluid.vertical.buttons,
|
1405
|
+
.ui.fluid.vertical.buttons > .button {
|
1406
|
+
display: flex;
|
1407
|
+
width: auto;
|
1408
|
+
justify-content: center;
|
1409
|
+
}
|
1389
1410
|
}
|
1390
1411
|
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1412
|
+
& when (@variationButtonEqualWidth) {
|
1413
|
+
.ui.two.vertical.buttons > .button {
|
1414
|
+
height: 50%;
|
1415
|
+
}
|
1394
1416
|
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1417
|
+
.ui.three.vertical.buttons > .button {
|
1418
|
+
height: 33.333%;
|
1419
|
+
}
|
1398
1420
|
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1421
|
+
.ui.four.vertical.buttons > .button {
|
1422
|
+
height: 25%;
|
1423
|
+
}
|
1402
1424
|
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1425
|
+
.ui.five.vertical.buttons > .button {
|
1426
|
+
height: 20%;
|
1427
|
+
}
|
1406
1428
|
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1429
|
+
.ui.six.vertical.buttons > .button {
|
1430
|
+
height: 16.666%;
|
1431
|
+
}
|
1410
1432
|
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1433
|
+
.ui.seven.vertical.buttons > .button {
|
1434
|
+
height: 14.285%;
|
1435
|
+
}
|
1414
1436
|
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1437
|
+
.ui.eight.vertical.buttons > .button {
|
1438
|
+
height: 12.500%;
|
1439
|
+
}
|
1418
1440
|
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1441
|
+
.ui.nine.vertical.buttons > .button {
|
1442
|
+
height: 11.11%;
|
1443
|
+
}
|
1422
1444
|
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1445
|
+
.ui.ten.vertical.buttons > .button {
|
1446
|
+
height: 10%;
|
1447
|
+
}
|
1426
1448
|
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1449
|
+
.ui.eleven.vertical.buttons > .button {
|
1450
|
+
height: 9.09%;
|
1451
|
+
}
|
1430
1452
|
|
1431
|
-
|
1432
|
-
|
1453
|
+
.ui.twelve.vertical.buttons > .button {
|
1454
|
+
height: 8.3333%;
|
1455
|
+
}
|
1433
1456
|
}
|
1434
1457
|
}
|
1435
1458
|
|
@@ -1437,191 +1460,174 @@
|
|
1437
1460
|
Colors
|
1438
1461
|
--------------------*/
|
1439
1462
|
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
& when (@variationButtonBasic) {
|
1501
|
-
/* Basic */
|
1502
|
-
.ui.basic.@{color}.buttons .button,
|
1503
|
-
.ui.basic.@{color}.button {
|
1504
|
-
background: transparent;
|
1505
|
-
box-shadow: 0 0 0 @basicBorderSize @c inset ;
|
1506
|
-
color: @c ;
|
1507
|
-
}
|
1508
|
-
.ui.basic.@{color}.buttons .button:hover,
|
1509
|
-
.ui.basic.@{color}.button:hover {
|
1510
|
-
background: transparent ;
|
1511
|
-
box-shadow: 0 0 0 @basicColoredBorderSize @h inset ;
|
1512
|
-
color: @h ;
|
1513
|
-
}
|
1514
|
-
.ui.basic.@{color}.buttons .button:focus,
|
1515
|
-
.ui.basic.@{color}.button:focus {
|
1516
|
-
background: transparent ;
|
1517
|
-
box-shadow: 0 0 0 @basicColoredBorderSize @f inset ;
|
1518
|
-
color: @h ;
|
1519
|
-
}
|
1520
|
-
.ui.basic.@{color}.buttons .active.button,
|
1521
|
-
.ui.basic.@{color}.active.button {
|
1522
|
-
background: transparent ;
|
1523
|
-
box-shadow: 0 0 0 @basicColoredBorderSize @a inset ;
|
1524
|
-
color: @d ;
|
1525
|
-
}
|
1526
|
-
.ui.basic.@{color}.buttons .button:active,
|
1527
|
-
.ui.basic.@{color}.button:active {
|
1528
|
-
box-shadow: 0 0 0 @basicColoredBorderSize @d inset ;
|
1529
|
-
color: @d ;
|
1530
|
-
}
|
1531
|
-
|
1532
|
-
.ui.buttons:not(.vertical) > .basic.@{color}.button:not(:first-child) {
|
1533
|
-
margin-left: -@basicColoredBorderSize;
|
1463
|
+
& when not (@variationButtonColors = false) {
|
1464
|
+
each(@variationButtonColors, {
|
1465
|
+
@color: @value;
|
1466
|
+
@c: @colors[@@color][color];
|
1467
|
+
@h: @colors[@@color][hover];
|
1468
|
+
@f: @colors[@@color][focus];
|
1469
|
+
@d: @colors[@@color][down];
|
1470
|
+
@a: @colors[@@color][active];
|
1471
|
+
@t: @colors[@@color][text];
|
1472
|
+
@s: @colors[@@color][shadow];
|
1473
|
+
@l: @colors[@@color][light];
|
1474
|
+
@lh: @colors[@@color][lightHover];
|
1475
|
+
@lf: @colors[@@color][lightFocus];
|
1476
|
+
@ld: @colors[@@color][lightDown];
|
1477
|
+
@la: @colors[@@color][lightActive];
|
1478
|
+
@lt: @colors[@@color][lightText];
|
1479
|
+
@ls: @colors[@@color][lightShadow];
|
1480
|
+
@ty: @colors[@@color][tertiary];
|
1481
|
+
@tyh: @colors[@@color][tertiaryHover];
|
1482
|
+
@tyf: @colors[@@color][tertiaryFocus];
|
1483
|
+
@tya: @colors[@@color][tertiaryActive];
|
1484
|
+
@isDark: @colors[@@color][isDark];
|
1485
|
+
@isVeryDark: @colors[@@color][isVeryDark];
|
1486
|
+
|
1487
|
+
.ui.@{color}.buttons .button,
|
1488
|
+
.ui.@{color}.button {
|
1489
|
+
background-color: @c;
|
1490
|
+
color: @t;
|
1491
|
+
text-shadow: @s;
|
1492
|
+
background-image: @coloredBackgroundImage;
|
1493
|
+
}
|
1494
|
+
.ui.@{color}.button {
|
1495
|
+
box-shadow: @coloredBoxShadow;
|
1496
|
+
}
|
1497
|
+
.ui.@{color}.buttons .button:hover,
|
1498
|
+
.ui.@{color}.button:hover {
|
1499
|
+
background-color: @h;
|
1500
|
+
color: @t;
|
1501
|
+
text-shadow: @s;
|
1502
|
+
}
|
1503
|
+
.ui.@{color}.buttons .button:focus,
|
1504
|
+
.ui.@{color}.button:focus {
|
1505
|
+
background-color: @f;
|
1506
|
+
color: @t;
|
1507
|
+
text-shadow: @s;
|
1508
|
+
}
|
1509
|
+
.ui.@{color}.buttons .button:active,
|
1510
|
+
.ui.@{color}.button:active {
|
1511
|
+
background-color: @d;
|
1512
|
+
color: @t;
|
1513
|
+
text-shadow: @s;
|
1514
|
+
}
|
1515
|
+
.ui.@{color}.buttons .active.button,
|
1516
|
+
.ui.@{color}.buttons .active.button:active,
|
1517
|
+
.ui.@{color}.active.button,
|
1518
|
+
.ui.@{color}.button .active.button:active {
|
1519
|
+
background-color: @a;
|
1520
|
+
color: @t;
|
1521
|
+
text-shadow: @s;
|
1534
1522
|
}
|
1535
|
-
}
|
1536
|
-
& when (@variationButtonInverted) {
|
1537
|
-
/* Inverted */
|
1538
|
-
.ui.inverted.@{color}.buttons .button,
|
1539
|
-
.ui.inverted.@{color}.button {
|
1540
|
-
background-color: transparent;
|
1541
1523
|
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1524
|
+
& when (@variationButtonBasic) {
|
1525
|
+
/* Basic */
|
1526
|
+
.ui.basic.@{color}.buttons .button,
|
1527
|
+
.ui.basic.@{color}.button {
|
1528
|
+
background: transparent;
|
1529
|
+
box-shadow: 0 0 0 @basicBorderSize @c inset;
|
1530
|
+
color: @c;
|
1545
1531
|
}
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1532
|
+
.ui.basic.@{color}.buttons .button:hover,
|
1533
|
+
.ui.basic.@{color}.button:hover {
|
1534
|
+
background: transparent;
|
1535
|
+
box-shadow: 0 0 0 @basicColoredBorderSize @h inset;
|
1536
|
+
color: @h;
|
1537
|
+
}
|
1538
|
+
.ui.basic.@{color}.buttons .button:focus,
|
1539
|
+
.ui.basic.@{color}.button:focus {
|
1540
|
+
background: transparent;
|
1541
|
+
box-shadow: 0 0 0 @basicColoredBorderSize @f inset;
|
1542
|
+
color: @h;
|
1543
|
+
}
|
1544
|
+
.ui.basic.@{color}.buttons .active.button,
|
1545
|
+
.ui.basic.@{color}.active.button {
|
1546
|
+
background: transparent;
|
1547
|
+
box-shadow: 0 0 0 @basicColoredBorderSize @a inset;
|
1548
|
+
color: @d;
|
1549
|
+
}
|
1550
|
+
.ui.basic.@{color}.buttons .button:active,
|
1551
|
+
.ui.basic.@{color}.button:active {
|
1552
|
+
box-shadow: 0 0 0 @basicColoredBorderSize @d inset;
|
1553
|
+
color: @d;
|
1550
1554
|
}
|
1551
1555
|
}
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
.ui.inverted.@{color}.button.active,
|
1558
|
-
.ui.inverted.@{color}.buttons .button:active,
|
1559
|
-
.ui.inverted.@{color}.button:active {
|
1560
|
-
box-shadow: none ;
|
1561
|
-
color: @lt;
|
1562
|
-
}
|
1563
|
-
.ui.inverted.@{color}.buttons .button:hover,
|
1564
|
-
.ui.inverted.@{color}.button:hover {
|
1565
|
-
background-color: @lh;
|
1566
|
-
}
|
1567
|
-
.ui.inverted.@{color}.buttons .button:focus,
|
1568
|
-
.ui.inverted.@{color}.button:focus {
|
1569
|
-
background-color: @lf;
|
1570
|
-
}
|
1571
|
-
.ui.inverted.@{color}.buttons .active.button,
|
1572
|
-
.ui.inverted.@{color}.active.button {
|
1573
|
-
background-color: @la;
|
1574
|
-
}
|
1575
|
-
.ui.inverted.@{color}.buttons .button:active,
|
1576
|
-
.ui.inverted.@{color}.button:active {
|
1577
|
-
background-color: @ld;
|
1578
|
-
}
|
1579
|
-
|
1580
|
-
/* Inverted Basic */
|
1581
|
-
.ui.inverted.@{color}.basic.buttons .button,
|
1582
|
-
.ui.inverted.@{color}.buttons .basic.button,
|
1583
|
-
.ui.inverted.@{color}.basic.button {
|
1584
|
-
background-color: transparent;
|
1585
|
-
box-shadow: @basicInvertedBoxShadow ;
|
1586
|
-
color: @white ;
|
1587
|
-
}
|
1588
|
-
.ui.inverted.@{color}.basic.buttons .button:hover,
|
1589
|
-
.ui.inverted.@{color}.buttons .basic.button:hover,
|
1590
|
-
.ui.inverted.@{color}.basic.button:hover {
|
1591
|
-
box-shadow: 0 0 0 @invertedBorderSize @lh inset ;
|
1556
|
+
& when (@variationButtonInverted) {
|
1557
|
+
/* Inverted */
|
1558
|
+
.ui.inverted.@{color}.buttons .button,
|
1559
|
+
.ui.inverted.@{color}.button {
|
1560
|
+
background-color: transparent;
|
1592
1561
|
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1562
|
+
& when (@isDark) {
|
1563
|
+
box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset;
|
1564
|
+
color: @invertedTextColor;
|
1565
|
+
}
|
1596
1566
|
|
1597
|
-
|
1598
|
-
|
1567
|
+
& when not (@isDark) {
|
1568
|
+
box-shadow: 0 0 0 @invertedBorderSize @l inset;
|
1569
|
+
color: @l;
|
1570
|
+
}
|
1571
|
+
}
|
1572
|
+
.ui.inverted.@{color}.buttons .button:hover,
|
1573
|
+
.ui.inverted.@{color}.button:hover,
|
1574
|
+
.ui.inverted.@{color}.buttons .button:focus,
|
1575
|
+
.ui.inverted.@{color}.button:focus,
|
1576
|
+
.ui.inverted.@{color}.buttons .button.active,
|
1577
|
+
.ui.inverted.@{color}.button.active,
|
1578
|
+
.ui.inverted.@{color}.buttons .button:active,
|
1579
|
+
.ui.inverted.@{color}.button:active {
|
1580
|
+
box-shadow: none;
|
1581
|
+
color: @lt;
|
1582
|
+
}
|
1583
|
+
.ui.inverted.@{color}.buttons .button:hover,
|
1584
|
+
.ui.inverted.@{color}.button:hover {
|
1585
|
+
background-color: @lh;
|
1586
|
+
}
|
1587
|
+
.ui.inverted.@{color}.buttons .button:focus,
|
1588
|
+
.ui.inverted.@{color}.button:focus {
|
1589
|
+
background-color: @lf;
|
1590
|
+
}
|
1591
|
+
.ui.inverted.@{color}.buttons .active.button,
|
1592
|
+
.ui.inverted.@{color}.active.button {
|
1593
|
+
background-color: @la;
|
1594
|
+
}
|
1595
|
+
.ui.inverted.@{color}.buttons .button:active,
|
1596
|
+
.ui.inverted.@{color}.button:active {
|
1597
|
+
background-color: @ld;
|
1599
1598
|
}
|
1600
|
-
}
|
1601
|
-
.ui.inverted.@{color}.basic.buttons .button:focus,
|
1602
|
-
.ui.inverted.@{color}.basic.buttons .button:focus,
|
1603
|
-
.ui.inverted.@{color}.basic.button:focus {
|
1604
|
-
box-shadow: 0 0 0 @invertedBorderSize @lf inset ;
|
1605
|
-
color: @l ;
|
1606
|
-
}
|
1607
|
-
.ui.inverted.@{color}.basic.buttons .active.button,
|
1608
|
-
.ui.inverted.@{color}.buttons .basic.active.button,
|
1609
|
-
.ui.inverted.@{color}.basic.active.button {
|
1610
|
-
box-shadow: 0 0 0 @invertedBorderSize @la inset ;
|
1611
1599
|
|
1612
|
-
|
1613
|
-
|
1600
|
+
/* Inverted Basic */
|
1601
|
+
.ui.inverted.@{color}.basic.buttons .button,
|
1602
|
+
.ui.inverted.@{color}.buttons .basic.button,
|
1603
|
+
.ui.inverted.@{color}.basic.button {
|
1604
|
+
background-color: transparent;
|
1605
|
+
box-shadow: @basicInvertedBoxShadow;
|
1606
|
+
color: @white;
|
1614
1607
|
}
|
1608
|
+
.ui.inverted.@{color}.basic.buttons .button:hover,
|
1609
|
+
.ui.inverted.@{color}.buttons .basic.button:hover,
|
1610
|
+
.ui.inverted.@{color}.basic.button:hover {
|
1611
|
+
box-shadow: 0 0 0 @invertedBorderSize @lh inset;
|
1612
|
+
|
1613
|
+
& when (@isDark) {
|
1614
|
+
color: @white;
|
1615
|
+
}
|
1615
1616
|
|
1616
|
-
|
1617
|
-
|
1617
|
+
& when not (@isDark) {
|
1618
|
+
color: @l;
|
1619
|
+
}
|
1618
1620
|
}
|
1619
|
-
|
1620
|
-
|
1621
|
-
.ui.inverted.@{color}.basic.
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1621
|
+
.ui.inverted.@{color}.basic.buttons .button:focus,
|
1622
|
+
.ui.inverted.@{color}.basic.buttons .button:focus,
|
1623
|
+
.ui.inverted.@{color}.basic.button:focus {
|
1624
|
+
box-shadow: 0 0 0 @invertedBorderSize @lf inset;
|
1625
|
+
color: @l;
|
1626
|
+
}
|
1627
|
+
.ui.inverted.@{color}.basic.buttons .active.button,
|
1628
|
+
.ui.inverted.@{color}.buttons .basic.active.button,
|
1629
|
+
.ui.inverted.@{color}.basic.active.button {
|
1630
|
+
box-shadow: 0 0 0 @invertedBorderSize @la inset;
|
1625
1631
|
|
1626
1632
|
& when (@isDark) {
|
1627
1633
|
color: @white;
|
@@ -1631,104 +1637,119 @@ each(@colors, {
|
|
1631
1637
|
color: @l;
|
1632
1638
|
}
|
1633
1639
|
}
|
1640
|
+
& when (@variationButtonBasic) {
|
1641
|
+
.ui.inverted.@{color}.basic.buttons .button:active,
|
1642
|
+
.ui.inverted.@{color}.buttons .basic.button:active,
|
1643
|
+
.ui.inverted.@{color}.basic.button:active {
|
1644
|
+
box-shadow: 0 0 0 @invertedBorderSize @ld inset;
|
1645
|
+
|
1646
|
+
& when (@isDark) {
|
1647
|
+
color: @white;
|
1648
|
+
}
|
1649
|
+
|
1650
|
+
& when not (@isDark) {
|
1651
|
+
color: @l;
|
1652
|
+
}
|
1653
|
+
}
|
1654
|
+
}
|
1634
1655
|
}
|
1635
|
-
}
|
1636
1656
|
|
1637
|
-
|
1638
|
-
|
1657
|
+
& when (@variationButtonTertiary) {
|
1658
|
+
/* Tertiary */
|
1639
1659
|
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1660
|
+
.ui.tertiary.@{color}.buttons .button,
|
1661
|
+
.ui.tertiary.@{color}.buttons .tertiary.button,
|
1662
|
+
.ui.tertiary.@{color}.button {
|
1663
|
+
background: transparent;
|
1644
1664
|
|
1645
1665
|
|
1646
1666
|
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1667
|
+
& when (@tertiaryWithUnderline = true) {
|
1668
|
+
box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
|
1669
|
+
}
|
1650
1670
|
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1671
|
+
& when (@tertiaryWithOverline = true) {
|
1672
|
+
box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
|
1673
|
+
}
|
1654
1674
|
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1675
|
+
& when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
|
1676
|
+
box-shadow: none;
|
1677
|
+
}
|
1658
1678
|
|
1659
|
-
|
1660
|
-
|
1679
|
+
color: @c;
|
1680
|
+
}
|
1661
1681
|
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1682
|
+
.ui.tertiary.@{color}.buttons .button:hover,
|
1683
|
+
.ui.tertiary.@{color}.buttons button:hover,
|
1684
|
+
.ui.tertiary.@{color}.button:hover {
|
1665
1685
|
|
1666
1686
|
|
1667
1687
|
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1688
|
+
& when (@tertiaryHoverWithUnderline = true) {
|
1689
|
+
box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
|
1690
|
+
}
|
1671
1691
|
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1692
|
+
& when (@tertiaryHoverWithOverline = true) {
|
1693
|
+
box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
|
1694
|
+
}
|
1675
1695
|
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1696
|
+
& when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
|
1697
|
+
box-shadow: none;
|
1698
|
+
}
|
1679
1699
|
|
1680
1700
|
|
1681
1701
|
color: @tyh;
|
1682
|
-
|
1702
|
+
}
|
1683
1703
|
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1704
|
+
.ui.tertiary.@{color}.buttons .button:focus,
|
1705
|
+
.ui.tertiary.@{color}.buttons .tertiary.button:focus,
|
1706
|
+
.ui.tertiary.@{color}.button:focus {
|
1687
1707
|
|
1688
1708
|
|
1689
1709
|
|
1690
1710
|
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1711
|
+
& when (@tertiaryFocusWithUnderline = true) {
|
1712
|
+
box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
|
1713
|
+
}
|
1694
1714
|
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1715
|
+
& when (@tertiaryFocusWithOverline = true) {
|
1716
|
+
box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
|
1717
|
+
}
|
1698
1718
|
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1719
|
+
& when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
|
1720
|
+
box-shadow: none;
|
1721
|
+
}
|
1702
1722
|
|
1703
1723
|
|
1704
1724
|
color: @tyf;
|
1705
|
-
|
1725
|
+
}
|
1706
1726
|
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1727
|
+
.ui.tertiary.@{color}.buttons .active.button,
|
1728
|
+
.ui.tertiary.@{color}.buttons .tertiary.active.button,
|
1729
|
+
.ui.tertiary.@{color}.active.button,
|
1730
|
+
.ui.tertiary.@{color}.buttons .button:active,
|
1731
|
+
.ui.tertiary.@{color}.buttons .tertiary.button:active,
|
1732
|
+
.ui.tertiary.@{color}.button:active {
|
1713
1733
|
|
1714
1734
|
|
1715
1735
|
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1736
|
+
& when (@tertiaryActiveWithUnderline = true) {
|
1737
|
+
box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
|
1738
|
+
}
|
1719
1739
|
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1740
|
+
& when (@tertiaryActiveWithOverline = true) {
|
1741
|
+
box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
|
1742
|
+
}
|
1723
1743
|
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1744
|
+
& when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
|
1745
|
+
box-shadow: none;
|
1746
|
+
}
|
1727
1747
|
|
1728
|
-
|
1748
|
+
color: @a;
|
1749
|
+
}
|
1729
1750
|
}
|
1730
|
-
}
|
1731
|
-
}
|
1751
|
+
})
|
1752
|
+
}
|
1732
1753
|
|
1733
1754
|
.addConsequence(@consequence) {
|
1734
1755
|
|
@@ -1874,35 +1895,151 @@ each(@colors, {
|
|
1874
1895
|
border-top-right-radius: @borderRadius;
|
1875
1896
|
border-bottom-right-radius: @borderRadius;
|
1876
1897
|
}
|
1898
|
+
& when (@variationButtonVertical) {
|
1899
|
+
/* Vertical Style */
|
1900
|
+
.ui.vertical.buttons {
|
1901
|
+
display: inline-flex;
|
1902
|
+
flex-direction: column;
|
1903
|
+
}
|
1877
1904
|
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1905
|
+
.ui.vertical.buttons .button {
|
1906
|
+
display: block;
|
1907
|
+
float: none;
|
1908
|
+
width: 100%;
|
1909
|
+
margin: @verticalGroupOffset;
|
1910
|
+
border-radius: 0;
|
1911
|
+
&:not(.basic) {
|
1912
|
+
box-shadow: @verticalBoxShadow;
|
1913
|
+
}
|
1914
|
+
}
|
1883
1915
|
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
margin: @verticalGroupOffset;
|
1889
|
-
box-shadow: @verticalBoxShadow;
|
1890
|
-
border-radius: 0;
|
1891
|
-
}
|
1916
|
+
.ui.vertical.buttons .button:first-child {
|
1917
|
+
border-top-left-radius: @borderRadius;
|
1918
|
+
border-top-right-radius: @borderRadius;
|
1919
|
+
}
|
1892
1920
|
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1921
|
+
.ui.vertical.buttons .button:last-child {
|
1922
|
+
margin-bottom: 0;
|
1923
|
+
border-bottom-left-radius: @borderRadius;
|
1924
|
+
border-bottom-right-radius: @borderRadius;
|
1925
|
+
}
|
1926
|
+
|
1927
|
+
.ui.vertical.buttons .button:only-child {
|
1928
|
+
border-radius: @borderRadius;
|
1929
|
+
}
|
1930
|
+
& when (@variationButtonBasic) {
|
1931
|
+
.ui.vertical.buttons .basic.button:not(:first-child) {
|
1932
|
+
border-top: none;
|
1933
|
+
}
|
1934
|
+
}
|
1896
1935
|
}
|
1897
1936
|
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1937
|
+
& when (@variationButtonWrapping) {
|
1938
|
+
.ui.wrapping.buttons {
|
1939
|
+
flex-wrap: wrap;
|
1940
|
+
}
|
1941
|
+
& when (@variationButtonBasic) {
|
1942
|
+
.ui.wrapping.basic.buttons {
|
1943
|
+
border-bottom: none;
|
1944
|
+
& .button {
|
1945
|
+
border-bottom: @basicGroupBorder;
|
1946
|
+
&:hover {
|
1947
|
+
background: transparent !important;
|
1948
|
+
}
|
1949
|
+
}
|
1950
|
+
}
|
1951
|
+
}
|
1952
|
+
& when (@variationButtonCompact) {
|
1953
|
+
.ui.compact.wrapping.buttons .button {
|
1954
|
+
flex: none;
|
1955
|
+
}
|
1956
|
+
}
|
1957
|
+
}
|
1958
|
+
& when (@variationButtonWrapped) {
|
1959
|
+
.ui.wrapped.buttons:not(.spaced) {
|
1960
|
+
border-top-right-radius: 0;
|
1961
|
+
& .button {
|
1962
|
+
&:first-child {
|
1963
|
+
border-radius: @basicBorderRadius 0 0 0;
|
1964
|
+
}
|
1965
|
+
&:last-child {
|
1966
|
+
border-radius: 0 0 @basicBorderRadius 0;
|
1967
|
+
}
|
1968
|
+
}
|
1969
|
+
}
|
1970
|
+
& when (@variationButtonAttached) {
|
1971
|
+
.ui.wrapped[class*="top attached"].buttons {
|
1972
|
+
border-radius: @basicBorderRadius 0 0 0;
|
1973
|
+
& .button:last-child {
|
1974
|
+
border-radius: 0;
|
1975
|
+
}
|
1976
|
+
}
|
1977
|
+
.ui.wrapped[class*="bottom attached"].buttons {
|
1978
|
+
border-radius: 0 0 0 @basicBorderRadius;
|
1979
|
+
& .button:first-child {
|
1980
|
+
border-radius: 0;
|
1981
|
+
}
|
1982
|
+
}
|
1983
|
+
}
|
1984
|
+
}
|
1985
|
+
& when (@variationButtonSpaced) {
|
1986
|
+
.ui.spaced.buttons .ui.button {
|
1987
|
+
margin-bottom: @spacedMargin;
|
1988
|
+
margin-right: @spacedMargin;
|
1989
|
+
border-radius: @basicBorderRadius;
|
1990
|
+
}
|
1991
|
+
& when (@variationButtonBasic) {
|
1992
|
+
.ui.spaced.basic.buttons {
|
1993
|
+
border: none;
|
1994
|
+
& .button {
|
1995
|
+
border: @basicGroupBorder;
|
1996
|
+
&.basic {
|
1997
|
+
border: none;
|
1998
|
+
}
|
1999
|
+
}
|
2000
|
+
}
|
2001
|
+
& when (@variationButtonVertical) {
|
2002
|
+
.ui.spaced.basic.vertical.buttons .button:first-child {
|
2003
|
+
border-top: @basicGroupBorder;
|
2004
|
+
}
|
2005
|
+
}
|
2006
|
+
& when (@variationButtonWrapping) {
|
2007
|
+
.ui.spaced.basic.wrapping.buttons .button:not(.basic) {
|
2008
|
+
border-top: @basicGroupBorder;
|
2009
|
+
border-right: @basicGroupBorder;
|
2010
|
+
&:first-child {
|
2011
|
+
border-left: @basicGroupBorder;
|
2012
|
+
}
|
2013
|
+
}
|
2014
|
+
}
|
2015
|
+
& when (@variationButtonInverted) {
|
2016
|
+
.ui.spaced.basic.inverted.buttons .basic.button {
|
2017
|
+
margin-bottom: e(%("calc(%d + %d)", @spacedMargin, @basicColoredBorderSize));
|
2018
|
+
margin-top: @basicColoredBorderSize;
|
2019
|
+
}
|
2020
|
+
}
|
2021
|
+
}
|
1902
2022
|
}
|
1903
2023
|
|
1904
|
-
|
1905
|
-
|
2024
|
+
& when (@variationButtonBasic) {
|
2025
|
+
.ui.basic.buttons:not(.vertical).inverted .button,
|
2026
|
+
.ui.basic.buttons:not(.vertical) .basic.button {
|
2027
|
+
margin-left: -@basicColoredBorderSize;
|
2028
|
+
border-right: none;
|
2029
|
+
}
|
2030
|
+
.ui.basic.buttons:not(.vertical):not(.spaced):not(.inverted) .basic.button {
|
2031
|
+
margin-top: -@basicColoredBorderSize;
|
2032
|
+
border-bottom: none;
|
2033
|
+
}
|
2034
|
+
& when (@variationButtonAttached) or (@variationButtonInverted) {
|
2035
|
+
.ui.inverted.basic.buttons:not(.spaced) .button,
|
2036
|
+
.ui.attached.basic.buttons:not(.wrapping):not(.inverted) .basic.button {
|
2037
|
+
margin-bottom: @attachedOffset;
|
2038
|
+
}
|
2039
|
+
}
|
2040
|
+
.ui.basic.buttons:not(.vertical):not(.attached):not(.spaced):not(.wrapping):not(.inverted) .basic.button {
|
2041
|
+
margin-bottom: -@basicColoredBorderSize;
|
2042
|
+
}
|
1906
2043
|
}
|
1907
2044
|
}
|
1908
2045
|
.loadUIOverrides();
|