kickstart_rails 0.3.411478620741 → 0.3.411508638416

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,9 @@
4
4
  font-size: calc(#{$default-font-size - 2} + #{$scalingFactor})
5
5
  line-height: $default-line-height
6
6
  line-height: calc(#{$default-line-height} + #{$scalingFactor})
7
+ color: $default-font-color
7
8
 
8
- html
9
+ html
9
10
  color: map-get($black, lightest)
10
11
 
11
12
  ul
@@ -18,16 +19,17 @@ h1, h2, h3, h4, h5, h6, p
18
19
  p
19
20
  margin: 0
20
21
  bottom: $space
22
+ line-height: $default-line-height
21
23
 
22
24
  a
23
25
  text-decoration: none
24
- color: $blue
26
+ color: map-get($colors, blue)
25
27
 
26
28
  &:hover
27
29
  text-decoration: underline
28
30
 
29
31
  =pre-default
30
- color: darken($blue, 25%)
32
+ color: darken(map-get($colors, blue), 25%)
31
33
  border-radius: $space/5
32
34
  padding: ($space/5)
33
35
  font-family: monospace
@@ -66,13 +68,14 @@ a
66
68
  flex-direction: column
67
69
  justify-content: center
68
70
  align-items: center
71
+ color: white
69
72
 
70
73
  > h1, > h2, > h3, > h4, > h5, > h6, > p
71
74
  text-align: center
72
75
  font-weight: 300
73
76
 
74
77
  h1, h2, h3, h4, h5, h6, p
75
- color: white
78
+ color: inherit
76
79
 
77
80
  h1
78
81
  +xxl-heading
@@ -85,7 +88,7 @@ a
85
88
  h5
86
89
  +rg-heading
87
90
  h6
88
- +sm-heading
91
+ +sm-heading
89
92
 
90
93
  > img
91
94
  margin: 0px auto
@@ -66,7 +66,7 @@
66
66
  background-color: white
67
67
 
68
68
  &yellow
69
- background-color: $yellow
69
+ background-color: map-get($colors, yellow)
70
70
 
71
71
  .col-example
72
72
  padding: $space/2
@@ -116,9 +116,6 @@ h1.example-
116
116
  width: 600px
117
117
  max-width: 95%
118
118
 
119
- a
120
- color: white
121
-
122
119
  form, table, .tile
123
120
  text-align: left
124
121
  max-width: 360px
@@ -128,7 +125,6 @@ h1.example-
128
125
  .tile
129
126
  h1
130
127
  color: map-get($black, light)
131
- font-weight: 400
132
128
  font-size: 1.1rem
133
129
 
134
130
  // Images
@@ -145,6 +141,7 @@ iframe.animation
145
141
  left: auto
146
142
  right: auto
147
143
  bottom: $space
144
+ overflow: hidden
148
145
 
149
146
  // Grid
150
147
 
@@ -167,3 +164,17 @@ iframe.animation
167
164
  .root-element
168
165
  +root-element
169
166
 
167
+ footer.main
168
+ margin-top: $space * 4
169
+ background-color: $primary-color
170
+ padding:
171
+ top: $space
172
+ bottom: $space
173
+
174
+ p
175
+ margin: 0
176
+ color: white
177
+
178
+ a
179
+ color: white
180
+ text-decoration: underline
@@ -1,14 +1,30 @@
1
1
  /*
2
2
  * Kickstart
3
3
  * =========
4
- * For users who prefer to not use Sass, this will generate a CSS file with
5
- * classes for all the components.
6
4
  */
5
+ // For users who prefer to not use Sass, this will generate a CSS file with
6
+ // classes for all the components.
7
7
 
8
8
  // Import the semantic index
9
9
  @import kickstart-semantic
10
10
 
11
- // Assign mixins to static classes
11
+ // Generate color classes (This is as close as I can get to being dry.)
12
+ =color-classes($prefix, $background-color: false, $color: false)
13
+ $color-names: "red", "orange", "yellow", "green", "blue", "violet"
14
+ @each $name, $value in $colors
15
+ .#{$prefix}-#{unquote($name)}
16
+ @if $background-color
17
+ background-color: $value
18
+ @if $color
19
+ color: $value
20
+
21
+ // LAYOUT
22
+ // ------
23
+
24
+ #above-footer
25
+ +above-footer
26
+
27
+ // Assign mixins to static component classes
12
28
 
13
29
  // ALERTS
14
30
  // ------
@@ -31,22 +47,22 @@
31
47
  +button-color(transparent)
32
48
 
33
49
  &.button-red
34
- +button-color($red)
50
+ +button-color(map-get($colors, red))
35
51
 
36
52
  &.button-orange
37
- +button-color($orange)
53
+ +button-color(map-get($colors, orange))
38
54
 
39
55
  &.button-yellow
40
- +button-color($yellow)
56
+ +button-color(map-get($colors, yellow))
41
57
 
42
58
  &.button-green
43
- +button-color($green)
59
+ +button-color(map-get($colors, green))
44
60
 
45
61
  &.button-blue
46
- +button-color($blue)
62
+ +button-color(map-get($colors, blue))
47
63
 
48
64
  &.button-violet
49
- +button-color($violet)
65
+ +button-color(map-get($colors, violet))
50
66
 
51
67
  &.button-small
52
68
  +button-size($size: 0.85)
@@ -54,6 +70,53 @@
54
70
  &.button-large
55
71
  +button-size($size: 1.2)
56
72
 
73
+ .button-group
74
+ +button-group
75
+
76
+ &.button-primary
77
+ > li > *
78
+ +button-color($primary-color)
79
+
80
+ &.button-secondary
81
+ > li > *
82
+ +button-color($secondary-color)
83
+
84
+ &.button-clear
85
+ > li > *
86
+ +button-color(transparent)
87
+
88
+ &.button-red
89
+ > li > *
90
+ +button-color(map-get($colors, red))
91
+
92
+ &.button-orange
93
+ > li > *
94
+ +button-color(map-get($colors, orange))
95
+
96
+ &.button-yellow
97
+ > li > *
98
+ +button-color(map-get($colors, yellow))
99
+
100
+ &.button-green
101
+ > li > *
102
+ +button-color(map-get($colors, green))
103
+
104
+ &.button-blue
105
+ > li > *
106
+ +button-color(map-get($colors, blue))
107
+
108
+ &.button-violet
109
+ > li > *
110
+ +button-color(map-get($colors, violet))
111
+
112
+ &.button-small
113
+ > li > *
114
+ +button-size($size: 0.85)
115
+
116
+ &.button-large
117
+ > li > *
118
+ +button-size($size: 1.2)
119
+
57
120
  // FORMS
58
121
  // -----
59
122
  .form-horizontal
@@ -86,6 +149,17 @@
86
149
  .col-twothirds
87
150
  +column('twothirds')
88
151
 
152
+ [class^="col"]
153
+ // Pulls
154
+ @for $i from 1 through 12
155
+ &.col-pull-#{$i}
156
+ +pull($i)
157
+
158
+ // Pushes
159
+ @for $i from 1 through 12
160
+ &.col-push-#{$i}
161
+ +push($i)
162
+
89
163
  // IMAGES
90
164
  // ------
91
165
 
@@ -108,23 +182,23 @@
108
182
  +label
109
183
 
110
184
  &.label-red
111
- +label($red)
185
+ +label(map-get($colors, red))
112
186
 
113
187
  &.label-orange
114
- +label($orange)
188
+ +label(map-get($colors, orange))
115
189
 
116
190
  &.label-yellow
117
- +label($yellow)
191
+ +label(map-get($colors, yellow))
118
192
  color: map-get($black, light)
119
193
 
120
194
  &.label-green
121
- +label($green)
195
+ +label(map-get($colors, green))
122
196
 
123
197
  &.label-blue
124
- +label($blue)
198
+ +label(map-get($colors, blue))
125
199
 
126
200
  &.label-violet
127
- +label($violet)
201
+ +label(map-get($colors, violet))
128
202
 
129
203
  // NAVIGATION
130
204
  // ----------
@@ -151,6 +225,30 @@ table
151
225
  .tile
152
226
  +tile
153
227
 
228
+ &.tile-primary
229
+ +tile-color($primary-color)
230
+
231
+ &.tile-secondary
232
+ +tile-color($secondary-color)
233
+
234
+ &.tile-red
235
+ +tile-color(map-get($colors, red))
236
+
237
+ &.tile-orange
238
+ +tile-color(map-get($colors, orange))
239
+
240
+ &.tile-yellow
241
+ +tile-color(map-get($colors, yellow))
242
+
243
+ &.tile-green
244
+ +tile-color(map-get($colors, green))
245
+
246
+ &.tile-blue
247
+ +tile-color(map-get($colors, blue))
248
+
249
+ &.tile-violet
250
+ +tile-color(map-get($colors, violet))
251
+
154
252
  // TOOLTIPS
155
253
  // --------
156
254
 
@@ -17,34 +17,25 @@
17
17
  // ---------
18
18
 
19
19
  // Grayscale
20
-
21
20
  $white: (dark: #F7F7F7, darker: #DDD, darkest: #CCC)
22
21
  $gray: (lightest: #BBB, lighter: #AAA, light: #999, dark: #777, darker: #666, darkest: #555)
23
22
  $black: (lightest: #444, lighter: #333, light: #222)
24
23
 
25
24
  // Rainbow
26
-
27
- $red: #CA3518
28
- $orange: darkorange
29
- $yellow: #ffe312
30
- $green: #58AA00
31
- $blue: cornflowerblue
32
- $violet: darkmagenta
25
+ $colors: (red: #CA3518, orange: darkorange, yellow: #ffe312, green: #58AA00, blue: cornflowerblue, violet: darkmagenta)
33
26
 
34
27
  // Ten point design variables
35
28
  // --------------------------
36
29
  // Modifying just these ten variables will take care of 90% of your theme
37
30
 
38
- $primary-color: $blue
31
+ $primary-color: map-get($colors, blue)
39
32
  $secondary-color: map-get($white, darker)
40
33
  $space: 25px
41
34
  $heading-font-family: 'Lato', helvetica neue, sans-serif
42
35
  $body-font-family: 'Lato', helvetica neue, sans-serif
43
36
  $base-font-size: 16px
44
- $black-augment: #000
45
- $white-augment: #FFF
46
- $saturation-augment: 0%
47
- $luminosity-augment: 0%
37
+ $default-font-color: map-get($gray, darkest)
38
+ $default-line-height: 1.4rem
48
39
 
49
40
  // --------------------------
50
41
 
@@ -54,7 +45,6 @@ $rootElement: (paddingV: 5px, paddingH: 12px)
54
45
 
55
46
  $default-font: $body-font-family
56
47
  $default-font-size: $base-font-size
57
- $default-line-height: 1.4rem
58
48
 
59
49
  //
60
50
  // Core styling
@@ -165,6 +155,9 @@ html
165
155
  =button($color: map-get($white, dark), $size: 1)
166
156
  +button-default($color, $size)
167
157
 
158
+ =button-group($color: map-get($white, dark), $size: 1)
159
+ +button-group-default($color, $size)
160
+
168
161
  // Forms
169
162
  // -----
170
163
 
@@ -177,6 +170,15 @@ html
177
170
  =form-group()
178
171
  +form-group-default()
179
172
 
173
+ // HR
174
+ // --
175
+
176
+ =hr
177
+ +hr-default
178
+
179
+ hr
180
+ +hr
181
+
180
182
  // Images
181
183
  // ------
182
184
 
@@ -189,7 +191,7 @@ html
189
191
  // Labels
190
192
  // ------
191
193
 
192
- =label($background-color: $blue)
194
+ =label($background-color: map-get($colors, blue))
193
195
  +label-default($background-color)
194
196
 
195
197
  // Navigation
@@ -204,16 +206,10 @@ html
204
206
  =table()
205
207
  +table-default()
206
208
 
207
- // Tiles
208
- // -----
209
-
210
- =tile($color: map-get($gray, dark))
211
- +tile-default($color)
212
-
213
209
  //
214
210
  // Dependent Components
215
211
  // ====================
216
- // Dependent components keep code DRY by reusing core and base
212
+ // Dependent components keep code DRY by reusing core and base
217
213
  // componenets that have already been styled by the theme.
218
214
  //
219
215
 
@@ -225,6 +221,12 @@ html
225
221
  =modal()
226
222
  +modal-default()
227
223
 
224
+ // Tiles
225
+ // -----
226
+
227
+ =tile($color: map-get($gray, dark))
228
+ +tile-default($color)
229
+
228
230
  // Tooltips
229
231
  // --------
230
232
 
@@ -1,3 +1,3 @@
1
1
  module Kickstart_rails
2
- VERSION = "0.3.411478620741"
2
+ VERSION = "0.3.411508638416"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kickstart_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.411478620741
4
+ version: 0.3.411508638416
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Kochanowicz
@@ -107,6 +107,7 @@ files:
107
107
  - app/assets/stylesheets/kickstart_rails/components/_buttons.sass
108
108
  - app/assets/stylesheets/kickstart_rails/components/_forms.sass
109
109
  - app/assets/stylesheets/kickstart_rails/components/_growls.sass
110
+ - app/assets/stylesheets/kickstart_rails/components/_hr.sass
110
111
  - app/assets/stylesheets/kickstart_rails/components/_images.sass
111
112
  - app/assets/stylesheets/kickstart_rails/components/_labels.sass
112
113
  - app/assets/stylesheets/kickstart_rails/components/_modals.sass