semantic-ui-sass 0.0.3 → 0.8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -1
  3. data/.rspec +1 -0
  4. data/CHANGELOG.md +8 -0
  5. data/README.md +26 -1
  6. data/app/assets/javascripts/semantic-ui/accordion.js +15 -17
  7. data/app/assets/javascripts/semantic-ui/behavior/api.js +18 -22
  8. data/app/assets/javascripts/semantic-ui/behavior/form.js +18 -24
  9. data/app/assets/javascripts/semantic-ui/behavior/state.js +8 -8
  10. data/app/assets/javascripts/semantic-ui/chatroom.js +18 -14
  11. data/app/assets/javascripts/semantic-ui/checkbox.js +26 -24
  12. data/app/assets/javascripts/semantic-ui/dimmer.js +74 -47
  13. data/app/assets/javascripts/semantic-ui/dropdown.js +226 -153
  14. data/app/assets/javascripts/semantic-ui/modal.js +73 -46
  15. data/app/assets/javascripts/semantic-ui/nag.js +13 -16
  16. data/app/assets/javascripts/semantic-ui/popup.js +352 -263
  17. data/app/assets/javascripts/semantic-ui/rating.js +29 -26
  18. data/app/assets/javascripts/semantic-ui/search.js +18 -24
  19. data/app/assets/javascripts/semantic-ui/shape.js +182 -173
  20. data/app/assets/javascripts/semantic-ui/sidebar.js +66 -43
  21. data/app/assets/javascripts/semantic-ui/tab.js +49 -31
  22. data/app/assets/javascripts/semantic-ui/transition.js +24 -24
  23. data/app/assets/javascripts/semantic-ui/video.js +26 -24
  24. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +1 -1
  25. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +85 -37
  26. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +6 -7
  27. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +76 -23
  28. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +415 -241
  29. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
  30. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +26 -24
  31. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +8 -13
  32. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +87 -5
  33. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +7 -9
  34. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -2
  35. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +17 -21
  36. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +4 -27
  37. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +44 -30
  38. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +68 -9
  39. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +26 -26
  40. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
  41. data/app/assets/stylesheets/semantic-ui/modules/_reveal.scss +1 -1
  42. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +81 -7
  43. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +129 -28
  44. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +12 -10
  45. data/app/assets/stylesheets/semantic-ui/views/_item.scss +0 -10
  46. data/app/assets/stylesheets/semantic-ui/views/_list.scss +6 -6
  47. data/app/helpers/semantic_flash_helper.rb +22 -0
  48. data/app/helpers/semantic_icon_helper.rb +5 -0
  49. data/lib/semantic/ui/sass/version.rb +2 -2
  50. data/semantic-ui-sass.gemspec +3 -0
  51. data/spec/dummy/README.rdoc +28 -0
  52. data/spec/dummy/Rakefile +6 -0
  53. data/spec/dummy/app/assets/images/.keep +0 -0
  54. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  55. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  56. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  57. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  58. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  59. data/spec/dummy/app/mailers/.keep +0 -0
  60. data/spec/dummy/app/models/.keep +0 -0
  61. data/spec/dummy/app/models/concerns/.keep +0 -0
  62. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  63. data/spec/dummy/bin/bundle +3 -0
  64. data/spec/dummy/bin/rails +4 -0
  65. data/spec/dummy/bin/rake +4 -0
  66. data/spec/dummy/config.ru +4 -0
  67. data/spec/dummy/config/application.rb +28 -0
  68. data/spec/dummy/config/boot.rb +5 -0
  69. data/spec/dummy/config/database.yml +25 -0
  70. data/spec/dummy/config/environment.rb +5 -0
  71. data/spec/dummy/config/environments/development.rb +29 -0
  72. data/spec/dummy/config/environments/production.rb +80 -0
  73. data/spec/dummy/config/environments/test.rb +36 -0
  74. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  75. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  76. data/spec/dummy/config/initializers/inflections.rb +16 -0
  77. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  78. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  79. data/spec/dummy/config/initializers/session_store.rb +3 -0
  80. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  81. data/spec/dummy/config/locales/en.yml +23 -0
  82. data/spec/dummy/config/routes.rb +2 -0
  83. data/spec/dummy/lib/assets/.keep +0 -0
  84. data/spec/dummy/log/.keep +0 -0
  85. data/spec/dummy/public/404.html +58 -0
  86. data/spec/dummy/public/422.html +58 -0
  87. data/spec/dummy/public/500.html +57 -0
  88. data/spec/dummy/public/favicon.ico +0 -0
  89. data/spec/helpers/semantic_flash_helper_spec.rb +33 -0
  90. data/spec/helpers/semantic_icon_helper_spec.rb +20 -0
  91. data/spec/spec_helper.rb +8 -0
  92. metadata +132 -4
@@ -18,7 +18,7 @@
18
18
 
19
19
  font-size: 0em;
20
20
  vertical-align: baseline;
21
- margin: 0em 0.5em 0em 0em;
21
+ margin: 0em 0.5rem 0em 0em;
22
22
  }
23
23
  .ui.rating:last-child {
24
24
  margin-right: 0em;
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  .ui.reveal > .content {
24
- font-size: 1em !important;
24
+ font-size: 1rem !important;
25
25
  }
26
26
 
27
27
  .ui.reveal > .visible.content {
@@ -14,12 +14,19 @@
14
14
  *******************************/
15
15
 
16
16
  .ui.shape {
17
+ display: inline-block;
17
18
  position: relative;
18
19
 
19
20
  -webkit-perspective: 2000px;
20
21
  -moz-perspective: 2000px;
21
22
  -ms-perspective: 2000px;
22
23
  perspective: 2000px;
24
+
25
+ -webkit-box-sizing: border-box;
26
+ -moz-box-sizing: border-box;
27
+ -ms-box-sizing: border-box;
28
+ box-sizing: border-box;
29
+
23
30
  }
24
31
 
25
32
  .ui.shape .sides {
@@ -32,10 +39,18 @@
32
39
  .ui.shape .side {
33
40
  opacity: 1;
34
41
  width: 100%;
42
+
43
+ margin: 0em !important;
44
+
35
45
  -webkit-backface-visibility: hidden;
36
46
  -moz-backface-visibility: hidden;
37
47
  -ms-backface-visibility: hidden;
38
48
  backface-visibility: hidden;
49
+
50
+ -webkit-box-sizing: border-box;
51
+ -moz-box-sizing: border-box;
52
+ -ms-box-sizing: border-box;
53
+ box-sizing: border-box;
39
54
  }
40
55
 
41
56
  .ui.shape .side {
@@ -43,22 +58,77 @@
43
58
  }
44
59
 
45
60
 
61
+ /*******************************
62
+ Types
63
+ *******************************/
64
+
65
+ .ui.cube.shape .side {
66
+ min-width: 15em;
67
+ height: 15em;
68
+
69
+ padding: 2em;
70
+
71
+ background-color: #E6E6E6;
72
+ color: rgba(0, 0, 0, 0.6);
73
+
74
+ -moz-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
75
+ -webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
76
+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
77
+ }
78
+ .ui.cube.shape .side > .content {
79
+ width: 100%;
80
+ height: 100%;
81
+ display: table;
82
+
83
+ text-align: center;
84
+
85
+ -webkit-user-select: text;
86
+ -moz-user-select: text;
87
+ -ms-user-select: text;
88
+ user-select: text;
89
+ }
90
+ .ui.cube.shape .side > .content > div {
91
+ display: table-cell;
92
+ vertical-align: middle;
93
+ font-size: 2em;
94
+ }
46
95
 
47
96
  /*******************************
48
- States
97
+ Variations
49
98
  *******************************/
50
99
 
100
+ .ui.text.shape.animating .sides {
101
+ position: static;
102
+ }
103
+ .ui.text.shape .side {
104
+ white-space: nowrap;
105
+ }
106
+ .ui.text.shape .side > * {
107
+ white-space: normal;
108
+ }
109
+
110
+
111
+ /*******************************
112
+ States
113
+ *******************************/
51
114
 
52
115
  /*--------------
53
- Animating
116
+ Loading
54
117
  ---------------*/
55
118
 
56
- .ui.shape.animating .sides {
119
+ .ui.loading.shape {
57
120
  position: absolute;
121
+ top: -9999px;
122
+ left: -9999px;
58
123
  }
124
+
125
+
126
+ /*--------------
127
+ Animating
128
+ ---------------*/
129
+
59
130
  .ui.shape .animating.side {
60
131
  position: absolute;
61
- width: 100%;
62
132
  top: 0px;
63
133
  left: 0px;
64
134
  z-index: 100;
@@ -72,7 +142,7 @@
72
142
  CSS
73
143
  ---------------*/
74
144
 
75
- .ui.shape.css {
145
+ .ui.shape.animating {
76
146
  -webkit-transition:
77
147
  all 0.6s ease-in-out;
78
148
  ;
@@ -89,14 +159,17 @@
89
159
  all 0.6s ease-in-out;
90
160
  ;
91
161
  }
92
- .ui.shape.css .sides {
162
+ .ui.shape.animating .sides {
163
+ position: absolute;
164
+ }
165
+ .ui.shape.animating .sides {
93
166
  -webkit-transition: all 0.6s ease-in-out;
94
167
  -moz-transition: all 0.6s ease-in-out;
95
168
  -o-transition: all 0.6s ease-in-out;
96
169
  -ms-transition: all 0.6s ease-in-out;
97
170
  transition: all 0.6s ease-in-out;
98
171
  }
99
- .ui.shape.css .side {
172
+ .ui.shape.animating .side {
100
173
  -webkit-transition: opacity 0.6s ease-in-out;
101
174
  -moz-transition: opacity 0.6s ease-in-out;
102
175
  -o-transition: opacity 0.6s ease-in-out;
@@ -104,6 +177,7 @@
104
177
  transition: opacity 0.6s ease-in-out;
105
178
  }
106
179
 
180
+
107
181
  /*--------------
108
182
  Active
109
183
  ---------------*/
@@ -40,13 +40,17 @@ body {
40
40
 
41
41
  margin: 0 !important;
42
42
 
43
- width: 275px !important;
44
43
  height: 100% !important;
45
44
 
46
45
  -webkit-border-radius: 0px !important;
47
46
  -moz-border-radius: 0px !important;
48
47
  border-radius: 0px !important;
49
48
 
49
+ -webkit-box-sizing: border-box;
50
+ -moz-box-sizing: border-box;
51
+ -ms-box-sizing: border-box;
52
+ box-sizing: border-box;
53
+
50
54
  -ms-overflow-y: auto;
51
55
  overflow-y: auto;
52
56
  top: 0px;
@@ -77,12 +81,13 @@ body {
77
81
 
78
82
 
79
83
  /*******************************
80
- Types
84
+ Types
81
85
  *******************************/
82
86
 
83
- .ui.sidebar {
84
- margin-left: -275px !important;
85
- }
87
+ /*-------------------
88
+ Direction
89
+ --------------------*/
90
+
86
91
 
87
92
  .ui.right.sidebar {
88
93
  left: 100%;
@@ -90,14 +95,11 @@ body {
90
95
  }
91
96
 
92
97
  .ui.top.sidebar {
93
- margin: -40px 0px 0px 0px !important;
94
98
  width: 100% !important;
95
- height: 40px !important;
96
99
  }
97
100
 
98
101
  .ui.bottom.sidebar {
99
102
  width: 100% !important;
100
- height: 40px !important;
101
103
  top: 100%;
102
104
  margin: 0px !important;
103
105
  }
@@ -110,41 +112,140 @@ body {
110
112
  .ui.active.sidebar {
111
113
  margin-left: 0px !important;
112
114
  }
113
- .ui.active.right.sidebar {
114
- margin-left: -275px !important;
115
- }
116
-
117
- .ui.active.top.sidebar {
118
- margin-top: 0px !important;
119
- }
115
+ .ui.active.top.sidebar,
120
116
  .ui.active.bottom.sidebar {
121
- margin-top: -40px !important;
117
+ margin-top: 0px !important;
122
118
  }
123
119
 
120
+
124
121
  /*******************************
125
122
  Variations
126
123
  *******************************/
127
124
 
125
+ /*-------------------
126
+ Formatted
127
+ --------------------*/
128
+
129
+ .ui.styled.sidebar {
130
+ padding: 1em 1.5em;
131
+ background-color: #FFFFFF;
132
+ box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.1);
133
+ }
134
+ .ui.styled.very.thin.sidebar {
135
+ padding: 0.5em;
136
+ }
137
+ .ui.styled.thin.sidebar {
138
+ padding: 1em;
139
+ }
140
+
141
+
142
+ /*-------------------
143
+ Floating
144
+ --------------------*/
145
+
128
146
  .ui.floating.sidebar {
129
- -webkit-box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.2);
130
- -moz-box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.2);
131
- box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.2);
147
+ -webkit-box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.2);
148
+ -moz-box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.2);
149
+ box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.2);
132
150
  }
133
151
 
134
152
  .ui.right.floating.sidebar {
135
- -webkit-box-shadow: -3px 0px 3px rgba(0, 0, 0, 0.2);
136
- -moz-box-shadow: -3px 0px 3px rgba(0, 0, 0, 0.2);
137
- box-shadow: -3px 0px 3px rgba(0, 0, 0, 0.2);
153
+ -webkit-box-shadow: -2px 0px 2px rgba(0, 0, 0, 0.2);
154
+ -moz-box-shadow: -2px 0px 2px rgba(0, 0, 0, 0.2);
155
+ box-shadow: -2px 0px 2px rgba(0, 0, 0, 0.2);
138
156
  }
139
157
 
140
158
  .ui.top.floating.sidebar {
141
- -webkit-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
142
- -moz-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
143
- box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
159
+ -webkit-box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
160
+ -moz-box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
161
+ box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
144
162
  }
145
163
 
146
164
  .ui.bottom.floating.sidebar {
147
- -webkit-box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.2);
148
- -moz-box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.2);
149
- box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.2);
165
+ -webkit-box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
166
+ -moz-box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
167
+ box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
168
+ }
169
+
170
+
171
+ /*-------------------
172
+ Width
173
+ --------------------*/
174
+
175
+ /* Very Thin */
176
+ .ui.very.thin.sidebar {
177
+ width: 60px !important;
178
+ margin-left: -60px !important;
179
+ }
180
+ .ui.active.very.thin.sidebar {
181
+ margin-left: 0px !important;
182
+ }
183
+ .ui.active.right.very.thin.sidebar {
184
+ margin-left: -60px !important;
185
+ }
186
+
187
+ /* Thin */
188
+ .ui.thin.sidebar {
189
+ width: 200px !important;
190
+ margin-left: -200px !important;
191
+ }
192
+ .ui.active.thin.sidebar {
193
+ margin-left: 0px !important;
194
+ }
195
+ .ui.active.right.thin.sidebar {
196
+ margin-left: -200px !important;
197
+ }
198
+
199
+ /* Standard */
200
+ .ui.sidebar {
201
+ width: 275px !important;
202
+ margin-left: -275px !important;
203
+ }
204
+ .ui.active.sidebar {
205
+ margin-left: 0px !important;
206
+ }
207
+ .ui.active.right.sidebar {
208
+ margin-left: -275px !important;
209
+ }
210
+
211
+ /* Wide */
212
+ .ui.wide.sidebar {
213
+ width: 350px !important;
214
+ margin-left: -350px !important;
215
+ }
216
+ .ui.active.wide.sidebar {
217
+ margin-left: 0px !important;
218
+ }
219
+ .ui.active.right.wide.sidebar {
220
+ margin-left: -350px !important;
150
221
  }
222
+
223
+ /* Very Wide */
224
+ .ui.very.wide.sidebar {
225
+ width: 475px !important;
226
+ margin-left: -475px !important;
227
+ }
228
+ .ui.active.very.wide.sidebar {
229
+ margin-left: 0px !important;
230
+ }
231
+ .ui.active.right.very.wide.sidebar {
232
+ margin-left: -475px !important;
233
+ }
234
+
235
+
236
+
237
+ /*-------------------
238
+ Height
239
+ --------------------*/
240
+
241
+ /* Standard */
242
+ .ui.top.sidebar {
243
+ margin: -40px 0px 0px 0px !important;
244
+ }
245
+ .ui.top.sidebar,
246
+ .ui.bottom.sidebar {
247
+ height: 40px !important;
248
+ }
249
+ .ui.active.bottom.sidebar {
250
+ margin-top: -40px !important;
251
+ }
@@ -14,12 +14,6 @@
14
14
 
15
15
 
16
16
  .ui.transition {
17
- -webkit-backface-visibility: hidden;
18
- -moz-backface-visibility: hidden;
19
- -ms-backface-visibility: hidden;
20
- -o-backface-visibility: hidden;
21
- backface-visibility: hidden;
22
-
23
17
  -webkit-animation-iteration-count: 1;
24
18
  -moz-animation-iteration-count: 1;
25
19
  -ms-animation-iteration-count: 1;
@@ -40,6 +34,18 @@
40
34
  -ms-animation-fill-mode: both;
41
35
  -o-animation-fill-mode: both;
42
36
  animation-fill-mode: both;
37
+ }
38
+
39
+ /*******************************
40
+ States
41
+ *******************************/
42
+
43
+ .ui.animating.transition {
44
+ -webkit-backface-visibility: hidden;
45
+ -moz-backface-visibility: hidden;
46
+ -ms-backface-visibility: hidden;
47
+ -o-backface-visibility: hidden;
48
+ backface-visibility: hidden;
43
49
 
44
50
  -webkit-transform: translateZ(0);
45
51
  -moz-transform: translateZ(0);
@@ -48,10 +54,6 @@
48
54
  transform: translateZ(0);
49
55
  }
50
56
 
51
- /*******************************
52
- States
53
- *******************************/
54
-
55
57
  /* Loading */
56
58
  .ui.loading.transition {
57
59
  position: absolute;
@@ -110,26 +110,16 @@
110
110
  -ms-box-sizing: border-box;
111
111
  box-sizing: border-box;
112
112
 
113
- -webkit-box-shadow: 0px 0px 0px 1px rbga(0, 0, 0, 0.1);
114
- -moz-box-shadow: 0px 0px 0px 1px rbga(0, 0, 0, 0.1);
115
- box-shadow: 0px 0px 0px 1px rbga(0, 0, 0, 0.1);
116
-
117
113
  -webkit-border-radius: 0.2em;
118
114
  -moz-border-radius: 0.2em;
119
115
  border-radius: 0.2em;
120
116
  }
121
117
  .ui.items .item > .image > img {
122
- position: relative;
123
118
  display: block;
124
119
  width: 100%;
125
- overflow: hidden;
126
- -webkit-border-radius: 0.2em;
127
- -moz-border-radius: 0.2em;
128
- border-radius: 0.2em;
129
120
  }
130
121
 
131
122
 
132
-
133
123
  /*--------------
134
124
  Content
135
125
  ---------------*/