kickstart_rails 3.0.39 → 3.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails/app.coffee +17 -0
  3. data/app/assets/javascripts/kickstart_rails/buffer.coffee +32 -0
  4. data/app/assets/javascripts/kickstart_rails/buttons.coffee +8 -0
  5. data/app/assets/javascripts/kickstart_rails/debouncer.coffee +14 -0
  6. data/app/assets/javascripts/kickstart_rails/docs.coffee +179 -0
  7. data/app/assets/javascripts/kickstart_rails/dropdown.coffee +40 -0
  8. data/app/assets/javascripts/kickstart_rails/growl.coffee +56 -0
  9. data/app/assets/javascripts/kickstart_rails/ks.coffee +16 -0
  10. data/app/assets/javascripts/kickstart_rails/modal.coffee +29 -0
  11. data/app/assets/javascripts/kickstart_rails/navbar-fixer.coffee +9 -0
  12. data/app/assets/javascripts/kickstart_rails/navbar.coffee +36 -0
  13. data/app/assets/javascripts/kickstart_rails/status.coffee +30 -0
  14. data/app/assets/javascripts/kickstart_rails/tabs.coffee +32 -0
  15. data/app/assets/javascripts/kickstart_rails/tests.coffee +10 -0
  16. data/app/assets/javascripts/kickstart_rails/throttler.coffee +7 -0
  17. data/app/assets/stylesheets/core/_animations.sass +8 -0
  18. data/app/assets/stylesheets/core/_base.sass +16 -0
  19. data/app/assets/stylesheets/core/_base_components.sass +15 -0
  20. data/app/assets/stylesheets/core/_dependent_components.sass +12 -0
  21. data/app/assets/stylesheets/core/_direct-apply.sass +337 -0
  22. data/app/assets/stylesheets/core/_grid.sass +142 -0
  23. data/app/assets/stylesheets/core/_icons.sass +3 -0
  24. data/app/assets/stylesheets/core/_index.sass +7 -0
  25. data/app/assets/stylesheets/core/_mixins.sass +22 -0
  26. data/app/assets/stylesheets/core/_normalize.sass +339 -0
  27. data/app/assets/stylesheets/core/_root-element.sass +17 -0
  28. data/app/assets/stylesheets/core/_typography.sass +180 -0
  29. data/app/assets/stylesheets/core/components/_alerts.sass +23 -0
  30. data/app/assets/stylesheets/core/components/_buttons.sass +159 -0
  31. data/app/assets/stylesheets/core/components/_dropdown_menu.sass +69 -0
  32. data/app/assets/stylesheets/core/components/_forms.sass +106 -0
  33. data/app/assets/stylesheets/core/components/_growls.sass +2 -0
  34. data/app/assets/stylesheets/core/components/_hr.sass +5 -0
  35. data/app/assets/stylesheets/core/components/_images.sass +40 -0
  36. data/app/assets/stylesheets/core/components/_labels.sass +15 -0
  37. data/app/assets/stylesheets/core/components/_modals.sass +73 -0
  38. data/app/assets/stylesheets/core/components/_navbar.sass +270 -0
  39. data/app/assets/stylesheets/core/components/_notifications.sass +20 -0
  40. data/app/assets/stylesheets/core/components/_pagination.sass +11 -0
  41. data/app/assets/stylesheets/core/components/_progress.sass +12 -0
  42. data/app/assets/stylesheets/core/components/_tables.sass +70 -0
  43. data/app/assets/stylesheets/core/components/_tabs.sass +37 -0
  44. data/app/assets/stylesheets/core/components/_tooltips.sass +26 -0
  45. data/app/assets/stylesheets/docs.sass +99 -0
  46. data/app/assets/stylesheets/fullpage.sass +7 -0
  47. data/app/assets/stylesheets/kickstart-semantic.sass +10 -0
  48. data/app/assets/stylesheets/kickstart.sass +344 -0
  49. data/app/assets/stylesheets/pages/docs/form.sass +0 -0
  50. data/app/assets/stylesheets/pages/docs/grid.sass +73 -0
  51. data/app/assets/stylesheets/pages/docs/index.sass +217 -0
  52. data/app/assets/stylesheets/pages/docs/ui/alerts.sass +5 -0
  53. data/app/assets/stylesheets/pages/docs/ui/buttons.sass +52 -0
  54. data/app/assets/stylesheets/pages/docs/ui/forms.sass +31 -0
  55. data/app/assets/stylesheets/pages/docs/ui/images.sass +7 -0
  56. data/app/assets/stylesheets/pages/docs/ui/labels.sass +10 -0
  57. data/app/assets/stylesheets/pages/docs/ui/modals.sass +18 -0
  58. data/app/assets/stylesheets/pages/docs/ui/navigation.sass +14 -0
  59. data/app/assets/stylesheets/pages/docs/ui/notifications.sass +17 -0
  60. data/app/assets/stylesheets/pages/docs/ui/tables.sass +13 -0
  61. data/app/assets/stylesheets/pages/docs/ui/tabs.sass +7 -0
  62. data/app/assets/stylesheets/pages/docs/ui/tooltips.sass +7 -0
  63. data/app/assets/stylesheets/pages/docs/ui/typography.sass +56 -0
  64. data/app/assets/stylesheets/pages/index.sass +105 -0
  65. data/app/assets/stylesheets/themes/default/theme.sass +264 -0
  66. data/app/assets/stylesheets/vendor/_index.sass +10 -0
  67. data/app/assets/stylesheets/vendor/switch/README.md +34 -0
  68. data/app/assets/stylesheets/vendor/switch/example.sass +14 -0
  69. data/app/assets/stylesheets/vendor/switch/gulpfile.js +16 -0
  70. data/app/assets/stylesheets/vendor/switch/index.html +18 -0
  71. data/app/assets/stylesheets/vendor/switch/package.json +24 -0
  72. data/app/assets/stylesheets/vendor/switch/switch.sass +53 -0
  73. data/lib/kickstart_rails/version.rb +1 -1
  74. metadata +72 -1
@@ -0,0 +1,10 @@
1
+ // Vendor libraries
2
+ // ================
3
+ // 3rd party additions to the Kickstart UI library should
4
+ // be indexed here.
5
+
6
+ // e.g. @import datepicker
7
+ @import switch/switch
8
+
9
+ body
10
+ display: inherit
@@ -0,0 +1,34 @@
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
+ To add a switch, use the following markup
25
+
26
+ <p>
27
+ <div class="switch">
28
+ <input id="switch-2" type="checkbox" />
29
+ <label for="switch-2"></label>
30
+ </div>
31
+ <span>Let me know about future updates!</span>
32
+ </p>
33
+
34
+ Note, the `switch-2` id is optional. Use whatever id you like.
@@ -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.39"
2
+ VERSION = "3.0.40"
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.39
4
+ version: 3.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Kochanowicz
@@ -90,8 +90,79 @@ files:
90
90
  - README.md
91
91
  - Rakefile
92
92
  - app/assets/javascripts/kickstart_rails.js
93
+ - app/assets/javascripts/kickstart_rails/app.coffee
94
+ - app/assets/javascripts/kickstart_rails/buffer.coffee
95
+ - app/assets/javascripts/kickstart_rails/buttons.coffee
96
+ - app/assets/javascripts/kickstart_rails/debouncer.coffee
97
+ - app/assets/javascripts/kickstart_rails/docs.coffee
98
+ - app/assets/javascripts/kickstart_rails/dropdown.coffee
99
+ - app/assets/javascripts/kickstart_rails/growl.coffee
100
+ - app/assets/javascripts/kickstart_rails/ks.coffee
101
+ - app/assets/javascripts/kickstart_rails/modal.coffee
102
+ - app/assets/javascripts/kickstart_rails/navbar-fixer.coffee
103
+ - app/assets/javascripts/kickstart_rails/navbar.coffee
104
+ - app/assets/javascripts/kickstart_rails/status.coffee
105
+ - app/assets/javascripts/kickstart_rails/tabs.coffee
106
+ - app/assets/javascripts/kickstart_rails/tests.coffee
107
+ - app/assets/javascripts/kickstart_rails/throttler.coffee
108
+ - app/assets/stylesheets/core/_animations.sass
109
+ - app/assets/stylesheets/core/_base.sass
110
+ - app/assets/stylesheets/core/_base_components.sass
111
+ - app/assets/stylesheets/core/_dependent_components.sass
112
+ - app/assets/stylesheets/core/_direct-apply.sass
113
+ - app/assets/stylesheets/core/_grid.sass
114
+ - app/assets/stylesheets/core/_icons.sass
115
+ - app/assets/stylesheets/core/_index.sass
116
+ - app/assets/stylesheets/core/_mixins.sass
117
+ - app/assets/stylesheets/core/_normalize.sass
118
+ - app/assets/stylesheets/core/_root-element.sass
119
+ - app/assets/stylesheets/core/_typography.sass
120
+ - app/assets/stylesheets/core/components/_alerts.sass
121
+ - app/assets/stylesheets/core/components/_buttons.sass
122
+ - app/assets/stylesheets/core/components/_dropdown_menu.sass
123
+ - app/assets/stylesheets/core/components/_forms.sass
124
+ - app/assets/stylesheets/core/components/_growls.sass
125
+ - app/assets/stylesheets/core/components/_hr.sass
126
+ - app/assets/stylesheets/core/components/_images.sass
127
+ - app/assets/stylesheets/core/components/_labels.sass
128
+ - app/assets/stylesheets/core/components/_modals.sass
129
+ - app/assets/stylesheets/core/components/_navbar.sass
130
+ - app/assets/stylesheets/core/components/_notifications.sass
131
+ - app/assets/stylesheets/core/components/_pagination.sass
132
+ - app/assets/stylesheets/core/components/_progress.sass
133
+ - app/assets/stylesheets/core/components/_tables.sass
134
+ - app/assets/stylesheets/core/components/_tabs.sass
135
+ - app/assets/stylesheets/core/components/_tooltips.sass
136
+ - app/assets/stylesheets/docs.sass
137
+ - app/assets/stylesheets/fullpage.sass
93
138
  - app/assets/stylesheets/index.scss
139
+ - app/assets/stylesheets/kickstart-semantic.sass
140
+ - app/assets/stylesheets/kickstart.sass
94
141
  - app/assets/stylesheets/kickstart_rails.scss
142
+ - app/assets/stylesheets/pages/docs/form.sass
143
+ - app/assets/stylesheets/pages/docs/grid.sass
144
+ - app/assets/stylesheets/pages/docs/index.sass
145
+ - app/assets/stylesheets/pages/docs/ui/alerts.sass
146
+ - app/assets/stylesheets/pages/docs/ui/buttons.sass
147
+ - app/assets/stylesheets/pages/docs/ui/forms.sass
148
+ - app/assets/stylesheets/pages/docs/ui/images.sass
149
+ - app/assets/stylesheets/pages/docs/ui/labels.sass
150
+ - app/assets/stylesheets/pages/docs/ui/modals.sass
151
+ - app/assets/stylesheets/pages/docs/ui/navigation.sass
152
+ - app/assets/stylesheets/pages/docs/ui/notifications.sass
153
+ - app/assets/stylesheets/pages/docs/ui/tables.sass
154
+ - app/assets/stylesheets/pages/docs/ui/tabs.sass
155
+ - app/assets/stylesheets/pages/docs/ui/tooltips.sass
156
+ - app/assets/stylesheets/pages/docs/ui/typography.sass
157
+ - app/assets/stylesheets/pages/index.sass
158
+ - app/assets/stylesheets/themes/default/theme.sass
159
+ - app/assets/stylesheets/vendor/_index.sass
160
+ - app/assets/stylesheets/vendor/switch/README.md
161
+ - app/assets/stylesheets/vendor/switch/example.sass
162
+ - app/assets/stylesheets/vendor/switch/gulpfile.js
163
+ - app/assets/stylesheets/vendor/switch/index.html
164
+ - app/assets/stylesheets/vendor/switch/package.json
165
+ - app/assets/stylesheets/vendor/switch/switch.sass
95
166
  - lib/kickstart_rails.rb
96
167
  - lib/kickstart_rails/version.rb
97
168
  homepage: http://getkickstart.com