romo 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/css/romo/_mixins.scss +7 -0
- data/assets/css/romo/base.scss +29 -0
- data/assets/css/romo/table.scss +2 -1
- data/assets/js/romo/base.js +46 -40
- data/assets/js/romo/datepicker.js +2 -2
- data/assets/js/romo/select_dropdown.js +2 -2
- data/lib/romo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16d72f11af0d881ebd4e76ccf12a06e53473d9f4
|
4
|
+
data.tar.gz: 97e1dfa59a23f0827a8cf60624f7ad0f6a107a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e12d453756d7f6a7baef313f5dcd07ac8ff6923518f7851ba4254feb6f8285760537aed1ccf44f4896424832491b6d7f6763c2742e6894b17a4e2ae52e2fc3b
|
7
|
+
data.tar.gz: 5a65efd854311ec7898109aa1e2504efcb514ec2562e6bdb65340c5586bd1c276c11b5b52c6081c8178d6a524f119f36417f3d575a302309455ee6532f6cb29b
|
@@ -120,6 +120,13 @@
|
|
120
120
|
@mixin text2($i:"") { @include font-size2($i); @include line-height2($i); }
|
121
121
|
@mixin text3($i:"") { @include font-size3($i); @include line-height3($i); }
|
122
122
|
|
123
|
+
/* text decoration */
|
124
|
+
|
125
|
+
@mixin text-decoration-underline($i:"") { text-decoration: underline #{$i}; }
|
126
|
+
@mixin text-decoration-overline($i:"") { text-decoration: overline #{$i}; }
|
127
|
+
@mixin text-decoration-line-through($i:"") { text-decoration: line-through #{$i}; }
|
128
|
+
@mixin text-decoration-none($i:"") { text-decoration: none #{$i}; }
|
129
|
+
|
123
130
|
/* text alignment */
|
124
131
|
|
125
132
|
@mixin align-left($i:"") { text-align: left #{$i}; }
|
data/assets/css/romo/base.scss
CHANGED
@@ -159,6 +159,20 @@ h3 { @include text1; }
|
|
159
159
|
.romo-text-800 { @include font-weight(800, !important); }
|
160
160
|
.romo-text-900 { @include font-weight(900, !important); }
|
161
161
|
|
162
|
+
/* text decoration */
|
163
|
+
|
164
|
+
.romo-text-underline { @include text-decoration-underline(!important); }
|
165
|
+
.romo-text-overline { @include text-decoration-overline(!important); }
|
166
|
+
.romo-text-line-through,
|
167
|
+
.romo-text-strikethrough { @include text-decoration-line-through(!important); }
|
168
|
+
.romo-text-no-line { @include text-decoration-none(!important); }
|
169
|
+
|
170
|
+
.romo-text-underline-hover:hover { @include text-decoration-underline(!important); }
|
171
|
+
.romo-text-overline-hover:hover { @include text-decoration-overline(!important); }
|
172
|
+
.romo-text-line-through-hover:hover,
|
173
|
+
.romo-text-strikethrough-hover:hover { @include text-decoration-line-through(!important); }
|
174
|
+
.romo-text-no-line-hover:hover { @include text-decoration-none(!important); }
|
175
|
+
|
162
176
|
/* alignment */
|
163
177
|
|
164
178
|
.romo-align-left { @include align-left(!important); }
|
@@ -355,64 +369,78 @@ h3 { @include text1; }
|
|
355
369
|
.romo-pad1 { @include pad1(!important); }
|
356
370
|
.romo-pad0 { @include pad0(!important); }
|
357
371
|
.romo-pad2 { @include pad2(!important); }
|
372
|
+
.romo-pad-none,
|
358
373
|
.romo-rm-pad { @include rm-pad(!important); }
|
359
374
|
|
360
375
|
.romo-pad-top,
|
361
376
|
.romo-pad1-top { @include pad1-top(!important); }
|
362
377
|
.romo-pad0-top { @include pad0-top(!important); }
|
363
378
|
.romo-pad2-top { @include pad2-top(!important); }
|
379
|
+
.romo-pad-none-top,
|
364
380
|
.romo-rm-pad-top { @include rm-pad-top(!important); }
|
365
381
|
|
366
382
|
.romo-pad-right,
|
367
383
|
.romo-pad1-right { @include pad1-right(!important); }
|
368
384
|
.romo-pad0-right { @include pad0-right(!important); }
|
369
385
|
.romo-pad2-right { @include pad2-right(!important); }
|
386
|
+
.romo-pad-none-right,
|
370
387
|
.romo-rm-pad-right { @include rm-pad-right(!important); }
|
371
388
|
|
372
389
|
.romo-pad-bottom,
|
373
390
|
.romo-pad1-bottom { @include pad1-bottom(!important); }
|
374
391
|
.romo-pad0-bottom { @include pad0-bottom(!important); }
|
375
392
|
.romo-pad2-bottom { @include pad2-bottom(!important); }
|
393
|
+
.romo-pad-none-bottom,
|
376
394
|
.romo-rm-pad-bottom { @include rm-pad-bottom(!important); }
|
377
395
|
|
378
396
|
.romo-pad-left,
|
379
397
|
.romo-pad1-left { @include pad1-left(!important); }
|
380
398
|
.romo-pad0-left { @include pad0-left(!important); }
|
381
399
|
.romo-pad2-left { @include pad2-left(!important); }
|
400
|
+
.romo-pad-none-left,
|
382
401
|
.romo-rm-pad-left { @include rm-pad-left(!important); }
|
383
402
|
|
384
403
|
.romo-push,
|
385
404
|
.romo-push1 { @include push1(!important); }
|
386
405
|
.romo-push0 { @include push0(!important); }
|
387
406
|
.romo-push2 { @include push2(!important); }
|
407
|
+
.romo-push-none,
|
388
408
|
.romo-rm-push { @include rm-push(!important); }
|
389
409
|
|
390
410
|
.romo-push-top,
|
391
411
|
.romo-push1-top { @include push1-top(!important); }
|
392
412
|
.romo-push0-top { @include push0-top(!important); }
|
393
413
|
.romo-push2-top { @include push2-top(!important); }
|
414
|
+
.romo-push-none-top,
|
394
415
|
.romo-rm-push-top { @include rm-push-top(!important); }
|
395
416
|
|
396
417
|
.romo-push-right,
|
397
418
|
.romo-push1-right { @include push1-right(!important); }
|
398
419
|
.romo-push0-right { @include push0-right(!important); }
|
399
420
|
.romo-push2-right { @include push2-right(!important); }
|
421
|
+
.romo-push-none-right,
|
400
422
|
.romo-rm-push-right { @include rm-push-right(!important); }
|
401
423
|
|
402
424
|
.romo-push-bottom,
|
403
425
|
.romo-push1-bottom { @include push1-bottom(!important); }
|
404
426
|
.romo-push0-bottom { @include push0-bottom(!important); }
|
405
427
|
.romo-push2-bottom { @include push2-bottom(!important); }
|
428
|
+
.romo-push-none-bottom,
|
406
429
|
.romo-rm-push-bottom { @include rm-push-bottom(!important); }
|
407
430
|
|
408
431
|
.romo-push-left,
|
409
432
|
.romo-push1-left { @include push1-left(!important); }
|
410
433
|
.romo-push0-left { @include push0-left(!important); }
|
411
434
|
.romo-push2-left { @include push2-left(!important); }
|
435
|
+
.romo-push-none-left,
|
412
436
|
.romo-rm-push-left { @include rm-push-left(!important); }
|
413
437
|
|
438
|
+
.romo-push-center { margin: 0 auto !important; }
|
439
|
+
|
414
440
|
/* other helpers */
|
415
441
|
|
442
|
+
.romo-full-width { width: 100%; }
|
443
|
+
.romo-full-height { width: 100%; }
|
416
444
|
.romo-match-line-height { line-height: 1 !important; }
|
417
445
|
|
418
446
|
.romo-nowrap { white-space: nowrap !important; }
|
@@ -424,6 +452,7 @@ h3 { @include text1; }
|
|
424
452
|
.romo-inline-flex { @include display-inline-flex(!important); }
|
425
453
|
.romo-flex { @include display-flex(!important); }
|
426
454
|
.romo-block { display: block !important; }
|
455
|
+
.romo-display-none { display: none !important;}
|
427
456
|
|
428
457
|
.romo-relative { position: relative !important; }
|
429
458
|
.romo-absolute { position: absolute !important; }
|
data/assets/css/romo/table.scss
CHANGED
data/assets/js/romo/base.js
CHANGED
@@ -29,46 +29,52 @@
|
|
29
29
|
return $(elems);
|
30
30
|
}
|
31
31
|
|
32
|
-
Romo.prototype.initHtml = function(
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
32
|
+
Romo.prototype.initHtml = function(elems, data) {
|
33
|
+
elems.each($.proxy(function(index, elem) {
|
34
|
+
var htmlElems = $(data)
|
35
|
+
$(elem).html(htmlElems);
|
36
|
+
this.triggerInitUI(htmlElems);
|
37
|
+
}, this));
|
38
|
+
}
|
39
|
+
|
40
|
+
Romo.prototype.initReplace = function(elems, data) {
|
41
|
+
elems.each($.proxy(function(index, elem) {
|
42
|
+
var replacementElem = $(data);
|
43
|
+
$(elem).replaceWith(replacementElem);
|
44
|
+
this.triggerInitUI(replacementElem);
|
45
|
+
}, this));
|
46
|
+
}
|
47
|
+
|
48
|
+
Romo.prototype.initPrepend = function(elems, data) {
|
49
|
+
elems.each($.proxy(function(index, elem) {
|
50
|
+
var prependedElem = $(data);
|
51
|
+
$(elem).prepend(prependedElem);
|
52
|
+
this.triggerInitUI(prependedElem);
|
53
|
+
}, this));
|
54
|
+
}
|
55
|
+
|
56
|
+
Romo.prototype.initAppend = function(elems, data) {
|
57
|
+
elems.each($.proxy(function(index, elem) {
|
58
|
+
var appendedElem = $(data);
|
59
|
+
$(elem).append(appendedElem);
|
60
|
+
this.triggerInitUI(appendedElem);
|
61
|
+
}, this));
|
62
|
+
}
|
63
|
+
|
64
|
+
Romo.prototype.initBefore = function(elems, data) {
|
65
|
+
elems.each($.proxy(function(index, elem) {
|
66
|
+
var insertedElem = $(data);
|
67
|
+
$(elem).before(insertedElem);
|
68
|
+
this.triggerInitUI(insertedElem);
|
69
|
+
}, this));
|
70
|
+
}
|
71
|
+
|
72
|
+
Romo.prototype.initAfter = function(elems, data) {
|
73
|
+
elems.each($.proxy(function(index, elem) {
|
74
|
+
var insertedElem = $(data);
|
75
|
+
$(elem).after(insertedElem);
|
76
|
+
this.triggerInitUI(insertedElem);
|
77
|
+
}, this));
|
72
78
|
}
|
73
79
|
|
74
80
|
// page handling
|
@@ -150,7 +150,7 @@ RomoDatepicker.prototype.doRefreshUI = function(date) {
|
|
150
150
|
this._refreshCalendar(rDate);
|
151
151
|
this.elem.trigger('datepicker:refresh', [rDate, this]);
|
152
152
|
|
153
|
-
this.calTable.find(this.itemSelector).on('
|
153
|
+
this.calTable.find(this.itemSelector).on('mouseenter', $.proxy(this.onItemEnter, this));
|
154
154
|
this.calTable.find(this.itemSelector).on('click', $.proxy(this.onItemClick, this));
|
155
155
|
|
156
156
|
this.romoDropdown.popupElem.on('mousedown', $.proxy(this.onPopupMouseDown, this));
|
@@ -228,7 +228,7 @@ RomoDatepicker.prototype.onPopupClose = function(e) {
|
|
228
228
|
this._highlightItem($());
|
229
229
|
}
|
230
230
|
|
231
|
-
RomoDatepicker.prototype.
|
231
|
+
RomoDatepicker.prototype.onItemEnter = function(e) {
|
232
232
|
if (e !== undefined) {
|
233
233
|
e.preventDefault();
|
234
234
|
e.stopPropagation();
|
@@ -80,7 +80,7 @@ RomoSelectDropdown.prototype.doBindDropdown = function() {
|
|
80
80
|
this.romoDropdown.bodyElem.html('');
|
81
81
|
this.romoDropdown.bodyElem.append(this.optionList);
|
82
82
|
|
83
|
-
this.romoDropdown.bodyElem.find(this.itemSelector).on('
|
83
|
+
this.romoDropdown.bodyElem.find(this.itemSelector).on('mouseenter', $.proxy(this.onItemEnter, this));
|
84
84
|
this.romoDropdown.bodyElem.find(this.itemSelector).on('click', $.proxy(this.onItemClick, this));
|
85
85
|
|
86
86
|
this.romoDropdown.popupElem.on('mousedown', $.proxy(this.onPopupMouseDown, this));
|
@@ -113,7 +113,7 @@ RomoSelectDropdown.prototype.onPopupClose = function(e) {
|
|
113
113
|
$('body').off('keydown', $.proxy(this.onPopupOpenBodyKeyDown, this));
|
114
114
|
}
|
115
115
|
|
116
|
-
RomoSelectDropdown.prototype.
|
116
|
+
RomoSelectDropdown.prototype.onItemEnter = function(e) {
|
117
117
|
if (e !== undefined) {
|
118
118
|
e.preventDefault();
|
119
119
|
e.stopPropagation();
|
data/lib/romo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: romo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Redding
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: assert
|