kickstart_rails 3.0.16 → 3.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails/docs.js +3 -3
  3. data/app/assets/javascripts/kickstart_rails/kickstart.js +85 -17
  4. data/app/assets/javascripts/kickstart_rails/kickstart.min.js +1 -1
  5. data/app/assets/javascripts/kickstart_rails/test.js +129 -24
  6. data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +2 -2
  7. data/app/assets/stylesheets/kickstart_rails/components/_dropdown_menu.sass +1 -1
  8. data/app/assets/stylesheets/kickstart_rails/components/_forms.sass +25 -57
  9. data/app/assets/stylesheets/kickstart_rails/components/_labels.sass +1 -1
  10. data/app/assets/stylesheets/kickstart_rails/components/_modals.sass +49 -5
  11. data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +2 -2
  12. data/app/assets/stylesheets/kickstart_rails/components/_navbar.sass +51 -22
  13. data/app/assets/stylesheets/kickstart_rails/components/_notifications.sass +1 -1
  14. data/app/assets/stylesheets/kickstart_rails/components/_tabs.sass +37 -0
  15. data/app/assets/stylesheets/kickstart_rails/core/_animations.sass +2 -2
  16. data/app/assets/stylesheets/kickstart_rails/core/_direct-apply.sass +62 -1
  17. data/app/assets/stylesheets/kickstart_rails/core/_grid.sass +1 -1
  18. data/app/assets/stylesheets/kickstart_rails/core/_mixins.sass +0 -1
  19. data/app/assets/stylesheets/kickstart_rails/core/_typography.sass +13 -3
  20. data/app/assets/stylesheets/kickstart_rails/docs.sass +34 -240
  21. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +35 -25
  22. data/app/assets/stylesheets/kickstart_rails/pages/docs/index.sass +74 -0
  23. data/app/assets/stylesheets/kickstart_rails/pages/index.sass +59 -0
  24. data/app/assets/stylesheets/kickstart_rails/themes/_canary.sass +258 -0
  25. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +17 -20
  26. data/lib/kickstart_rails/version.rb +1 -1
  27. metadata +18 -15
@@ -1,8 +1,8 @@
1
1
  @keyframes fadeInDown
2
2
  0%
3
3
  opacity: 0
4
- transform: translateY(-20px)
4
+ // transform: translateY(-20px)
5
5
 
6
6
  100%
7
7
  opacity: 1
8
- transform: translateY(0)
8
+ // transform: translateY(0)
@@ -5,6 +5,10 @@
5
5
  // what. This include should be included near the end of the
6
6
  // import chain but before kickstart.sass to accomplish this.
7
7
 
8
+ body
9
+ &.dismiss-modal
10
+ cursor: pointer
11
+
8
12
  // Buttons
9
13
  // -------
10
14
 
@@ -18,6 +22,54 @@ input[type="file"]::-webkit-file-upload-button
18
22
 
19
23
  +dropdown_menu
20
24
 
25
+ // Forms
26
+ // -----
27
+
28
+ %error_message
29
+ font-style: italic
30
+ margin:
31
+ top: 7px
32
+ bottom: 14px
33
+
34
+ form
35
+ .errors, .warnings, .successes
36
+ p
37
+ @extend %error_message
38
+
39
+ .errors
40
+ +field-colors(map-get($colors, red))
41
+
42
+ .warnings
43
+ +field-colors(map-get($colors, yellow))
44
+
45
+ .successes
46
+ +field-colors(map-get($colors, green))
47
+
48
+ p
49
+ &.error, &.warning, &.success
50
+ @extend %error_message
51
+
52
+ label, span, p
53
+ &.error
54
+ color: map-get($colors, red)
55
+
56
+ &.warning
57
+ color: map-get($colors, yellow)
58
+
59
+ &.success
60
+ color: map-get($colors, green)
61
+
62
+ input, select
63
+ &.error
64
+ border-color: map-get($colors, red)
65
+
66
+ &.warning
67
+ border-color: map-get($colors, yellow)
68
+
69
+ &.success
70
+ border-color: map-get($colors, green)
71
+
72
+
21
73
  // Growls
22
74
  // ------
23
75
 
@@ -26,7 +78,7 @@ input[type="file"]::-webkit-file-upload-button
26
78
  top: 0
27
79
  right: 0
28
80
  padding: $space/2
29
- z-index: 1000
81
+ z-index: 2000
30
82
  width: 300px
31
83
  overflow: auto
32
84
  max-height: 100vh
@@ -67,6 +119,15 @@ input[type="file"]::-webkit-file-upload-button
67
119
  &[data-type="status-violet"]
68
120
  +label(map-get($colors, violet))
69
121
 
122
+ // Tabs
123
+ // ----
124
+
125
+ [data-panel]
126
+ display: none
127
+
128
+ &.open
129
+ display: block
130
+
70
131
  // Tooltips
71
132
  // --------
72
133
 
@@ -107,7 +107,7 @@ $showFullColumns: $desktop // Actual user-defined column measurement
107
107
  +measure-columns($columns, "width")
108
108
  clear: none
109
109
  display: block
110
- margin-left: 0
110
+ // margin-left: 0
111
111
 
112
112
  @if $right != 0
113
113
  +set-offset($right, "margin-right")
@@ -16,7 +16,6 @@
16
16
 
17
17
  =fadeInDown
18
18
  animation-duration: 0.25s
19
- animation-delay: 0.2s
20
19
  animation-timing-function: ease
21
20
  animation-fill-mode: both
22
21
  animation-name: fadeInDown
@@ -154,17 +154,27 @@ a
154
154
  bottom: 0.5rem
155
155
  +heading-break
156
156
 
157
- =list-default
157
+ =list-default($style: 'none')
158
158
  margin-bottom: $space
159
159
 
160
- =list-unstyled-default
160
+ @if ($style == 'unstyled')
161
+ +list-unstyled
162
+
163
+ @if ($style == 'horizontal')
164
+ +list-horizontal
165
+
166
+ @if ($style == 'unstyled horizontal')
167
+ +list-unstyled
168
+ +list-horizontal
169
+
170
+ =list-unstyled
161
171
  padding: 0
162
172
  list-style: none
163
173
 
164
174
  > li
165
175
  margin-bottom: 0.85rem
166
176
 
167
- =list-horizontal-default
177
+ =list-horizontal
168
178
  > li
169
179
  display: inline-block
170
180
  margin-right: 5px
@@ -1,258 +1,52 @@
1
- /*
2
- * Docs
3
- * ====
4
- * Generation of css for the getkickstart.com homepage.
5
- */
1
+ // Docs
2
+ // ====
3
+ // Generation of css for the getkickstart.com homepage.
4
+ // Page-level styling goes elsewhere.
6
5
 
7
6
  // Choose your theme
8
- @import themes/_default
7
+ @import themes/_canary
9
8
 
10
- // Now write your own Sass
9
+ // Basic layout
10
+ // ------------
11
11
 
12
- html, body
13
- overflow-x: hidden
12
+ .wrapper
13
+ +container
14
14
 
15
- .mainpane
16
- +column('twothirds')
15
+ #above-footer
16
+ +above-footer
17
+ position: relative
17
18
 
18
- .sidebar
19
- +column('third')
19
+ #screen
20
+ +screen
20
21
 
21
- section
22
- margin-bottom: $space
23
-
24
- h1
25
- +heading-xs
26
-
27
- h2
28
- +heading-xxs
29
-
30
- .fullpane
31
- +column(12)
32
-
33
- @media screen and (min-width: $tablet-landscape)
34
- +column(8, 2, 2)
22
+ // Navigation
23
+ // ----------
35
24
 
36
25
  .main-navigation
37
- +navbar($layout: 'fluid-fixed', $collapse: true)
26
+ +navbar($collapse: true, $layout: 'fluid', $background-color: map-get($brown, darkest))
38
27
 
39
- .logo
28
+ svg
40
29
  height: 30px
41
- margin:
42
- bottom: -5px
43
- opacity: 0.8
44
-
45
- .docs-nav
46
- +navbar($layout: 'fluid-fixed', $background: darken(map-get($colors, blue), 5%), $collapse: true)
47
- margin:
48
- top: -$space
49
-
50
- // Colors
51
- // Kind of shitty, but there is a colors page that directly relies on this.
52
-
53
- // TODO: Use map functions to get colors and make this a loop
54
- // http://sass-lang.com/documentation/Sass/Script/Functions.html
55
-
56
- .color-
57
- &black
58
- background-color: black
59
-
60
- &light-black
61
- background-color: map-get($black, light)
62
-
63
- &lighter-black
64
- background-color: map-get($black, lighter)
65
-
66
- &lightest-black
67
- background-color: map-get($black, lightest)
68
-
69
- &gray
70
- background-color: gray
71
-
72
- &white
73
- background-color: white
74
-
75
- &yellow
76
- background-color: map-get($colors, yellow)
77
-
78
- .col-example
79
- +root-element
80
- padding: $space/2
81
- background: map-get($white, dark)
82
- margin: $space/2 0
83
- text-align: center
84
-
85
- .gray
86
- background: map-get($white, darker)
87
-
88
- .example
89
- +root-element
90
- padding: $space
91
- margin-bottom: $space
92
- border-color: map-get($white, darkest)
93
-
94
- > *:last-child
95
- margin-bottom: 0
96
-
97
- // Also shitty
98
-
99
- h1.example-
100
- &xxl
101
- +heading-xxl
102
- &xl
103
- +heading-xl
104
- &lg
105
- +heading-lg
106
- &md
107
- +heading-md
108
- &rg
109
- +heading-rg
110
- &sm
111
- +heading-sm
112
- &xs
113
- +heading-xs
114
- &xxs
115
- +heading-xs
116
-
117
- .if-jquery, .ifnot-jquery, .if-semantic, .ifnot-semantic
118
- display: none
119
-
120
- .hero
121
- margin:
122
- top: -$space
123
-
124
- ul, ul li, .navbar
125
- text-align: left
126
-
127
- .button-group
128
- color: $default-font-color
129
-
130
- .logo
131
- width: 600px
132
- max-width: 95%
133
-
134
- form, table, .tile
135
- text-align: left
136
- max-width: 360px
137
- margin: 0px auto
138
- color: map-get($black, light)
139
-
140
- .tile
141
- h1
142
- color: map-get($black, light)
143
- font-size: 1.1rem
30
+ fill: white
144
31
 
145
- // Images
146
-
147
- .logo
148
- max-width: 600px
149
-
150
- img
151
- max-width: 100%
152
-
153
- // Iframes
154
- iframe.animation
155
- max-width: 500px
156
- height: 200px
157
- display: block
158
- margin:
159
- left: auto
160
- right: auto
161
- bottom: $space
162
- overflow: hidden
163
-
164
- // Grid
165
-
166
- .example-column
167
- background-color: map-get($white, darkest)
168
- color: white
169
-
170
- // Modal
171
-
172
- .modal.example
173
- display: block
174
- position: static
175
- box-shadow: none
176
- margin: 0px auto
177
- left: auto
178
- top: auto
179
- box-shadow: 0px 0px 5px #AAA
180
-
181
- // Root Element
182
- .root-element
183
- +root-element
32
+ // Footer
33
+ // ------
184
34
 
185
35
  footer.main
186
- margin-top: $space * 4
187
- background-color: $primary-color
188
- padding:
189
- top: $space
190
- bottom: $space
36
+ background: map-get($brown, light)
37
+ padding: $space 0
38
+ color: white
191
39
 
192
- p
193
- margin: 0
40
+ a
194
41
  color: white
42
+ text-decoration: underline
195
43
 
196
- a
197
- color: white
198
- text-decoration: underline
199
-
200
- .test-a
201
- +column('third', 'third', 'third')
202
-
203
- .show-mobile
204
- display: inherit
205
-
206
- @media screen and (min-width: $tablet)
207
- display: none
208
-
209
- .show-tablet
210
- display: none
211
-
212
- @media screen and (min-width: $tablet)
213
- display: inherit
214
-
215
- // Tables
216
- table
217
- +table
218
-
219
- // HOME PAGE
220
- .first-pitch, .second-pitch, .third-pitch
221
- +row
222
-
223
- .first-pitch
224
- padding:
225
- top: $space * 2
226
- bottom: $space * 2
227
-
228
- p
229
- +p(true)
230
-
231
- .feature
232
- +column('half')
233
-
234
- h1
235
- +heading-md
236
- text-align: center
237
-
238
- .second-pitch
239
- padding:
240
- top: $space * 3
241
- bottom: $space * 3
242
-
243
- .feature
244
- +column('third')
245
-
246
- h1
247
- +heading-rg
248
-
249
- .third-pitch
250
- .feature
251
- @media screen and (min-width: $tablet)
252
- +column(6)
253
-
254
- @media screen and (min-width: $desktop)
255
- +column(3)
44
+ // Components
45
+ // ----------
256
46
 
257
- h1
258
- +heading-xs
47
+ // Buttons
48
+ .button
49
+ +button
50
+
51
+ &.button-primary
52
+ +button-color($primary-color)
@@ -168,36 +168,35 @@
168
168
  .col-twothirds
169
169
  +column('twothirds')
170
170
 
171
- [class^="col"]
172
- // Left offsets
173
- @each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
174
- &.col-left-#{$screen}third
175
- +left('third')
171
+ // Left offsets
172
+ @each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
173
+ .col-left-#{$screen}third
174
+ +left('third')
176
175
 
177
- &.col-left-#{$screen}twothirds
178
- +left('twothirds')
176
+ .col-left-#{$screen}twothirds
177
+ +left('twothirds')
179
178
 
180
- &.col-left-#{$screen}half
181
- +left('half')
179
+ .col-left-#{$screen}half
180
+ +left('half')
182
181
 
183
- @for $i from 1 through 12
184
- &.col-left-#{$screen}#{$i}
185
- +left($i)
182
+ @for $i from 1 through 12
183
+ .col-left-#{$screen}#{$i}
184
+ +left($i)
186
185
 
187
- // Right offsets
188
- @each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
189
- &.col-right-#{$screen}third
190
- +right('third')
186
+ // Right offsets
187
+ @each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
188
+ .col-right-#{$screen}third
189
+ +right('third')
191
190
 
192
- &.col-right-#{$screen}twothirds
193
- +right('twothirds')
191
+ .col-right-#{$screen}twothirds
192
+ +right('twothirds')
194
193
 
195
- &.col-right-#{$screen}half
196
- +right('half')
194
+ .col-right-#{$screen}half
195
+ +right('half')
197
196
 
198
- @for $i from 1 through 12
199
- &.col-right-#{$screen}#{$i}
200
- +right($i)
197
+ @for $i from 1 through 12
198
+ .col-right-#{$screen}#{$i}
199
+ +right($i)
201
200
 
202
201
  // IMAGES
203
202
  // ------
@@ -250,6 +249,9 @@
250
249
  .navbar
251
250
  +navbar
252
251
 
252
+ &.navbar-dark
253
+ +navbar-color($background-color: map-get($black, lighter))
254
+
253
255
  &.navbar-collapse
254
256
  +navbar($collapse: true)
255
257
 
@@ -259,8 +261,8 @@
259
261
  &.navbar-fluid_fixed
260
262
  +navbar-fluid_fixed
261
263
 
262
- &.navbar-dark
263
- +navbar($background: map-get($black, lighter))
264
+ &.navbar-fixed
265
+ +navbar-fixed
264
266
 
265
267
  .pagination
266
268
  +pagination
@@ -279,6 +281,14 @@
279
281
  &.table-hover
280
282
  +table-hover
281
283
 
284
+ // TABS
285
+ // ----
286
+ .tabs
287
+ +tabs
288
+
289
+ .tab_pane_container
290
+ +tab_pane_container
291
+
282
292
  // TOOLTIPS
283
293
  // --------
284
294