kickstart_rails 3.0.16 → 3.0.17
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/kickstart_rails/docs.js +3 -3
- data/app/assets/javascripts/kickstart_rails/kickstart.js +85 -17
- data/app/assets/javascripts/kickstart_rails/kickstart.min.js +1 -1
- data/app/assets/javascripts/kickstart_rails/test.js +129 -24
- data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +2 -2
- data/app/assets/stylesheets/kickstart_rails/components/_dropdown_menu.sass +1 -1
- data/app/assets/stylesheets/kickstart_rails/components/_forms.sass +25 -57
- data/app/assets/stylesheets/kickstart_rails/components/_labels.sass +1 -1
- data/app/assets/stylesheets/kickstart_rails/components/_modals.sass +49 -5
- data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +2 -2
- data/app/assets/stylesheets/kickstart_rails/components/_navbar.sass +51 -22
- data/app/assets/stylesheets/kickstart_rails/components/_notifications.sass +1 -1
- data/app/assets/stylesheets/kickstart_rails/components/_tabs.sass +37 -0
- data/app/assets/stylesheets/kickstart_rails/core/_animations.sass +2 -2
- data/app/assets/stylesheets/kickstart_rails/core/_direct-apply.sass +62 -1
- data/app/assets/stylesheets/kickstart_rails/core/_grid.sass +1 -1
- data/app/assets/stylesheets/kickstart_rails/core/_mixins.sass +0 -1
- data/app/assets/stylesheets/kickstart_rails/core/_typography.sass +13 -3
- data/app/assets/stylesheets/kickstart_rails/docs.sass +34 -240
- data/app/assets/stylesheets/kickstart_rails/kickstart.sass +35 -25
- data/app/assets/stylesheets/kickstart_rails/pages/docs/index.sass +74 -0
- data/app/assets/stylesheets/kickstart_rails/pages/index.sass +59 -0
- data/app/assets/stylesheets/kickstart_rails/themes/_canary.sass +258 -0
- data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +17 -20
- data/lib/kickstart_rails/version.rb +1 -1
- metadata +18 -15
@@ -0,0 +1,74 @@
|
|
1
|
+
// Docs index
|
2
|
+
// ==================
|
3
|
+
// Generic styles that should be shared across the documentation
|
4
|
+
|
5
|
+
@import themes/_canary
|
6
|
+
|
7
|
+
.docs-nav
|
8
|
+
+navbar($collapse: true, $layout: 'fluid')
|
9
|
+
margin-top: -$space
|
10
|
+
|
11
|
+
.fixed-area
|
12
|
+
@media screen and (max-width: $tablet)
|
13
|
+
+container
|
14
|
+
|
15
|
+
.fixed-toc, .fixed-main
|
16
|
+
@media screen and (min-width: $tablet)
|
17
|
+
position: absolute
|
18
|
+
top: 88px
|
19
|
+
bottom: 0
|
20
|
+
overflow: auto
|
21
|
+
|
22
|
+
.fixed-toc
|
23
|
+
ul
|
24
|
+
+list($style: 'unstyled')
|
25
|
+
|
26
|
+
@media screen and (min-width: $tablet)
|
27
|
+
left: 0
|
28
|
+
right: 50%
|
29
|
+
padding: $space
|
30
|
+
|
31
|
+
h1
|
32
|
+
+heading-xxs
|
33
|
+
|
34
|
+
@media screen and (min-width: $desktop)
|
35
|
+
right: 75%
|
36
|
+
|
37
|
+
.fixed-main
|
38
|
+
@media screen and (min-width: $tablet)
|
39
|
+
left: 50%
|
40
|
+
right: 0
|
41
|
+
|
42
|
+
@media screen and (min-width: $desktop)
|
43
|
+
left: 25%
|
44
|
+
|
45
|
+
.document
|
46
|
+
|
47
|
+
.code
|
48
|
+
background: #1d1f21
|
49
|
+
padding: $space
|
50
|
+
|
51
|
+
> p:first-child
|
52
|
+
display: none
|
53
|
+
|
54
|
+
@media screen and (min-width: $desktop)
|
55
|
+
display: flex
|
56
|
+
justify-content: flex-start
|
57
|
+
align-items: stretch
|
58
|
+
|
59
|
+
.article, .code
|
60
|
+
width: 50%
|
61
|
+
padding: $space
|
62
|
+
left: 0
|
63
|
+
border-bottom: 1px solid map-get($brown, lightest)
|
64
|
+
|
65
|
+
.code
|
66
|
+
padding: $space
|
67
|
+
border-color: darken(map-get($colors, blue), 35%)
|
68
|
+
|
69
|
+
// Highlight JS
|
70
|
+
|
71
|
+
code, pre, kbd, samp
|
72
|
+
&.hljs
|
73
|
+
font-size: 0.9rem
|
74
|
+
|
@@ -0,0 +1,59 @@
|
|
1
|
+
// Index Page
|
2
|
+
// ==========
|
3
|
+
// Homepage for getkickstart.com
|
4
|
+
|
5
|
+
@import themes/_canary
|
6
|
+
|
7
|
+
.index-hero
|
8
|
+
background: map-get($brown, darkest)
|
9
|
+
padding: ($space * 2)
|
10
|
+
margin:
|
11
|
+
top: -$space
|
12
|
+
bottom: $space
|
13
|
+
border:
|
14
|
+
bottom: 1px solid map-get($brown, light)
|
15
|
+
top: 2px solid map-get($colors, red)
|
16
|
+
|
17
|
+
@media screen and (min-width: $desktop)
|
18
|
+
padding: ($space * 4)
|
19
|
+
margin-bottom: $space * 4
|
20
|
+
|
21
|
+
svg
|
22
|
+
display: block
|
23
|
+
margin: 0px auto
|
24
|
+
max-width: 90%
|
25
|
+
width: 700px
|
26
|
+
fill: white
|
27
|
+
|
28
|
+
h5
|
29
|
+
+heading-sm
|
30
|
+
text-align: center
|
31
|
+
color: map-get($brown, light)
|
32
|
+
|
33
|
+
@media screen and (min-width: $desktop)
|
34
|
+
+heading-md
|
35
|
+
|
36
|
+
.first-pitch, .second-pitch, .third-pitch
|
37
|
+
+row
|
38
|
+
|
39
|
+
h1
|
40
|
+
+heading-md
|
41
|
+
|
42
|
+
p
|
43
|
+
+p(true)
|
44
|
+
|
45
|
+
.first-pitch
|
46
|
+
.feature
|
47
|
+
+column('half')
|
48
|
+
|
49
|
+
.second-pitch
|
50
|
+
.feature
|
51
|
+
+column('third')
|
52
|
+
|
53
|
+
.third-pitch
|
54
|
+
.feature
|
55
|
+
+column('half')
|
56
|
+
|
57
|
+
@media screen and (min-width: $desktop)
|
58
|
+
+column(3)
|
59
|
+
|
@@ -0,0 +1,258 @@
|
|
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
|
+
$brown: (lightest: #f2efeb, lighter: #d8cdb4, light: #c6b799, darkest: #1e1c17)
|
24
|
+
|
25
|
+
// Rainbow
|
26
|
+
$colors: (red: #9b0000, orange: #f7a828, yellow: #fdd726, green: #a2c939, blue: #37a5e2, violet: #8744c1)
|
27
|
+
|
28
|
+
// Vendor libraries
|
29
|
+
@import url(//fonts.googleapis.com/css?family=Lato:300,400,700,400italic)
|
30
|
+
|
31
|
+
// Ten point design variables
|
32
|
+
// --------------------------
|
33
|
+
// Modifying just these ten variables will take care of 90% of your theme
|
34
|
+
|
35
|
+
$primary-color: map-get($colors, yellow)
|
36
|
+
$secondary-color: map-get($white, darker)
|
37
|
+
$space: 25px
|
38
|
+
$heading-font-family: 'Lato', helvetica neue, sans-serif
|
39
|
+
$body-font-family: 'Lato', helvetica neue, sans-serif
|
40
|
+
$base-font-size: 16px
|
41
|
+
$default-font-color: map-get($black, lightest)
|
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-default
|
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
|
@@ -136,14 +136,8 @@ h6
|
|
136
136
|
html
|
137
137
|
+type-default
|
138
138
|
|
139
|
-
=list
|
140
|
-
+list-default
|
141
|
-
|
142
|
-
=list-unstyled
|
143
|
-
+list-unstyled-default
|
144
|
-
|
145
|
-
=list-horizontal
|
146
|
-
+list-horizontal-default
|
139
|
+
=list($style: 'none')
|
140
|
+
+list-default($style)
|
147
141
|
|
148
142
|
//
|
149
143
|
// Base Components
|
@@ -196,8 +190,8 @@ hr
|
|
196
190
|
// Navigation
|
197
191
|
// ----------
|
198
192
|
|
199
|
-
=navbar($layout: 'none', $background: map-get($white, dark), $breakpoint: $tablet, $collapse: false)
|
200
|
-
+navbar-default($layout, $background, $breakpoint, $collapse)
|
193
|
+
=navbar($layout: 'none', $background-color: map-get($white, dark), $breakpoint: $tablet, $collapse: false, $fixed: false)
|
194
|
+
+navbar-default($layout, $background-color, $breakpoint, $collapse, $fixed)
|
201
195
|
|
202
196
|
=dropdown_menu
|
203
197
|
+dropdown_menu-default
|
@@ -220,17 +214,11 @@ hr
|
|
220
214
|
// Forms
|
221
215
|
// -----
|
222
216
|
|
223
|
-
=form
|
224
|
-
+form-default
|
225
|
-
|
226
|
-
=form-horizontal
|
227
|
-
+form-horizontal-default
|
228
|
-
|
229
|
-
=form-left
|
230
|
-
+form-left-default()
|
217
|
+
=form($layout: 'none')
|
218
|
+
+form-default($layout)
|
231
219
|
|
232
|
-
=form_group($
|
233
|
-
+form_group-default($
|
220
|
+
=form_group($layout: 'vertical')
|
221
|
+
+form_group-default($layout)
|
234
222
|
|
235
223
|
// Growls
|
236
224
|
// ------
|
@@ -250,6 +238,15 @@ hr
|
|
250
238
|
=pagination($background: map-get($white, darker))
|
251
239
|
+pagination-default($background)
|
252
240
|
|
241
|
+
// Tabs
|
242
|
+
// ----
|
243
|
+
|
244
|
+
=tabs
|
245
|
+
+tabs-default
|
246
|
+
|
247
|
+
=tab_pane_container
|
248
|
+
+tab_pane_container-default
|
249
|
+
|
253
250
|
// Tooltips
|
254
251
|
// --------
|
255
252
|
|