spina 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spina might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +16 -4
- data/app/assets/fonts/spina/ics_spina.eot +0 -0
- data/app/assets/fonts/spina/ics_spina.svg +356 -0
- data/app/assets/fonts/spina/ics_spina.ttf +0 -0
- data/app/assets/fonts/spina/ics_spina.woff +0 -0
- data/app/assets/icons/spina/barchart.svg +10 -0
- data/app/assets/icons/spina/bars.svg +1 -0
- data/app/assets/icons/spina/bold.svg +1 -0
- data/app/assets/icons/spina/brush.svg +10 -0
- data/app/assets/icons/spina/camera.svg +10 -0
- data/app/assets/icons/spina/caret-down.svg +1 -0
- data/app/assets/icons/spina/caret-left.svg +1 -0
- data/app/assets/icons/spina/caret-right.svg +1 -0
- data/app/assets/icons/spina/caret-up.svg +1 -0
- data/app/assets/icons/spina/cart.svg +10 -0
- data/app/assets/icons/spina/chart-outline.svg +10 -0
- data/app/assets/icons/spina/check.svg +10 -0
- data/app/assets/icons/spina/chevron-down.svg +1 -0
- data/app/assets/icons/spina/chevron-left.svg +1 -0
- data/app/assets/icons/spina/chevron-right.svg +1 -0
- data/app/assets/icons/spina/chevron-up.svg +1 -0
- data/app/assets/icons/spina/code.svg +1 -0
- data/app/assets/icons/spina/cog-outline.svg +10 -0
- data/app/assets/icons/spina/cog.svg +10 -0
- data/app/assets/icons/spina/comment.svg +1 -0
- data/app/assets/icons/spina/cross.svg +10 -0
- data/app/assets/icons/spina/customer-outline.svg +10 -0
- data/app/assets/icons/spina/document.svg +10 -0
- data/app/assets/icons/spina/dots.svg +10 -0
- data/app/assets/icons/spina/exclamation.svg +13 -0
- data/app/assets/icons/spina/eye.svg +1 -0
- data/app/assets/icons/spina/filter.svg +10 -0
- data/app/assets/icons/spina/home.svg +1 -0
- data/app/assets/icons/spina/image.svg +10 -0
- data/app/assets/icons/spina/inbox-outline.svg +10 -0
- data/app/assets/icons/spina/info.svg +13 -0
- data/app/assets/icons/spina/italic.svg +1 -0
- data/app/assets/icons/spina/large-check.svg +10 -0
- data/app/assets/icons/spina/link.svg +1 -0
- data/app/assets/icons/spina/list-ul.svg +1 -0
- data/app/assets/icons/spina/mail-outline.svg +10 -0
- data/app/assets/icons/spina/mail.svg +10 -0
- data/app/assets/icons/spina/media-library.svg +10 -0
- data/app/assets/icons/spina/megaphone.svg +10 -0
- data/app/assets/icons/spina/min.svg +14 -0
- data/app/assets/icons/spina/pages.svg +10 -0
- data/app/assets/icons/spina/pencil-outline.svg +10 -0
- data/app/assets/icons/spina/pencil.svg +16 -0
- data/app/assets/icons/spina/picture-o.svg +1 -0
- data/app/assets/icons/spina/plus.svg +10 -0
- data/app/assets/icons/spina/power-off.svg +10 -0
- data/app/assets/icons/spina/preview/icons_spina-preview.html +1043 -0
- data/app/assets/icons/spina/preview/ics_spina-preview.html +1043 -0
- data/app/assets/icons/spina/preview.svg +10 -0
- data/app/assets/icons/spina/product-outline.svg +10 -0
- data/app/assets/icons/spina/random.svg +10 -0
- data/app/assets/icons/spina/refresh.svg +13 -0
- data/app/assets/icons/spina/search.svg +10 -0
- data/app/assets/icons/spina/shop.svg +12 -0
- data/app/assets/icons/spina/social-outline.svg +10 -0
- data/app/assets/icons/spina/trash.svg +10 -0
- data/app/assets/icons/spina/upload-outline.svg +14 -0
- data/app/assets/icons/spina/users-outline.svg +10 -0
- data/app/assets/images/spina/arrow-left.png +0 -0
- data/app/assets/images/spina/arrow-right.png +0 -0
- data/app/assets/images/spina/danger-zone-ribbon.png +0 -0
- data/app/assets/images/spina/datepicker.png +0 -0
- data/app/assets/images/spina/divider.png +0 -0
- data/app/assets/images/spina/marker.png +0 -0
- data/app/assets/images/spina/mask.png +0 -0
- data/app/assets/images/spina/spina.png +0 -0
- data/app/assets/images/spina/spina_small.png +0 -0
- data/app/assets/images/spina/wheel.png +0 -0
- data/app/assets/javascripts/spina/admin/{account.js.coffee → account.coffee} +0 -0
- data/app/assets/javascripts/spina/admin/application.coffee.erb +152 -0
- data/app/assets/javascripts/spina/admin/{confirm_delete.js.coffee.erb → confirm_delete.coffee.erb} +0 -0
- data/app/assets/javascripts/spina/admin/dropdown.coffee +75 -0
- data/app/assets/javascripts/spina/admin/forms.coffee +7 -0
- data/app/assets/javascripts/spina/admin/galleryselect.coffee +20 -0
- data/app/assets/javascripts/spina/admin/{spina.infinite_scroll.coffee → infinite_scroll.coffee} +1 -0
- data/app/assets/javascripts/spina/admin/modal.coffee +54 -0
- data/app/assets/javascripts/spina/admin/navigation.coffee +38 -0
- data/app/assets/javascripts/spina/admin/notifications.coffee +7 -0
- data/app/assets/javascripts/spina/admin/{pages.js.coffee.erb → pages.coffee.erb} +11 -2
- data/app/assets/javascripts/spina/admin/switch.coffee +43 -0
- data/app/assets/javascripts/spina/admin/tabs.coffee +13 -0
- data/app/assets/javascripts/spina/admin/{spina.trix.js.coffee.erb → trix.coffee.erb} +26 -25
- data/app/assets/javascripts/spina/admin/uploads.coffee +35 -0
- data/app/assets/stylesheets/spina/_admin_editing.sass +25 -0
- data/app/assets/stylesheets/spina/_buttons.sass +367 -0
- data/app/assets/stylesheets/spina/_cards.sass +54 -0
- data/app/assets/stylesheets/spina/_configuration.sass +15 -0
- data/app/assets/stylesheets/spina/_custom_animations.sass +61 -0
- data/app/assets/stylesheets/spina/_farbtastic.sass +37 -0
- data/app/assets/stylesheets/spina/_fonts.sass +18 -0
- data/app/assets/stylesheets/spina/_forms.sass +806 -0
- data/app/assets/stylesheets/spina/_gallery.sass +249 -0
- data/app/assets/stylesheets/spina/_ics_spina.scss +60 -0
- data/app/assets/stylesheets/spina/_labels.sass +30 -0
- data/app/assets/stylesheets/spina/_login.sass +46 -0
- data/app/assets/stylesheets/spina/_modal.sass +162 -0
- data/app/assets/stylesheets/spina/_notifications.sass +62 -0
- data/app/assets/stylesheets/spina/_sortable_lists.sass +177 -0
- data/app/assets/stylesheets/spina/_tables.sass +301 -0
- data/app/assets/stylesheets/spina/_trix.sass +99 -0
- data/app/assets/stylesheets/spina/_wizard.sass +122 -0
- data/app/assets/stylesheets/spina/_wysihtml5.sass +79 -0
- data/app/assets/stylesheets/spina/application.sass +0 -1
- data/app/assets/stylesheets/spina/wysihtml5_textarea.sass +14 -0
- data/app/assets/stylesheets/spina.sass +564 -0
- data/app/controllers/concerns/spina/frontend.rb +59 -0
- data/app/controllers/spina/admin/navigations_controller.rb +60 -0
- data/app/controllers/spina/admin/pages_controller.rb +7 -6
- data/app/controllers/spina/admin/photos_controller.rb +18 -7
- data/app/controllers/spina/application_controller.rb +2 -2
- data/app/controllers/spina/pages_controller.rb +4 -49
- data/app/helpers/spina/admin/pages_helper.rb +12 -7
- data/app/helpers/spina/application_helper.rb +0 -29
- data/app/models/concerns/spina/part.rb +1 -1
- data/app/models/spina/navigation.rb +11 -0
- data/app/models/spina/navigation_item.rb +17 -0
- data/app/models/spina/page.rb +11 -0
- data/app/models/spina/page_part.rb +1 -1
- data/app/models/spina/photo_collection.rb +6 -1
- data/app/models/spina/structure.rb +4 -0
- data/app/models/spina/structure_item.rb +5 -1
- data/app/models/spina/structure_part.rb +16 -3
- data/app/views/layouts/spina/admin/admin.html.haml +8 -1
- data/app/views/layouts/spina/admin/pages.html.haml +30 -0
- data/app/views/spina/admin/accounts/_form.html.haml +1 -1
- data/app/views/spina/admin/accounts/analytics.html.haml +1 -1
- data/app/views/spina/admin/accounts/social.html.haml +1 -1
- data/app/views/spina/admin/accounts/style.html.haml +1 -1
- data/app/views/spina/admin/navigations/_navigation_item_nested_list.html.haml +7 -0
- data/app/views/spina/admin/navigations/_page.html.haml +8 -0
- data/app/views/spina/admin/navigations/edit.html.haml +22 -0
- data/app/views/spina/admin/navigations/show.html.haml +7 -0
- data/app/views/spina/admin/page_partables/attachment_collections/_form.html.haml +1 -1
- data/app/views/spina/admin/page_partables/attachments/_form.html.haml +1 -1
- data/app/views/spina/admin/page_partables/photo_collections/_form.html.haml +1 -1
- data/app/views/spina/admin/page_partables/photos/_form.html.haml +1 -1
- data/app/views/spina/admin/page_partables/structures/_form.html.haml +1 -1
- data/app/views/spina/admin/pages/_form.html.haml +12 -5
- data/app/views/spina/admin/pages/_page.html.haml +12 -18
- data/app/views/spina/admin/pages/_page_nested_list.html.haml +7 -0
- data/app/views/spina/admin/pages/create.js.coffee +0 -0
- data/app/views/spina/admin/pages/index.html.haml +24 -42
- data/app/views/spina/admin/pages/update.js.coffee +1 -3
- data/app/views/spina/admin/photos/_photo.html.haml +2 -0
- data/app/views/spina/admin/photos/_photo_collection_select.html.haml +1 -1
- data/app/views/spina/admin/photos/_photo_select.html.haml +2 -2
- data/app/views/spina/admin/photos/_wysihtml5_select.html.haml +1 -1
- data/app/views/spina/admin/photos/create_multiple.js.erb +4 -0
- data/app/views/spina/admin/photos/index.html.haml +1 -1
- data/app/views/spina/admin/photos/single_picker_infinite_scroll.js.erb +1 -1
- data/app/views/spina/admin/sessions/new.html.haml +8 -5
- data/app/views/spina/admin/shared/_notifications.html.haml +3 -1
- data/app/views/spina/admin/shared/_primary_navigation.html.haml +4 -3
- data/app/views/spina/admin/shared/_rich_text_field.html.haml +16 -16
- data/app/views/spina/admin/structure_items/_fields.html.haml +7 -8
- data/app/views/spina/admin/structure_partables/photo_collections/_form.html.haml +14 -0
- data/app/views/spina/admin/structure_partables/photos/_form.html.haml +1 -1
- data/app/views/spina/shared/_google_site_verification.html.haml +1 -0
- data/config/fontcustom.yml +95 -0
- data/config/locales/en.yml +11 -0
- data/config/locales/nl.yml +13 -3
- data/config/locales/pt-BR.yml +11 -1
- data/config/routes.rb +14 -8
- data/db/migrate/1_create_spina_tables.rb +0 -7
- data/db/migrate/2_create_spina_translation_tables.rb +26 -7
- data/db/migrate/3_create_spina_navigations.rb +21 -0
- data/lib/generators/spina/templates/config/initializers/carrierwave.rb +1 -1
- data/lib/spina/engine.rb +1 -2
- data/lib/spina/fontcustom/_ics_spina.scss +5 -0
- data/lib/spina/version.rb +1 -1
- data/lib/spina.rb +3 -1
- metadata +146 -45
- data/app/assets/images/spina/admin/logo@2x.png +0 -0
- data/app/assets/javascripts/spina/admin/application.js +0 -10
- data/app/assets/javascripts/spina/admin/spina.scaffold.coffee +0 -15
- data/app/assets/javascripts/spina/application.js +0 -15
- data/app/assets/stylesheets/spina/_mixins.scss +0 -34
@@ -1,35 +1,36 @@
|
|
1
1
|
window.Spina = {}
|
2
2
|
|
3
3
|
Trix.config.blockAttributes = $.extend Trix.config.blockAttributes, {
|
4
|
-
|
5
|
-
tagName:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
tagName:
|
26
|
-
|
27
|
-
|
4
|
+
heading2:
|
5
|
+
tagName: "h2"
|
6
|
+
terminal: true
|
7
|
+
breakOnReturn: true
|
8
|
+
group: false
|
9
|
+
heading3:
|
10
|
+
tagName: "h3"
|
11
|
+
terminal: true
|
12
|
+
breakOnReturn: true
|
13
|
+
group: false
|
14
|
+
heading4:
|
15
|
+
tagName: "h4"
|
16
|
+
terminal: true
|
17
|
+
breakOnReturn: true
|
18
|
+
group: false
|
19
|
+
heading5:
|
20
|
+
tagName: "h5"
|
21
|
+
terminal: true
|
22
|
+
breakOnReturn: true
|
23
|
+
group: false
|
24
|
+
heading6:
|
25
|
+
tagName: "h6"
|
26
|
+
terminal: true
|
27
|
+
breakOnReturn: true
|
28
|
+
group: false
|
28
29
|
}
|
29
30
|
|
30
31
|
class Spina.TrixAttachment
|
31
32
|
@photoSelect: (e) ->
|
32
|
-
editor_id = $(this).closest('trix-toolbar').data('editor-id')
|
33
|
+
editor_id = $(this).closest('trix-toolbar').data('trix-editor-id')
|
33
34
|
$.get("<%= Spina::Engine.routes.url_helpers.wysihtml5_select_admin_photos_path('') %>/#{editor_id}")
|
34
35
|
|
35
36
|
@photoInsert: (e, url) ->
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Upload photo
|
2
|
+
$.fn.uploadPhoto = ->
|
3
|
+
$(this).fileupload
|
4
|
+
dataType: "script"
|
5
|
+
singleFileUploads: true
|
6
|
+
dropZone: $(this).find('.photo-field')
|
7
|
+
# maxNumberOfFiles: 1
|
8
|
+
add: (e, data) ->
|
9
|
+
types = /(\.|\/)(gif|jpe?g|png)$/i
|
10
|
+
file = data.files[0]
|
11
|
+
if types.test(file.type) || types.test(file.name)
|
12
|
+
$(this).find('.customfile').addClass('loading')
|
13
|
+
data.submit()
|
14
|
+
else
|
15
|
+
alert("#{file.name} is geen gif-, jpeg- of png-bestand")
|
16
|
+
done: (e, data) ->
|
17
|
+
$(this).find('.customfile').removeClass('loading')
|
18
|
+
|
19
|
+
# Upload document
|
20
|
+
$.fn.uploadDocument = ->
|
21
|
+
$(this).fileupload
|
22
|
+
dataType: "script"
|
23
|
+
singleFileUploads: true
|
24
|
+
dropZone: $(this).find('.attachment-field')
|
25
|
+
maxNumberOfFiles: 1
|
26
|
+
add: (e, data) ->
|
27
|
+
types = /(\.|\/)(pdf|docx?|rtf|txt)$/i
|
28
|
+
file = data.files[0]
|
29
|
+
if types.test(file.type) || types.test(file.name)
|
30
|
+
$(this).find('.customfile').addClass('loading')
|
31
|
+
data.submit()
|
32
|
+
else
|
33
|
+
alert("#{file.name} is geen pdf-, word-, txt- of rtf-bestand")
|
34
|
+
done: (e, data) ->
|
35
|
+
$(this).find('.customfile').removeClass('loading')
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// Configuration
|
2
|
+
@import configuration
|
3
|
+
|
4
|
+
// Normalizing
|
5
|
+
@import spina/normalize
|
6
|
+
|
7
|
+
// Mixins
|
8
|
+
@import bourbon
|
9
|
+
@import neat
|
10
|
+
|
11
|
+
// Fonts
|
12
|
+
@import fonts
|
13
|
+
|
14
|
+
#admin_bar
|
15
|
+
background: #f5f5f5
|
16
|
+
border-bottom: 1px solid #ddd
|
17
|
+
font-family: "Proxima Nova"
|
18
|
+
padding: 12px 12px 8px 0
|
19
|
+
text-align: right
|
20
|
+
|
21
|
+
// Styles
|
22
|
+
@import buttons
|
23
|
+
|
24
|
+
.button.button-hollow
|
25
|
+
background: #fff
|
@@ -0,0 +1,367 @@
|
|
1
|
+
// Buttons
|
2
|
+
|
3
|
+
button, input[type="submit"], input[type="button"]
|
4
|
+
border: none
|
5
|
+
|
6
|
+
.button
|
7
|
+
background: #efefef
|
8
|
+
border-radius: 3px
|
9
|
+
color: #444
|
10
|
+
display: inline-block
|
11
|
+
font-size: 14px
|
12
|
+
font-weight: bold
|
13
|
+
line-height: 20px
|
14
|
+
margin: 0 4px 4px 0
|
15
|
+
outline: none
|
16
|
+
padding: 8px 16px
|
17
|
+
text-decoration: none
|
18
|
+
@include transition(all .3s ease)
|
19
|
+
|
20
|
+
&:hover
|
21
|
+
background: shade(#efefef, 5%)
|
22
|
+
color: inherit
|
23
|
+
|
24
|
+
&.button-shaded:hover
|
25
|
+
background: #efefef
|
26
|
+
|
27
|
+
&:active, &.button-active, &.button-shaded, &.button-shaded:active
|
28
|
+
background: shade(#efefef, 10%)
|
29
|
+
@include transform(scale(0.95))
|
30
|
+
|
31
|
+
&:focus
|
32
|
+
outline: none
|
33
|
+
|
34
|
+
&.button-primary
|
35
|
+
background: $primary-color
|
36
|
+
color: #fff
|
37
|
+
|
38
|
+
&:hover
|
39
|
+
background: shade($primary-color, 10%)
|
40
|
+
|
41
|
+
&.button-shaded:hover
|
42
|
+
background: $primary-color
|
43
|
+
|
44
|
+
&:active, &.button-active, &.button-shaded, &.button-shaded:active
|
45
|
+
background: shade($primary-color, 20%)
|
46
|
+
|
47
|
+
&.button-success
|
48
|
+
background: $success-color
|
49
|
+
color: #fff
|
50
|
+
|
51
|
+
&:hover
|
52
|
+
background: tint($success-color, 20%)
|
53
|
+
|
54
|
+
&.button-shaded:hover
|
55
|
+
background: $success-color
|
56
|
+
|
57
|
+
&:active, &.button-active, &.button-shaded, &.button-shaded:active
|
58
|
+
background: shade($success-color, 10%)
|
59
|
+
|
60
|
+
&.button-danger
|
61
|
+
color: $danger-color
|
62
|
+
|
63
|
+
&.button-block
|
64
|
+
display: block
|
65
|
+
text-align: center
|
66
|
+
|
67
|
+
&.button-link
|
68
|
+
background: none
|
69
|
+
font-weight: 600
|
70
|
+
|
71
|
+
&:hover
|
72
|
+
color: #333
|
73
|
+
|
74
|
+
&:active, &.button-active
|
75
|
+
color: #111
|
76
|
+
|
77
|
+
i.icon
|
78
|
+
margin-right: 8px
|
79
|
+
margin-top: -2px
|
80
|
+
|
81
|
+
&.icon-only
|
82
|
+
&:before, i.icon
|
83
|
+
margin-right: 0
|
84
|
+
|
85
|
+
&.icon-mini:before
|
86
|
+
margin-right: 4px
|
87
|
+
|
88
|
+
&.button-large
|
89
|
+
border-radius: 4px
|
90
|
+
padding: 11px 18px
|
91
|
+
|
92
|
+
&:before
|
93
|
+
margin-right: 10px
|
94
|
+
|
95
|
+
&.button-small
|
96
|
+
font-size: 13px
|
97
|
+
padding: 6px 12px
|
98
|
+
|
99
|
+
i.icon
|
100
|
+
margin-right: 4px
|
101
|
+
|
102
|
+
&.button-mini
|
103
|
+
font-size: 12px
|
104
|
+
padding: 3px 10px
|
105
|
+
|
106
|
+
&.button-hollow
|
107
|
+
background: none
|
108
|
+
border: 1px solid #ccc
|
109
|
+
color: #777
|
110
|
+
|
111
|
+
&:hover
|
112
|
+
border: 1px solid #bbb
|
113
|
+
color: #666
|
114
|
+
|
115
|
+
&:active, &.button-active
|
116
|
+
border: 1px solid #aaa
|
117
|
+
color: #444
|
118
|
+
|
119
|
+
&.button-round
|
120
|
+
border-radius: 21px
|
121
|
+
|
122
|
+
&.button-saving
|
123
|
+
background: #999 !important
|
124
|
+
|
125
|
+
&.button-saving:before
|
126
|
+
display: inline-block
|
127
|
+
@include animation(rotate 3.0s linear infinite)
|
128
|
+
|
129
|
+
@include keyframes(rotate)
|
130
|
+
from
|
131
|
+
@include transform(rotate(0deg))
|
132
|
+
to
|
133
|
+
@include transform(rotate(360deg))
|
134
|
+
|
135
|
+
.pull-right .button
|
136
|
+
margin: 0 0 4px 4px
|
137
|
+
|
138
|
+
// Button groups
|
139
|
+
|
140
|
+
.button-group
|
141
|
+
.button
|
142
|
+
border-radius: 0
|
143
|
+
float: left
|
144
|
+
margin-right: 0
|
145
|
+
|
146
|
+
.button:first-child
|
147
|
+
border-radius: 3px 0 0 3px
|
148
|
+
|
149
|
+
.button:last-child
|
150
|
+
border-radius: 0 3px 3px 0
|
151
|
+
|
152
|
+
&:after
|
153
|
+
clear: both
|
154
|
+
content: ""
|
155
|
+
display: block
|
156
|
+
|
157
|
+
.button-group.button-group-round
|
158
|
+
.button
|
159
|
+
float: left
|
160
|
+
margin-left: 0
|
161
|
+
border-right: none
|
162
|
+
|
163
|
+
.button:first-child
|
164
|
+
border-radius: 21px 0 0 21px
|
165
|
+
|
166
|
+
.button:last-child
|
167
|
+
border-radius: 0 21px 21px 0
|
168
|
+
|
169
|
+
// Pagination
|
170
|
+
|
171
|
+
.pagination-container
|
172
|
+
background: #f9f9f9
|
173
|
+
border: 1px solid #eee
|
174
|
+
border-left: none
|
175
|
+
border-right: none
|
176
|
+
margin: 0 -40px
|
177
|
+
padding: 0 40px
|
178
|
+
|
179
|
+
.pagination
|
180
|
+
|
181
|
+
.previous_page, .next_page, em.current, a
|
182
|
+
color: #999
|
183
|
+
display: inline-block
|
184
|
+
font-size: 14px
|
185
|
+
font-style: normal
|
186
|
+
font-weight: 600
|
187
|
+
line-height: 20px
|
188
|
+
padding: 6px 8px
|
189
|
+
|
190
|
+
&:first-child
|
191
|
+
padding-left: 0
|
192
|
+
|
193
|
+
.disabled
|
194
|
+
display: none
|
195
|
+
|
196
|
+
// Dropdowns
|
197
|
+
|
198
|
+
[data-dropdown]
|
199
|
+
position: relative
|
200
|
+
|
201
|
+
ul, .sliding-dropdown
|
202
|
+
background: #fff
|
203
|
+
border: 1px solid #ccc
|
204
|
+
border-radius: 3px
|
205
|
+
box-shadow: 0 5px 20px rgba(0, 0, 0, .15)
|
206
|
+
display: none
|
207
|
+
list-style: none
|
208
|
+
margin: 0
|
209
|
+
margin-top: 6px
|
210
|
+
padding: 6px 0
|
211
|
+
position: absolute
|
212
|
+
width: 200px
|
213
|
+
z-index: 999
|
214
|
+
|
215
|
+
&.animated
|
216
|
+
display: block
|
217
|
+
@include animation-duration(.3s)
|
218
|
+
|
219
|
+
&.no-animation
|
220
|
+
@include animation(none)
|
221
|
+
|
222
|
+
ul:before, .sliding-dropdown:before
|
223
|
+
content: ""
|
224
|
+
display: block
|
225
|
+
height: 0
|
226
|
+
position: absolute
|
227
|
+
left: 11px
|
228
|
+
top: -8px
|
229
|
+
width: 0
|
230
|
+
border-bottom: 8px solid #aaa
|
231
|
+
border-left: 8px solid transparent
|
232
|
+
border-right: 8px solid transparent
|
233
|
+
|
234
|
+
ul:after, .sliding-dropdown:after
|
235
|
+
content: ""
|
236
|
+
display: block
|
237
|
+
height: 0
|
238
|
+
position: absolute
|
239
|
+
left: 12px
|
240
|
+
top: -7px
|
241
|
+
width: 0
|
242
|
+
border-bottom: 7px solid #fff
|
243
|
+
border-left: 7px solid transparent
|
244
|
+
border-right: 7px solid transparent
|
245
|
+
|
246
|
+
ul.align-right, .sliding-dropdown.align-right
|
247
|
+
right: 0px
|
248
|
+
|
249
|
+
ul.align-right:before, .sliding-dropdown.align-right:before
|
250
|
+
left: auto
|
251
|
+
right: 11px
|
252
|
+
|
253
|
+
ul.align-right:after, .sliding-dropdown.align-right:after
|
254
|
+
left: auto
|
255
|
+
right: 12px
|
256
|
+
|
257
|
+
ul li.divider
|
258
|
+
border-top: 1px solid #e9e9e9
|
259
|
+
margin: 8px 0
|
260
|
+
|
261
|
+
ul li a, ul li button
|
262
|
+
background: none
|
263
|
+
color: #333
|
264
|
+
display: block
|
265
|
+
font-size: 14px
|
266
|
+
padding: 8px 16px
|
267
|
+
text-align: left
|
268
|
+
text-decoration: none
|
269
|
+
width: 100%
|
270
|
+
|
271
|
+
ul li a:hover, ul li button:hover
|
272
|
+
background-color: $primary-color
|
273
|
+
color: #fff
|
274
|
+
|
275
|
+
ul li a:before, ul li button:before
|
276
|
+
margin-right: 8px
|
277
|
+
|
278
|
+
[data-dropdown] .sliding-dropdown
|
279
|
+
padding: 0
|
280
|
+
width: 300px
|
281
|
+
|
282
|
+
.slide-controls
|
283
|
+
border-bottom: 1px solid #eaeaea
|
284
|
+
color: #333
|
285
|
+
font-size: 14px
|
286
|
+
font-weight: 600
|
287
|
+
line-height: 44px
|
288
|
+
text-align: center
|
289
|
+
|
290
|
+
.slide-title
|
291
|
+
display: none
|
292
|
+
|
293
|
+
.slide-title.active
|
294
|
+
display: block
|
295
|
+
|
296
|
+
.previous, .next
|
297
|
+
color: #666
|
298
|
+
font-size: 12px
|
299
|
+
outline: none
|
300
|
+
padding: 0 12px
|
301
|
+
position: absolute
|
302
|
+
top: 0px
|
303
|
+
|
304
|
+
.icon:before
|
305
|
+
line-height: 44px
|
306
|
+
|
307
|
+
&:hover
|
308
|
+
color: #333
|
309
|
+
|
310
|
+
&.muted
|
311
|
+
color: #ccc
|
312
|
+
cursor: default
|
313
|
+
|
314
|
+
.previous
|
315
|
+
left: 0px
|
316
|
+
|
317
|
+
.next
|
318
|
+
right: 0px
|
319
|
+
|
320
|
+
.slide-controls.open
|
321
|
+
display: block
|
322
|
+
|
323
|
+
.slide
|
324
|
+
display: none
|
325
|
+
text-align: center
|
326
|
+
|
327
|
+
&.active
|
328
|
+
display: block
|
329
|
+
|
330
|
+
p
|
331
|
+
color: #333
|
332
|
+
font-size: 14px
|
333
|
+
font-weight: 400
|
334
|
+
margin: 16px
|
335
|
+
|
336
|
+
p.muted
|
337
|
+
color: #999
|
338
|
+
|
339
|
+
.button
|
340
|
+
border-top-left-radius: 0
|
341
|
+
border-top-right-radius: 0
|
342
|
+
margin: -1px
|
343
|
+
width: 300px
|
344
|
+
|
345
|
+
&.button-primary
|
346
|
+
background: lighten($primary-color, 40%)
|
347
|
+
border: 1px solid lighten($primary-color, 30%)
|
348
|
+
color: $primary-color
|
349
|
+
|
350
|
+
&:hover
|
351
|
+
background: $primary-color
|
352
|
+
border: 1px solid $primary-color
|
353
|
+
color: #fff
|
354
|
+
|
355
|
+
.slide-dots
|
356
|
+
margin: 12px
|
357
|
+
text-align: center
|
358
|
+
|
359
|
+
.slide-dot
|
360
|
+
background: #ccc
|
361
|
+
border-radius: 2px
|
362
|
+
display: inline-block
|
363
|
+
height: 4px
|
364
|
+
width: 4px
|
365
|
+
|
366
|
+
&.active
|
367
|
+
background: #333
|
@@ -0,0 +1,54 @@
|
|
1
|
+
.card
|
2
|
+
background: #fff
|
3
|
+
border: 1px solid #e9e9e9
|
4
|
+
border-radius: 3px
|
5
|
+
display: inline-block
|
6
|
+
margin: 0 28px 30px 0
|
7
|
+
text-align: center
|
8
|
+
width: 225px
|
9
|
+
|
10
|
+
.card-heading
|
11
|
+
color: #333
|
12
|
+
font-size: 12px
|
13
|
+
font-weight: 600
|
14
|
+
line-height: 24px
|
15
|
+
padding: 12px
|
16
|
+
text-transform: uppercase
|
17
|
+
|
18
|
+
.card-content
|
19
|
+
padding: 12px 12px 24px 12px
|
20
|
+
|
21
|
+
.card-footer
|
22
|
+
border-top: 1px solid #e9e9e9
|
23
|
+
color: #999
|
24
|
+
font-size: 16px
|
25
|
+
font-weight: 400
|
26
|
+
line-height: 28px
|
27
|
+
padding: 4px 12px
|
28
|
+
|
29
|
+
.card-score
|
30
|
+
color: #666
|
31
|
+
font-size: 64px
|
32
|
+
font-weight: bold
|
33
|
+
margin: 12px 0
|
34
|
+
|
35
|
+
&.card-score-a
|
36
|
+
color: #00c309
|
37
|
+
|
38
|
+
&.card-score-b
|
39
|
+
color: #8dbe50
|
40
|
+
|
41
|
+
&.card-score-c
|
42
|
+
color: #f3e64c
|
43
|
+
|
44
|
+
&.card-score-d
|
45
|
+
color: #f0aa50
|
46
|
+
|
47
|
+
&.card-score-f
|
48
|
+
color: #e62f36
|
49
|
+
|
50
|
+
small
|
51
|
+
color: #666
|
52
|
+
display: block
|
53
|
+
font-size: 13px
|
54
|
+
font-weight: 400
|
@@ -0,0 +1,15 @@
|
|
1
|
+
$primary-color: #6865b4
|
2
|
+
$success-color: #80b867
|
3
|
+
$danger-color: #da3939
|
4
|
+
$info-color: #17577c
|
5
|
+
$error-color: #6a1515
|
6
|
+
$alert-color: orange
|
7
|
+
|
8
|
+
$asset-pipeline: true
|
9
|
+
$font-family: "Proxima Nova", "Helvetica Neue", "Helvetica", sans-serif
|
10
|
+
$icon-font: $font-family
|
11
|
+
$gutter: 5em
|
12
|
+
|
13
|
+
$desktop: min-width 768px 8
|
14
|
+
$tablet: max-width 768px 8
|
15
|
+
$mobile: max-width 480px 4
|
@@ -0,0 +1,61 @@
|
|
1
|
+
@include keyframes("flyIn")
|
2
|
+
0%
|
3
|
+
opacity: 0
|
4
|
+
@include transform(scale(.9))
|
5
|
+
100%
|
6
|
+
opacity: 1
|
7
|
+
@include transform(scale(1))
|
8
|
+
|
9
|
+
.animated.flyIn
|
10
|
+
@include animation("flyIn" .4s ease)
|
11
|
+
|
12
|
+
@include keyframes("flyOut")
|
13
|
+
0%
|
14
|
+
opacity: 1
|
15
|
+
@include transform(scale(1))
|
16
|
+
100%
|
17
|
+
opacity: 0
|
18
|
+
@include transform(scale(.9))
|
19
|
+
|
20
|
+
.animated.flyOut
|
21
|
+
@include animation("flyOut" .4s ease)
|
22
|
+
|
23
|
+
@include keyframes("small-shake")
|
24
|
+
0%, 100%
|
25
|
+
@include transform(translateX(0))
|
26
|
+
20%, 60%
|
27
|
+
@include transform(translateX(7px))
|
28
|
+
40%, 80%
|
29
|
+
@include transform(translateX(-7px))
|
30
|
+
|
31
|
+
.animated.small-shake
|
32
|
+
@include animation("small-shake" .6s ease-in)
|
33
|
+
|
34
|
+
@include keyframes("switchon")
|
35
|
+
0%
|
36
|
+
@include transform(translate3d(0, 0, 0))
|
37
|
+
50%
|
38
|
+
width: 32px
|
39
|
+
@include transform(translate3d(0, 0, 0))
|
40
|
+
100%
|
41
|
+
width: 23px
|
42
|
+
@include transform(translate3d(17px, 0, 0))
|
43
|
+
|
44
|
+
@include keyframes("switchoff")
|
45
|
+
0%
|
46
|
+
@include transform(translate3d(17px, 0, 0))
|
47
|
+
100%
|
48
|
+
@include transform(translate3d(0, 0, 0))
|
49
|
+
|
50
|
+
.deactivated .knob
|
51
|
+
@include animation("switchoff" .2s ease)
|
52
|
+
|
53
|
+
.activated .knob
|
54
|
+
@include animation("switchon" .4s)
|
55
|
+
@include animation-fill-mode(forwards)
|
56
|
+
|
57
|
+
@include keyframes("rotate")
|
58
|
+
0%
|
59
|
+
@include transform(rotate(0deg))
|
60
|
+
100%
|
61
|
+
@include transform(rotate(360deg))
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.farbtastic
|
2
|
+
background: #fff
|
3
|
+
border-radius: 100px
|
4
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, .25)
|
5
|
+
display: none
|
6
|
+
position: absolute
|
7
|
+
z-index: 3
|
8
|
+
|
9
|
+
*
|
10
|
+
cursor: crosshair
|
11
|
+
position: absolute
|
12
|
+
|
13
|
+
.color, .overlay
|
14
|
+
height: 101px
|
15
|
+
left: 47px
|
16
|
+
top: 47px
|
17
|
+
width: 101px
|
18
|
+
|
19
|
+
.wheel
|
20
|
+
background: url(asset-path('spina/wheel.png'))
|
21
|
+
height: 195px
|
22
|
+
width: 195px
|
23
|
+
|
24
|
+
.overlay
|
25
|
+
background: url(asset-path('spina/mask.png'))
|
26
|
+
|
27
|
+
.marker
|
28
|
+
background: url(asset-path('spina/marker.png'))
|
29
|
+
height: 17px
|
30
|
+
margin: -8px 0 0 -8px
|
31
|
+
overflow: hidden
|
32
|
+
width: 17px
|
33
|
+
|
34
|
+
.farbtastic, .farbtastic .wheel
|
35
|
+
height: 195px
|
36
|
+
width: 195px
|
37
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// Icons
|
2
|
+
|
3
|
+
@include font-face("ics_spina", "spina/ics_spina", $asset-pipeline: true, $file-formats: eot woff ttf svg)
|
4
|
+
|
5
|
+
.icon
|
6
|
+
display: inline-block
|
7
|
+
vertical-align: middle
|
8
|
+
font-size: inherit
|
9
|
+
line-height: inherit // NOTE: should be 1
|
10
|
+
font-family: "ics_spina" !important
|
11
|
+
font-style: normal !important
|
12
|
+
font-variant: normal !important
|
13
|
+
font-weight: normal !important
|
14
|
+
text-transform: none !important
|
15
|
+
speak: none
|
16
|
+
text-rendering: auto
|
17
|
+
-webkit-font-smoothing: antialiased
|
18
|
+
-moz-osx-font-smoothing: grayscale
|