spina-template 0.3.3 → 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/.fontcustom-manifest.json +42 -2
- data/Gemfile +4 -0
- data/app/assets/fonts/spina/icons_spina.eot +0 -0
- data/app/assets/fonts/spina/icons_spina.svg +56 -10
- data/app/assets/fonts/spina/icons_spina.ttf +0 -0
- data/app/assets/fonts/spina/icons_spina.woff +0 -0
- data/app/assets/icons/spina/barchart.svg +10 -0
- data/app/assets/icons/spina/cart.svg +10 -0
- data/app/assets/icons/spina/customer-outline.svg +10 -0
- data/app/assets/icons/spina/exclamation.svg +13 -0
- data/app/assets/icons/spina/filter.svg +10 -0
- data/app/assets/icons/spina/info.svg +13 -0
- data/app/assets/icons/spina/megaphone.svg +10 -0
- data/app/assets/icons/spina/pencil.svg +16 -0
- data/app/assets/icons/spina/preview/icons_spina-preview.html +153 -3
- data/app/assets/icons/spina/product-outline.svg +10 -0
- data/app/assets/icons/spina/shop.svg +12 -0
- data/app/assets/images/spina/spina_small.png +0 -0
- data/app/assets/javascripts/spina.coffee.erb +23 -8
- data/app/assets/javascripts/spina/dropdown.coffee +11 -0
- data/app/assets/javascripts/spina/galleryselect.coffee +4 -3
- data/app/assets/javascripts/spina/navigation.coffee +19 -0
- data/app/assets/javascripts/spina/notifications.coffee +7 -0
- data/app/assets/stylesheets/spina.sass +184 -225
- data/app/assets/stylesheets/spina/_buttons.sass +22 -10
- data/app/assets/stylesheets/spina/_forms.sass +169 -6
- data/app/assets/stylesheets/spina/_grid.sass +6 -0
- data/app/assets/stylesheets/spina/_icons_spina.scss +10 -0
- data/app/assets/stylesheets/spina/_labels.sass +4 -2
- data/app/assets/stylesheets/spina/_notifications.sass +60 -0
- data/app/assets/stylesheets/spina/_sortable_lists.sass +18 -11
- data/app/assets/stylesheets/spina/_tables.sass +156 -9
- data/app/assets/stylesheets/spina/_wizard.sass +103 -0
- data/app/assets/stylesheets/spina/_wysihtml5.sass +1 -1
- data/lib/spina/template/version.rb +1 -1
- data/spina-template.gemspec +0 -1
- data/vendor/assets/javascripts/spina/sortable.js +2 -0
- data/vendor/assets/stylesheets/spina/_nprogress.scss +1 -0
- metadata +19 -17
@@ -18,7 +18,8 @@ button, input[type="submit"], input[type="button"]
|
|
18
18
|
@include transition(all .3s ease)
|
19
19
|
|
20
20
|
&:hover
|
21
|
-
background:
|
21
|
+
background: shade(#efefef, 5%)
|
22
|
+
color: inherit
|
22
23
|
|
23
24
|
&.button-shaded:hover
|
24
25
|
background: #efefef
|
@@ -34,13 +35,13 @@ button, input[type="submit"], input[type="button"]
|
|
34
35
|
color: #fff
|
35
36
|
|
36
37
|
&:hover
|
37
|
-
background:
|
38
|
+
background: shade($primary-color, 10%)
|
38
39
|
|
39
40
|
&.button-shaded:hover
|
40
41
|
background: $primary-color
|
41
42
|
|
42
43
|
&:active, &.button-active, &.button-shaded, &.button-shaded:active
|
43
|
-
background: shade($primary-color,
|
44
|
+
background: shade($primary-color, 20%)
|
44
45
|
|
45
46
|
&.button-success
|
46
47
|
background: $success-color
|
@@ -58,6 +59,10 @@ button, input[type="submit"], input[type="button"]
|
|
58
59
|
&.button-danger
|
59
60
|
color: $danger-color
|
60
61
|
|
62
|
+
&.button-block
|
63
|
+
display: block
|
64
|
+
text-align: center
|
65
|
+
|
61
66
|
&.button-link
|
62
67
|
background: none
|
63
68
|
font-weight: 600
|
@@ -70,6 +75,7 @@ button, input[type="submit"], input[type="button"]
|
|
70
75
|
|
71
76
|
i.icon
|
72
77
|
margin-right: 8px
|
78
|
+
margin-top: -2px
|
73
79
|
|
74
80
|
&.icon-only:before
|
75
81
|
margin-right: 0
|
@@ -150,10 +156,10 @@ button, input[type="submit"], input[type="button"]
|
|
150
156
|
.button
|
151
157
|
float: left
|
152
158
|
margin-left: 0
|
159
|
+
border-right: none
|
153
160
|
|
154
161
|
.button:first-child
|
155
162
|
border-radius: 21px 0 0 21px
|
156
|
-
border-right: none
|
157
163
|
|
158
164
|
.button:last-child
|
159
165
|
border-radius: 0 21px 21px 0
|
@@ -208,6 +214,9 @@ button, input[type="submit"], input[type="button"]
|
|
208
214
|
display: block
|
209
215
|
@include animation-duration(.3s)
|
210
216
|
|
217
|
+
&.no-animation
|
218
|
+
@include animation(none)
|
219
|
+
|
211
220
|
ul:before, .sliding-dropdown:before
|
212
221
|
content: ""
|
213
222
|
display: block
|
@@ -232,14 +241,14 @@ button, input[type="submit"], input[type="button"]
|
|
232
241
|
border-left: 7px solid transparent
|
233
242
|
border-right: 7px solid transparent
|
234
243
|
|
235
|
-
ul.align-right
|
244
|
+
ul.align-right, .sliding-dropdown.align-right
|
236
245
|
right: 0px
|
237
246
|
|
238
|
-
ul.align-right:before
|
247
|
+
ul.align-right:before, .sliding-dropdown.align-right:before
|
239
248
|
left: auto
|
240
249
|
right: 11px
|
241
250
|
|
242
|
-
ul.align-right:after
|
251
|
+
ul.align-right:after, .sliding-dropdown.align-right:after
|
243
252
|
left: auto
|
244
253
|
right: 12px
|
245
254
|
|
@@ -247,18 +256,21 @@ button, input[type="submit"], input[type="button"]
|
|
247
256
|
border-top: 1px solid #e9e9e9
|
248
257
|
margin: 8px 0
|
249
258
|
|
250
|
-
ul li a
|
259
|
+
ul li a, ul li button
|
260
|
+
background: none
|
251
261
|
color: #333
|
252
262
|
display: block
|
253
263
|
font-size: 14px
|
254
264
|
padding: 8px 16px
|
265
|
+
text-align: left
|
255
266
|
text-decoration: none
|
267
|
+
width: 100%
|
256
268
|
|
257
|
-
ul li a:hover
|
269
|
+
ul li a:hover, ul li button:hover
|
258
270
|
background-color: $primary-color
|
259
271
|
color: #fff
|
260
272
|
|
261
|
-
ul li a:before
|
273
|
+
ul li a:before, ul li button:before
|
262
274
|
margin-right: 8px
|
263
275
|
|
264
276
|
[data-dropdown] .sliding-dropdown
|
@@ -1,14 +1,24 @@
|
|
1
1
|
// Horizontal form
|
2
2
|
.horizontal-form
|
3
3
|
.horizontal-form-group
|
4
|
-
|
4
|
+
border-bottom: 1px solid #eee
|
5
|
+
margin: 0 -20px
|
6
|
+
padding: 20px 20px
|
5
7
|
@include display(flex)
|
6
8
|
|
9
|
+
&:first-child
|
10
|
+
margin-top: -20px
|
11
|
+
|
12
|
+
&:last-child
|
13
|
+
border-bottom: none
|
14
|
+
margin-bottom: -20px
|
15
|
+
|
7
16
|
.horizontal-form-label
|
8
17
|
color: #333
|
9
18
|
font-size: 13px
|
10
19
|
font-weight: 600
|
11
20
|
line-height: 18px
|
21
|
+
padding-right: 20px
|
12
22
|
width: 240px
|
13
23
|
@include justify-content(center)
|
14
24
|
@include display(flex)
|
@@ -36,6 +46,153 @@
|
|
36
46
|
height: 100%
|
37
47
|
width: 100%
|
38
48
|
|
49
|
+
// Sidebar form
|
50
|
+
.sidebar-form
|
51
|
+
margin: 0 auto
|
52
|
+
max-width: 960px
|
53
|
+
@include display(flex)
|
54
|
+
|
55
|
+
.sidebar-form-content
|
56
|
+
@include flex(1)
|
57
|
+
|
58
|
+
.well
|
59
|
+
margin-right: 20px
|
60
|
+
padding-bottom: 0
|
61
|
+
padding-top: 0
|
62
|
+
|
63
|
+
.sidebar-form-sidebar
|
64
|
+
width: 320px
|
65
|
+
|
66
|
+
.sidebar-form-group
|
67
|
+
border-bottom: 1px solid #eee
|
68
|
+
margin: 0 -20px
|
69
|
+
padding: 0 20px
|
70
|
+
@include display(flex)
|
71
|
+
|
72
|
+
&:last-child
|
73
|
+
border-bottom: none
|
74
|
+
|
75
|
+
.sidebar-form-label
|
76
|
+
color: #333
|
77
|
+
font-size: 14px
|
78
|
+
font-weight: 600
|
79
|
+
line-height: 50px
|
80
|
+
width: 180px
|
81
|
+
|
82
|
+
.sidebar-form-control
|
83
|
+
margin-right: -20px
|
84
|
+
position: relative
|
85
|
+
@include flex(1)
|
86
|
+
|
87
|
+
#{$all-text-inputs}, textarea, .text-input
|
88
|
+
background: none
|
89
|
+
border: none
|
90
|
+
border-radius: 0
|
91
|
+
box-shadow: none
|
92
|
+
|
93
|
+
&:disabled
|
94
|
+
background: none
|
95
|
+
|
96
|
+
&[data-form-append]:after
|
97
|
+
content: attr(data-form-append)
|
98
|
+
font-size: 14px
|
99
|
+
font-weight: 600
|
100
|
+
line-height: 50px
|
101
|
+
padding: 0 20px
|
102
|
+
position: absolute
|
103
|
+
right: 0
|
104
|
+
top: 0
|
105
|
+
|
106
|
+
trix-toolbar
|
107
|
+
margin-top: 20px
|
108
|
+
|
109
|
+
trix-editor.text-input
|
110
|
+
padding-left: 0
|
111
|
+
|
112
|
+
#{$all-text-inputs}
|
113
|
+
height: 50px
|
114
|
+
|
115
|
+
.sidebar-form-images
|
116
|
+
margin: 25px 0
|
117
|
+
|
118
|
+
&:after
|
119
|
+
clear: both
|
120
|
+
content: " "
|
121
|
+
display: block
|
122
|
+
|
123
|
+
.sidebar-form-image
|
124
|
+
background: #ededf2
|
125
|
+
border: 1px solid #e5e5ea
|
126
|
+
border-radius: 2px
|
127
|
+
display: inline-block
|
128
|
+
margin-bottom: 10px
|
129
|
+
margin-right: 10px
|
130
|
+
width: 100px
|
131
|
+
|
132
|
+
img
|
133
|
+
border-radius: 2px
|
134
|
+
display: block
|
135
|
+
width: 100%
|
136
|
+
|
137
|
+
&:first-child
|
138
|
+
width: 320px
|
139
|
+
|
140
|
+
&:nth-child(3n + 1)
|
141
|
+
margin-right: 0
|
142
|
+
|
143
|
+
// Form groups
|
144
|
+
.form-group
|
145
|
+
margin-bottom: 20px
|
146
|
+
|
147
|
+
// Labels
|
148
|
+
.form-label
|
149
|
+
color: #333
|
150
|
+
font-size: 14px
|
151
|
+
font-weight: 600
|
152
|
+
line-height: 28px
|
153
|
+
|
154
|
+
.form-control
|
155
|
+
position: relative
|
156
|
+
|
157
|
+
.form-control[data-form-prepend] input
|
158
|
+
padding-left: 28px
|
159
|
+
|
160
|
+
.form-control[data-form-prepend]:before
|
161
|
+
color: #333
|
162
|
+
content: attr(data-form-prepend)
|
163
|
+
font-size: 14px
|
164
|
+
font-weight: 600
|
165
|
+
left: 0
|
166
|
+
line-height: 36px
|
167
|
+
padding: 0 12px
|
168
|
+
position: absolute
|
169
|
+
top: 0
|
170
|
+
|
171
|
+
.form-control[data-form-append]:after
|
172
|
+
color: #333
|
173
|
+
content: attr(data-form-append)
|
174
|
+
font-size: 14px
|
175
|
+
font-weight: 600
|
176
|
+
line-height: 36px
|
177
|
+
padding: 0 12px
|
178
|
+
position: absolute
|
179
|
+
right: 0
|
180
|
+
top: 0
|
181
|
+
|
182
|
+
// Input groups
|
183
|
+
.input-group
|
184
|
+
@include display(flex)
|
185
|
+
|
186
|
+
#{$all-text-inputs}, .text-input, .select-dropdown
|
187
|
+
&:not(:first-child)
|
188
|
+
border-bottom-left-radius: 0
|
189
|
+
border-top-left-radius: 0
|
190
|
+
|
191
|
+
&:not(:last-child)
|
192
|
+
border-bottom-right-radius: 0
|
193
|
+
border-top-right-radius: 0
|
194
|
+
border-right: none
|
195
|
+
|
39
196
|
// Inputs
|
40
197
|
|
41
198
|
#{$all-text-inputs}, textarea, .text-input
|
@@ -78,6 +235,9 @@
|
|
78
235
|
height: 10px
|
79
236
|
width: 10px
|
80
237
|
|
238
|
+
&:disabled
|
239
|
+
background: #ededf2
|
240
|
+
|
81
241
|
#{$all-text-inputs-focus}, textarea:focus, .text-input:focus
|
82
242
|
border-color: $primary-color
|
83
243
|
outline: none
|
@@ -353,18 +513,18 @@ input.datepicker
|
|
353
513
|
// Structure form
|
354
514
|
|
355
515
|
.structure-form
|
356
|
-
margin-left: -
|
516
|
+
margin-left: -20px
|
357
517
|
position: relative
|
358
518
|
@include display(flex)
|
359
519
|
|
360
520
|
.structure-form-menu
|
361
521
|
box-sizing: content-box
|
362
|
-
min-width:
|
522
|
+
min-width: 260px
|
363
523
|
|
364
524
|
label
|
365
525
|
display: block
|
366
526
|
font-size: 13px
|
367
|
-
padding: 12px
|
527
|
+
padding: 12px 20px
|
368
528
|
text-transform: none
|
369
529
|
|
370
530
|
ul
|
@@ -385,6 +545,9 @@ input.datepicker
|
|
385
545
|
top: auto
|
386
546
|
@include linear-gradient(bottom, rgba(255, 255, 255, 0), #ddd)
|
387
547
|
|
548
|
+
ul li
|
549
|
+
overflow: hidden
|
550
|
+
|
388
551
|
ul li .structure-item-remove
|
389
552
|
color: #999
|
390
553
|
float: right
|
@@ -398,7 +561,7 @@ input.datepicker
|
|
398
561
|
height: 50px
|
399
562
|
line-height: 50px
|
400
563
|
outline: none
|
401
|
-
padding-left:
|
564
|
+
padding-left: 20px
|
402
565
|
|
403
566
|
&:hover
|
404
567
|
background: #f9f9f9
|
@@ -574,7 +737,7 @@ input.datepicker
|
|
574
737
|
|
575
738
|
ul.sortable-grid
|
576
739
|
margin: -8px
|
577
|
-
|
740
|
+
|
578
741
|
.image, .sortable-placeholder
|
579
742
|
border-radius: 5px
|
580
743
|
cursor: move
|
@@ -2,6 +2,7 @@
|
|
2
2
|
// Icon Font: icons_spina
|
3
3
|
//
|
4
4
|
|
5
|
+
.icon-barchart:before { content: "\f133"; }
|
5
6
|
.icon-bars:before { content: "\f10e"; }
|
6
7
|
.icon-bold:before { content: "\f120"; }
|
7
8
|
.icon-brush:before { content: "\f115"; }
|
@@ -10,6 +11,7 @@
|
|
10
11
|
.icon-caret-left:before { content: "\f119"; }
|
11
12
|
.icon-caret-right:before { content: "\f11a"; }
|
12
13
|
.icon-caret-up:before { content: "\f11b"; }
|
14
|
+
.icon-cart:before { content: "\f131"; }
|
13
15
|
.icon-chart-outline:before { content: "\f109"; }
|
14
16
|
.icon-check:before { content: "\f10a"; }
|
15
17
|
.icon-chevron-down:before { content: "\f11c"; }
|
@@ -21,12 +23,16 @@
|
|
21
23
|
.icon-cog-outline:before { content: "\f106"; }
|
22
24
|
.icon-comment:before { content: "\f103"; }
|
23
25
|
.icon-cross:before { content: "\f116"; }
|
26
|
+
.icon-customer-outline:before { content: "\f134"; }
|
24
27
|
.icon-document:before { content: "\f100"; }
|
25
28
|
.icon-dots:before { content: "\f12e"; }
|
29
|
+
.icon-exclamation:before { content: "\f138"; }
|
26
30
|
.icon-eye:before { content: "\f12c"; }
|
31
|
+
.icon-filter:before { content: "\f136"; }
|
27
32
|
.icon-home:before { content: "\f102"; }
|
28
33
|
.icon-image:before { content: "\f128"; }
|
29
34
|
.icon-inbox-outline:before { content: "\f112"; }
|
35
|
+
.icon-info:before { content: "\f139"; }
|
30
36
|
.icon-italic:before { content: "\f121"; }
|
31
37
|
.icon-large-check:before { content: "\f12f"; }
|
32
38
|
.icon-link:before { content: "\f124"; }
|
@@ -34,16 +40,20 @@
|
|
34
40
|
.icon-mail:before { content: "\f12b"; }
|
35
41
|
.icon-mail-outline:before { content: "\f111"; }
|
36
42
|
.icon-media-library:before { content: "\f101"; }
|
43
|
+
.icon-megaphone:before { content: "\f132"; }
|
37
44
|
.icon-min:before { content: "\f127"; }
|
38
45
|
.icon-pages:before { content: "\f129"; }
|
46
|
+
.icon-pencil:before { content: "\f137"; }
|
39
47
|
.icon-pencil-outline:before { content: "\f10d"; }
|
40
48
|
.icon-picture-o:before { content: "\f126"; }
|
41
49
|
.icon-plus:before { content: "\f10b"; }
|
42
50
|
.icon-power-off:before { content: "\f104"; }
|
43
51
|
.icon-preview:before { content: "\f10c"; }
|
52
|
+
.icon-product-outline:before { content: "\f135"; }
|
44
53
|
.icon-random:before { content: "\f10f"; }
|
45
54
|
.icon-refresh:before { content: "\f114"; }
|
46
55
|
.icon-search:before { content: "\f110"; }
|
56
|
+
.icon-shop:before { content: "\f130"; }
|
47
57
|
.icon-social-outline:before { content: "\f108"; }
|
48
58
|
.icon-trash:before { content: "\f117"; }
|
49
59
|
.icon-upload-outline:before { content: "\f113"; }
|
@@ -0,0 +1,60 @@
|
|
1
|
+
// Notifications
|
2
|
+
|
3
|
+
aside#notifications
|
4
|
+
bottom: 0
|
5
|
+
padding: 16px
|
6
|
+
position: fixed
|
7
|
+
right: 0
|
8
|
+
z-index: 100
|
9
|
+
|
10
|
+
.notification
|
11
|
+
background: $primary-color
|
12
|
+
border-radius: 3px
|
13
|
+
color: #fff
|
14
|
+
font-size: 16px
|
15
|
+
line-height: 24px
|
16
|
+
margin-top: 16px
|
17
|
+
padding: 16px 0
|
18
|
+
position: relative
|
19
|
+
width: 400px
|
20
|
+
@include animation-duration(.4s)
|
21
|
+
@include align-items(center)
|
22
|
+
@include display(flex)
|
23
|
+
|
24
|
+
.notification-message
|
25
|
+
@include flex(1)
|
26
|
+
|
27
|
+
.icon
|
28
|
+
text-align: center
|
29
|
+
width: 50px
|
30
|
+
|
31
|
+
a
|
32
|
+
color: #000
|
33
|
+
display: block
|
34
|
+
font-size: 11px
|
35
|
+
opacity: .2
|
36
|
+
text-align: center
|
37
|
+
width: 50px
|
38
|
+
|
39
|
+
&:hover
|
40
|
+
color: #000
|
41
|
+
opacity: .4
|
42
|
+
|
43
|
+
strong
|
44
|
+
font-weight: 600
|
45
|
+
|
46
|
+
small
|
47
|
+
display: block
|
48
|
+
font-size: 13px
|
49
|
+
font-weight: normal
|
50
|
+
margin-top: -4px
|
51
|
+
opacity: .6
|
52
|
+
|
53
|
+
&.notification-error
|
54
|
+
background: $error-color
|
55
|
+
|
56
|
+
&.notification-danger
|
57
|
+
background: $danger-color
|
58
|
+
|
59
|
+
&.notification-success
|
60
|
+
background: $success-color
|