kickstart_rails 0.3.411737840873 → 3.0.6

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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails/kickstart.js +4 -11
  3. data/app/assets/javascripts/kickstart_rails/kickstart.min.js +1 -1
  4. data/app/assets/javascripts/kickstart_rails/test.js +33 -44
  5. data/app/assets/stylesheets/kickstart_rails/components/_alerts.sass +4 -0
  6. data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +15 -37
  7. data/app/assets/stylesheets/kickstart_rails/components/_dropdown_menu.sass +66 -0
  8. data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +9 -39
  9. data/app/assets/stylesheets/kickstart_rails/components/_tooltips.sass +1 -100
  10. data/app/assets/stylesheets/kickstart_rails/components/_typography.sass +8 -8
  11. data/app/assets/stylesheets/kickstart_rails/core/_base_components.sass +1 -0
  12. data/app/assets/stylesheets/kickstart_rails/core/_direct-apply.sass +120 -0
  13. data/app/assets/stylesheets/kickstart_rails/core/_grid.sass +54 -12
  14. data/app/assets/stylesheets/kickstart_rails/core/_mixins.sass +2 -2
  15. data/app/assets/stylesheets/kickstart_rails/core/_root-element.sass +1 -1
  16. data/app/assets/stylesheets/kickstart_rails/core/_typography.sass +15 -15
  17. data/app/assets/stylesheets/kickstart_rails/docs.sass +17 -13
  18. data/app/assets/stylesheets/kickstart_rails/kickstart-semantic.sass +1 -0
  19. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +47 -27
  20. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +27 -24
  21. data/app/assets/stylesheets/kickstart_rails/themes/_shabbychic.sass +252 -0
  22. data/lib/kickstart_rails/version.rb +1 -1
  23. metadata +4 -3
  24. data/lib/kickstart_rails/version.mustache +0 -3
@@ -16,10 +16,10 @@
16
16
  +column('third')
17
17
 
18
18
  h1
19
- +xs-heading
19
+ +heading-xs
20
20
 
21
21
  h2
22
- +xxs-heading
22
+ +xheading-xs
23
23
 
24
24
  .fullpane
25
25
  +column(12)
@@ -69,19 +69,20 @@
69
69
  background-color: map-get($colors, yellow)
70
70
 
71
71
  .col-example
72
+ +root-element
72
73
  padding: $space/2
73
- background: white
74
+ background: map-get($white, dark)
74
75
  margin: $space/2 0
75
76
  text-align: center
76
77
 
77
78
  .gray
78
- background: map-get($white, dark)
79
+ background: map-get($white, darker)
79
80
 
80
81
  .example
81
82
  +root-element
82
83
  padding: $space
83
84
  margin-bottom: $space
84
- border-color: map-get($white, darker)
85
+ border-color: map-get($white, darkest)
85
86
 
86
87
  > *:last-child
87
88
  margin-bottom: 0
@@ -90,21 +91,21 @@
90
91
 
91
92
  h1.example-
92
93
  &xxl
93
- +xxl-heading
94
+ +heading-xxl
94
95
  &xl
95
- +xl-heading
96
+ +heading-xl
96
97
  &lg
97
- +lg-heading
98
+ +heading-lg
98
99
  &md
99
- +md-heading
100
+ +heading-md
100
101
  &rg
101
- +rg-heading
102
+ +heading-rg
102
103
  &sm
103
- +sm-heading
104
+ +heading-sm
104
105
  &xs
105
- +xs-heading
106
+ +heading-xs
106
107
  &xxs
107
- +xxs-heading
108
+ +xheading-xs
108
109
 
109
110
  .if-jquery, .ifnot-jquery, .if-semantic, .ifnot-semantic
110
111
  display: none
@@ -182,3 +183,6 @@ footer.main
182
183
  a
183
184
  color: white
184
185
  text-decoration: underline
186
+
187
+ .test-a
188
+ +column('third', 'third', 'third')
@@ -6,5 +6,6 @@
6
6
 
7
7
  // Choose your theme
8
8
  @import themes/_default
9
+ // @import themes/_shabbychic
9
10
 
10
11
  // Now write your own Sass
@@ -77,47 +77,47 @@
77
77
  +button-group
78
78
 
79
79
  &.button-primary
80
- > li > *
80
+ > li > *:not(ul)
81
81
  +button-color($primary-color)
82
82
 
83
83
  &.button-secondary
84
- > li > *
84
+ > li > *:not(ul)
85
85
  +button-color($secondary-color)
86
86
 
87
87
  &.button-clear
88
- > li > *
88
+ > li > *:not(ul)
89
89
  +button-color(transparent)
90
90
 
91
91
  &.button-red
92
- > li > *
92
+ > li > *:not(ul)
93
93
  +button-color(map-get($colors, red))
94
94
 
95
95
  &.button-orange
96
- > li > *
96
+ > li > *:not(ul)
97
97
  +button-color(map-get($colors, orange))
98
98
 
99
99
  &.button-yellow
100
- > li > *
100
+ > li > *:not(ul)
101
101
  +button-color(map-get($colors, yellow))
102
102
 
103
103
  &.button-green
104
- > li > *
104
+ > li > *:not(ul)
105
105
  +button-color(map-get($colors, green))
106
106
 
107
107
  &.button-blue
108
- > li > *
108
+ > li > *:not(ul)
109
109
  +button-color(map-get($colors, blue))
110
110
 
111
111
  &.button-violet
112
- > li > *
112
+ > li > *:not(ul)
113
113
  +button-color(map-get($colors, violet))
114
114
 
115
115
  &.button-small
116
- > li > *
116
+ > li > *:not(ul)
117
117
  +button-size($size: 0.85)
118
118
 
119
119
  &.button-large
120
- > li > *
120
+ > li > *:not(ul)
121
121
  +button-size($size: 1.2)
122
122
 
123
123
  // FORMS
@@ -134,8 +134,8 @@
134
134
  .form_group
135
135
  +form_group('vertical')
136
136
 
137
- &.form_group-horizontal,
138
- .form_group-horizontal,
137
+ &.form_group-horizontal,
138
+ .form_group-horizontal,
139
139
  .form-horizontal &
140
140
  +form_group('horizontal')
141
141
 
@@ -162,14 +162,34 @@
162
162
 
163
163
  [class^="col"]
164
164
  // Pulls
165
- @for $i from 1 through 12
166
- &.col-pull-#{$i}
167
- +pull($i)
165
+ @each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
166
+ &.col-pull-#{$screen}third
167
+ +pull('third')
168
+
169
+ &.col-push-#{$screen}twothirds
170
+ +pull('twothirds')
171
+
172
+ &.col-push-#{$screen}half
173
+ +pull('half')
174
+
175
+ @for $i from 1 through 12
176
+ &.col-pull-#{$screen}#{$i}
177
+ +pull($i)
168
178
 
169
179
  // Pushes
170
- @for $i from 1 through 12
171
- &.col-push-#{$i}
172
- +push($i)
180
+ @each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
181
+ &.col-push-#{$screen}third
182
+ +push('third')
183
+
184
+ &.col-push-#{$screen}twothirds
185
+ +push('twothirds')
186
+
187
+ &.col-push-#{$screen}half
188
+ +push('half')
189
+
190
+ @for $i from 1 through 12
191
+ &.col-push-#{$screen}#{$i}
192
+ +push($i)
173
193
 
174
194
  // IMAGES
175
195
  // ------
@@ -270,28 +290,28 @@ table
270
290
  // ----------
271
291
 
272
292
  .xxl
273
- +xxl-heading
293
+ +heading-xxl
274
294
 
275
295
  .xl
276
- +xl-heading
296
+ +heading-xl
277
297
 
278
298
  .lg
279
- +lg-heading
299
+ +heading-lg
280
300
 
281
301
  .md
282
- +md-heading
302
+ +heading-md
283
303
 
284
304
  .rg
285
- +rg-heading
305
+ +heading-rg
286
306
 
287
307
  .sm
288
- +sm-heading
308
+ +heading-sm
289
309
 
290
310
  .xs
291
- +xs-heading
311
+ +heading-xs
292
312
 
293
313
  .xxs
294
- +xxs-heading
314
+ +xheading-xs
295
315
 
296
316
  .readable
297
317
  +p(true)
@@ -25,7 +25,7 @@ $black: (lightest: #444, lighter: #333, light: #222)
25
25
  $colors: (red: #CA3518, orange: darkorange, yellow: #ffe312, green: #58AA00, blue: cornflowerblue, violet: darkmagenta)
26
26
 
27
27
  // Vendor libraries
28
- @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,900,400italic)
28
+ @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,400italic)
29
29
 
30
30
  // Ten point design variables
31
31
  // --------------------------
@@ -44,7 +44,7 @@ $default-line-height: 1.4rem
44
44
 
45
45
  $scalingFactor: 0.2vw
46
46
 
47
- $rootElement: (paddingV: 5px, paddingH: 12px)
47
+ $rootElement: (paddingV: 5px, paddingH: 12px, border-radius: 3px)
48
48
 
49
49
  $default-font: $body-font-family
50
50
  $default-font-size: $base-font-size // TODO: Why?
@@ -80,50 +80,50 @@ pre
80
80
  =hero
81
81
  +hero-default
82
82
 
83
- =xxl-heading
84
- +xxl-heading-default
83
+ =heading-xxl
84
+ +heading-xxl-default
85
85
 
86
- =xl-heading
87
- +xl-heading-default
86
+ =heading-xl
87
+ +heading-xl-default
88
88
 
89
- =lg-heading
90
- +lg-heading-default
89
+ =heading-lg
90
+ +heading-lg-default
91
91
 
92
- =md-heading
93
- +md-heading-default
92
+ =heading-md
93
+ +heading-md-default
94
94
 
95
- =rg-heading
96
- +rg-heading-default
95
+ =heading-rg
96
+ +heading-rg-default
97
97
 
98
- =sm-heading
99
- +sm-heading-default
98
+ =heading-sm
99
+ +heading-sm-default
100
100
 
101
- =xs-heading
102
- +xs-heading-default
101
+ =heading-xs
102
+ +heading-xs-default
103
103
 
104
- =xxs-heading
105
- +xxs-heading-default
104
+ =xheading-xs
105
+ +xheading-xs-default
106
106
 
107
107
  h1, h2, h3, h4, h5, h6
108
108
  font-family: $heading-font-family
109
109
 
110
110
  h1
111
- +lg-heading
111
+ +heading-lg
112
112
 
113
113
  h2
114
- +md-heading
114
+ +heading-md
115
115
 
116
116
  h3
117
- +rg-heading
117
+ +heading-rg
118
118
 
119
119
  h4
120
- +sm-heading
120
+ +heading-sm
121
121
 
122
122
  h5
123
- +xs-heading
123
+ +heading-xs
124
124
 
125
125
  h6
126
- +xxs-heading
126
+ +xheading-xs
127
127
 
128
128
  =type
129
129
  +type-default
@@ -194,6 +194,9 @@ hr
194
194
  =navbar($bleed-container: false, $background: map-get($white, dark))
195
195
  +navbar-default($bleed-container, $background)
196
196
 
197
+ =dropdown_menu
198
+ +dropdown_menu-default
199
+
197
200
  // Table
198
201
  // -----
199
202
 
@@ -0,0 +1,252 @@
1
+ //
2
+ // Theme: Shabby Chic
3
+ // ==============
4
+ // Old but classy.
5
+ //
6
+
7
+ // TODO: This would be the second time importing in rails. prepend this line
8
+ // via gulp.
9
+
10
+ @import ../core/_normalize
11
+
12
+ // Variables
13
+ // ---------
14
+
15
+ // Grayscale
16
+ $white: (dark: #F7F7F7, darker: #DDD, darkest: #CCC)
17
+ $gray: (lightest: #BBB, lighter: #AAA, light: #999, dark: #777, darker: #666, darkest: #555)
18
+ $black: (lightest: #444, lighter: #333, light: #222)
19
+
20
+ // Rainbow
21
+ $colors: (red: #CA3518, orange: darkorange, yellow: #ffe312, green: #58AA00, blue: cornflowerblue, violet: darkmagenta)
22
+
23
+ // Vendor libraries
24
+ @import url(http://fonts.googleapis.com/css?family=Coming+Soon)
25
+ @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700)
26
+
27
+ // Ten point design variables
28
+ // --------------------------
29
+ // Modifying just these ten variables will take care of 90% of your theme
30
+
31
+ $primary-color: #BED6AB
32
+ $secondary-color: #F2ECC3
33
+ $space: 50px
34
+ $heading-font-family: 'Coming Soon', helvetica neue, sans-serif
35
+ $body-font-family: 'Open Sans', helvetica neue, sans-serif
36
+ $base-font-size: 16px
37
+ $default-font-color: map-get($gray, dark)
38
+ $default-line-height: 1.5rem
39
+
40
+ // --------------------------
41
+
42
+ $scalingFactor: 0.2vw
43
+
44
+ $rootElement: (paddingV: 5px, paddingH: 12px, border-radius: 3px)
45
+
46
+ $default-font: $body-font-family
47
+ $default-font-size: $base-font-size // TODO: Why?
48
+
49
+ //
50
+ // Core styling
51
+ // ------------
52
+ // Lowest-level styling meant to be inherited by components.
53
+ //
54
+
55
+ @import ../core/_index
56
+
57
+ // Typography
58
+ // ----------
59
+
60
+ =pre
61
+ +pre-default
62
+
63
+ pre
64
+ +pre
65
+
66
+ =code
67
+ +code-default
68
+
69
+ =p($content-optimized: false)
70
+ +p-default($content-optimized)
71
+
72
+ =page-heading
73
+ +page-heading-default
74
+ h1, h2, h3, h4, h5, h6
75
+ // Styles should go here.
76
+
77
+ =hero
78
+ +hero-default
79
+
80
+ =heading-xxl
81
+ +heading-xxl-default
82
+
83
+ =heading-xl
84
+ +heading-xl-default
85
+
86
+ =heading-lg
87
+ +heading-lg-default
88
+
89
+ =heading-md
90
+ +heading-md-default
91
+
92
+ =heading-rg
93
+ +heading-rg-default
94
+
95
+ =heading-sm
96
+ +heading-sm-default
97
+
98
+ =heading-xs
99
+ +heading-xs-default
100
+
101
+ =xheading-xs
102
+ +xheading-xs-default
103
+
104
+ h1, h2, h3, h4, h5, h6
105
+ font-family: $heading-font-family
106
+
107
+ h1
108
+ +heading-lg
109
+
110
+ h2
111
+ +heading-md
112
+
113
+ h3
114
+ +heading-rg
115
+
116
+ h4
117
+ +heading-sm
118
+
119
+ h5
120
+ +heading-xs
121
+
122
+ h6
123
+ +xheading-xs
124
+
125
+ =type
126
+ +type-default
127
+
128
+ html
129
+ +type-default
130
+
131
+ =list
132
+ +list-default
133
+
134
+ =list-unstyled
135
+ +list-unstyled-default
136
+
137
+ =list-horizontal
138
+ +list-horizontal-default
139
+
140
+ //
141
+ // Base Components
142
+ // ===============
143
+ // Base components get imported first so they can be custom themed and
144
+ // used again in other parts of the core library.
145
+ //
146
+
147
+ @import ../core/_base_components
148
+
149
+ // Alerts
150
+ // ------
151
+
152
+ =alert
153
+ +alert-default
154
+
155
+ // Buttons
156
+ // -------
157
+
158
+ =button($color: map-get($white, dark), $size: 1)
159
+ +button-default($color, $size)
160
+
161
+ =button-group($color: map-get($white, dark), $size: 1)
162
+ +button-group-default($color, $size)
163
+
164
+ // HR
165
+ // --
166
+
167
+ =hr
168
+ +hr-default
169
+
170
+ hr
171
+ +hr
172
+
173
+ // Images
174
+ // ------
175
+
176
+ =thumbnail-content
177
+ +thumbnail-content-default
178
+
179
+ =thumbnail
180
+ +thumbnail-default
181
+
182
+ // Labels
183
+ // ------
184
+
185
+ =label($background-color: map-get($colors, blue))
186
+ +label-default($background-color)
187
+
188
+ // Navigation
189
+ // ----------
190
+
191
+ =navbar($bleed-container: false, $background: map-get($white, dark))
192
+ +navbar-default($bleed-container, $background)
193
+
194
+ =dropdown_menu
195
+ +dropdown_menu-default
196
+
197
+ // Table
198
+ // -----
199
+
200
+ =table()
201
+ +table-default()
202
+
203
+ //
204
+ // Dependent Components
205
+ // ====================
206
+ // Dependent components keep code DRY by reusing core and base
207
+ // componenets that have already been styled by the theme.
208
+ //
209
+
210
+ @import ../core/_dependent_components
211
+
212
+ // Forms
213
+ // -----
214
+
215
+ =form
216
+ +form-default
217
+
218
+ =form-horizontal
219
+ +form-horizontal-default
220
+
221
+ =form-left
222
+ +form-left-default()
223
+
224
+ =form_group($orientation: 'vertical')
225
+ +form_group-default($orientation)
226
+
227
+
228
+ // Modals
229
+ // ------
230
+
231
+ =modal()
232
+ +modal-default()
233
+
234
+ // Tiles
235
+ // -----
236
+
237
+ =tile($color: map-get($gray, dark))
238
+ +tile-default($color)
239
+
240
+ // Tooltips
241
+ // --------
242
+
243
+ =tooltip_trigger
244
+ +tooltip_trigger-default
245
+
246
+ // Statuses
247
+ // --------
248
+
249
+ .status-bar
250
+ +statusBar()
251
+
252
+ @import ../vendor/_index