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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/kickstart_rails/app.coffee +17 -0
- data/app/assets/javascripts/kickstart_rails/buffer.coffee +32 -0
- data/app/assets/javascripts/kickstart_rails/buttons.coffee +8 -0
- data/app/assets/javascripts/kickstart_rails/debouncer.coffee +14 -0
- data/app/assets/javascripts/kickstart_rails/docs.coffee +179 -0
- data/app/assets/javascripts/kickstart_rails/dropdown.coffee +40 -0
- data/app/assets/javascripts/kickstart_rails/growl.coffee +56 -0
- data/app/assets/javascripts/kickstart_rails/ks.coffee +16 -0
- data/app/assets/javascripts/kickstart_rails/modal.coffee +29 -0
- data/app/assets/javascripts/kickstart_rails/navbar-fixer.coffee +9 -0
- data/app/assets/javascripts/kickstart_rails/navbar.coffee +36 -0
- data/app/assets/javascripts/kickstart_rails/status.coffee +30 -0
- data/app/assets/javascripts/kickstart_rails/tabs.coffee +32 -0
- data/app/assets/javascripts/kickstart_rails/tests.coffee +10 -0
- data/app/assets/javascripts/kickstart_rails/throttler.coffee +7 -0
- data/app/assets/stylesheets/core/_animations.sass +8 -0
- data/app/assets/stylesheets/core/_base.sass +16 -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 +142 -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 +106 -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 +40 -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 +270 -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/docs.sass +99 -0
- data/app/assets/stylesheets/fullpage.sass +7 -0
- data/app/assets/stylesheets/kickstart-semantic.sass +10 -0
- data/app/assets/stylesheets/kickstart.sass +344 -0
- data/app/assets/stylesheets/pages/docs/form.sass +0 -0
- data/app/assets/stylesheets/pages/docs/grid.sass +73 -0
- data/app/assets/stylesheets/pages/docs/index.sass +217 -0
- data/app/assets/stylesheets/pages/docs/ui/alerts.sass +5 -0
- data/app/assets/stylesheets/pages/docs/ui/buttons.sass +52 -0
- data/app/assets/stylesheets/pages/docs/ui/forms.sass +31 -0
- data/app/assets/stylesheets/pages/docs/ui/images.sass +7 -0
- data/app/assets/stylesheets/pages/docs/ui/labels.sass +10 -0
- data/app/assets/stylesheets/pages/docs/ui/modals.sass +18 -0
- data/app/assets/stylesheets/pages/docs/ui/navigation.sass +14 -0
- data/app/assets/stylesheets/pages/docs/ui/notifications.sass +17 -0
- data/app/assets/stylesheets/pages/docs/ui/tables.sass +13 -0
- data/app/assets/stylesheets/pages/docs/ui/tabs.sass +7 -0
- data/app/assets/stylesheets/pages/docs/ui/tooltips.sass +7 -0
- data/app/assets/stylesheets/pages/docs/ui/typography.sass +56 -0
- data/app/assets/stylesheets/pages/index.sass +105 -0
- data/app/assets/stylesheets/themes/default/theme.sass +264 -0
- data/app/assets/stylesheets/vendor/_index.sass +10 -0
- data/app/assets/stylesheets/vendor/switch/README.md +34 -0
- data/app/assets/stylesheets/vendor/switch/example.sass +14 -0
- data/app/assets/stylesheets/vendor/switch/gulpfile.js +16 -0
- data/app/assets/stylesheets/vendor/switch/index.html +18 -0
- data/app/assets/stylesheets/vendor/switch/package.json +24 -0
- data/app/assets/stylesheets/vendor/switch/switch.sass +53 -0
- data/lib/kickstart_rails/version.rb +1 -1
- metadata +72 -1
@@ -0,0 +1,106 @@
|
|
1
|
+
label, legend
|
2
|
+
display: block
|
3
|
+
font-weight: 500
|
4
|
+
margin-bottom: $space/4
|
5
|
+
|
6
|
+
=form-default($layout: 'none')
|
7
|
+
margin-bottom: $space
|
8
|
+
|
9
|
+
@if ($layout == 'horizontal')
|
10
|
+
+form-horizontal
|
11
|
+
@if ($layout == 'left')
|
12
|
+
+form-left
|
13
|
+
|
14
|
+
@content
|
15
|
+
|
16
|
+
=input-styles
|
17
|
+
+root-element
|
18
|
+
margin: 0
|
19
|
+
bottom: 0
|
20
|
+
border: 1px solid #CCC
|
21
|
+
display: block
|
22
|
+
border-radius: 3px
|
23
|
+
max-width: 100%
|
24
|
+
|
25
|
+
label + &
|
26
|
+
margin-top: ($space/5)
|
27
|
+
|
28
|
+
&:focus
|
29
|
+
outline: 0px
|
30
|
+
box-shadow: 0px 0px 0px 2px $primary-color
|
31
|
+
|
32
|
+
@content
|
33
|
+
|
34
|
+
+text-inputs
|
35
|
+
+input-styles
|
36
|
+
|
37
|
+
textarea
|
38
|
+
+input-styles
|
39
|
+
width: 300px
|
40
|
+
|
41
|
+
input[type="checkbox"],
|
42
|
+
input[type="radio"]
|
43
|
+
display: inline-block
|
44
|
+
width: 14px
|
45
|
+
margin:
|
46
|
+
left: 1px
|
47
|
+
right: 5px
|
48
|
+
|
49
|
+
select
|
50
|
+
+button
|
51
|
+
height: calc(#{$default-line-height} + #{2 * map-get($rootElement, paddingV)})
|
52
|
+
background-image: none
|
53
|
+
|
54
|
+
=form-horizontal
|
55
|
+
display: inline-block
|
56
|
+
|
57
|
+
label, input
|
58
|
+
display: inline-block
|
59
|
+
|
60
|
+
@content
|
61
|
+
|
62
|
+
=form-left
|
63
|
+
label
|
64
|
+
+root-element
|
65
|
+
padding:
|
66
|
+
right: 0
|
67
|
+
left: 0
|
68
|
+
display: inline-block
|
69
|
+
margin:
|
70
|
+
top: 0
|
71
|
+
bottom: 0
|
72
|
+
|
73
|
+
@media screen and (min-width: $tablet)
|
74
|
+
label:not(.checkbox):not(.radio)
|
75
|
+
text-align: right
|
76
|
+
|
77
|
+
@content
|
78
|
+
|
79
|
+
=form_group-default($layout: 'none')
|
80
|
+
display: block
|
81
|
+
margin-bottom: $space
|
82
|
+
|
83
|
+
@if $layout == 'horizontal'
|
84
|
+
display: inherit
|
85
|
+
margin:
|
86
|
+
right: $space/5
|
87
|
+
|
88
|
+
> *
|
89
|
+
display: inline-block
|
90
|
+
margin-right: $space/5
|
91
|
+
|
92
|
+
@content
|
93
|
+
|
94
|
+
=field-colors($color)
|
95
|
+
label, p
|
96
|
+
color: $color
|
97
|
+
|
98
|
+
+text-inputs
|
99
|
+
border-color: $color
|
100
|
+
|
101
|
+
select
|
102
|
+
border-color: $color
|
103
|
+
background-color: $color
|
104
|
+
|
105
|
+
textarea
|
106
|
+
border-color: $color
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=thumbnail-content-default
|
2
|
+
display: flex
|
3
|
+
overflow: hidden
|
4
|
+
margin-bottom: $space
|
5
|
+
align-items: flex-start
|
6
|
+
|
7
|
+
img, figure
|
8
|
+
flex-grow: 0
|
9
|
+
flex-shrink: 0
|
10
|
+
|
11
|
+
> :not(img)
|
12
|
+
+ img, + figure
|
13
|
+
margin-left: $space/2
|
14
|
+
|
15
|
+
h1
|
16
|
+
+heading-xs
|
17
|
+
|
18
|
+
> img, > figure
|
19
|
+
+ :not(img)
|
20
|
+
margin-left: $space/2
|
21
|
+
|
22
|
+
@content
|
23
|
+
|
24
|
+
=thumbnail-default
|
25
|
+
+root-element
|
26
|
+
border: 1px solid map-get($white, darker)
|
27
|
+
display: inline-block
|
28
|
+
max-width: 100%
|
29
|
+
|
30
|
+
img
|
31
|
+
max-width: 100%
|
32
|
+
|
33
|
+
figcaption
|
34
|
+
font-size: 0.85rem
|
35
|
+
|
36
|
+
@content
|
37
|
+
|
38
|
+
figure
|
39
|
+
margin: 0
|
40
|
+
padding: 0
|
@@ -0,0 +1,15 @@
|
|
1
|
+
=label-default($background-color: $primary-color)
|
2
|
+
+root-element
|
3
|
+
background: $background-color
|
4
|
+
font-size: 0.8rem
|
5
|
+
color: white
|
6
|
+
line-height: normal
|
7
|
+
font-weight: bold
|
8
|
+
|
9
|
+
@if $background-color == map-get($colors, yellow)
|
10
|
+
color: $default-font-color
|
11
|
+
|
12
|
+
&:after
|
13
|
+
border-top-color: $background-color
|
14
|
+
|
15
|
+
@content
|
@@ -0,0 +1,73 @@
|
|
1
|
+
=modal-default()
|
2
|
+
+root-element
|
3
|
+
border-width: 0
|
4
|
+
padding: $space
|
5
|
+
position: fixed
|
6
|
+
box-shadow: 0px 0px 99999px 99999px rgba(0, 0, 0, 0.35), 0px 0px 25px rgba(0, 0, 0, 0.5)
|
7
|
+
top: 15px
|
8
|
+
top: 5vh
|
9
|
+
left: 2%
|
10
|
+
right: 2%
|
11
|
+
margin: 0px auto
|
12
|
+
display: none
|
13
|
+
background: white
|
14
|
+
border-color: map-get($white, dark)
|
15
|
+
animation-duration: 0.2s
|
16
|
+
animation-timing-function: ease
|
17
|
+
animation-fill-mode: both
|
18
|
+
z-index: 1500
|
19
|
+
|
20
|
+
&[style="display: block;"]
|
21
|
+
animation-name: fadeInDown
|
22
|
+
|
23
|
+
@media screen and (min-width: $tablet)
|
24
|
+
top: 75px
|
25
|
+
top: 10vh
|
26
|
+
width: 650px
|
27
|
+
left: 50%
|
28
|
+
margin-left: -325px
|
29
|
+
|
30
|
+
> header, > footer
|
31
|
+
+alert
|
32
|
+
|
33
|
+
> h1, > h2, > h3, > h4, > h5, > h6
|
34
|
+
margin-bottom: 0
|
35
|
+
|
36
|
+
background: map-get($white, dark)
|
37
|
+
color: $default-font-color
|
38
|
+
margin: -$space
|
39
|
+
bottom: $space
|
40
|
+
|
41
|
+
> header
|
42
|
+
border-bottom-left-radius: 0
|
43
|
+
border-bottom-right-radius: 0
|
44
|
+
position: relative
|
45
|
+
|
46
|
+
a[data-modal-close]
|
47
|
+
position: absolute
|
48
|
+
top: $space/2
|
49
|
+
right: $space/2
|
50
|
+
line-height: 1.3rem
|
51
|
+
text-decoration: none
|
52
|
+
font-size: 1.3rem
|
53
|
+
|
54
|
+
> footer
|
55
|
+
margin:
|
56
|
+
top: $space
|
57
|
+
bottom: -$space
|
58
|
+
border-top-left-radius: 0
|
59
|
+
border-top-right-radius: 0
|
60
|
+
|
61
|
+
ul
|
62
|
+
+list($style: 'unstyled horizontal')
|
63
|
+
text-align: right
|
64
|
+
|
65
|
+
li
|
66
|
+
margin:
|
67
|
+
bottom: 0
|
68
|
+
right: 0
|
69
|
+
|
70
|
+
[role="button"]
|
71
|
+
text-decoration: none
|
72
|
+
|
73
|
+
@content
|
@@ -0,0 +1,270 @@
|
|
1
|
+
=color($background)
|
2
|
+
@if (lightness($background) < 75%)
|
3
|
+
color: rgba(255, 255, 255, 0.5)
|
4
|
+
@else
|
5
|
+
color: rgba(0, 0, 0, 0.5)
|
6
|
+
|
7
|
+
=navbar-align_menus($breakpoint)
|
8
|
+
@media screen and (min-width: $breakpoint)
|
9
|
+
> ul:first-child
|
10
|
+
margin-left: (-1 * map-get($rootElement, paddingH))
|
11
|
+
|
12
|
+
> ul:last-child
|
13
|
+
margin-right: (-1 * map-get($rootElement, paddingH))
|
14
|
+
|
15
|
+
> ul:only-child
|
16
|
+
margin-right: 0
|
17
|
+
|
18
|
+
=navbar-fluid($breakpoint: $tablet)
|
19
|
+
nav
|
20
|
+
+container(true)
|
21
|
+
+navbar-align_menus($breakpoint)
|
22
|
+
|
23
|
+
=navbar-fluid_fixed($breakpoint: $tablet)
|
24
|
+
nav
|
25
|
+
+container(false)
|
26
|
+
+navbar-align_menus($breakpoint)
|
27
|
+
|
28
|
+
=navbar-fixed
|
29
|
+
position: fixed
|
30
|
+
z-index: 100
|
31
|
+
left: 0
|
32
|
+
right: 0
|
33
|
+
top: 0
|
34
|
+
|
35
|
+
=navbar-color($background-color)
|
36
|
+
background-color: $background-color
|
37
|
+
|
38
|
+
nav
|
39
|
+
> ul
|
40
|
+
> li
|
41
|
+
&.menu-item
|
42
|
+
+color($background-color)
|
43
|
+
|
44
|
+
> a:not([role=button])
|
45
|
+
+color($background-color)
|
46
|
+
|
47
|
+
=navbar-default($layout: 'none', $background-color: map-get($white, dark), $breakpoint: $tablet, $collapse: false, $fixed: false)
|
48
|
+
box-shadow: 0px 1px 0px darken($background-color, 12%) inset
|
49
|
+
font-size: $default-font-size
|
50
|
+
margin-bottom: $space
|
51
|
+
|
52
|
+
nav
|
53
|
+
width: 100%
|
54
|
+
border-radius: 0
|
55
|
+
position: relative
|
56
|
+
|
57
|
+
@if (lightness($background-color) < 75%)
|
58
|
+
color: white
|
59
|
+
@else
|
60
|
+
color: $default-font-color
|
61
|
+
|
62
|
+
@media screen and (min-width: $breakpoint)
|
63
|
+
display: flex
|
64
|
+
align-items: center
|
65
|
+
flex-wrap: wrap
|
66
|
+
justify-content: space-between
|
67
|
+
align-content: space-between
|
68
|
+
|
69
|
+
|
70
|
+
&.expand
|
71
|
+
@if $collapse == true
|
72
|
+
> ul > li
|
73
|
+
display: block
|
74
|
+
|
75
|
+
h1
|
76
|
+
+heading-xxs
|
77
|
+
margin-bottom: 0
|
78
|
+
font-size: $base-font-size
|
79
|
+
line-height: $default-line-height
|
80
|
+
|
81
|
+
p
|
82
|
+
margin: 0
|
83
|
+
|
84
|
+
> ul
|
85
|
+
margin: 0
|
86
|
+
padding: 0
|
87
|
+
|
88
|
+
@media screen and (min-width: $breakpoint)
|
89
|
+
display: flex
|
90
|
+
justify-content: space-between
|
91
|
+
align-content: space-between
|
92
|
+
align-items: center
|
93
|
+
flex-wrap: wrap
|
94
|
+
|
95
|
+
&:last-child
|
96
|
+
@media screen and (min-width: $breakpoint)
|
97
|
+
> li.menu-item.open
|
98
|
+
ul
|
99
|
+
left: auto
|
100
|
+
right: -1px
|
101
|
+
|
102
|
+
&:only-child
|
103
|
+
@media screen and (min-width: $breakpoint)
|
104
|
+
> li.menu-item.open
|
105
|
+
ul
|
106
|
+
left: -1px
|
107
|
+
right: auto
|
108
|
+
|
109
|
+
> li
|
110
|
+
list-style: none
|
111
|
+
+root-element
|
112
|
+
margin-bottom: 0
|
113
|
+
border-radius: 0
|
114
|
+
padding: (map-get($rootElement, paddingV) - 1) (map-get($rootElement, paddingH))
|
115
|
+
position: relative
|
116
|
+
margin:
|
117
|
+
left: (-1 * map-get($rootElement, paddingH))
|
118
|
+
right: (-1 * map-get($rootElement, paddingH))
|
119
|
+
user-select: none
|
120
|
+
|
121
|
+
@media screen and (min-width: $breakpoint)
|
122
|
+
margin: 0
|
123
|
+
|
124
|
+
@if $collapse == true
|
125
|
+
display: none
|
126
|
+
|
127
|
+
@media screen and (min-width: $breakpoint)
|
128
|
+
display: block
|
129
|
+
|
130
|
+
&.navbar-title
|
131
|
+
display: flex
|
132
|
+
justify-content: space-between
|
133
|
+
align-items: center
|
134
|
+
|
135
|
+
@media screen and (min-width: $breakpoint)
|
136
|
+
padding: 0
|
137
|
+
|
138
|
+
> h1, > h2, > h3, > h4, > h5, > h6
|
139
|
+
padding: (map-get($rootElement, paddingV) - 1) (map-get($rootElement, paddingH))
|
140
|
+
|
141
|
+
button
|
142
|
+
+button-default(transparent)
|
143
|
+
background: transparent
|
144
|
+
border-color: transparent
|
145
|
+
color: inherit
|
146
|
+
display: block
|
147
|
+
margin-bottom: 0
|
148
|
+
font-family: Kickstart, 'Kickstart'
|
149
|
+
padding:
|
150
|
+
left: 0
|
151
|
+
right: 0
|
152
|
+
opacity: 0.5
|
153
|
+
@if ($collapse == false)
|
154
|
+
display: none
|
155
|
+
|
156
|
+
&:hover, &:active
|
157
|
+
box-shadow: none
|
158
|
+
|
159
|
+
&:hover
|
160
|
+
opacity: 1
|
161
|
+
|
162
|
+
@media screen and (min-width: $breakpoint)
|
163
|
+
display: none
|
164
|
+
|
165
|
+
&.menu-item // Added via k$.nav()
|
166
|
+
padding: (2 * map-get($rootElement, paddingV) - 1) (map-get($rootElement, paddingH))
|
167
|
+
cursor: pointer
|
168
|
+
|
169
|
+
&:before
|
170
|
+
content: '='
|
171
|
+
margin-right: 8px
|
172
|
+
|
173
|
+
&:before, &:after
|
174
|
+
font-family: 'Kickstart', Kickstart
|
175
|
+
display: inline-block
|
176
|
+
font-size: 0.65rem
|
177
|
+
vertical-align: middle
|
178
|
+
|
179
|
+
@media screen and (min-width: $breakpoint)
|
180
|
+
&:before
|
181
|
+
content: ''
|
182
|
+
display: none
|
183
|
+
|
184
|
+
&:after
|
185
|
+
content: '+'
|
186
|
+
margin-left: 8px
|
187
|
+
|
188
|
+
&:hover
|
189
|
+
@if (lightness($background-color) < 75%)
|
190
|
+
color: white
|
191
|
+
@else
|
192
|
+
color: rgba(0, 0, 0, 0.85)
|
193
|
+
background: darken($background-color, 5%)
|
194
|
+
border-color: darken($background-color, 5%)
|
195
|
+
|
196
|
+
&:active
|
197
|
+
background: darken($background-color, 15%)
|
198
|
+
border-color: darken($background-color, 15%)
|
199
|
+
|
200
|
+
&.open
|
201
|
+
color: rgba(0, 0, 0, 0.85)
|
202
|
+
background: white
|
203
|
+
border-color: map-get($white, darker)
|
204
|
+
border-bottom-color: transparent
|
205
|
+
|
206
|
+
&:hover
|
207
|
+
color: rgba(0, 0, 0, 0.85)
|
208
|
+
border-color: map-get($white, darker)
|
209
|
+
border-bottom-color: transparent
|
210
|
+
|
211
|
+
@media screen and (max-width: $breakpoint)
|
212
|
+
ul
|
213
|
+
max-width: none
|
214
|
+
right: -1px
|
215
|
+
|
216
|
+
li, li a:not([role=button])
|
217
|
+
font-size: 1rem
|
218
|
+
|
219
|
+
a:not([role=button])
|
220
|
+
padding:
|
221
|
+
top: 2 * map-get($rootElement, paddingV)
|
222
|
+
bottom: 2 * map-get($rootElement, paddingV)
|
223
|
+
|
224
|
+
ul
|
225
|
+
border-top-left-radius: 0
|
226
|
+
border-top-right-radius: 0
|
227
|
+
box-shadow: 3px 3px 3px -3px rgba(0, 0, 0, 0.25)
|
228
|
+
display: none
|
229
|
+
|
230
|
+
ul[role=button]
|
231
|
+
display: inherit
|
232
|
+
|
233
|
+
> a:not([role=button])
|
234
|
+
text-decoration: none
|
235
|
+
cursor: pointer
|
236
|
+
display: block
|
237
|
+
+root-element
|
238
|
+
margin-bottom: 0
|
239
|
+
border-radius: 0
|
240
|
+
margin: (-1 * map-get($rootElement, paddingV)) (-1 * map-get($rootElement, paddingH))
|
241
|
+
padding:
|
242
|
+
top: (2 * map-get($rootElement, paddingV))
|
243
|
+
bottom: (2 * map-get($rootElement, paddingV))
|
244
|
+
left: map-get($rootElement, paddingH)
|
245
|
+
right: map-get($rootElement, paddingH)
|
246
|
+
|
247
|
+
&:hover
|
248
|
+
@if (lightness($background-color) < 75%)
|
249
|
+
color: white
|
250
|
+
@else
|
251
|
+
color: rgba(0, 0, 0, 0.85)
|
252
|
+
background: darken($background-color, 5%)
|
253
|
+
border-color: darken($background-color, 5%)
|
254
|
+
|
255
|
+
&:active
|
256
|
+
background: darken($background-color, 15%)
|
257
|
+
border-color: darken($background-color, 15%)
|
258
|
+
|
259
|
+
@if ($layout == 'fluid')
|
260
|
+
+navbar-fluid($breakpoint)
|
261
|
+
|
262
|
+
@if ($layout == 'fluid-fixed')
|
263
|
+
+navbar-fluid_fixed($breakpoint)
|
264
|
+
|
265
|
+
@if ($fixed == true)
|
266
|
+
+navbar-fixed
|
267
|
+
|
268
|
+
+navbar-color($background-color)
|
269
|
+
|
270
|
+
@content
|