kickstart_rails 3.0.20 → 3.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/kickstart_rails/core/_base_components.sass +10 -10
  3. data/app/assets/stylesheets/kickstart_rails/core/_dependent_components.sass +7 -7
  4. data/app/assets/stylesheets/kickstart_rails/core/components/_alerts.sass +23 -0
  5. data/app/assets/stylesheets/kickstart_rails/core/components/_buttons.sass +159 -0
  6. data/app/assets/stylesheets/kickstart_rails/core/components/_dropdown_menu.sass +69 -0
  7. data/app/assets/stylesheets/kickstart_rails/core/components/_forms.sass +106 -0
  8. data/app/assets/stylesheets/kickstart_rails/core/components/_growls.sass +2 -0
  9. data/app/assets/stylesheets/kickstart_rails/core/components/_hr.sass +5 -0
  10. data/app/assets/stylesheets/kickstart_rails/core/components/_images.sass +40 -0
  11. data/app/assets/stylesheets/kickstart_rails/core/components/_labels.sass +15 -0
  12. data/app/assets/stylesheets/kickstart_rails/core/components/_modals.sass +73 -0
  13. data/app/assets/stylesheets/kickstart_rails/core/components/_navbar.sass +270 -0
  14. data/app/assets/stylesheets/kickstart_rails/core/components/_notifications.sass +20 -0
  15. data/app/assets/stylesheets/kickstart_rails/core/components/_pagination.sass +11 -0
  16. data/app/assets/stylesheets/kickstart_rails/core/components/_progress.sass +12 -0
  17. data/app/assets/stylesheets/kickstart_rails/core/components/_tables.sass +70 -0
  18. data/app/assets/stylesheets/kickstart_rails/core/components/_tabs.sass +37 -0
  19. data/app/assets/stylesheets/kickstart_rails/core/components/_tooltips.sass +26 -0
  20. data/app/assets/stylesheets/kickstart_rails/docs.sass +9 -3
  21. data/app/assets/stylesheets/kickstart_rails/fullpage.sass +1 -1
  22. data/app/assets/stylesheets/kickstart_rails/kickstart-semantic.sass +1 -1
  23. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +1 -1
  24. data/app/assets/stylesheets/kickstart_rails/pages/docs/grid.sass +1 -1
  25. data/app/assets/stylesheets/kickstart_rails/pages/docs/index.sass +4 -1
  26. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/alerts.sass +1 -1
  27. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/buttons.sass +1 -1
  28. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/forms.sass +1 -1
  29. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/image.sass +1 -1
  30. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/images.sass +1 -1
  31. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/labels.sass +1 -1
  32. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/modals.sass +1 -1
  33. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/navigation.sass +1 -1
  34. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/notifications.sass +1 -1
  35. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tables.sass +1 -1
  36. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tabs.sass +1 -1
  37. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tooltips.sass +1 -1
  38. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/typography.sass +1 -1
  39. data/app/assets/stylesheets/kickstart_rails/pages/index.sass +2 -3
  40. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +6 -0
  41. data/app/assets/stylesheets/kickstart_rails/themes/default/theme.sass +264 -0
  42. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/LICENSE +22 -0
  43. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/README.md +14 -0
  44. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/example.sass +14 -0
  45. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/gulpfile.js +16 -0
  46. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/index.html +18 -0
  47. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/package.json +24 -0
  48. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/switch.sass +53 -0
  49. data/app/assets/stylesheets/kickstart_rails/vendor/_index.sass +1 -0
  50. data/app/assets/stylesheets/kickstart_rails/vendor/switch/LICENSE +22 -0
  51. data/app/assets/stylesheets/kickstart_rails/vendor/switch/README.md +34 -0
  52. data/app/assets/stylesheets/kickstart_rails/vendor/switch/example.sass +14 -0
  53. data/app/assets/stylesheets/kickstart_rails/vendor/switch/gulpfile.js +16 -0
  54. data/app/assets/stylesheets/kickstart_rails/vendor/switch/index.html +18 -0
  55. data/app/assets/stylesheets/kickstart_rails/vendor/switch/index.sass +53 -0
  56. data/app/assets/stylesheets/kickstart_rails/vendor/switch/package.json +24 -0
  57. data/app/assets/stylesheets/kickstart_rails/vendor/switch/switch.sass +53 -0
  58. data/lib/kickstart_rails/version.rb +1 -1
  59. metadata +34 -2
@@ -0,0 +1,15 @@
1
+ =label-default($background-color: $primary-color)
2
+ +root-element
3
+ background: $background-color
4
+ font-size: 0.8rem
5
+ color: white
6
+ line-height: normal
7
+ font-weight: bold
8
+
9
+ @if $background-color == map-get($colors, yellow)
10
+ color: $default-font-color
11
+
12
+ &:after
13
+ border-top-color: $background-color
14
+
15
+ @content
@@ -0,0 +1,73 @@
1
+ =modal-default()
2
+ +root-element
3
+ border-width: 0
4
+ padding: $space
5
+ position: fixed
6
+ box-shadow: 0px 0px 99999px 99999px rgba(0, 0, 0, 0.35), 0px 0px 25px rgba(0, 0, 0, 0.5)
7
+ top: 15px
8
+ top: 5vh
9
+ left: 2%
10
+ right: 2%
11
+ margin: 0px auto
12
+ display: none
13
+ background: white
14
+ border-color: map-get($white, dark)
15
+ animation-duration: 0.2s
16
+ animation-timing-function: ease
17
+ animation-fill-mode: both
18
+ z-index: 1500
19
+
20
+ &[style="display: block;"]
21
+ animation-name: fadeInDown
22
+
23
+ @media screen and (min-width: $tablet)
24
+ top: 75px
25
+ top: 10vh
26
+ width: 650px
27
+ left: 50%
28
+ margin-left: -325px
29
+
30
+ > header, > footer
31
+ +alert
32
+
33
+ > h1, > h2, > h3, > h4, > h5, > h6
34
+ margin-bottom: 0
35
+
36
+ background: map-get($white, dark)
37
+ color: $default-font-color
38
+ margin: -$space
39
+ bottom: $space
40
+
41
+ > header
42
+ border-bottom-left-radius: 0
43
+ border-bottom-right-radius: 0
44
+ position: relative
45
+
46
+ a[data-modal-close]
47
+ position: absolute
48
+ top: $space/2
49
+ right: $space/2
50
+ line-height: 1.3rem
51
+ text-decoration: none
52
+ font-size: 1.3rem
53
+
54
+ > footer
55
+ margin:
56
+ top: $space
57
+ bottom: -$space
58
+ border-top-left-radius: 0
59
+ border-top-right-radius: 0
60
+
61
+ ul
62
+ +list($style: 'unstyled horizontal')
63
+ text-align: right
64
+
65
+ li
66
+ margin:
67
+ bottom: 0
68
+ right: 0
69
+
70
+ [role="button"]
71
+ text-decoration: none
72
+
73
+ @content
@@ -0,0 +1,270 @@
1
+ =color($background)
2
+ @if (lightness($background) < 75%)
3
+ color: rgba(255, 255, 255, 0.5)
4
+ @else
5
+ color: rgba(0, 0, 0, 0.5)
6
+
7
+ =navbar-align_menus($breakpoint)
8
+ @media screen and (min-width: $breakpoint)
9
+ > ul:first-child
10
+ margin-left: (-1 * map-get($rootElement, paddingH))
11
+
12
+ > ul:last-child
13
+ margin-right: (-1 * map-get($rootElement, paddingH))
14
+
15
+ > ul:only-child
16
+ margin-right: 0
17
+
18
+ =navbar-fluid($breakpoint: $tablet)
19
+ nav
20
+ +container(true)
21
+ +navbar-align_menus($breakpoint)
22
+
23
+ =navbar-fluid_fixed($breakpoint: $tablet)
24
+ nav
25
+ +container(false)
26
+ +navbar-align_menus($breakpoint)
27
+
28
+ =navbar-fixed
29
+ position: fixed
30
+ z-index: 100
31
+ left: 0
32
+ right: 0
33
+ top: 0
34
+
35
+ =navbar-color($background-color)
36
+ background-color: $background-color
37
+
38
+ nav
39
+ > ul
40
+ > li
41
+ &.menu-item
42
+ +color($background-color)
43
+
44
+ > a:not([role=button])
45
+ +color($background-color)
46
+
47
+ =navbar-default($layout: 'none', $background-color: map-get($white, dark), $breakpoint: $tablet, $collapse: false, $fixed: false)
48
+ box-shadow: 0px 1px 0px darken($background-color, 12%) inset
49
+ font-size: $default-font-size
50
+ margin-bottom: $space
51
+
52
+ nav
53
+ width: 100%
54
+ border-radius: 0
55
+ position: relative
56
+
57
+ @if (lightness($background-color) < 75%)
58
+ color: white
59
+ @else
60
+ color: $default-font-color
61
+
62
+ @media screen and (min-width: $breakpoint)
63
+ display: flex
64
+ align-items: center
65
+ flex-wrap: wrap
66
+ justify-content: space-between
67
+ align-content: space-between
68
+
69
+
70
+ &.expand
71
+ @if $collapse == true
72
+ > ul > li
73
+ display: block
74
+
75
+ h1
76
+ +heading-xxs
77
+ margin-bottom: 0
78
+ font-size: $base-font-size
79
+ line-height: $default-line-height
80
+
81
+ p
82
+ margin: 0
83
+
84
+ > ul
85
+ margin: 0
86
+ padding: 0
87
+
88
+ @media screen and (min-width: $breakpoint)
89
+ display: flex
90
+ justify-content: space-between
91
+ align-content: space-between
92
+ align-items: center
93
+ flex-wrap: wrap
94
+
95
+ &:last-child
96
+ @media screen and (min-width: $breakpoint)
97
+ > li.menu-item.open
98
+ ul
99
+ left: auto
100
+ right: -1px
101
+
102
+ &:only-child
103
+ @media screen and (min-width: $breakpoint)
104
+ > li.menu-item.open
105
+ ul
106
+ left: -1px
107
+ right: auto
108
+
109
+ > li
110
+ list-style: none
111
+ +root-element
112
+ margin-bottom: 0
113
+ border-radius: 0
114
+ padding: (map-get($rootElement, paddingV) - 1) (map-get($rootElement, paddingH))
115
+ position: relative
116
+ margin:
117
+ left: (-1 * map-get($rootElement, paddingH))
118
+ right: (-1 * map-get($rootElement, paddingH))
119
+ user-select: none
120
+
121
+ @media screen and (min-width: $breakpoint)
122
+ margin: 0
123
+
124
+ @if $collapse == true
125
+ display: none
126
+
127
+ @media screen and (min-width: $breakpoint)
128
+ display: block
129
+
130
+ &.navbar-title
131
+ display: flex
132
+ justify-content: space-between
133
+ align-items: center
134
+
135
+ @media screen and (min-width: $breakpoint)
136
+ padding: 0
137
+
138
+ > h1, > h2, > h3, > h4, > h5, > h6
139
+ padding: (map-get($rootElement, paddingV) - 1) (map-get($rootElement, paddingH))
140
+
141
+ button
142
+ +button-default(transparent)
143
+ background: transparent
144
+ border-color: transparent
145
+ color: inherit
146
+ display: block
147
+ margin-bottom: 0
148
+ font-family: Kickstart, 'Kickstart'
149
+ padding:
150
+ left: 0
151
+ right: 0
152
+ opacity: 0.5
153
+ @if ($collapse == false)
154
+ display: none
155
+
156
+ &:hover, &:active
157
+ box-shadow: none
158
+
159
+ &:hover
160
+ opacity: 1
161
+
162
+ @media screen and (min-width: $breakpoint)
163
+ display: none
164
+
165
+ &.menu-item // Added via k$.nav()
166
+ padding: (2 * map-get($rootElement, paddingV) - 1) (map-get($rootElement, paddingH))
167
+ cursor: pointer
168
+
169
+ &:before
170
+ content: '='
171
+ margin-right: 8px
172
+
173
+ &:before, &:after
174
+ font-family: 'Kickstart', Kickstart
175
+ display: inline-block
176
+ font-size: 0.65rem
177
+ vertical-align: middle
178
+
179
+ @media screen and (min-width: $breakpoint)
180
+ &:before
181
+ content: ''
182
+ display: none
183
+
184
+ &:after
185
+ content: '+'
186
+ margin-left: 8px
187
+
188
+ &:hover
189
+ @if (lightness($background-color) < 75%)
190
+ color: white
191
+ @else
192
+ color: rgba(0, 0, 0, 0.85)
193
+ background: darken($background-color, 5%)
194
+ border-color: darken($background-color, 5%)
195
+
196
+ &:active
197
+ background: darken($background-color, 15%)
198
+ border-color: darken($background-color, 15%)
199
+
200
+ &.open
201
+ color: rgba(0, 0, 0, 0.85)
202
+ background: white
203
+ border-color: map-get($white, darker)
204
+ border-bottom-color: transparent
205
+
206
+ &:hover
207
+ color: rgba(0, 0, 0, 0.85)
208
+ border-color: map-get($white, darker)
209
+ border-bottom-color: transparent
210
+
211
+ @media screen and (max-width: $breakpoint)
212
+ ul
213
+ max-width: none
214
+ right: -1px
215
+
216
+ li, li a:not([role=button])
217
+ font-size: 1rem
218
+
219
+ a:not([role=button])
220
+ padding:
221
+ top: 2 * map-get($rootElement, paddingV)
222
+ bottom: 2 * map-get($rootElement, paddingV)
223
+
224
+ ul
225
+ border-top-left-radius: 0
226
+ border-top-right-radius: 0
227
+ box-shadow: 3px 3px 3px -3px rgba(0, 0, 0, 0.25)
228
+ display: none
229
+
230
+ ul[role=button]
231
+ display: inherit
232
+
233
+ > a:not([role=button])
234
+ text-decoration: none
235
+ cursor: pointer
236
+ display: block
237
+ +root-element
238
+ margin-bottom: 0
239
+ border-radius: 0
240
+ margin: (-1 * map-get($rootElement, paddingV)) (-1 * map-get($rootElement, paddingH))
241
+ padding:
242
+ top: (2 * map-get($rootElement, paddingV))
243
+ bottom: (2 * map-get($rootElement, paddingV))
244
+ left: map-get($rootElement, paddingH)
245
+ right: map-get($rootElement, paddingH)
246
+
247
+ &:hover
248
+ @if (lightness($background-color) < 75%)
249
+ color: white
250
+ @else
251
+ color: rgba(0, 0, 0, 0.85)
252
+ background: darken($background-color, 5%)
253
+ border-color: darken($background-color, 5%)
254
+
255
+ &:active
256
+ background: darken($background-color, 15%)
257
+ border-color: darken($background-color, 15%)
258
+
259
+ @if ($layout == 'fluid')
260
+ +navbar-fluid($breakpoint)
261
+
262
+ @if ($layout == 'fluid-fixed')
263
+ +navbar-fluid_fixed($breakpoint)
264
+
265
+ @if ($fixed == true)
266
+ +navbar-fixed
267
+
268
+ +navbar-color($background-color)
269
+
270
+ @content
@@ -0,0 +1,20 @@
1
+ =status_bar
2
+ position: fixed
3
+ top: 0
4
+ left: 0
5
+ right: 0
6
+ z-index: 2000 // Above modal
7
+ display: flex
8
+ pointer-events: none
9
+
10
+ .status_bar-status
11
+ +label(map-get($colors, yellow))
12
+ color: black
13
+ text-align: center
14
+ margin: 5px auto
15
+ max-width: 300px
16
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15)
17
+ +fadeInDown
18
+ z-index: 1000
19
+
20
+ @content
@@ -0,0 +1,11 @@
1
+ =pagination-default($background: map-get($white, dark))
2
+ display: flex
3
+ align-items: flex-start
4
+ flex-wrap: wrap
5
+ justify-content: space-between
6
+ align-content: space-between
7
+
8
+ > ul
9
+ +button-group-default($background-color: map-get($white, dark), $size: 1)
10
+
11
+ @content
@@ -0,0 +1,12 @@
1
+ progress
2
+ width: 100%
3
+
4
+ &::-webkit-progress-bar
5
+ border-radius: ($space/5)
6
+ min-height: $space
7
+ -webkit-appearance: none
8
+ appearance: none
9
+ -moz-appearance: none
10
+
11
+ &::-webkit-progress-value
12
+ border-radius: ($space/5) 0 0 ($space/5)
@@ -0,0 +1,70 @@
1
+ =table-default($blank: false, $zebra: false, $hover: false)
2
+ border-collapse: collapse
3
+ background: white
4
+ border-spacing: 0
5
+ empty-cells: show
6
+ border: 1px solid map-get($gray, light)
7
+ width: 100%
8
+ margin-bottom: $space
9
+
10
+ pre
11
+ margin: 0
12
+
13
+ thead
14
+ background: map-get($white, dark)
15
+ color: black
16
+ text-align: left
17
+ vertical-align: bottom
18
+ border-bottom: 1px solid transparent
19
+
20
+ th
21
+ font-weight: bold
22
+ text-align: left
23
+
24
+ th, td
25
+ background-color: transparent
26
+ border-left: 1px solid map-get($gray, light)
27
+ border-width: 0 0 0 1px
28
+ font-size: inherit
29
+ margin: 0
30
+ overflow: visible
31
+ padding: ($space/6) ($space/4)
32
+ line-height: normal
33
+
34
+ &:first-child
35
+ border-left-width: 0
36
+
37
+ @if $blank == true
38
+ +table-blank
39
+
40
+ @if $zebra == true
41
+ +table-zebra
42
+
43
+ @content
44
+
45
+ =table-blank
46
+ border-color: transparent
47
+ table, tr, td, tbody, thead, th, tfoot
48
+ border-color: transparent
49
+ background: transparent
50
+ th, td
51
+ padding:
52
+ left: 0px
53
+ right: 0px
54
+
55
+ =table-hover
56
+ tbody, thead
57
+ tr:hover
58
+ background-color: $primary-color
59
+
60
+ td, th
61
+ color: white
62
+
63
+ =table-zebra
64
+ tbody, thead
65
+ tr:nth-child(even)
66
+ background-color: map-get($white, dark)
67
+
68
+ tr
69
+ td, th
70
+ padding: ($space/6) ($space/4)