less-rails-semantic_ui 1.2.0.0 → 1.3.1.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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/semantic_ui/definitions/behaviors/api.js +1 -0
  3. data/assets/javascripts/semantic_ui/definitions/behaviors/form.js +8 -4
  4. data/assets/javascripts/semantic_ui/definitions/behaviors/visibility.js +36 -17
  5. data/assets/javascripts/semantic_ui/definitions/behaviors/visit.js +2 -2
  6. data/assets/javascripts/semantic_ui/definitions/modules/accordion.js +2 -1
  7. data/assets/javascripts/semantic_ui/definitions/modules/checkbox.js +2 -1
  8. data/assets/javascripts/semantic_ui/definitions/modules/dimmer.js +1 -0
  9. data/assets/javascripts/semantic_ui/definitions/modules/dropdown.js +206 -108
  10. data/assets/javascripts/semantic_ui/definitions/modules/modal.js +79 -61
  11. data/assets/javascripts/semantic_ui/definitions/modules/sidebar.js +41 -5
  12. data/assets/javascripts/semantic_ui/definitions/modules/transition.js +1 -1
  13. data/assets/javascripts/semantic_ui/definitions/modules/video.js +1 -0
  14. data/assets/stylesheets/semantic_ui/definitions/collections/form.less +6 -4
  15. data/assets/stylesheets/semantic_ui/definitions/collections/grid.less +104 -99
  16. data/assets/stylesheets/semantic_ui/definitions/collections/table.less +155 -40
  17. data/assets/stylesheets/semantic_ui/definitions/elements/button.less +3 -2
  18. data/assets/stylesheets/semantic_ui/definitions/elements/image.less +28 -2
  19. data/assets/stylesheets/semantic_ui/definitions/elements/label.less +17 -1
  20. data/assets/stylesheets/semantic_ui/definitions/elements/segment.less +0 -4
  21. data/assets/stylesheets/semantic_ui/definitions/elements/step.less +82 -10
  22. data/assets/stylesheets/semantic_ui/definitions/modules/dropdown.less +31 -3
  23. data/assets/stylesheets/semantic_ui/definitions/modules/modal.less +0 -6
  24. data/assets/stylesheets/semantic_ui/definitions/modules/sidebar.less +6 -2
  25. data/assets/stylesheets/semantic_ui/themes/default/collections/table.variables +2 -2
  26. data/assets/stylesheets/semantic_ui/themes/default/elements/button.variables +1 -1
  27. data/assets/stylesheets/semantic_ui/themes/default/elements/step.variables +8 -3
  28. data/assets/stylesheets/semantic_ui/themes/default/globals/site.variables +1 -0
  29. data/assets/stylesheets/semantic_ui/themes/default/modules/dropdown.overrides +5 -0
  30. data/assets/stylesheets/semantic_ui/themes/default/modules/dropdown.variables +9 -0
  31. data/assets/stylesheets/semantic_ui/themes/default/modules/modal.variables +0 -3
  32. data/less-rails-semantic_ui.gemspec +2 -2
  33. metadata +4 -4
@@ -46,7 +46,7 @@
46
46
  *******************************/
47
47
 
48
48
  /*--------------
49
- Menu
49
+ Menu
50
50
  ---------------*/
51
51
 
52
52
  .ui.dropdown .menu {
@@ -616,6 +616,11 @@ select.ui.dropdown {
616
616
  .ui.loading.dropdown > .text {
617
617
  transition: none;
618
618
  }
619
+ .ui.dropdown > .loading.menu {
620
+ display: block;
621
+ visibility: hidden;
622
+ z-index: @loadingZIndex;
623
+ }
619
624
 
620
625
  /*--------------------
621
626
  Keyboard Select
@@ -695,6 +700,28 @@ select.ui.dropdown {
695
700
  }
696
701
 
697
702
 
703
+ /* Default Side (Right) */
704
+ .ui.dropdown .right.menu > .menu,
705
+ .ui.dropdown .menu .right.menu {
706
+ left: 100% !important;
707
+ right: auto !important;
708
+ }
709
+
710
+ /* Left Flyout Menu */
711
+ .ui.dropdown > .left.menu .menu,
712
+ .ui.dropdown .menu .left.menu {
713
+ left: auto !important;
714
+ right: 100% !important;
715
+ }
716
+
717
+ .ui.dropdown .item .left.dropdown.icon,
718
+ .ui.dropdown .left.menu .item .dropdown.icon {
719
+ width: auto;
720
+ float: @leftMenuDropdownIconFloat;
721
+ margin: @leftMenuDropdownIconMargin;
722
+ }
723
+
724
+
698
725
  /*--------------
699
726
  Simple
700
727
  ---------------*/
@@ -772,16 +799,17 @@ select.ui.dropdown {
772
799
  .ui.floating.dropdown .menu {
773
800
  left: 0;
774
801
  right: auto;
775
- margin-top: @floatingMenuDistance !important;
776
802
  box-shadow: @floatingMenuBoxShadow;
777
803
  border-radius: @floatingMenuBorderRadius;
778
804
  }
805
+ .ui.floating.dropdown > .menu {
806
+ margin-top: @floatingMenuDistance !important;
807
+ }
779
808
 
780
809
  /*--------------
781
810
  Pointing
782
811
  ---------------*/
783
812
 
784
-
785
813
  .ui.pointing.dropdown > .menu {
786
814
  top: 100%;
787
815
  margin-top: @pointingMenuDistance;
@@ -356,12 +356,6 @@
356
356
  color: @innerCloseColor;
357
357
  }
358
358
 
359
- @media only screen and (max-width : @largestMobileScreen) {
360
- .ui.fullscreen.modal {
361
- width: @fullScreenMobileWidth !important;
362
- margin: @fullScreenMobileMargin !important;
363
- }
364
- }
365
359
 
366
360
  /*--------------
367
361
  Size
@@ -202,11 +202,15 @@
202
202
  }
203
203
 
204
204
  /*--------------
205
- Mobile
205
+ iOS
206
206
  ---------------*/
207
207
 
208
+ /*
209
+ iOS incorrectly sizes document when content
210
+ is presented outside of view with 2Dtranslate
211
+ */
208
212
  @media only screen and (max-width: @computerBreakpoint) {
209
- html {
213
+ html.ios {
210
214
  overflow-x: hidden;
211
215
  -webkit-overflow-scrolling: touch;
212
216
  }
@@ -205,8 +205,8 @@
205
205
  @basicTableCellBackground: transparent;
206
206
  @basicTableHeaderDivider: none;
207
207
  @basicTableCellBorder: 1px solid rgba(0, 0, 0, 0.1);
208
- @basicTableCellVerticalPadding: 0.8em;
209
- @basicTableCellHorizontalPadding: 0em;
208
+ @basicTableCellVerticalPadding: @cellVerticalPadding;
209
+ @basicTableCellHorizontalPadding: @cellHorizontalPadding;
210
210
  @basicTableStripedBackground: @transparentBlack;
211
211
 
212
212
  /* Padded */
@@ -133,7 +133,7 @@
133
133
 
134
134
  @orCircleDistanceToEdge: (@verticalPadding);
135
135
  @orCircleSize: @orHeight - @orCircleDistanceToEdge;
136
- @orLineHeight: (@orCircleSize - 0.2em);
136
+ @orLineHeight: (@orCircleSize);
137
137
  @orBoxShadow: @borderBoxShadow;
138
138
 
139
139
  @orVerticalOffset: -(@orCircleSize / 2);
@@ -9,6 +9,7 @@
9
9
  @verticalMargin: 0em;
10
10
  @horizontalMargin: 0em;
11
11
 
12
+ @arrowSize: 1.5em;
12
13
  @verticalPadding: 0.9285em;
13
14
  @horizontalPadding: 1.5em;
14
15
  @leftPadding: @horizontalPadding + (@arrowSize / 2);
@@ -25,7 +26,7 @@
25
26
  @backgroundColor: #FFFFFF;
26
27
  @background: @backgroundColor;
27
28
  @borderRadius: 0em;
28
- @boxShadow: 0px 0px 0px 1px @borderColor;
29
+ @boxShadow: 0px 0px 0px 1px @solidBorderColor;
29
30
 
30
31
  /* Icon */
31
32
  @iconDistance: 0.6em;
@@ -46,8 +47,6 @@
46
47
 
47
48
 
48
49
  /* Arrow */
49
- @arrowWidth: 1em;
50
- @arrowSize: 1.5em;
51
50
  @arrowBackgroundColor: @backgroundColor;
52
51
  @arrowTopOffset: 50%;
53
52
  @arrowRightOffset: 0em;
@@ -62,6 +61,12 @@
62
61
  @stepsBackground: '';
63
62
  @stepsBoxShadow: '';
64
63
 
64
+ /*-------------------
65
+ Variations
66
+ --------------------*/
67
+
68
+ @attachedTopMargin: 0em;
69
+ @attachedBottomMargin: -1px 0em 0em;
65
70
 
66
71
  /*-------------------
67
72
  States
@@ -392,6 +392,7 @@
392
392
  /* Responsive */
393
393
  @largestMobileScreen : (@tabletBreakpoint - 1px);
394
394
  @largestTabletScreen : (@computerBreakpoint - 1px);
395
+ @largestLargeMonitor : (@widescreenMonitorBreakpoint - 1px);
395
396
 
396
397
  /* Columns */
397
398
  @oneWide : (1 / @columnCount * 100%);
@@ -36,6 +36,11 @@
36
36
  content: '\f0da'/*rtl:'\f0d9'*/;
37
37
  }
38
38
 
39
+ .ui.dropdown .item .left.dropdown.icon:before,
40
+ .ui.dropdown .left.menu .item .dropdown.icon:before {
41
+ content: "\f0d9"/*rtl:"\f0da"*/;
42
+ }
43
+
39
44
  /* Vertical Menu Dropdown */
40
45
  .ui.vertical.menu .dropdown.item > .dropdown.icon:before {
41
46
  content: "\f0da"/*rtl:"\f0d9"*/;
@@ -191,6 +191,7 @@
191
191
  States
192
192
  --------------------*/
193
193
 
194
+ /* Hovered */
194
195
  @hoveredItemBackground: @transparentBlack;
195
196
  @hoveredItemColor: @selectedTextColor;
196
197
 
@@ -198,6 +199,9 @@
198
199
  @defaultTextColor: rgba(179, 179, 179, 0.7);
199
200
  @defaultTextHoverColor: rgba(140, 140, 140, 0.7);
200
201
 
202
+ /* Loading */
203
+ @loadingZIndex: -1;
204
+
201
205
  /* Active Menu Item */
202
206
  @activeItemBackground: transparent;
203
207
  @activeItemZIndex: @menuZIndex + 1;
@@ -205,6 +209,7 @@
205
209
  @activeItemFontWeight: bold;
206
210
  @activeItemColor: @selectedTextColor;
207
211
 
212
+ /* Selected */
208
213
  @selectedBackground: @subtleTransparentBlack;
209
214
  @selectedColor: @selectedTextColor;
210
215
 
@@ -217,6 +222,10 @@
217
222
  Variations
218
223
  --------------------*/
219
224
 
225
+ /* Flyout Direction */
226
+ @leftMenuDropdownIconFloat: left;
227
+ @leftMenuDropdownIconMargin: @itemLineHeightOffset @itemElementDistance 0em 0em;
228
+
220
229
  /* Simple */
221
230
  @simpleTransitionDuration: 0.2s;
222
231
  @simpleTransition: opacity @simpleTransitionDuration @defaultEasing;
@@ -93,9 +93,6 @@
93
93
  @fullScreenOffset: (100% - @fullScreenWidth) / 2;
94
94
  @fullScreenMargin: 1em auto;
95
95
 
96
- @fullScreenMobileWidth: auto;
97
- @fullScreenMobileMargin: 1em;
98
-
99
96
  /*-------------------
100
97
  Types
101
98
  --------------------*/
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'less-rails-semantic_ui'
6
- spec.version = '1.2.0.0'
6
+ spec.version = '1.3.1.0'
7
7
  spec.authors = ['Maxim Dobryakov']
8
8
  spec.email = ['maxim.dobryakov@gmail.com']
9
9
  spec.summary = %q{Semantic UI assets for Rails}
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.7'
22
22
  spec.add_development_dependency 'rake', '~> 10.0'
23
- spec.add_development_dependency 'minispec', '~> 0.0.1'
23
+ spec.add_development_dependency 'minispec', '~> 0.0.2'
24
24
  spec.add_development_dependency 'activesupport', '>= 4.0', '< 10.0'
25
25
  spec.add_development_dependency 'rails', '>= 4.0', '< 10.0'
26
26
  spec.add_development_dependency 'therubyracer', '~> 0.12.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails-semantic_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.0
4
+ version: 1.3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Dobryakov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: less-rails
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 0.0.1
67
+ version: 0.0.2
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 0.0.1
74
+ version: 0.0.2
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: activesupport
77
77
  requirement: !ruby/object:Gem::Requirement