fomantic-ui 2.9.0-beta.9 → 2.9.0-beta.90
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 +188 -3
- package/CONTRIBUTORS.md +71 -37
- package/README.md +1 -1
- package/dist/components/accordion.css +50 -6
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +2 -2
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +25 -23
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +81 -81
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +106 -10
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +2 -2
- 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 +2 -2
- package/dist/components/comment.css +11 -11
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +28 -14
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +28 -5
- package/dist/components/dropdown.js +14 -18
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- 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 +1 -1
- package/dist/components/emoji.css +2 -2
- package/dist/components/feed.css +28 -28
- package/dist/components/feed.min.css +2 -2
- package/dist/components/flag.css +731 -625
- package/dist/components/flag.min.css +2 -2
- package/dist/components/form.css +103 -54
- package/dist/components/form.js +24 -22
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +11 -8
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +6 -1
- 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 +17 -2
- 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 +3 -1
- package/dist/components/modal.js +94 -30
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +2 -2
- 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 +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +5 -3
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +7 -46
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +2 -2
- package/dist/components/rating.min.js +1 -1
- 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 +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +12 -6
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +4 -2
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +1 -1
- 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 +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- 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 +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +5 -3
- 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 +7 -1
- package/dist/components/toast.js +5 -4
- package/dist/components/toast.min.css +2 -2
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +1375 -1030
- package/dist/semantic.js +303 -136
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/assets/library/iframe-content.js +5 -5
- package/package.json +2 -2
- package/src/definitions/behaviors/api.js +24 -22
- package/src/definitions/behaviors/form.js +23 -21
- package/src/definitions/collections/form.less +190 -139
- 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 +255 -242
- package/src/definitions/elements/button.less +360 -347
- package/src/definitions/elements/container.less +16 -8
- package/src/definitions/elements/emoji.less +15 -9
- package/src/definitions/elements/flag.less +7 -17
- package/src/definitions/elements/header.less +42 -35
- package/src/definitions/elements/icon.less +38 -31
- package/src/definitions/elements/input.less +23 -7
- 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 +30 -22
- 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 +55 -5
- package/src/definitions/modules/calendar.js +105 -9
- package/src/definitions/modules/checkbox.js +16 -10
- package/src/definitions/modules/checkbox.less +34 -178
- package/src/definitions/modules/dimmer.less +21 -8
- package/src/definitions/modules/dropdown.js +13 -17
- package/src/definitions/modules/dropdown.less +99 -67
- package/src/definitions/modules/modal.js +93 -29
- package/src/definitions/modules/modal.less +2 -0
- package/src/definitions/modules/nag.less +20 -19
- package/src/definitions/modules/popup.less +5 -1
- package/src/definitions/modules/progress.less +19 -18
- package/src/definitions/modules/rating.less +49 -42
- package/src/definitions/modules/search.less +32 -16
- package/src/definitions/modules/sidebar.less +33 -19
- package/src/definitions/modules/slider.less +39 -38
- package/src/definitions/modules/toast.js +4 -3
- package/src/definitions/modules/toast.less +22 -16
- 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/default/collections/menu.variables +6 -0
- package/src/themes/default/elements/button.variables +2 -1
- package/src/themes/default/elements/flag.overrides +1635 -986
- package/src/themes/default/elements/flag.variables +7 -5
- package/src/themes/default/elements/icon.overrides +35 -28
- package/src/themes/default/elements/icon.variables +1 -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 +104 -6
- package/src/themes/default/modules/accordion.variables +15 -0
- package/src/themes/default/modules/dimmer.variables +1 -1
- package/src/themes/default/modules/dropdown.variables +1 -1
- package/src/themes/famfamfam/elements/flag.overrides +1026 -0
- package/src/themes/famfamfam/elements/flag.variables +13 -0
- package/tasks/build/css.js +6 -1
- package/test/helpers/sinon.js +1 -1
@@ -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 {
|
@@ -730,20 +731,22 @@
|
|
730
731
|
})
|
731
732
|
}
|
732
733
|
|
733
|
-
|
734
|
-
|
735
|
-
|
734
|
+
& when (@variationButtonIcon) {
|
735
|
+
/*--------------
|
736
|
+
Icon Only
|
737
|
+
---------------*/
|
736
738
|
|
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
|
-
|
739
|
+
.ui.icon.buttons .button,
|
740
|
+
.ui.icon.button:not(.animated):not(.compact):not(.labeled) {
|
741
|
+
padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
|
742
|
+
}
|
743
|
+
.ui.animated.icon.button > .content > .icon,
|
744
|
+
.ui.icon.buttons .button > .icon,
|
745
|
+
.ui.icon.button > .icon {
|
746
|
+
opacity: @iconButtonOpacity;
|
747
|
+
margin: 0 !important;
|
748
|
+
vertical-align: top;
|
749
|
+
}
|
747
750
|
}
|
748
751
|
.ui.animated.button > .content > .icon {
|
749
752
|
vertical-align: top;
|
@@ -892,11 +895,11 @@
|
|
892
895
|
.ui.tertiary.button {
|
893
896
|
transition: color @defaultDuration @defaultEasing !important;
|
894
897
|
border-radius: 0;
|
895
|
-
margin: (@verticalPadding
|
898
|
+
margin: (@verticalPadding - @tertiaryVerticalPadding)
|
896
899
|
(@horizontalMargin)
|
897
|
-
(@verticalPadding + @shadowOffset + @verticalMargin - @
|
900
|
+
(@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding)
|
898
901
|
0 !important;
|
899
|
-
padding: @
|
902
|
+
padding: @tertiaryVerticalPadding @tertiaryHorizontalPadding !important;
|
900
903
|
|
901
904
|
& when (@tertiaryWithUnderline = true) {
|
902
905
|
box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryLineColor;
|
@@ -1291,7 +1294,8 @@
|
|
1291
1294
|
.ui.fluid.button {
|
1292
1295
|
display: block;
|
1293
1296
|
}
|
1294
|
-
|
1297
|
+
}
|
1298
|
+
& when (@variationButtonEqualWidth) {
|
1295
1299
|
.ui.two.buttons {
|
1296
1300
|
width: 100%;
|
1297
1301
|
}
|
@@ -1379,57 +1383,63 @@
|
|
1379
1383
|
.ui.twelve.buttons > .button {
|
1380
1384
|
width: 8.3333%;
|
1381
1385
|
}
|
1386
|
+
}
|
1382
1387
|
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1388
|
+
& when (@variationButtonVertical) {
|
1389
|
+
& when (@variationButtonFluid) {
|
1390
|
+
/* Fluid Vertical Buttons */
|
1391
|
+
.ui.fluid.vertical.buttons,
|
1392
|
+
.ui.fluid.vertical.buttons > .button {
|
1393
|
+
display: flex;
|
1394
|
+
width: auto;
|
1395
|
+
justify-content: center;
|
1396
|
+
}
|
1389
1397
|
}
|
1390
1398
|
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1399
|
+
& when (@variationButtonEqualWidth) {
|
1400
|
+
.ui.two.vertical.buttons > .button {
|
1401
|
+
height: 50%;
|
1402
|
+
}
|
1394
1403
|
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1404
|
+
.ui.three.vertical.buttons > .button {
|
1405
|
+
height: 33.333%;
|
1406
|
+
}
|
1398
1407
|
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1408
|
+
.ui.four.vertical.buttons > .button {
|
1409
|
+
height: 25%;
|
1410
|
+
}
|
1402
1411
|
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1412
|
+
.ui.five.vertical.buttons > .button {
|
1413
|
+
height: 20%;
|
1414
|
+
}
|
1406
1415
|
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1416
|
+
.ui.six.vertical.buttons > .button {
|
1417
|
+
height: 16.666%;
|
1418
|
+
}
|
1410
1419
|
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1420
|
+
.ui.seven.vertical.buttons > .button {
|
1421
|
+
height: 14.285%;
|
1422
|
+
}
|
1414
1423
|
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1424
|
+
.ui.eight.vertical.buttons > .button {
|
1425
|
+
height: 12.500%;
|
1426
|
+
}
|
1418
1427
|
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1428
|
+
.ui.nine.vertical.buttons > .button {
|
1429
|
+
height: 11.11%;
|
1430
|
+
}
|
1422
1431
|
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1432
|
+
.ui.ten.vertical.buttons > .button {
|
1433
|
+
height: 10%;
|
1434
|
+
}
|
1426
1435
|
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1436
|
+
.ui.eleven.vertical.buttons > .button {
|
1437
|
+
height: 9.09%;
|
1438
|
+
}
|
1430
1439
|
|
1431
|
-
|
1432
|
-
|
1440
|
+
.ui.twelve.vertical.buttons > .button {
|
1441
|
+
height: 8.3333%;
|
1442
|
+
}
|
1433
1443
|
}
|
1434
1444
|
}
|
1435
1445
|
|
@@ -1437,191 +1447,178 @@
|
|
1437
1447
|
Colors
|
1438
1448
|
--------------------*/
|
1439
1449
|
|
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
|
-
.ui.@{color}.button {
|
1471
|
-
box-shadow: @coloredBoxShadow;
|
1472
|
-
}
|
1473
|
-
.ui.@{color}.buttons .button:hover,
|
1474
|
-
.ui.@{color}.button:hover {
|
1475
|
-
background-color: @h;
|
1476
|
-
color: @t;
|
1477
|
-
text-shadow: @s;
|
1478
|
-
}
|
1479
|
-
.ui.@{color}.buttons .button:focus,
|
1480
|
-
.ui.@{color}.button:focus {
|
1481
|
-
background-color: @f;
|
1482
|
-
color: @t;
|
1483
|
-
text-shadow: @s;
|
1484
|
-
}
|
1485
|
-
.ui.@{color}.buttons .button:active,
|
1486
|
-
.ui.@{color}.button:active {
|
1487
|
-
background-color: @d;
|
1488
|
-
color: @t;
|
1489
|
-
text-shadow: @s;
|
1490
|
-
}
|
1491
|
-
.ui.@{color}.buttons .active.button,
|
1492
|
-
.ui.@{color}.buttons .active.button:active,
|
1493
|
-
.ui.@{color}.active.button,
|
1494
|
-
.ui.@{color}.button .active.button:active {
|
1495
|
-
background-color: @a;
|
1496
|
-
color: @t;
|
1497
|
-
text-shadow: @s;
|
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 ;
|
1450
|
+
& when not (@variationButtonColors = false) {
|
1451
|
+
each(@variationButtonColors, {
|
1452
|
+
@color: @value;
|
1453
|
+
@c: @colors[@@color][color];
|
1454
|
+
@h: @colors[@@color][hover];
|
1455
|
+
@f: @colors[@@color][focus];
|
1456
|
+
@d: @colors[@@color][down];
|
1457
|
+
@a: @colors[@@color][active];
|
1458
|
+
@t: @colors[@@color][text];
|
1459
|
+
@s: @colors[@@color][shadow];
|
1460
|
+
@l: @colors[@@color][light];
|
1461
|
+
@lh: @colors[@@color][lightHover];
|
1462
|
+
@lf: @colors[@@color][lightFocus];
|
1463
|
+
@ld: @colors[@@color][lightDown];
|
1464
|
+
@la: @colors[@@color][lightActive];
|
1465
|
+
@lt: @colors[@@color][lightText];
|
1466
|
+
@ls: @colors[@@color][lightShadow];
|
1467
|
+
@ty: @colors[@@color][tertiary];
|
1468
|
+
@tyh: @colors[@@color][tertiaryHover];
|
1469
|
+
@tyf: @colors[@@color][tertiaryFocus];
|
1470
|
+
@tya: @colors[@@color][tertiaryActive];
|
1471
|
+
@isDark: @colors[@@color][isDark];
|
1472
|
+
@isVeryDark: @colors[@@color][isVeryDark];
|
1473
|
+
|
1474
|
+
.ui.@{color}.buttons .button,
|
1475
|
+
.ui.@{color}.button {
|
1476
|
+
background-color: @c;
|
1477
|
+
color: @t;
|
1478
|
+
text-shadow: @s;
|
1479
|
+
background-image: @coloredBackgroundImage;
|
1507
1480
|
}
|
1508
|
-
.ui
|
1509
|
-
|
1510
|
-
background: transparent ;
|
1511
|
-
box-shadow: 0 0 0 @basicColoredBorderSize @h inset ;
|
1512
|
-
color: @h ;
|
1481
|
+
.ui.@{color}.button {
|
1482
|
+
box-shadow: @coloredBoxShadow;
|
1513
1483
|
}
|
1514
|
-
.ui
|
1515
|
-
.ui
|
1516
|
-
background:
|
1517
|
-
|
1518
|
-
|
1484
|
+
.ui.@{color}.buttons .button:hover,
|
1485
|
+
.ui.@{color}.button:hover {
|
1486
|
+
background-color: @h;
|
1487
|
+
color: @t;
|
1488
|
+
text-shadow: @s;
|
1519
1489
|
}
|
1520
|
-
.ui
|
1521
|
-
.ui
|
1522
|
-
background:
|
1523
|
-
|
1524
|
-
|
1490
|
+
.ui.@{color}.buttons .button:focus,
|
1491
|
+
.ui.@{color}.button:focus {
|
1492
|
+
background-color: @f;
|
1493
|
+
color: @t;
|
1494
|
+
text-shadow: @s;
|
1525
1495
|
}
|
1526
|
-
.ui
|
1527
|
-
.ui
|
1528
|
-
|
1529
|
-
color: @
|
1496
|
+
.ui.@{color}.buttons .button:active,
|
1497
|
+
.ui.@{color}.button:active {
|
1498
|
+
background-color: @d;
|
1499
|
+
color: @t;
|
1500
|
+
text-shadow: @s;
|
1530
1501
|
}
|
1531
|
-
|
1532
|
-
.ui
|
1533
|
-
|
1502
|
+
.ui.@{color}.buttons .active.button,
|
1503
|
+
.ui.@{color}.buttons .active.button:active,
|
1504
|
+
.ui.@{color}.active.button,
|
1505
|
+
.ui.@{color}.button .active.button:active {
|
1506
|
+
background-color: @a;
|
1507
|
+
color: @t;
|
1508
|
+
text-shadow: @s;
|
1534
1509
|
}
|
1535
|
-
}
|
1536
|
-
& when (@variationButtonInverted) {
|
1537
|
-
/* Inverted */
|
1538
|
-
.ui.inverted.@{color}.buttons .button,
|
1539
|
-
.ui.inverted.@{color}.button {
|
1540
|
-
background-color: transparent;
|
1541
1510
|
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1511
|
+
& when (@variationButtonBasic) {
|
1512
|
+
/* Basic */
|
1513
|
+
.ui.basic.@{color}.buttons .button,
|
1514
|
+
.ui.basic.@{color}.button {
|
1515
|
+
background: transparent;
|
1516
|
+
box-shadow: 0 0 0 @basicBorderSize @c inset;
|
1517
|
+
color: @c;
|
1518
|
+
}
|
1519
|
+
.ui.basic.@{color}.buttons .button:hover,
|
1520
|
+
.ui.basic.@{color}.button:hover {
|
1521
|
+
background: transparent;
|
1522
|
+
box-shadow: 0 0 0 @basicColoredBorderSize @h inset;
|
1523
|
+
color: @h;
|
1524
|
+
}
|
1525
|
+
.ui.basic.@{color}.buttons .button:focus,
|
1526
|
+
.ui.basic.@{color}.button:focus {
|
1527
|
+
background: transparent;
|
1528
|
+
box-shadow: 0 0 0 @basicColoredBorderSize @f inset;
|
1529
|
+
color: @h;
|
1530
|
+
}
|
1531
|
+
.ui.basic.@{color}.buttons .active.button,
|
1532
|
+
.ui.basic.@{color}.active.button {
|
1533
|
+
background: transparent;
|
1534
|
+
box-shadow: 0 0 0 @basicColoredBorderSize @a inset;
|
1535
|
+
color: @d;
|
1536
|
+
}
|
1537
|
+
.ui.basic.@{color}.buttons .button:active,
|
1538
|
+
.ui.basic.@{color}.button:active {
|
1539
|
+
box-shadow: 0 0 0 @basicColoredBorderSize @d inset;
|
1540
|
+
color: @d;
|
1545
1541
|
}
|
1546
1542
|
|
1547
|
-
|
1548
|
-
|
1549
|
-
color: @l;
|
1543
|
+
.ui.buttons:not(.vertical) > .basic.@{color}.button:not(:first-child) {
|
1544
|
+
margin-left: -@basicColoredBorderSize;
|
1550
1545
|
}
|
1551
1546
|
}
|
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
|
-
}
|
1547
|
+
& when (@variationButtonInverted) {
|
1548
|
+
/* Inverted */
|
1549
|
+
.ui.inverted.@{color}.buttons .button,
|
1550
|
+
.ui.inverted.@{color}.button {
|
1551
|
+
background-color: transparent;
|
1579
1552
|
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
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 ;
|
1553
|
+
& when (@isDark) {
|
1554
|
+
box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset;
|
1555
|
+
color: @invertedTextColor;
|
1556
|
+
}
|
1592
1557
|
|
1593
|
-
|
1594
|
-
|
1558
|
+
& when not (@isDark) {
|
1559
|
+
box-shadow: 0 0 0 @invertedBorderSize @l inset;
|
1560
|
+
color: @l;
|
1561
|
+
}
|
1595
1562
|
}
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1563
|
+
.ui.inverted.@{color}.buttons .button:hover,
|
1564
|
+
.ui.inverted.@{color}.button:hover,
|
1565
|
+
.ui.inverted.@{color}.buttons .button:focus,
|
1566
|
+
.ui.inverted.@{color}.button:focus,
|
1567
|
+
.ui.inverted.@{color}.buttons .button.active,
|
1568
|
+
.ui.inverted.@{color}.button.active,
|
1569
|
+
.ui.inverted.@{color}.buttons .button:active,
|
1570
|
+
.ui.inverted.@{color}.button:active {
|
1571
|
+
box-shadow: none;
|
1572
|
+
color: @lt;
|
1573
|
+
}
|
1574
|
+
.ui.inverted.@{color}.buttons .button:hover,
|
1575
|
+
.ui.inverted.@{color}.button:hover {
|
1576
|
+
background-color: @lh;
|
1577
|
+
}
|
1578
|
+
.ui.inverted.@{color}.buttons .button:focus,
|
1579
|
+
.ui.inverted.@{color}.button:focus {
|
1580
|
+
background-color: @lf;
|
1581
|
+
}
|
1582
|
+
.ui.inverted.@{color}.buttons .active.button,
|
1583
|
+
.ui.inverted.@{color}.active.button {
|
1584
|
+
background-color: @la;
|
1585
|
+
}
|
1586
|
+
.ui.inverted.@{color}.buttons .button:active,
|
1587
|
+
.ui.inverted.@{color}.button:active {
|
1588
|
+
background-color: @ld;
|
1599
1589
|
}
|
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
1590
|
|
1612
|
-
|
1613
|
-
|
1591
|
+
/* Inverted Basic */
|
1592
|
+
.ui.inverted.@{color}.basic.buttons .button,
|
1593
|
+
.ui.inverted.@{color}.buttons .basic.button,
|
1594
|
+
.ui.inverted.@{color}.basic.button {
|
1595
|
+
background-color: transparent;
|
1596
|
+
box-shadow: @basicInvertedBoxShadow;
|
1597
|
+
color: @white;
|
1614
1598
|
}
|
1599
|
+
.ui.inverted.@{color}.basic.buttons .button:hover,
|
1600
|
+
.ui.inverted.@{color}.buttons .basic.button:hover,
|
1601
|
+
.ui.inverted.@{color}.basic.button:hover {
|
1602
|
+
box-shadow: 0 0 0 @invertedBorderSize @lh inset;
|
1603
|
+
|
1604
|
+
& when (@isDark) {
|
1605
|
+
color: @white;
|
1606
|
+
}
|
1615
1607
|
|
1616
|
-
|
1617
|
-
|
1608
|
+
& when not (@isDark) {
|
1609
|
+
color: @l;
|
1610
|
+
}
|
1618
1611
|
}
|
1619
|
-
|
1620
|
-
|
1621
|
-
.ui.inverted.@{color}.basic.
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1612
|
+
.ui.inverted.@{color}.basic.buttons .button:focus,
|
1613
|
+
.ui.inverted.@{color}.basic.buttons .button:focus,
|
1614
|
+
.ui.inverted.@{color}.basic.button:focus {
|
1615
|
+
box-shadow: 0 0 0 @invertedBorderSize @lf inset;
|
1616
|
+
color: @l;
|
1617
|
+
}
|
1618
|
+
.ui.inverted.@{color}.basic.buttons .active.button,
|
1619
|
+
.ui.inverted.@{color}.buttons .basic.active.button,
|
1620
|
+
.ui.inverted.@{color}.basic.active.button {
|
1621
|
+
box-shadow: 0 0 0 @invertedBorderSize @la inset;
|
1625
1622
|
|
1626
1623
|
& when (@isDark) {
|
1627
1624
|
color: @white;
|
@@ -1631,104 +1628,119 @@ each(@colors, {
|
|
1631
1628
|
color: @l;
|
1632
1629
|
}
|
1633
1630
|
}
|
1631
|
+
& when (@variationButtonBasic) {
|
1632
|
+
.ui.inverted.@{color}.basic.buttons .button:active,
|
1633
|
+
.ui.inverted.@{color}.buttons .basic.button:active,
|
1634
|
+
.ui.inverted.@{color}.basic.button:active {
|
1635
|
+
box-shadow: 0 0 0 @invertedBorderSize @ld inset;
|
1636
|
+
|
1637
|
+
& when (@isDark) {
|
1638
|
+
color: @white;
|
1639
|
+
}
|
1640
|
+
|
1641
|
+
& when not (@isDark) {
|
1642
|
+
color: @l;
|
1643
|
+
}
|
1644
|
+
}
|
1645
|
+
}
|
1634
1646
|
}
|
1635
|
-
}
|
1636
1647
|
|
1637
|
-
|
1638
|
-
|
1648
|
+
& when (@variationButtonTertiary) {
|
1649
|
+
/* Tertiary */
|
1639
1650
|
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1651
|
+
.ui.tertiary.@{color}.buttons .button,
|
1652
|
+
.ui.tertiary.@{color}.buttons .tertiary.button,
|
1653
|
+
.ui.tertiary.@{color}.button {
|
1654
|
+
background: transparent;
|
1644
1655
|
|
1645
1656
|
|
1646
1657
|
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1658
|
+
& when (@tertiaryWithUnderline = true) {
|
1659
|
+
box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
|
1660
|
+
}
|
1650
1661
|
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1662
|
+
& when (@tertiaryWithOverline = true) {
|
1663
|
+
box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
|
1664
|
+
}
|
1654
1665
|
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1666
|
+
& when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
|
1667
|
+
box-shadow: none;
|
1668
|
+
}
|
1658
1669
|
|
1659
|
-
|
1660
|
-
|
1670
|
+
color: @c;
|
1671
|
+
}
|
1661
1672
|
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1673
|
+
.ui.tertiary.@{color}.buttons .button:hover,
|
1674
|
+
.ui.tertiary.@{color}.buttons button:hover,
|
1675
|
+
.ui.tertiary.@{color}.button:hover {
|
1665
1676
|
|
1666
1677
|
|
1667
1678
|
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1679
|
+
& when (@tertiaryHoverWithUnderline = true) {
|
1680
|
+
box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
|
1681
|
+
}
|
1671
1682
|
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1683
|
+
& when (@tertiaryHoverWithOverline = true) {
|
1684
|
+
box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
|
1685
|
+
}
|
1675
1686
|
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1687
|
+
& when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
|
1688
|
+
box-shadow: none;
|
1689
|
+
}
|
1679
1690
|
|
1680
1691
|
|
1681
1692
|
color: @tyh;
|
1682
|
-
|
1693
|
+
}
|
1683
1694
|
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1695
|
+
.ui.tertiary.@{color}.buttons .button:focus,
|
1696
|
+
.ui.tertiary.@{color}.buttons .tertiary.button:focus,
|
1697
|
+
.ui.tertiary.@{color}.button:focus {
|
1687
1698
|
|
1688
1699
|
|
1689
1700
|
|
1690
1701
|
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1702
|
+
& when (@tertiaryFocusWithUnderline = true) {
|
1703
|
+
box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
|
1704
|
+
}
|
1694
1705
|
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1706
|
+
& when (@tertiaryFocusWithOverline = true) {
|
1707
|
+
box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
|
1708
|
+
}
|
1698
1709
|
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1710
|
+
& when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
|
1711
|
+
box-shadow: none;
|
1712
|
+
}
|
1702
1713
|
|
1703
1714
|
|
1704
1715
|
color: @tyf;
|
1705
|
-
|
1716
|
+
}
|
1706
1717
|
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1718
|
+
.ui.tertiary.@{color}.buttons .active.button,
|
1719
|
+
.ui.tertiary.@{color}.buttons .tertiary.active.button,
|
1720
|
+
.ui.tertiary.@{color}.active.button,
|
1721
|
+
.ui.tertiary.@{color}.buttons .button:active,
|
1722
|
+
.ui.tertiary.@{color}.buttons .tertiary.button:active,
|
1723
|
+
.ui.tertiary.@{color}.button:active {
|
1713
1724
|
|
1714
1725
|
|
1715
1726
|
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1727
|
+
& when (@tertiaryActiveWithUnderline = true) {
|
1728
|
+
box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
|
1729
|
+
}
|
1719
1730
|
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1731
|
+
& when (@tertiaryActiveWithOverline = true) {
|
1732
|
+
box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
|
1733
|
+
}
|
1723
1734
|
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1735
|
+
& when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
|
1736
|
+
box-shadow: none;
|
1737
|
+
}
|
1727
1738
|
|
1728
|
-
|
1739
|
+
color: @a;
|
1740
|
+
}
|
1729
1741
|
}
|
1730
|
-
}
|
1731
|
-
}
|
1742
|
+
})
|
1743
|
+
}
|
1732
1744
|
|
1733
1745
|
.addConsequence(@consequence) {
|
1734
1746
|
|
@@ -1874,35 +1886,36 @@ each(@colors, {
|
|
1874
1886
|
border-top-right-radius: @borderRadius;
|
1875
1887
|
border-bottom-right-radius: @borderRadius;
|
1876
1888
|
}
|
1889
|
+
& when (@variationButtonVertical) {
|
1890
|
+
/* Vertical Style */
|
1891
|
+
.ui.vertical.buttons {
|
1892
|
+
display: inline-flex;
|
1893
|
+
flex-direction: column;
|
1894
|
+
}
|
1877
1895
|
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
float: none;
|
1887
|
-
width: 100%;
|
1888
|
-
margin: @verticalGroupOffset;
|
1889
|
-
box-shadow: @verticalBoxShadow;
|
1890
|
-
border-radius: 0;
|
1891
|
-
}
|
1896
|
+
.ui.vertical.buttons .button {
|
1897
|
+
display: block;
|
1898
|
+
float: none;
|
1899
|
+
width: 100%;
|
1900
|
+
margin: @verticalGroupOffset;
|
1901
|
+
box-shadow: @verticalBoxShadow;
|
1902
|
+
border-radius: 0;
|
1903
|
+
}
|
1892
1904
|
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1905
|
+
.ui.vertical.buttons .button:first-child {
|
1906
|
+
border-top-left-radius: @borderRadius;
|
1907
|
+
border-top-right-radius: @borderRadius;
|
1908
|
+
}
|
1897
1909
|
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1910
|
+
.ui.vertical.buttons .button:last-child {
|
1911
|
+
margin-bottom: 0;
|
1912
|
+
border-bottom-left-radius: @borderRadius;
|
1913
|
+
border-bottom-right-radius: @borderRadius;
|
1914
|
+
}
|
1903
1915
|
|
1904
|
-
|
1905
|
-
|
1916
|
+
.ui.vertical.buttons .button:only-child {
|
1917
|
+
border-radius: @borderRadius;
|
1918
|
+
}
|
1906
1919
|
}
|
1907
1920
|
}
|
1908
1921
|
.loadUIOverrides();
|