kickstart_rails 3.0.14 → 3.0.15
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/docs.js +38 -19
- data/app/assets/javascripts/kickstart_rails/kickstart.js +5 -5
- data/app/assets/javascripts/kickstart_rails/test.js +9 -9
- data/app/assets/stylesheets/kickstart_rails/components/_alerts.sass +2 -0
- data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +13 -4
- data/app/assets/stylesheets/kickstart_rails/components/_dropdown_menu.sass +2 -0
- data/app/assets/stylesheets/kickstart_rails/components/_forms.sass +9 -1
- data/app/assets/stylesheets/kickstart_rails/components/_growls.sass +1 -0
- data/app/assets/stylesheets/kickstart_rails/components/_hr.sass +1 -0
- data/app/assets/stylesheets/kickstart_rails/components/_images.sass +4 -0
- data/app/assets/stylesheets/kickstart_rails/components/_labels.sass +2 -0
- data/app/assets/stylesheets/kickstart_rails/components/_modals.sass +2 -0
- data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +4 -0
- data/app/assets/stylesheets/kickstart_rails/components/_navbar.sass +218 -0
- data/app/assets/stylesheets/kickstart_rails/components/_pagination.sass +11 -0
- data/app/assets/stylesheets/kickstart_rails/components/_tables.sass +34 -3
- data/app/assets/stylesheets/kickstart_rails/components/_tooltips.sass +9 -6
- data/app/assets/stylesheets/kickstart_rails/core/_base_components.sass +1 -3
- data/app/assets/stylesheets/kickstart_rails/core/_dependent_components.sass +1 -1
- data/app/assets/stylesheets/kickstart_rails/core/_direct-apply.sass +95 -5
- data/app/assets/stylesheets/kickstart_rails/docs.sass +6 -0
- data/app/assets/stylesheets/kickstart_rails/kickstart.sass +16 -33
- data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +7 -7
- data/lib/kickstart_rails/version.rb +1 -1
- metadata +4 -2
@@ -0,0 +1,11 @@
|
|
1
|
+
=pagination-default($background: map-get($white, dark))
|
2
|
+
display: flex
|
3
|
+
align-items: flex-start
|
4
|
+
flex-wrap: wrap
|
5
|
+
justify-content: space-between
|
6
|
+
align-content: space-between
|
7
|
+
|
8
|
+
> ul
|
9
|
+
+button-group-default($background-color: map-get($white, dark), $size: 1)
|
10
|
+
|
11
|
+
@content
|
@@ -1,4 +1,4 @@
|
|
1
|
-
=table-default
|
1
|
+
=table-default($blank: false, $zebra: false, $hover: false)
|
2
2
|
border-collapse: collapse
|
3
3
|
background: white
|
4
4
|
border-spacing: 0
|
@@ -15,6 +15,8 @@
|
|
15
15
|
color: black
|
16
16
|
text-align: left
|
17
17
|
vertical-align: bottom
|
18
|
+
border-bottom: 1px solid transparent
|
19
|
+
|
18
20
|
th
|
19
21
|
font-weight: bold
|
20
22
|
|
@@ -31,5 +33,34 @@
|
|
31
33
|
&:first-child
|
32
34
|
border-left-width: 0
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
+
@if $blank == true
|
37
|
+
+table-blank
|
38
|
+
|
39
|
+
@if $zebra == true
|
40
|
+
+table-zebra
|
41
|
+
|
42
|
+
@content
|
43
|
+
|
44
|
+
=table-blank
|
45
|
+
border-color: transparent
|
46
|
+
table, tr, td, tbody, thead, th, tfoot
|
47
|
+
border-color: transparent
|
48
|
+
background: transparent
|
49
|
+
th, td
|
50
|
+
padding:
|
51
|
+
left: 0px
|
52
|
+
right: 0px
|
53
|
+
|
54
|
+
=table-hover
|
55
|
+
tbody, thead
|
56
|
+
tr:hover
|
57
|
+
background-color: map-get($white, darker)
|
58
|
+
|
59
|
+
=table-zebra
|
60
|
+
tbody, thead
|
61
|
+
tr:nth-child(even)
|
62
|
+
background-color: map-get($white, dark)
|
63
|
+
|
64
|
+
tr
|
65
|
+
td, th
|
66
|
+
padding: ($space/6) ($space/4)
|
@@ -1,23 +1,26 @@
|
|
1
|
-
=tooltip_trigger-default($background-color:
|
1
|
+
=tooltip_trigger-default($background-color: false)
|
2
2
|
position: relative
|
3
3
|
display: inline-block
|
4
4
|
cursor: pointer
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
@if not $background-color == false
|
7
|
+
.tooltip
|
8
|
+
+label($background-color)
|
9
|
+
|
9
10
|
&:hover
|
10
11
|
[data-ks-tooltip]
|
11
12
|
&:after, &:before
|
12
13
|
opacity: 1
|
13
14
|
|
14
|
-
&:after
|
15
|
+
&:after
|
15
16
|
transform: translateY(-8px)
|
16
17
|
transition: transform 0.25s
|
17
18
|
|
18
19
|
.tooltip
|
19
20
|
opacity: 1
|
20
21
|
transform: translateY(0px)
|
21
|
-
|
22
|
+
|
22
23
|
&:after
|
23
24
|
opacity: 1
|
25
|
+
|
26
|
+
@content
|
@@ -1,8 +1,6 @@
|
|
1
|
-
//
|
2
1
|
// Base Components
|
3
2
|
// ===============
|
4
3
|
// These are the base components from which dependent components can extend.
|
5
|
-
//
|
6
4
|
|
7
5
|
// Components
|
8
6
|
@import ../components/_alerts
|
@@ -11,7 +9,7 @@
|
|
11
9
|
@import ../components/_images
|
12
10
|
@import ../components/_labels
|
13
11
|
@import ../components/_modals
|
14
|
-
@import ../components/_nav
|
15
12
|
@import ../components/_progress
|
16
13
|
@import ../components/_tables
|
17
14
|
@import ../components/_dropdown_menu
|
15
|
+
@import ../components/_navbar
|
@@ -8,7 +8,7 @@
|
|
8
8
|
// Buttons
|
9
9
|
// -------
|
10
10
|
|
11
|
-
button
|
11
|
+
button,
|
12
12
|
input[type="submit"],
|
13
13
|
input[type="button"],
|
14
14
|
+button
|
@@ -98,19 +98,27 @@ input[type="file"]::-webkit-file-upload-button
|
|
98
98
|
margin-left: -8px
|
99
99
|
opacity: 0
|
100
100
|
|
101
|
+
=pseudo-tooltip-color($color: $primary-color)
|
102
|
+
&:after
|
103
|
+
+label($color)
|
104
|
+
margin-bottom: 0
|
105
|
+
|
106
|
+
&:before
|
107
|
+
border-top-color: $color
|
108
|
+
|
101
109
|
[data-ks-tooltip]
|
102
110
|
position: relative
|
103
111
|
|
112
|
+
+pseudo-tooltip-color
|
113
|
+
|
104
114
|
&:after
|
105
115
|
content: attr(data-ks-tooltip)
|
106
|
-
+label($primary-color)
|
107
116
|
+tooltip_base
|
108
117
|
transform: translateY(0px)
|
109
118
|
z-index: 10
|
110
119
|
|
111
120
|
&:before
|
112
121
|
+tooltip_arrow
|
113
|
-
border-top-color: $primary-color
|
114
122
|
bottom: 100%
|
115
123
|
z-index: 100
|
116
124
|
|
@@ -129,20 +137,78 @@ input[type="file"]::-webkit-file-upload-button
|
|
129
137
|
top: 100%
|
130
138
|
bottom: auto
|
131
139
|
margin-top: 15px
|
132
|
-
transform: translateY(-
|
140
|
+
transform: translateY(-6px)
|
133
141
|
|
134
142
|
&:before
|
135
143
|
transform: rotate(180deg)
|
136
144
|
top: 100%
|
137
145
|
bottom: auto
|
138
146
|
|
147
|
+
&[data-ks-tooltip-position="left"]
|
148
|
+
&:after
|
149
|
+
transform: translateY(6px)
|
150
|
+
top: 50%
|
151
|
+
bottom: auto
|
152
|
+
margin:
|
153
|
+
top: -19px
|
154
|
+
right: 12px
|
155
|
+
left: auto
|
156
|
+
right: 100%
|
157
|
+
|
158
|
+
&:before
|
159
|
+
transform: rotate(-90deg)
|
160
|
+
top: 50%
|
161
|
+
margin-top: -4px
|
162
|
+
bottom: auto
|
163
|
+
left: auto
|
164
|
+
right: 100%
|
165
|
+
|
166
|
+
&[data-ks-tooltip-position="right"]
|
167
|
+
&:after
|
168
|
+
transform: translateY(6px)
|
169
|
+
top: 50%
|
170
|
+
bottom: auto
|
171
|
+
margin:
|
172
|
+
top: -19px
|
173
|
+
left: 16px
|
174
|
+
left: 100%
|
175
|
+
right: auto
|
176
|
+
|
177
|
+
&:before
|
178
|
+
transform: rotate(90deg)
|
179
|
+
top: 50%
|
180
|
+
margin-top: -4px
|
181
|
+
margin-left: 4px
|
182
|
+
bottom: auto
|
183
|
+
left: 100%
|
184
|
+
right: auto
|
185
|
+
|
186
|
+
&[data-ks-tooltip-color="red"]
|
187
|
+
+pseudo-tooltip-color(map-get($colors, red))
|
188
|
+
|
189
|
+
&[data-ks-tooltip-color="orange"]
|
190
|
+
+pseudo-tooltip-color(map-get($colors, orange))
|
191
|
+
|
192
|
+
&[data-ks-tooltip-color="yellow"]
|
193
|
+
+pseudo-tooltip-color(map-get($colors, yellow))
|
194
|
+
|
195
|
+
&[data-ks-tooltip-color="green"]
|
196
|
+
+pseudo-tooltip-color(map-get($colors, green))
|
197
|
+
|
198
|
+
&[data-ks-tooltip-color="blue"]
|
199
|
+
+pseudo-tooltip-color(map-get($colors, blue))
|
200
|
+
|
201
|
+
&[data-ks-tooltip-color="violet"]
|
202
|
+
+pseudo-tooltip-color(map-get($colors, violet))
|
203
|
+
|
139
204
|
.tooltip
|
140
205
|
+tooltip_base
|
141
206
|
left: -30px
|
142
207
|
right: -30px
|
143
|
-
margin: 10px auto
|
144
208
|
transform: translateY(8px)
|
145
209
|
z-index: 10
|
210
|
+
+label(map-get($colors, blue))
|
211
|
+
margin: 10px auto
|
146
212
|
|
147
213
|
&:after
|
148
214
|
+tooltip_arrow
|
@@ -184,3 +250,27 @@ input[type="file"]::-webkit-file-upload-button
|
|
184
250
|
|
185
251
|
&:after
|
186
252
|
top: 8px
|
253
|
+
|
254
|
+
&.tooltip-red
|
255
|
+
+label(map-get($colors, red))
|
256
|
+
|
257
|
+
&.tooltip-orange
|
258
|
+
+label(map-get($colors, orange))
|
259
|
+
|
260
|
+
&.tooltip-yellow
|
261
|
+
+label(map-get($colors, yellow))
|
262
|
+
|
263
|
+
&.tooltip-green
|
264
|
+
+label(map-get($colors, green))
|
265
|
+
|
266
|
+
&.tooltip-blue
|
267
|
+
+label(map-get($colors, blue))
|
268
|
+
|
269
|
+
&.tooltip-violet
|
270
|
+
+label(map-get($colors, violet))
|
271
|
+
|
272
|
+
&.tooltip-primary
|
273
|
+
+label(map-get($colors, primary))
|
274
|
+
|
275
|
+
&.tooltip-secondary
|
276
|
+
+label(map-get($colors, secondary))
|
@@ -208,12 +208,6 @@
|
|
208
208
|
.thumbnail
|
209
209
|
+thumbnail
|
210
210
|
|
211
|
-
// MODALS
|
212
|
-
// ------
|
213
|
-
|
214
|
-
.modal
|
215
|
-
+modal
|
216
|
-
|
217
211
|
// LABELS
|
218
212
|
// ------
|
219
213
|
|
@@ -244,6 +238,12 @@
|
|
244
238
|
&.label-secondary
|
245
239
|
+label($secondary-color)
|
246
240
|
|
241
|
+
// MODALS
|
242
|
+
// ------
|
243
|
+
|
244
|
+
.modal
|
245
|
+
+modal
|
246
|
+
|
247
247
|
// NAVIGATION
|
248
248
|
// ----------
|
249
249
|
|
@@ -256,39 +256,22 @@
|
|
256
256
|
&.navbar-dark
|
257
257
|
+navbar($background: map-get($black, lighter))
|
258
258
|
|
259
|
+
.pagination
|
260
|
+
+pagination
|
261
|
+
|
259
262
|
// TABLES
|
260
263
|
// ------
|
261
|
-
table
|
264
|
+
.table
|
262
265
|
+table
|
263
266
|
|
264
|
-
|
265
|
-
|
266
|
-
.tile
|
267
|
-
+tile
|
268
|
-
|
269
|
-
&.tile-primary
|
270
|
-
+tile-color($primary-color)
|
271
|
-
|
272
|
-
&.tile-secondary
|
273
|
-
+tile-color($secondary-color)
|
274
|
-
|
275
|
-
&.tile-red
|
276
|
-
+tile-color(map-get($colors, red))
|
277
|
-
|
278
|
-
&.tile-orange
|
279
|
-
+tile-color(map-get($colors, orange))
|
280
|
-
|
281
|
-
&.tile-yellow
|
282
|
-
+tile-color(map-get($colors, yellow))
|
283
|
-
|
284
|
-
&.tile-green
|
285
|
-
+tile-color(map-get($colors, green))
|
267
|
+
&.table-blank
|
268
|
+
+table-blank
|
286
269
|
|
287
|
-
&.
|
288
|
-
+
|
270
|
+
&.table-zebra
|
271
|
+
+table-zebra
|
289
272
|
|
290
|
-
&.
|
291
|
-
+
|
273
|
+
&.table-hover
|
274
|
+
+table-hover
|
292
275
|
|
293
276
|
// TOOLTIPS
|
294
277
|
// --------
|
@@ -25,7 +25,7 @@ $black: (lightest: #444, lighter: #333, light: #222)
|
|
25
25
|
$colors: (red: #CA3518, orange: darkorange, yellow: #ffe312, green: #58AA00, blue: cornflowerblue, violet: darkmagenta)
|
26
26
|
|
27
27
|
// Vendor libraries
|
28
|
-
@import url(
|
28
|
+
@import url(//fonts.googleapis.com/css?family=Lato:300,400,700,400italic)
|
29
29
|
|
30
30
|
// Ten point design variables
|
31
31
|
// --------------------------
|
@@ -205,8 +205,8 @@ hr
|
|
205
205
|
// Table
|
206
206
|
// -----
|
207
207
|
|
208
|
-
=table()
|
209
|
-
+table-default()
|
208
|
+
=table($blank: false, $zebra: false, $hover: false)
|
209
|
+
+table-default($blank, $zebra, $hover)
|
210
210
|
|
211
211
|
//
|
212
212
|
// Dependent Components
|
@@ -244,11 +244,11 @@ hr
|
|
244
244
|
=modal()
|
245
245
|
+modal-default()
|
246
246
|
|
247
|
-
//
|
248
|
-
//
|
247
|
+
// Pagination
|
248
|
+
// ----------
|
249
249
|
|
250
|
-
=
|
251
|
-
+
|
250
|
+
=pagination($background: map-get($white, darker))
|
251
|
+
+pagination-default($background)
|
252
252
|
|
253
253
|
// Tooltips
|
254
254
|
// --------
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Kochanowicz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,7 +113,9 @@ files:
|
|
113
113
|
- app/assets/stylesheets/kickstart_rails/components/_labels.sass
|
114
114
|
- app/assets/stylesheets/kickstart_rails/components/_modals.sass
|
115
115
|
- app/assets/stylesheets/kickstart_rails/components/_nav.sass
|
116
|
+
- app/assets/stylesheets/kickstart_rails/components/_navbar.sass
|
116
117
|
- app/assets/stylesheets/kickstart_rails/components/_notifications.sass
|
118
|
+
- app/assets/stylesheets/kickstart_rails/components/_pagination.sass
|
117
119
|
- app/assets/stylesheets/kickstart_rails/components/_progress.sass
|
118
120
|
- app/assets/stylesheets/kickstart_rails/components/_root-element.sass
|
119
121
|
- app/assets/stylesheets/kickstart_rails/components/_status.sass
|