spina-template 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.gitignore +17 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +29 -0
  7. data/Rakefile +1 -0
  8. data/app/.DS_Store +0 -0
  9. data/app/assets/.DS_Store +0 -0
  10. data/app/assets/images/.DS_Store +0 -0
  11. data/app/assets/images/spina/arrow-left.png +0 -0
  12. data/app/assets/images/spina/arrow-right.png +0 -0
  13. data/app/assets/images/spina/bg.jpg +0 -0
  14. data/app/assets/images/spina/danger-zone-ribbon.png +0 -0
  15. data/app/assets/images/spina/datepicker.png +0 -0
  16. data/app/assets/images/spina/divider.png +0 -0
  17. data/app/assets/images/spina/marker.png +0 -0
  18. data/app/assets/images/spina/mask.png +0 -0
  19. data/app/assets/images/spina/wheel.png +0 -0
  20. data/app/assets/javascripts/.DS_Store +0 -0
  21. data/app/assets/javascripts/spina/dropdown.js.coffee +64 -0
  22. data/app/assets/javascripts/spina/galleryselect.js.coffee +12 -0
  23. data/app/assets/javascripts/spina/modal.js.coffee +54 -0
  24. data/app/assets/javascripts/spina/switch.js.coffee +41 -0
  25. data/app/assets/javascripts/spina/tabs.js.coffee +13 -0
  26. data/app/assets/javascripts/spina/uploads.js.coffee +45 -0
  27. data/app/assets/javascripts/spina.js.coffee.erb +154 -0
  28. data/app/assets/stylesheets/.DS_Store +0 -0
  29. data/app/assets/stylesheets/spina/_admin_editing.css.sass +29 -0
  30. data/app/assets/stylesheets/spina/_buttons.css.sass +334 -0
  31. data/app/assets/stylesheets/spina/_cards.css.sass +57 -0
  32. data/app/assets/stylesheets/spina/_configuration.css.sass +16 -0
  33. data/app/assets/stylesheets/spina/_custom_animations.css.sass +61 -0
  34. data/app/assets/stylesheets/spina/_farbtastic.css.sass +37 -0
  35. data/app/assets/stylesheets/spina/_fonts.css.sass +14 -0
  36. data/app/assets/stylesheets/spina/_forms.css.sass +473 -0
  37. data/app/assets/stylesheets/spina/_gallery.css.sass +121 -0
  38. data/app/assets/stylesheets/spina/_grid.css.sass +12 -0
  39. data/app/assets/stylesheets/spina/_labels.css.sass +28 -0
  40. data/app/assets/stylesheets/spina/_login.css.sass +32 -0
  41. data/app/assets/stylesheets/spina/_mixins.css.scss +13 -0
  42. data/app/assets/stylesheets/spina/_modal.css.sass +158 -0
  43. data/app/assets/stylesheets/spina/_sortable_lists.css.sass +161 -0
  44. data/app/assets/stylesheets/spina/_tables.css.sass +144 -0
  45. data/app/assets/stylesheets/spina/_wysihtml5.css.sass +73 -0
  46. data/app/assets/stylesheets/spina/wysihtml5_textarea.css.sass +14 -0
  47. data/app/assets/stylesheets/spina.css.sass +521 -0
  48. data/lib/spina/template/version.rb +5 -0
  49. data/lib/spina/template.rb +12 -0
  50. data/spina-template.gemspec +26 -0
  51. data/vendor/.DS_Store +0 -0
  52. data/vendor/assets/.DS_Store +0 -0
  53. data/vendor/assets/javascripts/.DS_Store +0 -0
  54. data/vendor/assets/javascripts/spina/jquery.customfileinput.js +85 -0
  55. data/vendor/assets/javascripts/spina/jquery.datatables.js +12099 -0
  56. data/vendor/assets/javascripts/spina/jquery.farbtastic.js +345 -0
  57. data/vendor/assets/javascripts/spina/jquery.nestable.js +485 -0
  58. data/vendor/assets/javascripts/spina/jquery.sortable.js +3 -0
  59. data/vendor/assets/javascripts/spina/jquery.ui.datepicker-nl.js +23 -0
  60. data/vendor/assets/javascripts/spina/jquery.ui.js +6 -0
  61. data/vendor/assets/javascripts/spina/morris.js +1767 -0
  62. data/vendor/assets/javascripts/spina/nprogress.js +274 -0
  63. data/vendor/assets/javascripts/spina/raphael.js +8111 -0
  64. data/vendor/assets/javascripts/spina/wysihtml5.js +269 -0
  65. data/vendor/assets/javascripts/spina/wysihtml5_parser_rules.js +551 -0
  66. data/vendor/assets/stylesheets/.DS_Store +0 -0
  67. data/vendor/assets/stylesheets/spina/_animate.css +1 -0
  68. data/vendor/assets/stylesheets/spina/_morris.css +2 -0
  69. data/vendor/assets/stylesheets/spina/_normalize.css +396 -0
  70. data/vendor/assets/stylesheets/spina/_nprogress.css.scss +85 -0
  71. metadata +197 -0
@@ -0,0 +1,158 @@
1
+ #overlay
2
+ display: none
3
+ height: 100%
4
+ left: 0
5
+ position: fixed
6
+ top: 0
7
+ width: 100%
8
+ z-index: 999
9
+ @include background-image(radial-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .6)))
10
+
11
+ .modal
12
+ background: #fff
13
+ border-radius: 3px
14
+ display: none
15
+ margin: 0 auto
16
+ max-width: 480px
17
+ min-height: 100px
18
+ position: relative
19
+ @include animation-duration(.4s)
20
+
21
+ @media screen and (max-width: 480px)
22
+ margin: 0 10px
23
+
24
+ &.modal-small
25
+ width: 320px
26
+
27
+ &.modal-medium
28
+ max-width: 640px
29
+
30
+ &.modal-large
31
+ max-width: none
32
+ width: 80%
33
+
34
+ footer a
35
+ padding: 18px 0
36
+
37
+ header h3
38
+ border-radius: 2px 2px 0 0
39
+ color: #232323
40
+ font-size: 16px
41
+ font-weight: 400
42
+ margin: 0
43
+ padding: 20px
44
+
45
+ header.big-header h2
46
+ color: #333
47
+ font-size: 36px
48
+ font-weight: 400
49
+ margin: 0
50
+ padding-top: 48px
51
+ text-align: center
52
+
53
+ header.big-header h3
54
+ line-height: 24px
55
+ padding: 46px
56
+ text-align: center
57
+
58
+ @media screen and (max-width: 480px)
59
+ padding: 30px 20px
60
+
61
+ header.big-header p
62
+ color: #333
63
+ font-size: 18px
64
+ font-weight: 400
65
+ margin: 0
66
+ margin-top: 9px
67
+ padding-bottom: 48px
68
+ text-align: center
69
+
70
+ strong
71
+ font-weight: 600
72
+
73
+ header h3 strong
74
+ color: #000
75
+ font-weight: 600
76
+
77
+ header a[data-dismiss="modal"]
78
+ color: #d6d6d6
79
+ float: right
80
+ font-size: 12px
81
+ padding: 5px 6px
82
+ text-decoration: none
83
+ @include transition(color .2s ease-out)
84
+
85
+ header a[data-dismiss="modal"]:hover
86
+ color: #999
87
+
88
+ section
89
+ overflow: scroll
90
+ padding: 20px
91
+ background: white
92
+
93
+ .col
94
+ float: left
95
+ width: 33%
96
+ padding: 10px
97
+
98
+ h3
99
+ font-size: 16px
100
+ font-weight: bold
101
+ line-height: 26px
102
+
103
+ p
104
+ line-height: 22px
105
+
106
+ pre
107
+ font-size: 12px
108
+ background: #ddd
109
+ border: 1px solid #bbb
110
+ padding: 10px
111
+ border-radius: 5px
112
+ margin-bottom: 20px
113
+ color: #444
114
+ line-height: 20px
115
+ font-family: Consolas, Courier, monospace
116
+
117
+ &.section-divided
118
+ border-top: 1px solid #eee
119
+
120
+ footer
121
+ clear: both
122
+ margin: -20px
123
+
124
+ table
125
+ color: #333
126
+ font-size: 15px
127
+ line-height: 24px
128
+
129
+ th
130
+ font-weight: 600
131
+ padding-right: 24px
132
+ text-align: left
133
+
134
+ td
135
+ font-weight: 400
136
+
137
+ table.table-centered
138
+ margin: 0 auto
139
+
140
+ footer
141
+ border-top: 1px solid #eee
142
+
143
+ footer a, footer button
144
+ background: none
145
+ color: #999
146
+ display: inline-block
147
+ font-size: 13px
148
+ font-weight: 600
149
+ padding: 12px 0
150
+ text-align: center
151
+ width: 49%
152
+ @include transition(color .2s ease-out)
153
+
154
+ footer a.primary, footer a:hover, footer button.primary, footer button:hover
155
+ color: #000
156
+
157
+ footer a.primary:hover, footer button.primary:hover
158
+ color: $primary-color
@@ -0,0 +1,161 @@
1
+ // Sortable lists
2
+
3
+ .dd
4
+ margin: 0 -40px
5
+ overflow: hidden
6
+ position: relative
7
+
8
+ & > .dd-list > .dd-item:first-child
9
+ border-top: none
10
+
11
+ .dd-item-inner.dd-handle
12
+ cursor: move
13
+
14
+ .dd-item-inner .sortable-link
15
+ @include transform(translateX(-26px))
16
+ @include transition(all .2s ease)
17
+
18
+ .dd-item-inner.dd-handle .sortable-link
19
+ @include transform(translateX(0))
20
+
21
+ .dd-item-inner:before
22
+ color: #ccc
23
+ content: "7"
24
+ display: inline-block
25
+ font-family: $icon-font
26
+ height: 18px
27
+ opacity: 0
28
+ vertical-align: middle
29
+ width: 26px
30
+ @include transform(translateX(-26px))
31
+ @include transition(all .2s ease)
32
+
33
+ .dd-item-inner.dd-handle:before
34
+ opacity: 1
35
+ @include transform(translateX(0))
36
+
37
+ .dd-list
38
+ list-style: none
39
+ margin: 0
40
+ padding: 0
41
+ position: relative
42
+
43
+ .dd-placeholder
44
+ position: relative
45
+
46
+ &:after
47
+ border: 1px dashed #ddd
48
+ content: " "
49
+ display: block
50
+ height: 100%
51
+ margin-left: 0px
52
+ top: 0px
53
+ width: 100%
54
+ @include box-sizing(border-box)
55
+
56
+ .dd-list
57
+ background: #f9f9f9
58
+ border-top: 1px solid #ddd
59
+
60
+ .dd-placeholder
61
+ background: #f9f9f9
62
+
63
+ &:after
64
+ margin-left: 60px
65
+
66
+ .dd-item:last-child
67
+ border-bottom: none
68
+
69
+ .dd-item
70
+ padding-left: 30px
71
+
72
+ .dd-list
73
+ background: #f1f1f1
74
+ margin-left: -30px
75
+
76
+ .dd-item
77
+ padding-left: 60px
78
+
79
+ .dd-placeholder
80
+ background: #f1f1f1
81
+
82
+ &:after
83
+ margin-left: 90px
84
+
85
+ .dd-collapsed .dd-list
86
+ display: none
87
+
88
+ .dd-item
89
+ border-bottom: 1px solid #ddd
90
+
91
+ .dd-item, .dd-empty, .dd-placeholder
92
+ margin: 0
93
+ padding: 0
94
+ position: relative
95
+
96
+ .dd-placeholder, .dd-empty
97
+ background: #fcfcfc
98
+ margin: 0
99
+ padding: 0
100
+ @include box-sizing(border-box)
101
+
102
+ .dd-empty
103
+ background: blue
104
+ min-height: 100px
105
+
106
+ .dd-item-inner
107
+ padding: 10px 40px
108
+ text-decoration: none
109
+
110
+ a
111
+ margin: 0
112
+
113
+ a.sortable-link, a.sortable-link:hover
114
+ color: $primary-color
115
+ font-size: 13px
116
+ font-weight: 600
117
+ padding-left: 0
118
+
119
+ small
120
+ font-size: 13px
121
+ font-weight: 400
122
+ margin-left: 13px
123
+
124
+ .dd-dragel
125
+ pointer-events: none
126
+ position: absolute
127
+ z-index: 9999
128
+
129
+ & > .dd-item .dd-handle
130
+ margin-top: 0
131
+
132
+ .dd-item > button
133
+ background: transparent
134
+ border: 0
135
+ cursor: pointer
136
+ display: block
137
+ float: left
138
+ font-size: 9px
139
+ height: 52px
140
+ line-height: 20px
141
+ overflow: hidden
142
+ margin-left: 10px
143
+ padding: 0
144
+ position: relative
145
+ text-align: center
146
+ text-indent: 100%
147
+ white-space: nowrap
148
+ width: 30px
149
+
150
+ &:before
151
+ color: $primary-color
152
+ content: "t"
153
+ display: block
154
+ font-family: $icon-font
155
+ position: absolute
156
+ text-align: center
157
+ text-indent: 0
158
+ width: 100%
159
+
160
+ &[data-action="collapse"]:before
161
+ content: "X"
@@ -0,0 +1,144 @@
1
+ // Tables
2
+
3
+ .table-container
4
+ margin: 0 -40px
5
+
6
+ table.table tr td:first-child, table.table tr th:first-child
7
+ padding-left: 40px
8
+
9
+ table.table tr td:last-child, table.table tr th:last-child
10
+ padding-right: 40px
11
+
12
+ .modal .table-container
13
+ margin: 0 -20px
14
+
15
+ table.table tr td:first-child, table.table tr th:first-child
16
+ padding-left: 20px
17
+
18
+ table.table tr td:last-child, table.table tr th:last-child
19
+ padding-right: 20px
20
+
21
+ table.table
22
+ color: #333
23
+ font-size: 13px
24
+ line-height: 18px
25
+ margin: 20px 0
26
+ width: 100%
27
+
28
+ thead tr, tbody tr
29
+ border-bottom: 1px solid #ddd
30
+
31
+ tbody tr:last-child
32
+ border: none
33
+
34
+ thead th
35
+ outline: none
36
+ padding: 6px 12px
37
+ text-align: left
38
+
39
+ tbody td, tbody th
40
+ padding: 10px 12px
41
+ text-align: left
42
+
43
+ th.nowrap, td.nowrap
44
+ white-space: nowrap
45
+
46
+ small
47
+ color: #666
48
+ display: block
49
+ font-size: 13px
50
+ font-weight: normal
51
+
52
+ td .button
53
+ margin-bottom: 0
54
+
55
+ td.align-center
56
+ text-align: center
57
+
58
+ td.align-left
59
+ text-align: left
60
+
61
+ td.align-right
62
+ text-align: right
63
+
64
+ // Table form
65
+
66
+ table.table.table-form
67
+ tr td:first-child
68
+ min-width: 200px
69
+ width: 30%
70
+
71
+ td .image
72
+ border-radius: 3px
73
+ display: inline-block
74
+ height: 85px
75
+ overflow: hidden
76
+ width: 152px
77
+
78
+ img
79
+ display: block
80
+ height: 100%
81
+ width: 100%
82
+
83
+ td .attachment
84
+ display: inline-block
85
+ margin: 10px 25px 10px 0
86
+
87
+ &:before
88
+ content: "S"
89
+ font-family: $icon-font
90
+ font-size: 28px
91
+ margin-right: 10px
92
+ vertical-align: middle
93
+
94
+ // Clickable tables
95
+
96
+ .table-clickable
97
+ tbody tr:hover
98
+ background: #f9f9f9
99
+
100
+ tbody tr
101
+ cursor: pointer
102
+
103
+ // Datatables
104
+
105
+ .dataTables_filter
106
+ display: none
107
+
108
+ .table-container > .search-input
109
+ margin-right: 40px
110
+
111
+ .dataTables_info
112
+ color: #666
113
+ display: inline-block
114
+ font-size: 12px
115
+ margin-left: 40px
116
+
117
+ .dataTable
118
+ th.sorting_desc
119
+ &:after
120
+ content: "0"
121
+ font-family: $icon-font
122
+ float: right
123
+
124
+ th.sorting_asc
125
+ &:after
126
+ content: "1"
127
+ font-family: $icon-font
128
+ float: right
129
+
130
+ .dataTables_paginate
131
+ float: right
132
+ margin-right: 40px
133
+
134
+ a
135
+ color: #333
136
+ cursor: pointer
137
+ display: inline-block
138
+ font-size: 13px
139
+ font-weight: bold
140
+ line-height: 24px
141
+ padding: 0 13px
142
+
143
+ a.paginate_disabled_previous, a.paginate_disabled_next
144
+ display: none
@@ -0,0 +1,73 @@
1
+ textarea.wysihtml5
2
+ font-size: 14px
3
+ height: 225px
4
+ padding-top: 50px
5
+ padding-right: 125px
6
+ resize: none
7
+
8
+ &:focus
9
+ border: 1px solid $primary-color
10
+
11
+ .wysihtml5-container
12
+ overflow: hidden
13
+ position: relative
14
+
15
+ .toolbar
16
+ border-bottom: 1px solid #e9e9e9
17
+ top: 1px
18
+ left: 1px
19
+ line-height: 40px
20
+ position: absolute
21
+ width: 100%
22
+
23
+ a.command
24
+ border-right: 1px solid #e9e9e9
25
+ color: #999
26
+ display: block
27
+ float: left
28
+ height: 40px
29
+ text-align: center
30
+ width: 40px
31
+
32
+ a.wysihtml5-command-active, a.command:hover
33
+ color: #333
34
+
35
+ .command-bold, .command-italic, .command-insert-unordered-list, .command-link, .action-change-view
36
+ font-size: 12px
37
+ line-height: 43px
38
+
39
+ .command.action-change-view
40
+ border: none
41
+ float: right
42
+
43
+ .choose-text-type
44
+ border-left: 1px solid #e9e9e9
45
+ display: none
46
+ height: 183px
47
+ padding-top: 6px
48
+ position: absolute
49
+ right: 0
50
+ top: 40px
51
+ width: 115px
52
+
53
+ a
54
+ color: #999
55
+ display: block
56
+ line-height: 40px
57
+ padding: 0 16px
58
+
59
+ a:hover
60
+ color: #333
61
+
62
+ ul li a
63
+ color: #999
64
+ line-height: 30px
65
+ text-align: left
66
+
67
+ &.wysihtml5-command-active
68
+ color: $primary-color
69
+
70
+ &.wysihtml5-command-active:hover
71
+ background: none
72
+ color: $primary-color
73
+ cursor: default
@@ -0,0 +1,14 @@
1
+ h1, h2, h3
2
+ font-weight: 600
3
+
4
+ img
5
+ border-radius: 3px
6
+ display: block
7
+ height: auto
8
+ margin: 13px 0
9
+ max-height: 100px
10
+ max-width: 100px
11
+ width: auto
12
+
13
+ img:first-child
14
+ margin-top: 0