less-rails-semantic_ui 1.0.1.0 → 1.1.2.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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/Appraisals +4 -0
  3. data/README.md +1 -1
  4. data/assets/javascripts/semantic_ui/definitions/behaviors/form.js +1 -1
  5. data/assets/javascripts/semantic_ui/definitions/behaviors/visit.js +0 -3
  6. data/assets/javascripts/semantic_ui/definitions/modules/dropdown.js +16 -16
  7. data/assets/javascripts/semantic_ui/definitions/modules/nag.js +0 -3
  8. data/assets/javascripts/semantic_ui/definitions/modules/popup.js +147 -84
  9. data/assets/javascripts/semantic_ui/definitions/modules/progress.js +2 -2
  10. data/assets/javascripts/semantic_ui/definitions/modules/sidebar.js +1 -1
  11. data/assets/javascripts/semantic_ui/definitions/modules/transition.js +95 -36
  12. data/assets/stylesheets/semantic_ui/definitions/collections/grid.less +503 -0
  13. data/assets/stylesheets/semantic_ui/definitions/collections/menu.less +14 -11
  14. data/assets/stylesheets/semantic_ui/definitions/elements/input.less +34 -23
  15. data/assets/stylesheets/semantic_ui/definitions/elements/segment.less +0 -5
  16. data/assets/stylesheets/semantic_ui/definitions/globals/site.less +1 -0
  17. data/assets/stylesheets/semantic_ui/definitions/modules/dropdown.less +6 -0
  18. data/assets/stylesheets/semantic_ui/definitions/modules/progress.less +46 -15
  19. data/assets/stylesheets/semantic_ui/themes/default/collections/form.variables +5 -5
  20. data/assets/stylesheets/semantic_ui/themes/default/collections/menu.variables +1 -2
  21. data/assets/stylesheets/semantic_ui/themes/default/elements/button.variables +1 -1
  22. data/assets/stylesheets/semantic_ui/themes/default/elements/icon.overrides +0 -1
  23. data/assets/stylesheets/semantic_ui/themes/default/elements/input.variables +11 -7
  24. data/assets/stylesheets/semantic_ui/themes/default/elements/step.variables +11 -12
  25. data/assets/stylesheets/semantic_ui/themes/default/modules/dropdown.variables +4 -2
  26. data/assets/stylesheets/semantic_ui/themes/default/modules/popup.variables +4 -4
  27. data/assets/stylesheets/semantic_ui/themes/default/modules/progress.variables +11 -3
  28. data/assets/stylesheets/semantic_ui/themes/default/modules/search.variables +1 -1
  29. data/assets/stylesheets/semantic_ui/themes/flat/collections/form.variables +2 -2
  30. data/assets/stylesheets/semantic_ui/themes/raised/elements/button.variables +1 -0
  31. data/less-rails-semantic_ui.gemspec +1 -1
  32. metadata +3 -3
@@ -200,11 +200,10 @@
200
200
  padding-top: @inputVerticalPadding;
201
201
  padding-bottom: @inputVerticalPadding;
202
202
  }
203
-
204
- /* Action Input */
205
- .ui.menu:not(.vertical) .item .action.input > .button {
206
- font-size: @buttonSize;
207
- padding: @buttonVerticalPadding @actionButtonHorizontalPadding;
203
+ .ui.menu .item > .input .button,
204
+ .ui.menu .item > .input .label {
205
+ padding-top: @inputVerticalPadding;
206
+ padding-bottom: @inputVerticalPadding;
208
207
  }
209
208
 
210
209
  /* Resizes */
@@ -213,19 +212,23 @@
213
212
  padding-top: @smallInputVerticalPadding;
214
213
  padding-bottom: @smallInputVerticalPadding;
215
214
  }
215
+ .ui.small.menu .item > .input .button,
216
+ .ui.small.menu .item > .input .label {
217
+ padding-top: @smallInputVerticalPadding;
218
+ padding-bottom: @smallInputVerticalPadding;
219
+ }
216
220
  .ui.large.menu .item > .input input {
217
221
  top: @largeInputOffset;
218
222
  padding-bottom: @largeInputVerticalPadding;
219
223
  padding-top: @largeInputVerticalPadding;
220
224
  }
221
-
222
- .ui.large.menu .item .action.input > .button {
223
- padding: 0.9em;
224
- }
225
- .ui.large.menu .item .action.input > .button > .icon {
226
- padding-top: 0.8em;
225
+ .ui.large.menu .item > .input .button,
226
+ .ui.large.menu .item > .input .label {
227
+ padding-top: @largeInputVerticalPadding;
228
+ padding-bottom: @largeInputVerticalPadding;
227
229
  }
228
230
 
231
+
229
232
  /*--------------
230
233
  Header
231
234
  ---------------*/
@@ -35,14 +35,15 @@
35
35
  ---------------------*/
36
36
 
37
37
  .ui.input {
38
- display: inline-block;
39
38
  position: relative;
39
+ display: inline-block;
40
40
  color: @inputColor;
41
41
  }
42
42
  .ui.input input {
43
43
  margin: 0em;
44
44
  width: 100%;
45
45
  outline: none;
46
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
46
47
  text-align: @textAlign;
47
48
  line-height: @lineHeight;
48
49
 
@@ -56,8 +57,6 @@
56
57
  transition: @transition;
57
58
 
58
59
  box-shadow: @boxShadow;
59
- box-sizing: border-box;
60
- -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
61
60
  }
62
61
 
63
62
 
@@ -192,6 +191,31 @@
192
191
  padding: 0em;
193
192
  }
194
193
 
194
+ /* Transparent Icon */
195
+ .ui.transparent.icon.input > .icon {
196
+ width: @transparentIconWidth;
197
+ }
198
+ .ui.transparent.icon.input > input {
199
+ padding-left: 0em !important;
200
+ padding-right: @transparentIconMargin !important;
201
+ }
202
+ .ui.transparent[class*="left icon"].input > input {
203
+ padding-left: 0em !important;
204
+ padding-left: @transparentIconMargin !important;
205
+ }
206
+
207
+ /* Transparent Inverted */
208
+ .ui.transparent.inverted.input input::-moz-placeholder {
209
+ color: @transparentInvertedPlaceholderColor;
210
+ }
211
+ .ui.transparent.inverted.input {
212
+ color: @transparentInvertedColor;
213
+ }
214
+ .ui.transparent.inverted.input input {
215
+ color: inherit;
216
+ }
217
+
218
+
195
219
  /*--------------------
196
220
  Icon
197
221
  ---------------------*/
@@ -199,18 +223,15 @@
199
223
  .ui.icon.input > .icon {
200
224
  cursor: default;
201
225
  position: absolute;
202
- opacity: @iconOpacity;
226
+ text-align: center;
203
227
  top: 0px;
204
228
  right: 0px;
205
-
206
229
  margin: 0em;
207
- width: @iconWidth;
208
230
  height: 100%;
209
231
 
210
- text-align: center;
211
-
232
+ width: @iconWidth;
233
+ opacity: @iconOpacity;
212
234
  border-radius: 0em @borderRadius @borderRadius 0em;
213
- box-sizing: border-box;
214
235
  transition: @iconTransition;
215
236
  }
216
237
  .ui.icon.input > .icon:before,
@@ -248,19 +269,6 @@
248
269
  padding-right: @horizontalPadding !important;
249
270
  }
250
271
 
251
- /* Transparent Icon */
252
- .ui.transparent.icon.input > .icon {
253
- width: @transparentIconWidth;
254
- }
255
- .ui.transparent.icon.input > input {
256
- padding-left: 0em !important;
257
- padding-right: @transparentIconMargin !important;
258
- }
259
- .ui.transparent[class*="left icon"].input > input {
260
- padding-left: 0em !important;
261
- padding-left: @transparentIconMargin !important;
262
- }
263
-
264
272
  /* Focus */
265
273
  .ui.icon.input > input:focus ~ .icon {
266
274
  opacity: 1;
@@ -363,6 +371,8 @@
363
371
  display: table-cell;
364
372
  vertical-align: middle;
365
373
  white-space: nowrap;
374
+ padding-top: @verticalPadding;
375
+ padding-bottom: @verticalPadding;
366
376
  }
367
377
  .ui.action.input > .button > .icon,
368
378
  .ui.action.input > .buttons > .button > .icon {
@@ -406,10 +416,12 @@
406
416
  Inverted
407
417
  ---------------------*/
408
418
 
419
+ /* Standard */
409
420
  .ui.inverted.input input {
410
421
  border: none;
411
422
  }
412
423
 
424
+
413
425
  /*--------------------
414
426
  Fluid
415
427
  ---------------------*/
@@ -418,7 +430,6 @@
418
430
  display: block;
419
431
  }
420
432
 
421
-
422
433
  /*--------------------
423
434
  Size
424
435
  ---------------------*/
@@ -89,11 +89,6 @@
89
89
  Loose Coupling
90
90
  --------------------*/
91
91
 
92
- /* Menu */
93
- .ui.pointing.menu + .ui.attached.segment {
94
- top: 1px;
95
- }
96
-
97
92
  /* Header */
98
93
  .ui.inverted.segment > .ui.header {
99
94
  color: @white;
@@ -67,6 +67,7 @@ h2,
67
67
  h3,
68
68
  h4,
69
69
  h5 {
70
+ font-family: @headerFont;
70
71
  line-height: @headerLineHeight;
71
72
  margin: @headerMargin;
72
73
  font-weight: @headerFontWeight;
@@ -189,6 +189,12 @@
189
189
  .ui.dropdown .menu > .input:not(.transparent) input {
190
190
  padding: @menuInputPadding;
191
191
  }
192
+ .ui.dropdown .menu > .input:not(.transparent) .button,
193
+ .ui.dropdown .menu > .input:not(.transparent) .icon,
194
+ .ui.dropdown .menu > .input:not(.transparent) .label {
195
+ padding-top: @menuInputVerticalPadding;
196
+ padding-bottom: @menuInputVerticalPadding;
197
+ }
192
198
 
193
199
  /*-----------------
194
200
  Item Description
@@ -49,6 +49,20 @@
49
49
  }
50
50
 
51
51
  /* Indicating */
52
+ .ui.indicating.progress .bar[style^="width: 1%"],
53
+ .ui.indicating.progress .bar[style^="width: 2%"],
54
+ .ui.indicating.progress .bar[style^="width: 3%"],
55
+ .ui.indicating.progress .bar[style^="width: 4%"],
56
+ .ui.indicating.progress .bar[style^="width: 5%"],
57
+ .ui.indicating.progress .bar[style^="width: 6%"],
58
+ .ui.indicating.progress .bar[style^="width: 7%"],
59
+ .ui.indicating.progress .bar[style^="width: 8%"],
60
+ .ui.indicating.progress .bar[style^="width: 9%"],
61
+ .ui.indicating.progress .bar[style^="width: 1"],
62
+ .ui.indicating.progress .bar[style^="width: 2"] {
63
+ background-color: @indicatingFirstColor;
64
+ }
65
+
52
66
  .ui.indicating.progress .bar[style^="width: 3"] {
53
67
  background-color: @indicatingSecondColor;
54
68
  }
@@ -67,19 +81,6 @@
67
81
  .ui.indicating.progress .bar[style^="width: 100"] {
68
82
  background-color: @indicatingSixthColor;
69
83
  }
70
- .ui.indicating.progress .bar[style^="width: 1%"],
71
- .ui.indicating.progress .bar[style^="width: 2%"],
72
- .ui.indicating.progress .bar[style^="width: 3%"],
73
- .ui.indicating.progress .bar[style^="width: 4%"],
74
- .ui.indicating.progress .bar[style^="width: 5%"],
75
- .ui.indicating.progress .bar[style^="width: 6%"],
76
- .ui.indicating.progress .bar[style^="width: 7%"],
77
- .ui.indicating.progress .bar[style^="width: 8%"],
78
- .ui.indicating.progress .bar[style^="width: 9%"],
79
- .ui.indicating.progress .bar[style^="width: 1"],
80
- .ui.indicating.progress .bar[style^="width: 2"] {
81
- background-color: @indicatingFirstColor;
82
- }
83
84
 
84
85
  /* Single Digits Last */
85
86
  .ui.indicating.progress .bar[style^="width: 1%"] + .label,
@@ -129,7 +130,6 @@
129
130
  position: @barPosition;
130
131
  width: @barInitialWidth;
131
132
  min-width: @barMinWidth;
132
- height: @barHeight;
133
133
  background: @barBackground;
134
134
  border-radius: @barBorderRadius;
135
135
  transition: @barTransition;
@@ -399,6 +399,37 @@
399
399
  Sizes
400
400
  ---------------*/
401
401
 
402
+ .ui.tiny.progress {
403
+ font-size: @tiny;
404
+ }
405
+ .ui.tiny.progress .bar {
406
+ height: @tinyBarHeight;
407
+ }
408
+
409
+ .ui.small.progress {
410
+ font-size: @small;
411
+ }
402
412
  .ui.small.progress .bar {
403
- height: 14px;
413
+ height: @smallBarHeight;
414
+ }
415
+
416
+ .ui.progress {
417
+ font-size: @medium;
418
+ }
419
+ .ui.progress .bar {
420
+ height: @barHeight;
421
+ }
422
+
423
+ .ui.large.progress {
424
+ font-size: @large;
425
+ }
426
+ .ui.large.progress .bar {
427
+ height: @largeBarHeight;
428
+ }
429
+
430
+ .ui.big.progress {
431
+ font-size: @big;
432
+ }
433
+ .ui.big.progress .bar {
434
+ height: @bigBarHeight;
404
435
  }
@@ -17,9 +17,9 @@
17
17
  @fieldMargin: 0em 0em @rowDistance;
18
18
 
19
19
  /* Form Label */
20
- @labelDistance: 0.3rem;
20
+ @labelDistance: 0.2857rem;
21
21
  @labelMargin: 0em 0em @labelDistance 0em;
22
- @labelFontSize: 0.9em;
22
+ @labelFontSize: 0.9285em;
23
23
  @labelFontWeight: bold;
24
24
  @labelTextTransform: none;
25
25
  @labelColor: @textColor;
@@ -27,9 +27,9 @@
27
27
  /* Input */
28
28
  @inputWidth: 100%;
29
29
  @inputFontSize: 1em;
30
- @inputVerticalPadding: 0.8em;
30
+ @inputVerticalPadding: 0.78571em;
31
31
  @inputHorizontalPadding: 1em;
32
- @inputLineHeight: 1.2;
32
+ @inputLineHeight: 1.2142em;
33
33
  @inputPadding: (@inputVerticalPadding + ((1em - @inputLineHeight) / 2)) @inputHorizontalPadding;
34
34
  @inputBackground: #FFFFFF;
35
35
  @inputBorder: 1px solid @borderColor;
@@ -56,7 +56,7 @@
56
56
  @textAreaPadding: @inputVerticalPadding @inputHorizontalPadding;
57
57
  @textAreaHeight: 12em;
58
58
  @textAreaResize: vertical;
59
- @textAreaLineHeight: 1.33;
59
+ @textAreaLineHeight: 1.2857;
60
60
  @textAreaMinHeight: 8em;
61
61
  @textAreaMaxHeight: 24em;
62
62
  @textAreaBackground: @inputBackground;
@@ -16,7 +16,7 @@
16
16
  --------------------*/
17
17
 
18
18
  @margin: 1rem 0rem;
19
- @verticalPadding: 0.83em;
19
+ @verticalPadding: 0.78571em;
20
20
  @horizontalPadding: 0.95em;
21
21
 
22
22
  @background: #FFFFFF;
@@ -93,7 +93,6 @@
93
93
  @buttonOffset: -0.05em;
94
94
  @buttonVerticalPadding: 0.55em;
95
95
  @buttonSize: 0.875em;
96
- @actionButtonHorizontalPadding: 0.8em;
97
96
 
98
97
  /* Input */
99
98
  @inputSize: 1em;
@@ -12,7 +12,7 @@
12
12
  /* Style */
13
13
  @backgroundColor: #E0E0E0;
14
14
  @backgroundImage: none;
15
- @verticalPadding: 0.8em;
15
+ @verticalPadding: 0.78571em;
16
16
  @horizontalPadding: 1.5em;
17
17
 
18
18
  /* Text */
@@ -628,7 +628,6 @@ i.icon.circle.outline:before { content: "\f10c"; }
628
628
  i.icon.spinner:before { content: "\f110"; }
629
629
  i.icon.gamepad:before { content: "\f11b"; }
630
630
  i.icon.star.half.full:before { content: "\f123"; }
631
- i.icon.remove.link:before { content: "\f127"; }
632
631
  i.icon.question:before { content: "\f128"; }
633
632
  i.icon.attention:before { content: "\f12a"; }
634
633
  i.icon.eraser:before { content: "\f12d"; }
@@ -7,11 +7,10 @@
7
7
  --------------------*/
8
8
 
9
9
  @pageFont: "Helvetica Neue", "Helvetica", Arial;
10
-
11
- @verticalPadding: 0.8em;
10
+ @verticalPadding: 0.78571em;
12
11
  @horizontalPadding: 1em;
13
12
 
14
- @lineHeight: 1.2em;
13
+ @lineHeight: 1.2142em;
15
14
  @lineHeightOffset: ((@lineHeight - 1em) / 2);
16
15
 
17
16
  @padding: (@verticalPadding - @lineHeightOffset) @horizontalPadding;
@@ -24,9 +23,9 @@
24
23
 
25
24
  @borderRadius: @defaultBorderRadius;
26
25
  @transition:
27
- background-color 0.3s ease-out,
28
- box-shadow 0.2s ease,
29
- border-color 0.2s ease
26
+ background-color @transitionDuration @transitionEasing,
27
+ box-shadow @transitionDuration @transitionEasing,
28
+ border-color @transitionDuration @transitionEasing
30
29
  ;
31
30
 
32
31
  @inputColor: @textColor;
@@ -48,7 +47,7 @@
48
47
  @iconTransition: opacity 0.3s @defaultEasing;
49
48
 
50
49
  @transparentIconWidth: @glyphWidth;
51
- @transparentIconMargin: 1.75em;
50
+ @transparentIconMargin: 2em;
52
51
 
53
52
  /* Circular Icon Input */
54
53
  @circularIconVerticalOffset: 0.35em;
@@ -103,6 +102,11 @@
103
102
  Variations
104
103
  --------------------*/
105
104
 
105
+ /* Inverted */
106
+ @transparentInvertedPlaceholderColor: @invertedUnselectedTextColor;
107
+ @transparentInvertedColor: @white;
108
+
109
+
106
110
  /* Sizing */
107
111
  @mini: 0.8125rem;
108
112
  @small: 0.875rem;
@@ -9,24 +9,23 @@
9
9
  @verticalMargin: 0em;
10
10
  @horizontalMargin: 0em;
11
11
 
12
- @verticalPadding: 0.8em;
12
+ @verticalPadding: 0.9285em;
13
13
  @horizontalPadding: 1.5em;
14
- @leftPadding: @horizontalPadding + (@arrowSize /2);
14
+ @leftPadding: @horizontalPadding + (@arrowSize / 2);
15
15
 
16
16
  @transition:
17
- background-color 0.1s ease,
18
- opacity 0.1s ease,
19
- color 0.1s ease,
20
- box-shadow 0.1s ease
17
+ background-color @transitionDuration @transitionEasing,
18
+ opacity @transitionDuration @transitionEasing,
19
+ color @transitionDuration @transitionEasing,
20
+ box-shadow @transitionDuration @transitionEasing
21
21
  ;
22
22
  @borderRadius: @defaultBorderRadius;
23
- @lineHeight: 1.2;
23
+ @lineHeight: 1.142rem;
24
24
 
25
25
  @backgroundColor: #FFFFFF;
26
26
  @background: @backgroundColor;
27
27
  @borderRadius: 0em;
28
-
29
- @boxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
28
+ @boxShadow: 0px 0px 0px 1px @borderColor;
30
29
 
31
30
  /* Icon */
32
31
  @iconDistance: 0.6em;
@@ -36,12 +35,12 @@
36
35
  /* Title */
37
36
  @titleFontFamily: @headerFont;
38
37
  @titleFontWeight: bold;
39
- @titleFontSize: 1.1em;
38
+ @titleFontSize: 1.0714em;
40
39
  @titleColor: @darkTextColor;
41
40
 
42
41
  /* Description */
43
42
  @descriptionDistance: 0.1em;
44
- @descriptionFontSize: 0.9em;
43
+ @descriptionFontSize: 0.9285em;
45
44
  @descriptionFontWeight: normal;
46
45
  @descriptionColor: @textColor;
47
46
 
@@ -52,7 +51,7 @@
52
51
  @arrowBackgroundColor: @backgroundColor;
53
52
  @arrowTopOffset: 50%;
54
53
  @arrowRightOffset: 0em;
55
- @arrowBorderColor: rgba(0, 0, 0, 0.1);
54
+ @arrowBorderColor: @borderColor;
56
55
 
57
56
 
58
57
  /*-------------------