kickstart_rails 3.0.53 → 3.0.54

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/themes/default/theme.sass +4 -0
  3. data/app/assets/stylesheets/vendor/_index.sass +1 -0
  4. data/app/assets/stylesheets/vendor/switch/README.md +45 -0
  5. data/app/assets/stylesheets/vendor/switch/example.sass +14 -0
  6. data/app/assets/stylesheets/vendor/switch/gulpfile.js +16 -0
  7. data/app/assets/stylesheets/vendor/switch/index.html +18 -0
  8. data/app/assets/stylesheets/vendor/switch/package.json +24 -0
  9. data/app/assets/stylesheets/vendor/switch/switch.sass +53 -0
  10. data/lib/kickstart_rails/version.rb +1 -1
  11. metadata +7 -29
  12. data/app/assets/stylesheets/core/_animations.sass +0 -8
  13. data/app/assets/stylesheets/core/_base.sass +0 -16
  14. data/app/assets/stylesheets/core/_base_components.sass +0 -15
  15. data/app/assets/stylesheets/core/_dependent_components.sass +0 -12
  16. data/app/assets/stylesheets/core/_direct-apply.sass +0 -337
  17. data/app/assets/stylesheets/core/_grid.sass +0 -148
  18. data/app/assets/stylesheets/core/_icons.sass +0 -3
  19. data/app/assets/stylesheets/core/_index.sass +0 -7
  20. data/app/assets/stylesheets/core/_mixins.sass +0 -22
  21. data/app/assets/stylesheets/core/_normalize.sass +0 -339
  22. data/app/assets/stylesheets/core/_root-element.sass +0 -17
  23. data/app/assets/stylesheets/core/_typography.sass +0 -180
  24. data/app/assets/stylesheets/core/components/_alerts.sass +0 -23
  25. data/app/assets/stylesheets/core/components/_buttons.sass +0 -159
  26. data/app/assets/stylesheets/core/components/_dropdown_menu.sass +0 -69
  27. data/app/assets/stylesheets/core/components/_forms.sass +0 -106
  28. data/app/assets/stylesheets/core/components/_growls.sass +0 -2
  29. data/app/assets/stylesheets/core/components/_hr.sass +0 -5
  30. data/app/assets/stylesheets/core/components/_images.sass +0 -43
  31. data/app/assets/stylesheets/core/components/_labels.sass +0 -15
  32. data/app/assets/stylesheets/core/components/_modals.sass +0 -73
  33. data/app/assets/stylesheets/core/components/_navbar.sass +0 -283
  34. data/app/assets/stylesheets/core/components/_notifications.sass +0 -20
  35. data/app/assets/stylesheets/core/components/_pagination.sass +0 -11
  36. data/app/assets/stylesheets/core/components/_progress.sass +0 -12
  37. data/app/assets/stylesheets/core/components/_tables.sass +0 -70
  38. data/app/assets/stylesheets/core/components/_tabs.sass +0 -37
  39. data/app/assets/stylesheets/core/components/_tooltips.sass +0 -26
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b36565f1c202fd0c2e2e14608f3a97cc76aa2139
4
- data.tar.gz: a9f2711c3ef16ada2202426b497d4f9545ab3671
3
+ metadata.gz: 7739c59c5329e76d7f45014050de97390c480f8e
4
+ data.tar.gz: d9a717761b25ba8b114c4823bcd8e225331c186b
5
5
  SHA512:
6
- metadata.gz: dd18c1bf6d84f8a1a7e7ba59895e1f2297698991754e72929a48f9d263c742aa34efc316dd0cef91228ea26df63e7c468e648d219c2cf03d25f4ed45eb359a0c
7
- data.tar.gz: f8968f0829beef5d06982100a6edf59bbdbe5bd78a6f42ae2ff88626e9cded09241bf474204abb78a88fc677382c0ccfd3a9f1ca35bdbb61f3354fb96314a212
6
+ metadata.gz: 35a215f3b5696314eda996ab7cf024182ea9e53f4cc1def5c661d4458eab4daefda4e5745c8ca146597f32716b61a93cdcb6cb4ae91cec3920d5d37f615f7beb
7
+ data.tar.gz: f79fbcded39af49c2e500602969e966ce091749481a7cdea2f62ca645e2742c8639b1b08d40d8b775774aad8f94cfaf87d501d390d4fe99c6d4f6a21ee7e1b06
@@ -257,5 +257,9 @@ hr
257
257
  =tooltip_trigger
258
258
  +tooltip_trigger-default
259
259
 
260
+ // Switch
261
+ =switch
262
+ +switch-default
263
+
260
264
  @import core/_direct-apply.sass
261
265
  @import vendor/_index
@@ -4,3 +4,4 @@
4
4
  // be indexed here.
5
5
 
6
6
  // e.g. @import datepicker
7
+ @import switch/switch
@@ -0,0 +1,45 @@
1
+ # Kickstart Switches
2
+
3
+ ## Install in your project
4
+
5
+ ### Gulp/Node.js
6
+
7
+ Let's install this as a git submodule.
8
+
9
+ In your project, `cd` to `lib/sass/vendor`
10
+
11
+ git submodule add git://github.com/ajkochanowicz/switch.git
12
+
13
+ As a submodule, this won't grow in your repository but it will allow you to
14
+ keep it up to date. [Read more about submodules](http://git-scm.com/book/en/Git-Tools-Submodules)
15
+ In `lib/sass/vendor/_index.sass`, add
16
+
17
+ @import switch/switch
18
+
19
+ In the very bottom of your theme file, instantiate the `switch()` mixin
20
+
21
+ =switch($color: $primary-color)
22
+ +switch-default($color)
23
+
24
+ Now that you have the mixin available, you just need to assign it to some class
25
+
26
+ .switch
27
+ +switch
28
+
29
+ To add a switch, use the following markup
30
+
31
+ <div>
32
+ <div class="switch">
33
+ <input id="switch-1" type="checkbox" />
34
+ <label for="switch-1"></label>
35
+ </div>
36
+ <span>Let me know about future updates!</span>
37
+ </div>
38
+
39
+ Note, the `switch-1` id is optional. Use whatever id you like.
40
+ The first `div` is just to contain anything. When stacking switches, you'll want
41
+ to make this div 'display: block' or use `form_group()`
42
+
43
+ At any time, you can update all the submodules in your project from your project root by running
44
+
45
+ git submodule update
@@ -0,0 +1,14 @@
1
+ @import switch
2
+
3
+ // These variables will be available inside of Kickstart,
4
+ // but putting them here so the example works without it.
5
+
6
+ $primary-color: blue
7
+ $colors: (green: #8ce196)
8
+ $white: (darker: #DDD)
9
+
10
+ =switch
11
+ +switch-default
12
+
13
+ .switch
14
+ +switch
@@ -0,0 +1,16 @@
1
+ var gulp = require('gulp'),
2
+ sass = require('gulp-ruby-sass'),
3
+ connect = require('gulp-connect');
4
+
5
+ gulp.task('default', ['connect'], function() {
6
+ gulp.src(['example.sass'])
7
+ .pipe(sass())
8
+ .pipe(gulp.dest('./'))
9
+ });
10
+
11
+ gulp.task('connect', function() {
12
+ connect.server({
13
+ root: './',
14
+ livereload: true
15
+ })
16
+ })
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <link rel="stylesheet" href="http://cdn.getkickstart.com/css/kickstart.min.css" />
5
+ <link rel="stylesheet" href="example.css" />
6
+ </head>
7
+ <body>
8
+ <h1>Example</h1>
9
+
10
+ <p>
11
+ <div class="switch">
12
+ <input id="switch-2" type="checkbox" />
13
+ <label for="switch-2"></label>
14
+ </div>
15
+ <span>Let me know about future updates!</span>
16
+ </p>
17
+ </body>
18
+ </html>
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "Kickstart-Switch",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "gulpfile.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/ajkochanowicz/Kickstart-Switch.git"
12
+ },
13
+ "author": "",
14
+ "license": "ISC",
15
+ "bugs": {
16
+ "url": "https://github.com/ajkochanowicz/Kickstart-Switch/issues"
17
+ },
18
+ "homepage": "https://github.com/ajkochanowicz/Kickstart-Switch",
19
+ "devDependencies": {
20
+ "gulp": "^3.8.8",
21
+ "gulp-connect": "^2.0.6",
22
+ "gulp-ruby-sass": "^0.7.1"
23
+ }
24
+ }
@@ -0,0 +1,53 @@
1
+ =switch-default($color: $primary-color)
2
+ display: inline-block
3
+ vertical-align: middle
4
+
5
+ input[type="checkbox"]
6
+ position: absolute
7
+ margin-left: -9999px
8
+ visibility: hidden
9
+
10
+ + label
11
+ display: block
12
+ position: relative
13
+ cursor: pointer
14
+ user-select: none
15
+ padding: 2px
16
+ width: 40px
17
+ height: 20px
18
+ background: map-get($white, darker)
19
+ border-radius: 60px
20
+ transition: background 0.4s
21
+
22
+ &:before, &:after
23
+ display: block
24
+ position: absolute
25
+ content: " "
26
+
27
+ &:before
28
+ top: 2px
29
+ left: 2px
30
+ bottom: 2px
31
+ right: 2px
32
+ background-color: white
33
+ border-radius: 60px
34
+ transition: background 0.4s
35
+
36
+ &:after
37
+ top: 4px
38
+ left: 4px
39
+ bottom: 4px
40
+ width: 12px
41
+ background-color: map-get($white, darker)
42
+ border-radius: 52px
43
+ transition: margin 0.4s, background 0.4s
44
+
45
+ &:checked + label
46
+ background-color: map-get($colors, green)
47
+
48
+ &:after
49
+ margin-left: 20px
50
+ background-color: map-get($colors, green)
51
+
52
+
53
+
@@ -1,3 +1,3 @@
1
1
  module Kickstart_rails
2
- VERSION = "3.0.53"
2
+ VERSION = "3.0.54"
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: 3.0.53
4
+ version: 3.0.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Kochanowicz
@@ -91,38 +91,16 @@ files:
91
91
  - Rakefile
92
92
  - app/assets/javascripts/kickstart_rails.js
93
93
  - app/assets/javascripts/kickstart_rails/kickstart.js
94
- - app/assets/stylesheets/core/_animations.sass
95
- - app/assets/stylesheets/core/_base.sass
96
- - app/assets/stylesheets/core/_base_components.sass
97
- - app/assets/stylesheets/core/_dependent_components.sass
98
- - app/assets/stylesheets/core/_direct-apply.sass
99
- - app/assets/stylesheets/core/_grid.sass
100
- - app/assets/stylesheets/core/_icons.sass
101
- - app/assets/stylesheets/core/_index.sass
102
- - app/assets/stylesheets/core/_mixins.sass
103
- - app/assets/stylesheets/core/_normalize.sass
104
- - app/assets/stylesheets/core/_root-element.sass
105
- - app/assets/stylesheets/core/_typography.sass
106
- - app/assets/stylesheets/core/components/_alerts.sass
107
- - app/assets/stylesheets/core/components/_buttons.sass
108
- - app/assets/stylesheets/core/components/_dropdown_menu.sass
109
- - app/assets/stylesheets/core/components/_forms.sass
110
- - app/assets/stylesheets/core/components/_growls.sass
111
- - app/assets/stylesheets/core/components/_hr.sass
112
- - app/assets/stylesheets/core/components/_images.sass
113
- - app/assets/stylesheets/core/components/_labels.sass
114
- - app/assets/stylesheets/core/components/_modals.sass
115
- - app/assets/stylesheets/core/components/_navbar.sass
116
- - app/assets/stylesheets/core/components/_notifications.sass
117
- - app/assets/stylesheets/core/components/_pagination.sass
118
- - app/assets/stylesheets/core/components/_progress.sass
119
- - app/assets/stylesheets/core/components/_tables.sass
120
- - app/assets/stylesheets/core/components/_tabs.sass
121
- - app/assets/stylesheets/core/components/_tooltips.sass
122
94
  - app/assets/stylesheets/index.scss
123
95
  - app/assets/stylesheets/kickstart_rails.scss
124
96
  - app/assets/stylesheets/themes/default/theme.sass
125
97
  - app/assets/stylesheets/vendor/_index.sass
98
+ - app/assets/stylesheets/vendor/switch/README.md
99
+ - app/assets/stylesheets/vendor/switch/example.sass
100
+ - app/assets/stylesheets/vendor/switch/gulpfile.js
101
+ - app/assets/stylesheets/vendor/switch/index.html
102
+ - app/assets/stylesheets/vendor/switch/package.json
103
+ - app/assets/stylesheets/vendor/switch/switch.sass
126
104
  - lib/kickstart_rails.rb
127
105
  - lib/kickstart_rails/version.rb
128
106
  homepage: http://getkickstart.com
@@ -1,8 +0,0 @@
1
- @keyframes fadeInDown
2
- 0%
3
- opacity: 0
4
- transform: translateY(-20px)
5
-
6
- 100%
7
- opacity: 1
8
- transform: translateY(0)
@@ -1,16 +0,0 @@
1
- *
2
- box-sizing: border-box
3
-
4
- iframe
5
- width: 100%
6
- border: 0
7
- padding: 15px
8
- margin-bottom: 25px
9
-
10
- =above-footer
11
- // flex: 1
12
-
13
- =screen
14
- // display: flex
15
- min-height: 100vh
16
- flex-direction: column
@@ -1,15 +0,0 @@
1
- // Base Components
2
- // ===============
3
- // These are the base components from which dependent components can extend.
4
-
5
- // Components
6
- @import components/_alerts
7
- @import components/_buttons
8
- @import components/_hr
9
- @import components/_images
10
- @import components/_labels
11
- @import components/_modals
12
- @import components/_progress
13
- @import components/_tables
14
- @import components/_dropdown_menu
15
- @import components/_navbar
@@ -1,12 +0,0 @@
1
- // Dependent Components
2
- // ====================
3
- // These components extend the core and base components.
4
-
5
- // Components
6
- @import components/_growls
7
- @import components/_modals
8
- @import components/_notifications
9
- @import components/_tabs
10
- @import components/_tooltips
11
- @import components/_forms
12
- @import components/_pagination
@@ -1,337 +0,0 @@
1
- // Direct applications
2
- // ===================
3
- // Regardless of semantic or non-semantic usage, some styles
4
- // Should be applied directly to classes or elements no matter
5
- // what. This include should be included near the end of the
6
- // import chain but before kickstart.sass to accomplish this.
7
-
8
- body
9
- &.dismiss-modal
10
- cursor: pointer
11
-
12
- // Buttons
13
- // -------
14
-
15
- button,
16
- input[type="submit"],
17
- input[type="button"],
18
- input[type="file"]::-webkit-file-upload-button
19
- +button
20
-
21
- +dropdown_menu
22
-
23
- // Forms
24
- // -----
25
-
26
- %error_message
27
- font-style: italic
28
- margin:
29
- top: 7px
30
- bottom: 14px
31
-
32
- form
33
- .errors, .warnings, .successes
34
- p
35
- @extend %error_message
36
-
37
- .errors
38
- +field-colors(map-get($colors, red))
39
-
40
- .warnings
41
- +field-colors(map-get($colors, yellow))
42
-
43
- .successes
44
- +field-colors(map-get($colors, green))
45
-
46
- p
47
- &.error, &.warning, &.success
48
- @extend %error_message
49
-
50
- label, span, p
51
- &.error
52
- color: map-get($colors, red)
53
-
54
- &.warning
55
- color: map-get($colors, yellow)
56
-
57
- &.success
58
- color: map-get($colors, green)
59
-
60
- input, select
61
- &.error
62
- border-color: map-get($colors, red)
63
-
64
- &.warning
65
- border-color: map-get($colors, yellow)
66
-
67
- &.success
68
- border-color: map-get($colors, green)
69
-
70
-
71
- // Growls
72
- // ------
73
-
74
- .growl_container
75
- position: fixed
76
- top: 0
77
- right: 0
78
- padding: $space/2
79
- z-index: 2000
80
- width: 300px
81
- overflow: auto
82
- max-height: 100vh
83
-
84
- .growl
85
- box-shadow: 0px 0px $space/2 rgba(0, 0, 0, 0.5)
86
- transition: all 0.5s
87
-
88
- &.show, &.hide
89
- +fadeInDown
90
-
91
- &.hide
92
- animation-direction: reverse
93
-
94
- +growl
95
-
96
- // Status
97
- // ------
98
-
99
- .status_bar
100
- +status_bar
101
- .status_bar-status
102
- +label
103
-
104
- &[data-type="status-red"]
105
- background: map-get($colors, red)
106
-
107
- &[data-type="status-orange"]
108
- background: map-get($colors, orange)
109
-
110
- &[data-type="status-yellow"]
111
- background: map-get($colors, yellow)
112
-
113
- &[data-type="status-green"]
114
- background: map-get($colors, green)
115
-
116
- &[data-type="status-blue"]
117
- background: map-get($colors, blue)
118
-
119
- &[data-type="status-violet"]
120
- background: map-get($colors, violet)
121
-
122
- // Tabs
123
- // ----
124
-
125
- [data-panel]
126
- display: none
127
-
128
- &.open
129
- display: block
130
-
131
- // Tooltips
132
- // --------
133
-
134
- =tooltip_base
135
- margin-bottom: 0
136
- position: absolute
137
- display: block
138
- opacity: 0
139
- bottom: 100%
140
- box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.25)
141
- pointer-events: none
142
- max-width: 350px
143
- min-width: 100px
144
- text-align: center
145
- transition: all 0.25s
146
-
147
- =tooltip_arrow
148
- border-top-style: solid
149
- border-top-width: 10px
150
- border-left: 10px solid transparent
151
- border-right: 10px solid transparent
152
- width: 0px
153
- height: 0px
154
- content: ' '
155
- display: block
156
- background: transparent
157
- position: absolute
158
- left: 50%
159
- margin-left: -8px
160
- opacity: 0
161
-
162
- =pseudo-tooltip-color($color: $primary-color)
163
- &:after
164
- +label($color)
165
- margin-bottom: 0
166
-
167
- &:before
168
- border-top-color: $color
169
-
170
- [data-ks-tooltip]
171
- position: relative
172
-
173
- +pseudo-tooltip-color
174
-
175
- &:after
176
- content: attr(data-ks-tooltip)
177
- +tooltip_base
178
- transform: translateY(0px)
179
- z-index: 10
180
-
181
- &:before
182
- +tooltip_arrow
183
- bottom: 100%
184
- z-index: 100
185
-
186
- &:hover
187
- &:after, &:before
188
- opacity: 1
189
-
190
- &:after
191
- transform: translateY(-8px)
192
- transition: transform 0.25s
193
-
194
- // Positioning
195
-
196
- &[data-ks-tooltip-position="bottom"]
197
- &:after
198
- top: 100%
199
- bottom: auto
200
- margin-top: 15px
201
- transform: translateY(-6px)
202
-
203
- &:before
204
- transform: rotate(180deg)
205
- top: 100%
206
- bottom: auto
207
-
208
- &[data-ks-tooltip-position="left"]
209
- &:after
210
- transform: translateY(6px)
211
- top: 50%
212
- bottom: auto
213
- margin:
214
- top: -19px
215
- right: 12px
216
- left: auto
217
- right: 100%
218
-
219
- &:before
220
- transform: rotate(-90deg)
221
- top: 50%
222
- margin-top: -4px
223
- bottom: auto
224
- left: auto
225
- right: 100%
226
-
227
- &[data-ks-tooltip-position="right"]
228
- &:after
229
- transform: translateY(6px)
230
- top: 50%
231
- bottom: auto
232
- margin:
233
- top: -19px
234
- left: 16px
235
- left: 100%
236
- right: auto
237
-
238
- &:before
239
- transform: rotate(90deg)
240
- top: 50%
241
- margin-top: -4px
242
- margin-left: 4px
243
- bottom: auto
244
- left: 100%
245
- right: auto
246
-
247
- &[data-ks-tooltip-color="red"]
248
- +pseudo-tooltip-color(map-get($colors, red))
249
-
250
- &[data-ks-tooltip-color="orange"]
251
- +pseudo-tooltip-color(map-get($colors, orange))
252
-
253
- &[data-ks-tooltip-color="yellow"]
254
- +pseudo-tooltip-color(map-get($colors, yellow))
255
-
256
- &[data-ks-tooltip-color="green"]
257
- +pseudo-tooltip-color(map-get($colors, green))
258
-
259
- &[data-ks-tooltip-color="blue"]
260
- +pseudo-tooltip-color(map-get($colors, blue))
261
-
262
- &[data-ks-tooltip-color="violet"]
263
- +pseudo-tooltip-color(map-get($colors, violet))
264
-
265
- .tooltip
266
- +tooltip_base
267
- left: -30px
268
- right: -30px
269
- transform: translateY(8px)
270
- z-index: 10
271
- +label(map-get($colors, blue))
272
- margin: 10px auto
273
-
274
- &:after
275
- +tooltip_arrow
276
- top: 100%
277
-
278
- &.tooltip-bottom
279
- top: 100%
280
- bottom: auto
281
-
282
- &:after
283
- bottom: 100%
284
- top: auto
285
- transform: rotate(180deg)
286
-
287
- &.tooltip-left
288
- right: 100%
289
- left: auto
290
-
291
- &:after
292
- transform: rotate(-90deg)
293
- left: 100%
294
-
295
- &.tooltip-right
296
- left: 100%
297
- right: auto
298
-
299
- &:after
300
- transform: rotate(90deg)
301
- left: auto
302
- right: 100%
303
- margin:
304
- left: 0
305
- right: -8px
306
-
307
- &.tooltip-right, &.tooltip-left
308
- top: 0
309
- bottom: auto
310
- margin: 0
311
-
312
- &:after
313
- top: 8px
314
-
315
- &.tooltip-red
316
- background-color: map-get($colors, red)
317
-
318
- &.tooltip-orange
319
- background-color: map-get($colors, orange)
320
-
321
- &.tooltip-yellow
322
- background-color: map-get($colors, yellow)
323
-
324
- &.tooltip-green
325
- background-color: map-get($colors, green)
326
-
327
- &.tooltip-blue
328
- background-color: map-get($colors, blue)
329
-
330
- &.tooltip-violet
331
- background-color: map-get($colors, violet)
332
-
333
- &.tooltip-primary
334
- background-color: $primary-color
335
-
336
- &.tooltip-secondary
337
- background-color: $secondary-color