less-rails-semantic_ui 1.7.3.0 → 1.8.0.0

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/semantic_ui/definitions/behaviors/api.js +22 -11
  3. data/assets/javascripts/semantic_ui/definitions/behaviors/form.js +259 -43
  4. data/assets/javascripts/semantic_ui/definitions/modules/checkbox.js +1 -1
  5. data/assets/javascripts/semantic_ui/definitions/modules/dropdown.js +204 -105
  6. data/assets/javascripts/semantic_ui/definitions/modules/popup.js +4 -3
  7. data/assets/javascripts/semantic_ui/definitions/modules/search.js +310 -152
  8. data/assets/javascripts/semantic_ui/definitions/modules/sidebar.js +18 -7
  9. data/assets/javascripts/semantic_ui/definitions/modules/sticky.js +1 -1
  10. data/assets/javascripts/semantic_ui/definitions/modules/transition.js +35 -23
  11. data/assets/stylesheets/semantic_ui/definitions/collections/form.less +2 -2
  12. data/assets/stylesheets/semantic_ui/definitions/collections/grid.less +30 -0
  13. data/assets/stylesheets/semantic_ui/definitions/collections/menu.less +13 -11
  14. data/assets/stylesheets/semantic_ui/definitions/elements/button.less +16 -2
  15. data/assets/stylesheets/semantic_ui/definitions/elements/header.less +70 -31
  16. data/assets/stylesheets/semantic_ui/definitions/elements/label.less +3 -3
  17. data/assets/stylesheets/semantic_ui/definitions/elements/list.less +8 -18
  18. data/assets/stylesheets/semantic_ui/definitions/modules/checkbox.less +54 -27
  19. data/assets/stylesheets/semantic_ui/definitions/modules/modal.less +2 -1
  20. data/assets/stylesheets/semantic_ui/definitions/modules/popup.less +5 -0
  21. data/assets/stylesheets/semantic_ui/definitions/modules/sidebar.less +1 -0
  22. data/assets/stylesheets/semantic_ui/definitions/modules/transition.less +0 -5
  23. data/assets/stylesheets/semantic_ui/themes/default/collections/menu.variables +7 -5
  24. data/assets/stylesheets/semantic_ui/themes/default/collections/table.variables +1 -1
  25. data/assets/stylesheets/semantic_ui/themes/default/elements/button.variables +2 -2
  26. data/assets/stylesheets/semantic_ui/themes/default/elements/header.variables +20 -9
  27. data/assets/stylesheets/semantic_ui/themes/default/elements/label.variables +5 -3
  28. data/assets/stylesheets/semantic_ui/themes/default/globals/site.variables +1 -0
  29. data/assets/stylesheets/semantic_ui/themes/default/modules/accordion.variables +5 -6
  30. data/assets/stylesheets/semantic_ui/themes/default/modules/modal.variables +3 -2
  31. data/assets/stylesheets/semantic_ui/themes/default/modules/popup.variables +3 -3
  32. data/assets/stylesheets/semantic_ui/themes/default/modules/transition.overrides +690 -222
  33. data/assets/stylesheets/semantic_ui/themes/default/modules/transition.variables +1 -1
  34. data/lib/less/rails/semantic_ui/version.rb +1 -1
  35. metadata +3 -3
@@ -325,7 +325,7 @@ a.ui.label {
325
325
  position: relative;
326
326
  margin: 0em;
327
327
 
328
- left: -@ribbonDistance;
328
+ left: @ribbonOffset;
329
329
  padding-left: @ribbonDistance;
330
330
  border-radius: 0em @borderRadius @borderRadius 0em;
331
331
  border-color: @ribbonShadowColor;
@@ -351,7 +351,7 @@ a.ui.label {
351
351
  .ui[class*="right ribbon"].label {
352
352
  text-align: left;
353
353
  transform: translateX(-100%);
354
- left: ~"calc(100% + "@ribbonDistance~")";
354
+ left: @rightRibbonOffset;
355
355
  border-radius: @borderRadius 0em 0em @borderRadius;
356
356
  padding-left: @horizontalPadding;
357
357
  padding-right: @ribbonDistance;
@@ -367,7 +367,7 @@ a.ui.label {
367
367
  }
368
368
 
369
369
  /*-------------------
370
- Attached
370
+ Attached
371
371
  --------------------*/
372
372
 
373
373
  .ui.top.attached.label,
@@ -795,7 +795,6 @@ ol.ui.horizontal.list li:before,
795
795
  Relaxed
796
796
  --------------------*/
797
797
 
798
- .ui.relaxed.list:not(.horizontal) .list > .item,
799
798
  .ui.relaxed.list:not(.horizontal) > .item {
800
799
  padding-top: @relaxedVerticalPadding;
801
800
  padding-bottom: @relaxedVerticalPadding;
@@ -810,7 +809,6 @@ ol.ui.horizontal.list li:before,
810
809
  }
811
810
 
812
811
  /* Very Relaxed */
813
- .ui[class*="very relaxed"].list:not(.horizontal) .list > .item,
814
812
  .ui[class*="very relaxed"].list:not(.horizontal) > .item {
815
813
  padding-top: @veryRelaxedVerticalPadding;
816
814
  padding-bottom: @veryRelaxedVerticalPadding;
@@ -829,36 +827,28 @@ ol.ui.horizontal.list li:before,
829
827
  Sizes
830
828
  --------------------*/
831
829
 
832
- .ui.mini.list .list > .item,
833
- .ui.mini.list > .item {
830
+ .ui.mini.list {
834
831
  font-size: @relativeMini;
835
832
  }
836
- .ui.tiny.list .list > .item,
837
- .ui.tiny.list > .item {
833
+ .ui.tiny.list {
838
834
  font-size: @relativeTiny;
839
835
  }
840
- .ui.small.list .list > .item,
841
- .ui.small.list > .item {
836
+ .ui.small.list {
842
837
  font-size: @relativeSmall;
843
838
  }
844
- .ui.list .list > .item,
845
- .ui.list > .item {
839
+ .ui.list {
846
840
  font-size: @relativeMedium;
847
841
  }
848
- .ui.large.list .list > .item,
849
- .ui.large.list > .item {
842
+ .ui.large.list {
850
843
  font-size: @relativeLarge;
851
844
  }
852
- .ui.big.list .list > .item,
853
- .ui.big.list > .item {
845
+ .ui.big.list {
854
846
  font-size: @relativeBig;
855
847
  }
856
- .ui.huge.list .list > .item,
857
- .ui.huge.list > .item {
848
+ .ui.huge.list {
858
849
  font-size: @relativeHuge;
859
850
  }
860
- .ui.massive.list .list > .item,
861
- .ui.massive.list > .item {
851
+ .ui.massive.list {
862
852
  font-size: @relativeMassive;
863
853
  }
864
854
 
@@ -48,7 +48,8 @@
48
48
  outline: none;
49
49
  vertical-align: middle;
50
50
  }
51
- .ui.checkbox input {
51
+ .ui.checkbox input[type="checkbox"],
52
+ .ui.checkbox input[type="radio"] {
52
53
  position: absolute;
53
54
  top: 0px;
54
55
  left: 0px;
@@ -158,7 +159,8 @@
158
159
  background: @checkboxSelectedBackground;
159
160
  border: 1px solid @checkboxSelectedBorder;
160
161
  }
161
- .ui.checkbox input:active ~ label {
162
+ .ui.checkbox input[type="checkbox"]:active ~ label,
163
+ .ui.checkbox input[type="radio"]:active ~ label {
162
164
  color: @labelSelectedColor;
163
165
  }
164
166
 
@@ -166,12 +168,15 @@
166
168
  Focus
167
169
  ---------------*/
168
170
 
169
- .ui.checkbox input:focus ~ .box:before,
170
- .ui.checkbox input:focus ~ label:before {
171
+ .ui.checkbox input[type="checkbox"]:focus ~ .box:before,
172
+ .ui.checkbox input[type="checkbox"]:focus ~ label:before,
173
+ .ui.checkbox input[type="radio"]:focus ~ .box:before,
174
+ .ui.checkbox input[type="radio"]:focus ~ label:before {
171
175
  background: @checkboxSelectedBackground;
172
176
  border: 1px solid @checkboxSelectedBorder;
173
177
  }
174
- .ui.checkbox input:focus ~ label {
178
+ .ui.checkbox input[type="checkbox"]:focus ~ label,
179
+ .ui.checkbox input[type="radio"]:focus ~ label {
175
180
  color: @labelSelectedColor;
176
181
  }
177
182
 
@@ -180,8 +185,10 @@
180
185
  Active
181
186
  ---------------*/
182
187
 
183
- .ui.checkbox input:checked ~ .box:after,
184
- .ui.checkbox input:checked ~ label:after {
188
+ .ui.checkbox input[type="checkbox"]:checked ~ .box:after,
189
+ .ui.checkbox input[type="checkbox"]:checked ~ label:after,
190
+ .ui.checkbox input[type="radio"]:checked ~ .box:after,
191
+ .ui.checkbox input[type="radio"]:checked ~ label:after {
185
192
  opacity: 1;
186
193
  }
187
194
 
@@ -201,8 +208,10 @@
201
208
 
202
209
  .ui.disabled.checkbox .box:after,
203
210
  .ui.disabled.checkbox label,
204
- .ui.checkbox input[disabled] ~ .box:after,
205
- .ui.checkbox input[disabled] ~ label {
211
+ .ui.checkbox input[type="checkbox"][disabled] ~ .box:after,
212
+ .ui.checkbox input[type="checkbox"][disabled] ~ label,
213
+ .ui.checkbox input[type="radio"][disabled] ~ .box:after,
214
+ .ui.checkbox input[type="radio"][disabled] ~ label {
206
215
  cursor: default;
207
216
  opacity: @disabledCheckboxOpacity;
208
217
  color: @disabledCheckboxLabelColor;
@@ -319,8 +328,10 @@
319
328
  }
320
329
 
321
330
  /* Focus */
322
- .ui.slider.checkbox input:focus ~ .box:before,
323
- .ui.slider.checkbox input:focus ~ label:before {
331
+ .ui.slider.checkbox input[type="checkbox"]:focus ~ .box:before,
332
+ .ui.slider.checkbox input[type="checkbox"]:focus ~ label:before,
333
+ .ui.slider.checkbox input[type="radio"]:focus ~ .box:before,
334
+ .ui.slider.checkbox input[type="radio"]:focus ~ label:before {
324
335
  background-color: @toggleFocusColor;
325
336
  border: none;
326
337
  }
@@ -336,16 +347,22 @@
336
347
  }
337
348
 
338
349
  /* Active */
339
- .ui.slider.checkbox input:checked ~ .box,
340
- .ui.slider.checkbox input:checked ~ label {
350
+ .ui.slider.checkbox input[type="checkbox"]:checked ~ .box,
351
+ .ui.slider.checkbox input[type="checkbox"]:checked ~ label,
352
+ .ui.slider.checkbox input[type="radio"]:checked ~ .box,
353
+ .ui.slider.checkbox input[type="radio"]:checked ~ label {
341
354
  color: @sliderOnLabelColor;
342
355
  }
343
- .ui.slider.checkbox input:checked ~ .box:before,
344
- .ui.slider.checkbox input:checked ~ label:before {
356
+ .ui.slider.checkbox input[type="checkbox"]:checked ~ .box:before,
357
+ .ui.slider.checkbox input[type="checkbox"]:checked ~ label:before,
358
+ .ui.slider.checkbox input[type="radio"]:checked ~ .box:before,
359
+ .ui.slider.checkbox input[type="radio"]:checked ~ label:before {
345
360
  background-color: @sliderOnLineColor;
346
361
  }
347
- .ui.slider.checkbox input:checked ~ .box:after,
348
- .ui.slider.checkbox input:checked ~ label:after {
362
+ .ui.slider.checkbox input[type="checkbox"]:checked ~ .box:after,
363
+ .ui.slider.checkbox input[type="checkbox"]:checked ~ label:after,
364
+ .ui.slider.checkbox input[type="radio"]:checked ~ .box:after,
365
+ .ui.slider.checkbox input[type="radio"]:checked ~ label:after {
349
366
  left: @sliderTravelDistance;
350
367
  }
351
368
 
@@ -411,14 +428,18 @@
411
428
  ;
412
429
  }
413
430
 
414
- .ui.toggle.checkbox input ~ .box:after,
415
- .ui.toggle.checkbox input ~ label:after {
431
+ .ui.toggle.checkbox input[type="checkbox"] ~ .box:after,
432
+ .ui.toggle.checkbox input[type="checkbox"] ~ label:after,
433
+ .ui.toggle.checkbox input[type="radio"] ~ .box:after,
434
+ .ui.toggle.checkbox input[type="radio"] ~ label:after {
416
435
  left: @toggleOffOffset;
417
436
  }
418
437
 
419
438
  /* Focus */
420
- .ui.toggle.checkbox input:focus ~ .box:before,
421
- .ui.toggle.checkbox input:focus ~ label:before {
439
+ .ui.toggle.checkbox input[type="checkbox"]:focus ~ .box:before,
440
+ .ui.toggle.checkbox input[type="checkbox"]:focus ~ label:before,
441
+ .ui.toggle.checkbox input[type="radio"]:focus ~ .box:before,
442
+ .ui.toggle.checkbox input[type="radio"]:focus ~ label:before {
422
443
  background-color: @toggleFocusColor;
423
444
  border: none;
424
445
  }
@@ -431,16 +452,22 @@
431
452
  }
432
453
 
433
454
  /* Active */
434
- .ui.toggle.checkbox input:checked ~ .box,
435
- .ui.toggle.checkbox input:checked ~ label {
455
+ .ui.toggle.checkbox input[type="checkbox"]:checked ~ .box,
456
+ .ui.toggle.checkbox input[type="checkbox"]:checked ~ label,
457
+ .ui.toggle.checkbox input[type="radio"]:checked ~ .box,
458
+ .ui.toggle.checkbox input[type="radio"]:checked ~ label {
436
459
  color: @toggleOnLabelColor;
437
460
  }
438
- .ui.toggle.checkbox input:checked ~ .box:before,
439
- .ui.toggle.checkbox input:checked ~ label:before {
461
+ .ui.toggle.checkbox input[type="checkbox"]:checked ~ .box:before,
462
+ .ui.toggle.checkbox input[type="checkbox"]:checked ~ label:before,
463
+ .ui.toggle.checkbox input[type="radio"]:checked ~ .box:before,
464
+ .ui.toggle.checkbox input[type="radio"]:checked ~ label:before {
440
465
  background-color: @toggleOnLaneColor;
441
466
  }
442
- .ui.toggle.checkbox input:checked ~ .box:after,
443
- .ui.toggle.checkbox input:checked ~ label:after {
467
+ .ui.toggle.checkbox input[type="checkbox"]:checked ~ .box:after,
468
+ .ui.toggle.checkbox input[type="checkbox"]:checked ~ label:after,
469
+ .ui.toggle.checkbox input[type="radio"]:checked ~ .box:after,
470
+ .ui.toggle.checkbox input[type="radio"]:checked ~ label:after {
444
471
  left: @toggleOnOffset;
445
472
  }
446
473
 
@@ -31,7 +31,7 @@
31
31
  .ui.modal {
32
32
  display: none;
33
33
  position: fixed;
34
- z-index: 1001;
34
+ z-index: @zIndex;
35
35
 
36
36
  top: 50%;
37
37
  left: 50%;
@@ -271,6 +271,7 @@
271
271
  .ui.basic.modal {
272
272
  background-color: transparent;
273
273
  border: none;
274
+ border-radius: 0em;
274
275
  box-shadow: 0px 0px 0px 0px;
275
276
  color: @basicModalColor;
276
277
  }
@@ -24,6 +24,7 @@
24
24
 
25
25
  @import 'semantic_ui/theme.config';
26
26
 
27
+
27
28
  /*******************************
28
29
  Popup
29
30
  *******************************/
@@ -33,6 +34,10 @@
33
34
  position: absolute;
34
35
  top: 0px;
35
36
  right: 0px;
37
+
38
+ /* Fixes content being squished when inline (moz only) */
39
+ min-width: -moz-max-content;
40
+
36
41
  z-index: @zIndex;
37
42
 
38
43
  border: @border;
@@ -131,6 +131,7 @@ body.pushable {
131
131
  .pushable > .pusher {
132
132
  position: relative;
133
133
  backface-visibility: hidden;
134
+ overflow: hidden;
134
135
  min-height: 100%;
135
136
  transition: transform @duration @easing;
136
137
  z-index: @middleLayer;
@@ -29,11 +29,6 @@
29
29
  Transitions
30
30
  *******************************/
31
31
 
32
- /*
33
- Some transitions adapted from Animate CSS
34
- https://github.com/daneden/animate.css
35
- */
36
-
37
32
  .transition {
38
33
  animation-iteration-count: 1;
39
34
  animation-duration: @transitionDefaultDuration;
@@ -132,14 +132,16 @@
132
132
 
133
133
  /* Pointing Arrow */
134
134
  @arrowSize: 0.6em;
135
- @arrowOffset: -(@arrowSize / 2);
136
- @arrowBorder: 1px solid rgba(0, 0, 0, 0.1);
135
+ @arrowBorderSize: 1px;
136
+ @arrowBorder: @arrowBorderSize solid @solidBorderColor;
137
+ @arrowTransition: background @transitionDuration @transitionEasing;
138
+ @arrowZIndex: 2;
137
139
 
138
140
  @arrowHoverColor: #FAFAFA;
139
- @arrowActiveColor: #F6F6F6;
141
+ @arrowActiveColor: #F7F7F7;
140
142
 
141
- @arrowVerticalHoverColor: #FAFAFA;
142
- @arrowVerticalActiveColor: #FCFCFC;
143
+ @arrowVerticalHoverColor: @arrowHoverColor;
144
+ @arrowVerticalActiveColor: @arrowActiveColor;
143
145
 
144
146
  /*--------------
145
147
  States
@@ -146,7 +146,7 @@
146
146
  /* Attached */
147
147
  @attachedHorizontalOffset: -1px;
148
148
  @attachedBoxShadow: none;
149
- @attachedTableWidth: ~"calc(100% + "-@attachedHorizontalOffset * 2~")";
149
+ @attachedTableWidth: ~"calc(100% + "@attachedHorizontalOffset * -2~")";
150
150
 
151
151
  /* Striped */
152
152
  @stripedBackground: rgba(0, 0, 50, 0.03);
@@ -223,8 +223,8 @@
223
223
 
224
224
 
225
225
  /* Basic Group */
226
- @basicGroupBorder: 1px solid @borderColor;
227
- @basicGroupBoxShadow: 0px 0px 0px 1px @borderColor;
226
+ @basicGroupBorder: @basicBorderSize solid @borderColor;
227
+ @basicGroupBoxShadow: 0px 0px 0px @basicBorderSize @borderColor;
228
228
 
229
229
  /*-------------------
230
230
  Variations
@@ -21,18 +21,9 @@
21
21
  @horizontalPadding: 0em;
22
22
  @verticalPadding: 0em;
23
23
 
24
- /* Sizing */
25
- @tiny: 1em;
26
- @small: 1.071em;
27
- @medium: 1.285em;
28
- @large: 1.714em;
29
- @huge: 2em;
30
-
31
24
  /* Sub Header */
32
- @subHeaderFontSize: 1.0714rem;
33
25
  @subHeaderLineHeight: 1.2em;
34
26
  @subHeaderColor: rgba(0, 0, 0, 0.5);
35
-
36
27
  /* Icon */
37
28
  @iconOpacity: 1;
38
29
  @iconSize: 1.5em;
@@ -55,6 +46,26 @@
55
46
  Variations
56
47
  --------------------*/
57
48
 
49
+ /* Sizing */
50
+ @huge : unit(@h1, em);
51
+ @large : unit(@h2, em);
52
+ @medium : unit(@h3, em);
53
+ @small : unit(@h4, em);
54
+ @tiny : unit(@h5, em);
55
+
56
+ /* Sub Header */
57
+ @h1SubHeaderFontSize: 1.4285rem;
58
+ @h2SubHeaderFontSize: 1.1428rem;
59
+ @h3SubHeaderFontSize: 1.1428rem;
60
+ @h4SubHeaderFontSize: 1rem;
61
+ @h5SubHeaderFontSize: 0.9285rem;
62
+
63
+ @hugeSubHeaderFontSize : @h1SubHeaderFontSize;
64
+ @largeSubHeaderFontSize : @h2SubHeaderFontSize;
65
+ @subHeaderFontSize : @h3SubHeaderFontSize;
66
+ @smallSubHeaderFontSize : @h4SubHeaderFontSize;
67
+ @tinySubHeaderFontSize : @h5SubHeaderFontSize;
68
+
58
69
  /* Icon Header */
59
70
  @iconHeaderSize: 3em;
60
71
  @iconHeaderOpacity: 1;
@@ -90,9 +90,11 @@
90
90
  @tagTransition: background @labelTransitionDuration @labelTransitionEasing;
91
91
 
92
92
  /* Ribbon */
93
- @ribbonDistance: 2rem;
94
- @ribbonMargin: 1em;
95
93
  @ribbonTriangleSize: 1.2em;
94
+ @ribbonMargin: 1rem;
95
+ @ribbonOffset: ~"calc("-@ribbonMargin~" - "@ribbonTriangleSize~")";
96
+ @ribbonDistance: ~"calc("@ribbonMargin~" + "@ribbonTriangleSize~")";
97
+ @rightRibbonOffset: ~"calc(100% + "@ribbonMargin~" + "@ribbonTriangleSize~")";
96
98
  @ribbonShadowColor: rgba(0, 0, 0, 0.15);
97
99
 
98
100
  @blackRibbonShadow: darken(@black, 10);
@@ -115,7 +117,7 @@
115
117
  @cornerTransition: color @labelTransitionDuration @labelTransitionEasing;
116
118
  @cornerTriangleSize: 3.25em;
117
119
  @cornerTriangleTransition: border-color @labelTransitionDuration @labelTransitionEasing;
118
- @cornerTriangleZIndex: 10;
120
+ @cornerTriangleZIndex: 1;
119
121
 
120
122
  @cornerIconSize: 1em;
121
123
  @cornerIconTopOffset: 0.4em;
@@ -351,6 +351,7 @@
351
351
 
352
352
  @borderColor : rgba(39, 41, 43, 0.15);
353
353
  @selectedBorderColor : rgba(39, 41, 43, 0.3);
354
+ @disabledBorderColor : rgba(39, 41, 43, 0.5);
354
355
 
355
356
  @solidBorderColor : #D4D4D5;
356
357
  @solidSelectedBorderColor : #BEBEBF;
@@ -12,7 +12,7 @@
12
12
  @titleColor: @textColor;
13
13
 
14
14
  /* Icon */
15
- @iconOpacity: 0.75;
15
+ @iconOpacity: 1;
16
16
  @iconFontSize: 1em;
17
17
  @iconFloat: none;
18
18
  @iconWidth: 1.25em;
@@ -21,12 +21,11 @@
21
21
  @iconMargin: 0em 0.25rem 0em 0rem;
22
22
  @iconPadding: 0em;
23
23
  @iconTransition:
24
- transform 0.2s ease,
25
- opacity 0.2s ease
24
+ transform @transitionDuration @transitionEasing,
25
+ opacity @transitionDuration @transitionEasing
26
26
  ;
27
27
  @iconVerticalAlign: baseline;
28
-
29
- @iconTransform: rotate(0deg);
28
+ @iconTransform: none;
30
29
 
31
30
  /* Child Accordion */
32
31
  @childAccordionMargin: 1em 0em 0em;
@@ -78,7 +77,7 @@
78
77
  @styledTitlePadding: 0.75em 1em;
79
78
  @styledTitleFontWeight: bold;
80
79
  @styledTitleColor: @unselectedTextColor;
81
- @styledTitleTransition: background-color 0.2s ease;
80
+ @styledTitleTransition: background-color @transitionDuration @transitionEasing;
82
81
  @styledTitleBorder: 1px solid @borderColor;
83
82
  @styledTitleTransition:
84
83
  background @transitionDuration @transitionEasing,