formagic 0.2.6 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -1
- data/app/assets/javascripts/formagic/form.coffee +1 -1
- data/app/assets/javascripts/formagic/inputs/checkbox.coffee +1 -1
- data/app/assets/javascripts/formagic/inputs/document.coffee +1 -1
- data/app/assets/javascripts/formagic/inputs/documents.coffee +1 -1
- data/app/assets/javascripts/formagic/inputs/file.coffee +1 -1
- data/app/assets/javascripts/formagic/inputs/select.coffee +1 -1
- data/app/assets/javascripts/formagic/inputs/string.coffee +2 -3
- data/app/assets/stylesheets/formagic/checkbox.scss +14 -6
- data/app/assets/stylesheets/formagic/color.scss +10 -8
- data/app/assets/stylesheets/formagic/date.scss +38 -17
- data/app/assets/stylesheets/formagic/file.scss +62 -21
- data/app/assets/stylesheets/formagic/form.scss +70 -24
- data/app/assets/stylesheets/formagic/group.scss +20 -10
- data/app/assets/stylesheets/formagic/image.scss +14 -13
- data/app/assets/stylesheets/formagic/list.scss +71 -27
- data/app/assets/stylesheets/formagic/nested-form.scss +73 -18
- data/app/assets/stylesheets/formagic/redactor-character.scss +42 -18
- data/app/assets/stylesheets/formagic/select.scss +113 -3
- data/app/assets/stylesheets/formagic/string.scss +22 -9
- data/app/assets/stylesheets/formagic/switch.scss +52 -48
- data/app/assets/stylesheets/formagic/text.scss +8 -5
- data/app/assets/stylesheets/formagic.scss +64 -3
- data/formagic.gemspec +3 -0
- data/lib/formagic/version.rb +1 -1
- data/lib/formagic.rb +3 -0
- metadata +30 -4
- data/app/assets/stylesheets/formagic/label.scss +0 -27
- data/app/assets/stylesheets/formagic/select2.scss +0 -113
@@ -1,23 +1,78 @@
|
|
1
|
-
|
1
|
+
/* Nested Forms ------------------------------------------- */
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
& > ul > li { list-style-type: none; margin-top: 1em; @include position(relative); border: 1px solid $neutralColor; }
|
7
|
-
& > ul > li:first-child { margin-top: 0; }
|
8
|
-
& > ul > li > .icon-reorder { left: 0; top: 1em; z-index: 1; }
|
9
|
-
& > ul li.reorderable { background-color: $white; }
|
10
|
-
& > ul li.reorderable > .input-stacked:first-of-type { padding-left: 2.4em; }
|
3
|
+
.nested-forms {
|
4
|
+
& > .label {
|
5
|
+
margin-bottom : .25em;
|
11
6
|
}
|
12
7
|
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
& > ul {
|
9
|
+
margin : 0;
|
10
|
+
padding : 0;
|
16
11
|
}
|
17
12
|
|
18
|
-
|
19
|
-
@include position(
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
13
|
+
& > ul > li {
|
14
|
+
@include position(relative);
|
15
|
+
list-style-type : none;
|
16
|
+
margin-top : 1em;
|
17
|
+
border : 1px solid $formagic-border-color;
|
18
|
+
|
19
|
+
&:first-child {
|
20
|
+
margin-top : 0;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
& > ul > li > .icon-reorder {
|
25
|
+
z-index : 1;
|
26
|
+
left : 0;
|
27
|
+
top : 1em;
|
28
|
+
}
|
29
|
+
|
30
|
+
& > ul li.reorderable {
|
31
|
+
background-color : white;
|
32
|
+
|
33
|
+
& > .form-input:first-of-type {
|
34
|
+
padding-left : 2.4em;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.nested-form-new {
|
40
|
+
margin-top : .75em;
|
41
|
+
font-size : .9em;
|
42
|
+
display : inline-block;
|
43
|
+
color : $formagic-positive-color;
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
opacity : .5;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
.nested-form-delete {
|
51
|
+
@include position(absolute, .35em .3em null null);
|
52
|
+
@include hide-text;
|
53
|
+
|
54
|
+
background-color : rgba(0,0,0,.05);
|
55
|
+
border-radius : 1em;
|
56
|
+
z-index : 1;
|
57
|
+
height : 1.5em;
|
58
|
+
width : 1.5em;
|
59
|
+
|
60
|
+
&:before {
|
61
|
+
@include position(absolute, null 7px null null);
|
62
|
+
line-height : 1.35em;
|
63
|
+
content : '\00d7';
|
64
|
+
color : $formagic-label-color;
|
65
|
+
}
|
66
|
+
|
67
|
+
&:hover {
|
68
|
+
background-color : $formagic-positive-color;
|
69
|
+
|
70
|
+
&:before {
|
71
|
+
color : white;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
@@ -1,41 +1,65 @@
|
|
1
|
-
|
2
|
-
// Redactor styles improvements for chr
|
3
|
-
// --------------------------------------
|
1
|
+
/* Redactor styles improvements for Chraracter ------------ */
|
4
2
|
|
5
3
|
// input
|
6
4
|
|
7
5
|
.input-inverter,
|
8
6
|
.input-redactor {
|
9
|
-
.redactor-box
|
10
|
-
|
11
|
-
|
7
|
+
.redactor-box {
|
8
|
+
margin-bottom : 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
.redactor-toolbar {
|
12
|
+
border-bottom : 2px solid $formagic-border-color;
|
13
|
+
box-shadow : none;
|
14
|
+
}
|
15
|
+
|
16
|
+
.redactor-editor {
|
17
|
+
border : 0;
|
18
|
+
padding : 1em .5em 0 .5em;
|
19
|
+
}
|
12
20
|
}
|
13
21
|
|
14
22
|
// toolbar
|
15
23
|
|
16
|
-
.redactor-toolbar li a:hover { background-color: $
|
17
|
-
.redactor-dropdown a:hover
|
24
|
+
.redactor-toolbar li a:hover { background-color: $formagic-positive-color; }
|
25
|
+
.redactor-dropdown a:hover { background-color: $formagic-positive-color; }
|
18
26
|
|
19
27
|
// placeholder
|
20
28
|
|
21
|
-
.redactor-placeholder:after {
|
29
|
+
.redactor-placeholder:after {
|
30
|
+
color : $formagic-placeholder-color!important;
|
31
|
+
left : .5em;
|
32
|
+
top : 18px;
|
33
|
+
}
|
22
34
|
|
23
35
|
// scrollbars
|
24
36
|
|
25
|
-
.redactor-editor, textarea.redactor { @include custom-scrollbar; }
|
37
|
+
.redactor-editor, textarea.redactor { @include custom-scrollbar(rgba($formagic-base-color, .5), $formagic-border-color, 3px); }
|
26
38
|
|
27
39
|
// line-height issue fix
|
28
40
|
|
29
|
-
.redactor-editor {
|
41
|
+
.redactor-editor {
|
42
|
+
line-height: inherit !important;
|
43
|
+
}
|
30
44
|
|
31
45
|
// modal
|
32
46
|
|
33
|
-
#redactor-modal-close {
|
47
|
+
#redactor-modal-close {
|
48
|
+
line-height : 30px;
|
49
|
+
text-align : center;
|
50
|
+
}
|
51
|
+
|
34
52
|
#redactor-modal footer button {
|
35
|
-
&.redactor-modal-close-btn { background-color: $
|
36
|
-
&:hover { background-color: $
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
53
|
+
&.redactor-modal-close-btn { background-color: $formagic-placeholder-color;
|
54
|
+
&:hover { background-color: $formagic-placeholder-color; opacity: .75; } }
|
55
|
+
|
56
|
+
&.redactor-modal-action-btn { background-color: $formagic-positive-color;
|
57
|
+
&:hover { background-color: $formagic-positive-color; opacity: .75; color: white; } }
|
58
|
+
|
59
|
+
&.redactor-modal-delete-btn { background-color: $formagic-assertive-color;
|
60
|
+
&:hover { background-color: $formagic-assertive-color; opacity: .75; color: white; } }
|
41
61
|
}
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
@@ -1,5 +1,115 @@
|
|
1
|
-
//
|
1
|
+
// Select & Select 2 Inputs -------------------------------
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
@import "vendor/select2";
|
4
|
+
|
5
|
+
.input-select {
|
6
|
+
select {
|
7
|
+
margin-top : 0.15em;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.input-select2 {
|
12
|
+
padding-bottom : .3em;
|
13
|
+
}
|
14
|
+
|
15
|
+
.select2-dropdown,
|
16
|
+
.select2-container--default .select2-selection--single {
|
17
|
+
border-color : $formagic-border-color;
|
18
|
+
border-radius : 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.select2-container--default .select2-selection--single {
|
22
|
+
border : 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
.select2-container--open .select2-dropdown--above {
|
26
|
+
border-top : none;
|
27
|
+
border : 1px solid $formagic-border-color;
|
28
|
+
}
|
29
|
+
|
30
|
+
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
31
|
+
line-height : 1.4em;
|
32
|
+
color : $formagic-base-color;
|
33
|
+
}
|
34
|
+
|
35
|
+
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
36
|
+
border-color : $formagic-positive-color transparent transparent transparent;
|
5
37
|
}
|
38
|
+
|
39
|
+
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
40
|
+
border-color : transparent transparent $formagic-positive-color transparent;
|
41
|
+
}
|
42
|
+
|
43
|
+
.select2-container--default .select2-search--dropdown .select2-search__field {
|
44
|
+
border-color : darken($formagic-border-color, 5%);
|
45
|
+
|
46
|
+
&:focus {
|
47
|
+
border-color : $formagic-label-color;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.select2-container--default * {
|
52
|
+
@include no-focus-outline;
|
53
|
+
}
|
54
|
+
|
55
|
+
.select2-container--default .select2-results__option[aria-selected=true] {
|
56
|
+
background-color : $formagic-border-color;
|
57
|
+
color : $formagic-base-color;
|
58
|
+
}
|
59
|
+
|
60
|
+
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
61
|
+
background-color : $formagic-positive-color;
|
62
|
+
color : white;
|
63
|
+
}
|
64
|
+
|
65
|
+
.select2-container--default .select2-results__option[aria-selected=true] {
|
66
|
+
&:hover {
|
67
|
+
background-color : $formagic-positive-color;
|
68
|
+
color : white;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
.select2-container--default .select2-results > .select2-results__options {
|
73
|
+
@include custom-scrollbar(rgba($formagic-base-color, .5), $formagic-border-color, 3px);
|
74
|
+
}
|
75
|
+
|
76
|
+
.select2-dropdown--below {
|
77
|
+
top : -4px;
|
78
|
+
}
|
79
|
+
|
80
|
+
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
81
|
+
left : 1px;
|
82
|
+
}
|
83
|
+
|
84
|
+
.select2-container .select2-selection--single .select2-selection__rendered {
|
85
|
+
padding-right : 8px;
|
86
|
+
padding-left : 20px;
|
87
|
+
padding-top : 2px;
|
88
|
+
}
|
89
|
+
|
90
|
+
.select2-search--dropdown {
|
91
|
+
padding : 0;
|
92
|
+
margin : 0 -1px;
|
93
|
+
}
|
94
|
+
|
95
|
+
.select2-container .select2-search--inline {
|
96
|
+
padding-left : .5em;
|
97
|
+
}
|
98
|
+
|
99
|
+
.select2-container--default .select2-selection--multiple {
|
100
|
+
border-radius : 0;
|
101
|
+
}
|
102
|
+
|
103
|
+
.select2-container .select2-selection--multiple {
|
104
|
+
min-height : 28px;
|
105
|
+
}
|
106
|
+
|
107
|
+
.select2-container--default .select2-search--inline .select2-search__field,
|
108
|
+
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
109
|
+
margin-top : 3px;
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
@@ -1,14 +1,27 @@
|
|
1
|
-
|
1
|
+
/* String Input ------------------------------------------- */
|
2
2
|
|
3
|
-
.
|
3
|
+
.input-string {
|
4
|
+
.twitter-typeahead {
|
5
|
+
width : 100%;
|
6
|
+
}
|
4
7
|
|
5
|
-
.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
p { line-height: 1.5; margin: 0; }
|
10
|
-
&.tt-cursor { opacity: 1; }
|
11
|
-
}
|
8
|
+
.tt-suggestions {
|
9
|
+
background : rgba(255,255,255, .95);
|
10
|
+
padding : .1em .5em;
|
11
|
+
margin : 0 0 0 -.5em;
|
12
12
|
}
|
13
13
|
|
14
|
+
.tt-suggestion {
|
15
|
+
opacity : .5;
|
16
|
+
cursor : pointer;
|
17
|
+
|
18
|
+
p {
|
19
|
+
line-height : 1.5;
|
20
|
+
margin : 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
&.tt-cursor {
|
24
|
+
opacity : 1;
|
25
|
+
}
|
26
|
+
}
|
14
27
|
}
|
@@ -1,86 +1,90 @@
|
|
1
|
-
// switch
|
2
|
-
|
3
1
|
/* Switch ------------------------------------------------- */
|
4
2
|
@mixin switch {
|
5
|
-
$switch-width: 52px;
|
6
|
-
$switch-padding: 2px;
|
7
|
-
$switch-height: 32px;
|
8
|
-
$switch-radius: $switch-height;
|
9
|
-
$knob-size: $switch-height - ($switch-padding * 2);
|
10
|
-
$knob-radius: $switch-height - ($switch-padding * 2);
|
11
|
-
$knob-width: $knob-size;
|
12
|
-
$switch-background:
|
13
|
-
$switch-border-background: $
|
14
|
-
$switch-shadow: 0 0px 2px transparentize(black, 0.6);
|
3
|
+
$switch-width : 52px;
|
4
|
+
$switch-padding : 2px;
|
5
|
+
$switch-height : 32px;
|
6
|
+
$switch-radius : $switch-height;
|
7
|
+
$knob-size : $switch-height - ($switch-padding * 2);
|
8
|
+
$knob-radius : $switch-height - ($switch-padding * 2);
|
9
|
+
$knob-width : $knob-size;
|
10
|
+
$switch-background : white;
|
11
|
+
$switch-border-background : darken($formagic-border-color, 5%);
|
12
|
+
$switch-shadow : 0 0px 2px transparentize(black, 0.6);
|
15
13
|
|
16
|
-
border-radius: $switch-radius;
|
17
|
-
|
18
|
-
display: inline-block;
|
19
|
-
|
20
|
-
|
21
|
-
width: $switch-width;
|
14
|
+
border-radius : $switch-radius;
|
15
|
+
position : relative;
|
16
|
+
display : inline-block;
|
17
|
+
cursor : pointer;
|
18
|
+
height : $switch-height;
|
19
|
+
width : $switch-width;
|
22
20
|
|
23
21
|
input[type="checkbox"] {
|
24
|
-
display: none;
|
22
|
+
display : none;
|
25
23
|
|
26
24
|
+ .checkbox {
|
27
25
|
@include transition(all 0.3s ease);
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
26
|
+
border-radius : $switch-radius;
|
27
|
+
background : $switch-border-background;
|
28
|
+
position : relative;
|
29
|
+
z-index : 0;
|
30
|
+
padding : 0;
|
31
|
+
border : none;
|
32
|
+
cursor : pointer;
|
33
|
+
height : $switch-height;
|
34
|
+
margin : 0;
|
35
|
+
width : $switch-width;
|
38
36
|
|
39
37
|
&:before {
|
40
38
|
@include position(absolute, 2px 0 0 2px);
|
41
39
|
@include transform(scale(1));
|
42
40
|
@include transition(all 0.3s ease);
|
43
|
-
|
44
|
-
|
45
|
-
content: "";
|
46
|
-
|
47
|
-
|
48
|
-
|
41
|
+
border-radius : $switch-radius;
|
42
|
+
background : $switch-background;
|
43
|
+
content : "";
|
44
|
+
z-index : 1;
|
45
|
+
height : $knob-radius;
|
46
|
+
width : $switch-width - ($switch-padding * 2);
|
49
47
|
}
|
50
48
|
|
51
49
|
&:after {
|
52
50
|
@include position(absolute, 2px 0 0 2px);
|
53
51
|
@include transition(all 0.3s ease);
|
54
52
|
@include size($knob-size);
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
content: "";
|
59
|
-
z-index: 2;
|
53
|
+
border-radius : $knob-radius;
|
54
|
+
box-shadow : $switch-shadow;
|
55
|
+
background : $switch-background;
|
56
|
+
content : "";
|
57
|
+
z-index : 2;
|
60
58
|
}
|
61
59
|
}
|
62
60
|
|
63
61
|
&:checked {
|
64
62
|
+ .checkbox {
|
65
|
-
background: $
|
63
|
+
background : $formagic-positive-color;
|
66
64
|
|
67
65
|
&:before {
|
68
66
|
@include transform(scale(0));
|
69
67
|
}
|
70
68
|
|
71
69
|
&:after {
|
72
|
-
left: $switch-width - $knob-width - ($switch-padding);
|
70
|
+
left : $switch-width - $knob-width - ($switch-padding);
|
73
71
|
}
|
74
72
|
}
|
75
73
|
}
|
76
74
|
}
|
77
75
|
}
|
78
76
|
|
79
|
-
.
|
80
|
-
|
81
|
-
.
|
82
|
-
|
83
|
-
|
77
|
+
.input-switch {
|
78
|
+
padding-top: .75em;
|
79
|
+
.label {
|
80
|
+
cursor : pointer;
|
81
|
+
}
|
82
|
+
.switch {
|
83
|
+
@include switch;
|
84
|
+
float : right;
|
84
85
|
}
|
85
|
-
|
86
86
|
}
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
@@ -1,9 +1,12 @@
|
|
1
|
-
|
1
|
+
/* Text Input --------------------------------------------- */
|
2
2
|
|
3
|
-
.
|
3
|
+
.input-text {
|
4
|
+
min-height : 82px;
|
4
5
|
|
5
|
-
|
6
|
-
|
6
|
+
textarea {
|
7
|
+
box-sizing : border-box;
|
8
|
+
min-height : 20px;
|
9
|
+
overflow : auto;
|
10
|
+
resize : none;
|
7
11
|
}
|
8
|
-
|
9
12
|
}
|
@@ -1,5 +1,63 @@
|
|
1
|
+
@import "normalize-rails";
|
2
|
+
|
3
|
+
$formagic-base-color : rgb( 89, 89, 89) !default;
|
4
|
+
$formagic-positive-color : rgb( 74,135,238) !default;
|
5
|
+
$formagic-assertive-color : rgb(239, 78, 58) !default;
|
6
|
+
$formagic-label-color : lighten($formagic-base-color, 25%);
|
7
|
+
$formagic-placeholder-color : rgb(210,210,210) !default;
|
8
|
+
$formagic-border-color : rgb(246,246,246) !default;
|
9
|
+
|
10
|
+
@mixin custom-scrollbar($color, $bg-color, $radius) {
|
11
|
+
&::-webkit-scrollbar { width: 6px; background-color: $bg-color; }
|
12
|
+
&::-webkit-scrollbar-thumb { background-color: $color; border-radius: $radius; }
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin bottom-border($color) {
|
16
|
+
&:after {
|
17
|
+
@include position(absolute, null 0px 0px 1em);
|
18
|
+
background-color : $color;
|
19
|
+
content : '';
|
20
|
+
display : block;
|
21
|
+
height : 1px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
@mixin no-bottom-border {
|
26
|
+
&:after {
|
27
|
+
visibility : hidden;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@mixin no-focus-outline {
|
32
|
+
&:focus {
|
33
|
+
outline : none;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin no-outline {
|
38
|
+
@include no-focus-outline;
|
39
|
+
outline : none;
|
40
|
+
border : none;
|
41
|
+
}
|
42
|
+
|
43
|
+
@mixin icon-reorder($color) {
|
44
|
+
display : block;
|
45
|
+
height : 40px;
|
46
|
+
width : 40px;
|
47
|
+
|
48
|
+
&:before {
|
49
|
+
content : '';
|
50
|
+
display : block;
|
51
|
+
height : 40px;
|
52
|
+
width : 40px;
|
53
|
+
background-position : 10px 10px;
|
54
|
+
background-repeat : no-repeat;
|
55
|
+
background-image : url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><line x1='0' y1='8' x2='20' y2='8' stroke-width='2' stroke='#{ $color }' /><line x1='0' y1='12' x2='20' y2='12' stroke-width='2' stroke='#{ $color }' /></svg>");
|
56
|
+
background-size : 20px 20px;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
1
60
|
@import "formagic/form";
|
2
|
-
@import "formagic/label";
|
3
61
|
@import "formagic/checkbox";
|
4
62
|
@import "formagic/color";
|
5
63
|
@import "formagic/date";
|
@@ -10,7 +68,10 @@
|
|
10
68
|
@import "formagic/nested-form";
|
11
69
|
@import "formagic/redactor-character";
|
12
70
|
@import "formagic/select";
|
13
|
-
@import "formagic/select2";
|
14
71
|
@import "formagic/string";
|
15
72
|
@import "formagic/switch";
|
16
|
-
@import "formagic/text";
|
73
|
+
@import "formagic/text";
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
data/formagic.gemspec
CHANGED
@@ -25,6 +25,9 @@ This supposed to be working with Rails on the first place.
|
|
25
25
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
26
|
s.require_paths = ["lib"]
|
27
27
|
|
28
|
+
s.add_dependency 'bourbon', '>= 3.2'
|
29
|
+
s.add_dependency 'normalize-rails', '>= 3.0'
|
30
|
+
|
28
31
|
s.add_development_dependency "bundler", "~> 1.9"
|
29
32
|
s.add_development_dependency "rake", "~> 10.0"
|
30
33
|
end
|
data/lib/formagic/version.rb
CHANGED
data/lib/formagic.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formagic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bourbon
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: normalize-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: bundler
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,12 +136,10 @@ files:
|
|
108
136
|
- app/assets/stylesheets/formagic/form.scss
|
109
137
|
- app/assets/stylesheets/formagic/group.scss
|
110
138
|
- app/assets/stylesheets/formagic/image.scss
|
111
|
-
- app/assets/stylesheets/formagic/label.scss
|
112
139
|
- app/assets/stylesheets/formagic/list.scss
|
113
140
|
- app/assets/stylesheets/formagic/nested-form.scss
|
114
141
|
- app/assets/stylesheets/formagic/redactor-character.scss
|
115
142
|
- app/assets/stylesheets/formagic/select.scss
|
116
|
-
- app/assets/stylesheets/formagic/select2.scss
|
117
143
|
- app/assets/stylesheets/formagic/string.scss
|
118
144
|
- app/assets/stylesheets/formagic/switch.scss
|
119
145
|
- app/assets/stylesheets/formagic/text.scss
|
@@ -1,27 +0,0 @@
|
|
1
|
-
.form {
|
2
|
-
|
3
|
-
label {
|
4
|
-
display : block;
|
5
|
-
|
6
|
-
a { color : $positiveColor; }
|
7
|
-
|
8
|
-
.input-actions {
|
9
|
-
float : right;
|
10
|
-
font-size : .8em;
|
11
|
-
|
12
|
-
a {
|
13
|
-
color : $stableColor;
|
14
|
-
margin : 0 0 0 .75em;
|
15
|
-
border : 1px solid $lightColor;
|
16
|
-
border-radius : 4px;
|
17
|
-
padding : .25em .75em;
|
18
|
-
}
|
19
|
-
|
20
|
-
a:hover {
|
21
|
-
color : $positiveColor;
|
22
|
-
border-color : $positiveColor;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
}
|