less-rails-semantic_ui 1.12.0.1 → 1.12.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c17d6a7f834d2eeef2b4fefef1c8d9d84a5a8758
4
- data.tar.gz: 00f47a20560167ccdc82d0cf87c9845411a4d5f2
3
+ metadata.gz: e68a747c1e1e015fb5f6b52290ab89a386b6cc61
4
+ data.tar.gz: 375c7d3b0f2c639152d953ab256552144321cad9
5
5
  SHA512:
6
- metadata.gz: 3c5e333b5deeb8a033913b7d1fefa21f111a03e6cae675285b53610fc5106900799eb277443671e5e9e0bae96d1eb0731cac9c4657d44fcc7caa523e26689e2f
7
- data.tar.gz: f124aa9fd94c30214931ac7bedf7f423877f92566cc4852602e88994da87fad6490d282f2a4d02e6122ae892806825b49b47fcb8120556b565c0f3e06944c2b8
6
+ metadata.gz: 0293c531753e8a82a4f5355b6c31a4bbd41b453379a363b71ef9b8fcb53f4b38ee075ee663f0f73eca6f769e2ff8bb82216b28412379b6815a212867b68dce58
7
+ data.tar.gz: 83467baa6f2cfe76e8dabc1d727f25fe039cccddf7cf4f490fb8a7a4abd3bd5f10be5bc297da5634cd208ce40095f31ce8bc248cb5b8eea3f7c4218726623a3b
@@ -224,8 +224,13 @@ $.fn.dropdown = function(parameters) {
224
224
  module.refresh();
225
225
  // adjust all modules
226
226
  $firstModules = $allModules.slice(0, index);
227
- $lastModules = $allModules.slice(index + 1);
228
- $allModules = $firstModules.add($module).add($lastModules);
227
+ $lastModules = $allModules.slice(index + 1);
228
+ $allModules = $firstModules.add($module).add($lastModules);
229
+ // invoke method in context of current instance
230
+ if(methodInvoked) {
231
+ instance = module;
232
+ module.invoke(query);
233
+ }
229
234
  }
230
235
  },
231
236
 
@@ -236,7 +236,7 @@ $.fn.progress = function(parameters) {
236
236
  if(settings.precision === 0) {
237
237
  return Math.round(displayPercent);
238
238
  }
239
- return Math.round(displayPercent * (10 * settings.precision) / (10 * settings.precision) );
239
+ return Math.round(displayPercent * (10 * settings.precision)) / (10 * settings.precision);
240
240
  },
241
241
 
242
242
  percent: function() {
@@ -361,11 +361,11 @@ $.fn.progress = function(parameters) {
361
361
  percent = Math.round(percent);
362
362
  }
363
363
  else {
364
- percent = Math.round(percent * (10 * settings.precision) / (10 * settings.precision) );
364
+ percent = Math.round(percent * (10 * settings.precision)) / (10 * settings.precision);
365
365
  }
366
366
  module.percent = percent;
367
367
  if(module.total) {
368
- module.value = Math.round( (percent / 100) * module.total);
368
+ module.value = Math.round( (percent / 100) * module.total * (10 * settings.precision)) / (10 * settings.precision);
369
369
  }
370
370
  else if(settings.limitValues) {
371
371
  module.value = (module.value > 100)
@@ -41,7 +41,8 @@
41
41
  }
42
42
  .ui.input input {
43
43
  margin: 0em;
44
- flex-grow: 1;
44
+ max-width: 100%;
45
+ flex: 0 1 auto;
45
46
  outline: none;
46
47
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
47
48
  text-align: @textAlign;
@@ -65,12 +66,16 @@
65
66
  ---------------------*/
66
67
 
67
68
  /* browsers require these rules separate */
69
+
68
70
  .ui.input input::-webkit-input-placeholder {
69
71
  color: @placeholderColor;
70
72
  }
71
73
  .ui.input input::-moz-placeholder {
72
74
  color: @placeholderColor;
73
75
  }
76
+ .ui.input input::-ms-input-placeholder {
77
+ color: @placeholderColor;
78
+ }
74
79
 
75
80
 
76
81
  /*******************************
@@ -140,14 +145,19 @@
140
145
  color: @focusColor;
141
146
  box-shadow: @focusBoxShadow;
142
147
  }
143
- .ui.input.focus input input::-webkit-input-placeholder,
148
+ .ui.input.focus input::-webkit-input-placeholder,
144
149
  .ui.input input:focus input::-webkit-input-placeholder {
145
150
  color: @placeholderFocusColor;
146
151
  }
147
- .ui.input.focus input input::-moz-placeholder,
152
+ .ui.input.focus input::-moz-placeholder,
148
153
  .ui.input input:focus input::-moz-placeholder {
149
154
  color: @placeholderFocusColor;
150
155
  }
156
+ .ui.input.focus input::-ms-input-placeholder,
157
+ .ui.input input:focus input::-ms-input-placeholder {
158
+ color: @placeholderFocusColor;
159
+ }
160
+
151
161
 
152
162
 
153
163
  /*--------------------
@@ -168,6 +178,9 @@
168
178
  .ui.input.error input ::-moz-placeholder {
169
179
  color: @placeholderErrorColor;
170
180
  }
181
+ .ui.input.error input ::-ms-input-placeholder {
182
+ color: @placeholderErrorColor;
183
+ }
171
184
 
172
185
  /* Focused Error Placeholder */
173
186
  .ui.input.error input :focus::-webkit-input-placeholder {
@@ -176,6 +189,9 @@
176
189
  .ui.input.error input :focus::-moz-placeholder {
177
190
  color: @placeholderErrorFocusColor;
178
191
  }
192
+ .ui.input.error input :focus::-ms-input-placeholder {
193
+ color: @placeholderErrorFocusColor;
194
+ }
179
195
 
180
196
  /*******************************
181
197
  Variations
@@ -185,10 +201,12 @@
185
201
  Transparent
186
202
  ---------------------*/
187
203
 
204
+
188
205
  .ui.transparent.input input {
189
- border-color: transparent;
190
- background-color: transparent;
191
- padding: 0em;
206
+ border-color: transparent !important;
207
+ background-color: transparent !important;
208
+ padding: 0em !important;
209
+ box-shadow: none !important;
192
210
  }
193
211
 
194
212
  /* Transparent Icon */
@@ -200,14 +218,11 @@
200
218
  padding-right: @transparentIconMargin !important;
201
219
  }
202
220
  .ui.transparent[class*="left icon"].input > input {
203
- padding-left: 0em !important;
204
221
  padding-left: @transparentIconMargin !important;
222
+ padding-right: 0em !important;
205
223
  }
206
224
 
207
225
  /* Transparent Inverted */
208
- .ui.transparent.inverted.input input::-moz-placeholder {
209
- color: @transparentInvertedPlaceholderColor;
210
- }
211
226
  .ui.transparent.inverted.input {
212
227
  color: @transparentInvertedColor;
213
228
  }
@@ -215,6 +230,16 @@
215
230
  color: inherit;
216
231
  }
217
232
 
233
+ .ui.transparent.inverted.input input::-webkit-input-placeholder {
234
+ color: @transparentInvertedPlaceholderColor;
235
+ }
236
+ .ui.transparent.inverted.input input::-moz-placeholder {
237
+ color: @transparentInvertedPlaceholderColor;
238
+ }
239
+ .ui.transparent.inverted.input input::-ms-input-placeholder {
240
+ color: @transparentInvertedPlaceholderColor;
241
+ }
242
+
218
243
 
219
244
  /*--------------------
220
245
  Icon
@@ -280,24 +305,16 @@
280
305
  ---------------------*/
281
306
 
282
307
  /* Adjacent Label */
283
- .ui.labeled.input {
284
- display: inline-flex;
285
- }
286
308
  .ui.labeled.input > .label {
287
- flex-grow: 0;
309
+ flex: 0 0 auto;
288
310
  margin: 0;
289
- font-size: 1em;
311
+ font-size: @medium;
290
312
  }
291
313
  .ui.labeled.input > .label:not(.corner) {
292
314
  padding-top: @verticalPadding;
293
315
  padding-bottom: @verticalPadding;
294
316
  }
295
317
 
296
- /* Fluid Labeled */
297
- .ui.fluid.labeled.input {
298
- display: flex;
299
- }
300
-
301
318
  /* Label on Left */
302
319
  .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > input {
303
320
  border-left: none;
@@ -344,13 +361,11 @@
344
361
  Action
345
362
  ---------------------*/
346
363
 
347
- .ui.action.input {
348
- display: inline-flex;
349
- }
350
-
351
364
  .ui.action.input > .button,
352
365
  .ui.action.input > .buttons {
353
- flex-grow: 0;
366
+ display: flex;
367
+ align-items: center;
368
+ flex: 0 0 auto;
354
369
  }
355
370
  .ui.action.input > .button,
356
371
  .ui.action.input > .buttons > .button {
@@ -359,11 +374,6 @@
359
374
  margin: 0;
360
375
  }
361
376
 
362
- /* Fluid */
363
- .ui.fluid.action.input {
364
- display: flex;
365
- }
366
-
367
377
  /* Button on Right */
368
378
  .ui.action.input:not([class*="left action"]) > input {
369
379
  border-right: none;
@@ -397,7 +407,6 @@
397
407
  border: none;
398
408
  }
399
409
 
400
-
401
410
  /*--------------------
402
411
  Fluid
403
412
  ---------------------*/
@@ -405,31 +414,34 @@
405
414
  .ui.fluid.input {
406
415
  display: flex;
407
416
  }
417
+ .ui.fluid.input > input {
418
+ width: 100% !important;
419
+ }
408
420
 
409
421
  /*--------------------
410
422
  Size
411
423
  ---------------------*/
412
424
 
413
425
  .ui.mini.input {
414
- font-size: @mini;
426
+ font-size: @relativeMini;
415
427
  }
416
428
  .ui.small.input {
417
- font-size: @small;
429
+ font-size: @relativeSmall;
418
430
  }
419
431
  .ui.input {
420
- font-size: @medium;
432
+ font-size: @relativeMedium;
421
433
  }
422
434
  .ui.large.input {
423
- font-size: @large;
435
+ font-size: @relativeLarge;
424
436
  }
425
437
  .ui.big.input {
426
- font-size: @big;
438
+ font-size: @relativeBig;
427
439
  }
428
440
  .ui.huge.input {
429
- font-size: @huge;
441
+ font-size: @relativeHuge;
430
442
  }
431
443
  .ui.massive.input {
432
- font-size: @massive;
444
+ font-size: @relativeMassive;
433
445
  }
434
446
 
435
- .loadUIOverrides();
447
+ .loadUIOverrides();
@@ -36,9 +36,6 @@
36
36
  top: 0px;
37
37
  right: 0px;
38
38
 
39
- /* Fixes content being squished when inline (moz only) */
40
- min-width: -moz-max-content;
41
-
42
39
  z-index: @zIndex;
43
40
 
44
41
  border: @border;
@@ -1,7 +1,7 @@
1
1
  module Less
2
2
  module Rails
3
3
  module SemanticUI
4
- VERSION = '1.12.0.1'
4
+ VERSION = '1.12.1.0'
5
5
  end
6
6
  end
7
7
  end
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.12.0.1
4
+ version: 1.12.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: 2015-04-26 00:00:00.000000000 Z
11
+ date: 2015-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: less-rails