kickstart_rails 3.0.55 → 3.0.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/core/_animations.sass +8 -0
- data/app/assets/stylesheets/core/_base.sass +8 -0
- data/app/assets/stylesheets/core/_base_components.sass +15 -0
- data/app/assets/stylesheets/core/_dependent_components.sass +12 -0
- data/app/assets/stylesheets/core/_direct-apply.sass +337 -0
- data/app/assets/stylesheets/core/_grid.sass +148 -0
- data/app/assets/stylesheets/core/_icons.sass +3 -0
- data/app/assets/stylesheets/core/_index.sass +7 -0
- data/app/assets/stylesheets/core/_mixins.sass +22 -0
- data/app/assets/stylesheets/core/_normalize.sass +339 -0
- data/app/assets/stylesheets/core/_root-element.sass +17 -0
- data/app/assets/stylesheets/core/_typography.sass +180 -0
- data/app/assets/stylesheets/core/components/_alerts.sass +23 -0
- data/app/assets/stylesheets/core/components/_buttons.sass +159 -0
- data/app/assets/stylesheets/core/components/_dropdown_menu.sass +69 -0
- data/app/assets/stylesheets/core/components/_forms.sass +107 -0
- data/app/assets/stylesheets/core/components/_growls.sass +2 -0
- data/app/assets/stylesheets/core/components/_hr.sass +5 -0
- data/app/assets/stylesheets/core/components/_images.sass +43 -0
- data/app/assets/stylesheets/core/components/_labels.sass +15 -0
- data/app/assets/stylesheets/core/components/_modals.sass +73 -0
- data/app/assets/stylesheets/core/components/_navbar.sass +283 -0
- data/app/assets/stylesheets/core/components/_notifications.sass +20 -0
- data/app/assets/stylesheets/core/components/_pagination.sass +11 -0
- data/app/assets/stylesheets/core/components/_progress.sass +12 -0
- data/app/assets/stylesheets/core/components/_tables.sass +70 -0
- data/app/assets/stylesheets/core/components/_tabs.sass +37 -0
- data/app/assets/stylesheets/core/components/_tooltips.sass +26 -0
- data/app/assets/stylesheets/themes/default/theme.sass +6 -4
- data/app/assets/stylesheets/vendor/_index.sass +0 -1
- data/lib/kickstart_rails/version.rb +1 -1
- metadata +29 -7
- data/app/assets/stylesheets/vendor/switch/README.md +0 -45
- data/app/assets/stylesheets/vendor/switch/example.sass +0 -14
- data/app/assets/stylesheets/vendor/switch/gulpfile.js +0 -16
- data/app/assets/stylesheets/vendor/switch/index.html +0 -18
- data/app/assets/stylesheets/vendor/switch/package.json +0 -24
- data/app/assets/stylesheets/vendor/switch/switch.sass +0 -53
@@ -257,9 +257,11 @@ hr
|
|
257
257
|
=tooltip_trigger
|
258
258
|
+tooltip_trigger-default
|
259
259
|
|
260
|
-
// Switch
|
261
|
-
=switch
|
262
|
-
+switch-default
|
263
|
-
|
264
260
|
@import core/_direct-apply.sass
|
265
261
|
@import vendor/_index
|
262
|
+
|
263
|
+
// Switches
|
264
|
+
// --------
|
265
|
+
|
266
|
+
=switch($args...)
|
267
|
+
+switch-default($args...)
|
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.
|
4
|
+
version: 3.0.56
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Kochanowicz
|
@@ -91,16 +91,38 @@ 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
|
94
122
|
- app/assets/stylesheets/index.scss
|
95
123
|
- app/assets/stylesheets/kickstart_rails.scss
|
96
124
|
- app/assets/stylesheets/themes/default/theme.sass
|
97
125
|
- 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
|
104
126
|
- lib/kickstart_rails.rb
|
105
127
|
- lib/kickstart_rails/version.rb
|
106
128
|
homepage: http://getkickstart.com
|
@@ -1,45 +0,0 @@
|
|
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
|
@@ -1,14 +0,0 @@
|
|
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
|
@@ -1,16 +0,0 @@
|
|
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
|
-
})
|
@@ -1,18 +0,0 @@
|
|
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>
|
@@ -1,24 +0,0 @@
|
|
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
|
-
}
|
@@ -1,53 +0,0 @@
|
|
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
|
-
|