kickstart_rails 3.0.20 → 3.0.21

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 (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,37 @@
1
+ =tabs-default
2
+ +list($style: 'unstyled horizontal')
3
+ border-bottom: 1px solid map-get($white, darker)
4
+
5
+ li
6
+ margin: 0
7
+ right: -1px
8
+ bottom: -1px
9
+
10
+ &.open
11
+ a
12
+ border-bottom-color: transparent
13
+ background: white
14
+
15
+ &:hover, &.active
16
+ box-shadow: none
17
+
18
+ a
19
+ +button
20
+ border: 1px solid $secondary-color
21
+ padding:
22
+ left: map-get($rootElement, paddingH)
23
+ right: map-get($rootElement, paddingH)
24
+ border-bottom-left-radius: 0
25
+ border-bottom-right-radius: 0
26
+
27
+ =tab_pane_container-default
28
+ +root-element
29
+ background: white
30
+ border-color: $secondary-color
31
+ border-top: 0
32
+ border-top-left-radius: 0
33
+ border-top-right-radius: 0
34
+ padding: $space
35
+ margin-top: -$space
36
+
37
+ @content
@@ -0,0 +1,26 @@
1
+ =tooltip_trigger-default($background-color: false)
2
+ position: relative
3
+ display: inline-block
4
+ cursor: pointer
5
+
6
+ @if not $background-color == false
7
+ .tooltip
8
+ +label($background-color)
9
+
10
+ &:hover
11
+ [data-ks-tooltip]
12
+ &:after, &:before
13
+ opacity: 1
14
+
15
+ &:after
16
+ transform: translateY(-8px)
17
+ transition: transform 0.25s
18
+
19
+ .tooltip
20
+ opacity: 1
21
+ transform: translateY(0px)
22
+
23
+ &:after
24
+ opacity: 1
25
+
26
+ @content
@@ -4,7 +4,7 @@
4
4
  // Page-level styling goes elsewhere.
5
5
 
6
6
  // Choose your theme
7
- @import themes/_default
7
+ @import themes/default/theme
8
8
 
9
9
  // Basic layout
10
10
  // ------------
@@ -38,7 +38,7 @@ body
38
38
 
39
39
  > ul > li > a:not([role=button])
40
40
  color: map-get($black, light)
41
-
41
+
42
42
  svg
43
43
  fill: map-get($black, light)
44
44
 
@@ -84,6 +84,12 @@ iframe.animation
84
84
  // Buttons
85
85
  .button
86
86
  +button
87
-
87
+
88
88
  &.button-primary
89
89
  +button-color($primary-color)
90
+
91
+ // Switches
92
+ // --------
93
+
94
+ .switch
95
+ +switch
@@ -1,4 +1,4 @@
1
- @import themes/_default
1
+ @import themes/default/theme
2
2
 
3
3
  .main-navigation
4
4
  +navbar($background-color: white)
@@ -5,6 +5,6 @@
5
5
  // the same .css name from your html/jade file.
6
6
 
7
7
  // Choose your theme
8
- @import themes/_default
8
+ @import themes/default/theme
9
9
 
10
10
  // Now write your own Sass
@@ -6,7 +6,7 @@
6
6
  // classes for all the components.
7
7
 
8
8
  // Import the semantic index
9
- @import themes/_default
9
+ @import themes/default/theme
10
10
 
11
11
  // Generate color classes (This is as close as I can get to being dry.)
12
12
  =color-classes($prefix, $background-color: false, $color: false)
@@ -1,4 +1,4 @@
1
- @import ../../themes/_default
1
+ @import ../../themes/default/theme
2
2
 
3
3
  .row
4
4
  +row
@@ -2,7 +2,7 @@
2
2
  // ==================
3
3
  // Generic styles that should be shared across the documentation
4
4
 
5
- @import themes/_default
5
+ @import themes/default/theme
6
6
 
7
7
  h1
8
8
  +heading-rg
@@ -27,6 +27,9 @@ h3, h4, h5, h6
27
27
  @media screen and (min-width: $phablet)
28
28
  float: left
29
29
 
30
+ form.switches
31
+ margin-bottom: $space
32
+
30
33
  .fixed-main
31
34
  @media screen and (min-width: $phablet)
32
35
  width: 50%
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .alert
4
4
  +alert
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .button
4
4
  &.button-green
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  form.form
4
4
  +form
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .thumbnail
4
4
  +thumbnail
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .thumbnail
4
4
  +thumbnail
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .label
4
4
  +label
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .modal, .modal-example
4
4
  +modal
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .navbar
4
4
  +navbar
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .growl
4
4
  +alert
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .table
4
4
  +table
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .tabs
4
4
  +tabs
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .tooltip_trigger
4
4
  +tooltip_trigger
@@ -1,4 +1,4 @@
1
- @import ../../../themes/_default
1
+ @import ../../../themes/default/theme
2
2
 
3
3
  .example
4
4
  h1
@@ -2,7 +2,7 @@
2
2
  // ==========
3
3
  // Homepage for getkickstart.com
4
4
 
5
- @import themes/_default
5
+ @import themes/default/theme
6
6
 
7
7
  video
8
8
  max-width: 100%
@@ -17,7 +17,7 @@ video
17
17
  padding: ($space * 2)
18
18
  margin:
19
19
  top: -70px
20
- bottom: $space
20
+ bottom: $space
21
21
  padding-top: 70px
22
22
 
23
23
  @media screen and (min-width: $desktop)
@@ -103,4 +103,3 @@ dl
103
103
  font-weight: bold
104
104
  dd
105
105
  margin-left: 0
106
-
@@ -256,3 +256,9 @@ hr
256
256
 
257
257
  @import ../core/_direct-apply.sass
258
258
  @import ../vendor/_index
259
+
260
+ // Switches
261
+ // --------
262
+
263
+ =switch($color: $primary-color)
264
+ +switch-default($color)
@@ -0,0 +1,264 @@
1
+ //
2
+ // Theme: Default
3
+ // ==============
4
+ // Theme files wrap Kickstart's mixins into duplicate mixins without the
5
+ // "-default". This allows theme artists to insert their own styles by
6
+ // extending the default ones. Because the default theme just does direct
7
+ // assignment to the final namespaces, it overrides without actually
8
+ // changing anything.
9
+ //
10
+
11
+ // TODO: This would be the second time importing in rails. prepend this line
12
+ // via gulp.
13
+
14
+ @import core/_normalize
15
+
16
+ // Variables
17
+ // ---------
18
+
19
+ // Grayscale
20
+ $white: (dark: #F7F7F7, darker: #DDD, darkest: #CCC)
21
+ $gray: (lightest: #BBB, lighter: #AAA, light: #999, dark: #777, darker: #666, darkest: #555)
22
+ $black: (lightest: #444, lighter: #333, light: #222)
23
+
24
+ // Rainbow
25
+ $colors: (red: #CA3518, orange: darkorange, yellow: #ffe312, green: #58AA00, blue: cornflowerblue, violet: darkmagenta)
26
+
27
+ // Vendor libraries
28
+ @import url(//fonts.googleapis.com/css?family=Lato:300,400,700,400italic)
29
+
30
+ // Ten point design variables
31
+ // --------------------------
32
+ // Modifying just these ten variables will take care of 90% of your theme
33
+
34
+ $primary-color: map-get($colors, blue)
35
+ $secondary-color: map-get($white, darker)
36
+ $space: 25px
37
+ $heading-font-family: 'museo-sans', 'Lato', helvetica neue, sans-serif
38
+ $body-font-family: 'museo-sans', 'Lato', helvetica neue, sans-serif
39
+ $mono-font-family: 'ubuntu-mono', monospace
40
+ $base-font-size: 16px
41
+ $default-font-color: map-get($gray, darkest)
42
+ $default-line-height: 1.4rem
43
+
44
+ // --------------------------
45
+
46
+ $scalingFactor: 0.2vw
47
+
48
+ $rootElement: (paddingV: 5px, paddingH: 12px, border-radius: 3px)
49
+
50
+ $default-font: $body-font-family
51
+ $default-font-size: $base-font-size // TODO: Why?
52
+
53
+ //
54
+ // Core styling
55
+ // ------------
56
+ // Lowest-level styling meant to be inherited by components.
57
+ //
58
+
59
+ @import core/_index
60
+
61
+ // Grid
62
+
63
+ =container($fluid: false)
64
+ +container-default($fluid)
65
+
66
+ // Typography
67
+ // ----------
68
+
69
+ =pre
70
+ +pre-default
71
+
72
+ pre
73
+ +pre
74
+
75
+ =code
76
+ +code-default
77
+
78
+ =p($content-optimized: false)
79
+ +p-default($content-optimized)
80
+
81
+ =page-heading
82
+ +page-heading-default
83
+ h1, h2, h3, h4, h5, h6
84
+ // Styles should go here.
85
+
86
+ =hero
87
+ +hero-default
88
+
89
+ =heading-xxl
90
+ +heading-xxl-default
91
+
92
+ =heading-xl
93
+ +heading-xl-default
94
+
95
+ =heading-lg
96
+ +heading-lg-default
97
+
98
+ =heading-md
99
+ +heading-md-default
100
+
101
+ =heading-rg
102
+ +heading-rg-default
103
+
104
+ =heading-sm
105
+ +heading-sm-default
106
+
107
+ =heading-xs
108
+ +heading-xs-default
109
+
110
+ =heading-xxs
111
+ +heading-xxs-default
112
+
113
+ h1, h2, h3, h4, h5, h6
114
+ font-family: $heading-font-family
115
+
116
+ h1
117
+ +heading-lg
118
+
119
+ h2
120
+ +heading-md
121
+
122
+ h3
123
+ +heading-rg
124
+
125
+ h4
126
+ +heading-sm
127
+
128
+ h5
129
+ +heading-xs
130
+
131
+ h6
132
+ +heading-xxs
133
+
134
+ =type
135
+ +type-default
136
+
137
+ html
138
+ +type
139
+
140
+ =list($style: 'none')
141
+ +list-default($style)
142
+
143
+ //
144
+ // Base Components
145
+ // ===============
146
+ // Base components get imported first so they can be custom themed and
147
+ // used again in other parts of the core library.
148
+ //
149
+
150
+ @import core/_base_components
151
+
152
+ // Alerts
153
+ // ------
154
+
155
+ =alert
156
+ +alert-default
157
+
158
+ // Buttons
159
+ // -------
160
+
161
+ =button($background-color: map-get($white, dark), $size: 1)
162
+ +button-default($background-color, $size)
163
+
164
+ =button-group($color: map-get($white, dark), $size: 1)
165
+ +button-group-default($color, $size)
166
+
167
+ // HR
168
+ // --
169
+
170
+ =hr
171
+ +hr-default
172
+
173
+ hr
174
+ +hr
175
+
176
+ // Images
177
+ // ------
178
+
179
+ =thumbnail-content
180
+ +thumbnail-content-default
181
+
182
+ =thumbnail
183
+ +thumbnail-default
184
+
185
+ // Labels
186
+ // ------
187
+
188
+ =label($background-color: map-get($colors, blue))
189
+ +label-default($background-color)
190
+
191
+ // Navigation
192
+ // ----------
193
+
194
+ =navbar($layout: 'none', $background-color: map-get($white, dark), $breakpoint: $tablet, $collapse: false, $fixed: false)
195
+ +navbar-default($layout, $background-color, $breakpoint, $collapse, $fixed)
196
+
197
+ =dropdown_menu
198
+ +dropdown_menu-default
199
+
200
+ // Table
201
+ // -----
202
+
203
+ =table($blank: false, $zebra: false, $hover: false)
204
+ +table-default($blank, $zebra, $hover)
205
+
206
+ //
207
+ // Dependent Components
208
+ // ====================
209
+ // Dependent components keep code DRY by reusing core and base
210
+ // componenets that have already been styled by the theme.
211
+ //
212
+
213
+ @import core/_dependent_components
214
+
215
+ // Forms
216
+ // -----
217
+
218
+ =form($layout: 'none')
219
+ +form-default($layout)
220
+
221
+ =form_group($layout: 'vertical')
222
+ +form_group-default($layout)
223
+
224
+ // Growls
225
+ // ------
226
+
227
+ =growl
228
+ +growl-default
229
+
230
+ // Modals
231
+ // ------
232
+
233
+ =modal()
234
+ +modal-default()
235
+
236
+ // Pagination
237
+ // ----------
238
+
239
+ =pagination($background: map-get($white, darker))
240
+ +pagination-default($background)
241
+
242
+ // Tabs
243
+ // ----
244
+
245
+ =tabs
246
+ +tabs-default
247
+
248
+ =tab_pane_container
249
+ +tab_pane_container-default
250
+
251
+ // Tooltips
252
+ // --------
253
+
254
+ =tooltip_trigger
255
+ +tooltip_trigger-default
256
+
257
+ @import core/_direct-apply.sass
258
+ @import vendor/_index
259
+
260
+ // Switches
261
+ // --------
262
+
263
+ =switch($color: $primary-color)
264
+ +switch-default($color)