kickstart_rails 3.0.8 → 3.0.11
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 +4 -4
- data/app/assets/javascripts/kickstart_rails/kickstart.js +22 -11
- data/app/assets/javascripts/kickstart_rails/kickstart.min.js +1 -1
- data/app/assets/javascripts/kickstart_rails/test.js +33 -19
- data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +12 -11
- data/app/assets/stylesheets/kickstart_rails/components/_dropdown_menu.sass +1 -0
- data/app/assets/stylesheets/kickstart_rails/components/_labels.sass +3 -0
- data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +54 -22
- data/app/assets/stylesheets/kickstart_rails/components/_notifications.sass +3 -13
- data/app/assets/stylesheets/kickstart_rails/core/_direct-apply.sass +24 -0
- data/app/assets/stylesheets/kickstart_rails/core/_icons.sass +1 -1
- data/app/assets/stylesheets/kickstart_rails/docs.sass +2 -2
- data/app/assets/stylesheets/kickstart_rails/kickstart.sass +6 -7
- data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +2 -8
- data/lib/kickstart_rails/version.rb +1 -1
- metadata +2 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
=button-default($color: $secondary-color, $size: 1)
|
1
|
+
=button-default($background-color: $secondary-color, $size: 1)
|
2
2
|
display: inline-block
|
3
3
|
cursor: pointer
|
4
4
|
text-decoration: none
|
@@ -6,6 +6,7 @@
|
|
6
6
|
text-align: left
|
7
7
|
transition: box-shadow 0.15s
|
8
8
|
vertical-align: middle
|
9
|
+
user-select: none
|
9
10
|
|
10
11
|
&.with-submenu
|
11
12
|
position: relative
|
@@ -31,34 +32,34 @@
|
|
31
32
|
// TODO: Done this way, these properties are not mutex
|
32
33
|
// in the case of missing params.
|
33
34
|
|
34
|
-
+button-color($color)
|
35
|
+
+button-color($background-color)
|
35
36
|
+root-element($size: $size)
|
36
37
|
+button-size($size)
|
37
38
|
|
38
39
|
// Separated from main mixin for access by non-semantic library.
|
39
40
|
|
40
|
-
=button-color($color)
|
41
|
-
background-color: $color
|
41
|
+
=button-color($background-color)
|
42
|
+
background-color: $background-color
|
42
43
|
|
43
44
|
&.open
|
44
|
-
background-color: darken($color, 5%)
|
45
|
+
background-color: darken($background-color, 5%)
|
45
46
|
|
46
|
-
@if lightness($color) > 75%
|
47
|
+
@if lightness($background-color) > 75%
|
47
48
|
color: map-get($black, lighter)
|
48
49
|
@else
|
49
50
|
color: white
|
50
51
|
|
51
|
-
@if $color == map-get($colors, yellow)
|
52
|
+
@if $background-color == map-get($colors, yellow)
|
52
53
|
color: map-get($black, lighter)
|
53
54
|
|
54
|
-
@if $color == transparent
|
55
|
+
@if $background-color == transparent
|
55
56
|
color: map-get($black, lighter)
|
56
57
|
|
57
58
|
=button-size($size)
|
58
59
|
padding: ($size * $size * map-get($rootElement, paddingV)) ($size * $size * map-get($rootElement, paddingH))
|
59
60
|
line-height: $size * $default-line-height
|
60
61
|
margin-bottom: 0
|
61
|
-
font-size:
|
62
|
+
font-size: ($default-font-size - 2) * $size
|
62
63
|
border-color: hsla(0, 0%, 0%, 0.15)
|
63
64
|
padding:
|
64
65
|
left: $size * $size * map-get($rootElement, paddingH)
|
@@ -100,7 +101,7 @@
|
|
100
101
|
right: -$space
|
101
102
|
border: 1px solid map-get($white, darker)
|
102
103
|
|
103
|
-
=button-group-default($color, $size)
|
104
|
+
=button-group-default($background-color, $size)
|
104
105
|
list-style: none
|
105
106
|
padding: 0
|
106
107
|
margin:
|
@@ -116,7 +117,7 @@
|
|
116
117
|
|
117
118
|
> a, > button, > input
|
118
119
|
color: inherit
|
119
|
-
+button($color, $size)
|
120
|
+
+button($background-color, $size)
|
120
121
|
text-decoration: inherit
|
121
122
|
vertical-align: top
|
122
123
|
|
@@ -4,25 +4,34 @@
|
|
4
4
|
@else
|
5
5
|
color: rgba(0, 0, 0, 0.5)
|
6
6
|
|
7
|
-
=navbar-default($bleed-container: false, $background: map-get($white, dark))
|
7
|
+
=navbar-default($bleed-container: false, $background: map-get($white, dark), $breakpoint: $tablet, $collapse: false)
|
8
8
|
background: $background
|
9
9
|
box-shadow: 0px 1px 0px darken($background, 12%) inset
|
10
|
-
font-size:
|
10
|
+
font-size: $default-font-size
|
11
11
|
|
12
12
|
nav
|
13
|
-
display: flex
|
14
|
-
align-items: flex-start
|
15
|
-
flex-wrap: wrap
|
16
|
-
justify-content: space-between
|
17
|
-
align-content: space-between
|
18
13
|
width: 100%
|
19
14
|
border-radius: 0
|
15
|
+
position: relative
|
20
16
|
|
21
17
|
@if (lightness($background) < 75%)
|
22
18
|
color: white
|
23
19
|
@else
|
24
20
|
color: $default-font-color
|
25
21
|
|
22
|
+
@media screen and (min-width: $breakpoint)
|
23
|
+
display: flex
|
24
|
+
align-items: flex-start
|
25
|
+
flex-wrap: wrap
|
26
|
+
justify-content: space-between
|
27
|
+
align-content: space-between
|
28
|
+
|
29
|
+
|
30
|
+
&.expand
|
31
|
+
@if $collapse == true
|
32
|
+
> ul > li
|
33
|
+
display: block
|
34
|
+
|
26
35
|
h1
|
27
36
|
margin-bottom: 0
|
28
37
|
font-size: $base-font-size
|
@@ -31,27 +40,31 @@
|
|
31
40
|
p
|
32
41
|
margin: 0
|
33
42
|
|
34
|
-
@
|
35
|
-
|
36
|
-
|
43
|
+
@media screen and (min-width: $breakpoint)
|
44
|
+
@if ($bleed-container)
|
45
|
+
> ul:first-child
|
46
|
+
margin-left: (-1 * map-get($rootElement, paddingH))
|
37
47
|
|
38
|
-
|
39
|
-
|
48
|
+
> ul:last-child
|
49
|
+
margin-right: (-1 * map-get($rootElement, paddingH))
|
40
50
|
|
41
51
|
> ul
|
42
52
|
margin: 0
|
43
53
|
padding: 0
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
54
|
+
|
55
|
+
@media screen and (min-width: $breakpoint)
|
56
|
+
display: flex
|
57
|
+
justify-content: space-between
|
58
|
+
align-content: space-between
|
59
|
+
align-items: center
|
60
|
+
flex-wrap: wrap
|
49
61
|
|
50
62
|
&:last-child
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
63
|
+
@media screen and (min-width: $breakpoint)
|
64
|
+
> li.with-submenu.open
|
65
|
+
ul
|
66
|
+
left: auto
|
67
|
+
right: -1px
|
55
68
|
|
56
69
|
> li
|
57
70
|
list-style: none
|
@@ -65,6 +78,26 @@
|
|
65
78
|
right: map-get($rootElement, paddingH)
|
66
79
|
position: relative
|
67
80
|
|
81
|
+
@if $collapse == true
|
82
|
+
display: none
|
83
|
+
|
84
|
+
@media screen and (min-width: $breakpoint)
|
85
|
+
display: block
|
86
|
+
|
87
|
+
&.navbar-title
|
88
|
+
display: flex
|
89
|
+
justify-content: space-between
|
90
|
+
align-items: center
|
91
|
+
|
92
|
+
button
|
93
|
+
+button(transparent)
|
94
|
+
border-color: transparent
|
95
|
+
color: inherit
|
96
|
+
display: block
|
97
|
+
|
98
|
+
@media screen and (min-width: $breakpoint)
|
99
|
+
display: none
|
100
|
+
|
68
101
|
&.with-submenu // Added via k$.nav()
|
69
102
|
padding: (2 * map-get($rootElement, paddingV) - 1) (map-get($rootElement, paddingH))
|
70
103
|
+color($background)
|
@@ -133,4 +166,3 @@
|
|
133
166
|
&:active
|
134
167
|
background: darken($background, 15%)
|
135
168
|
border-color: darken($background, 15%)
|
136
|
-
|
@@ -1,4 +1,4 @@
|
|
1
|
-
=
|
1
|
+
=status_bar
|
2
2
|
position: fixed
|
3
3
|
top: 0
|
4
4
|
left: 0
|
@@ -7,7 +7,7 @@
|
|
7
7
|
display: flex
|
8
8
|
pointer-events: none
|
9
9
|
|
10
|
-
.status
|
10
|
+
.status_bar-status
|
11
11
|
+label(map-get($colors, yellow))
|
12
12
|
color: black
|
13
13
|
text-align: center
|
@@ -17,14 +17,4 @@
|
|
17
17
|
+fadeInDown
|
18
18
|
z-index: 1000
|
19
19
|
|
20
|
-
|
21
|
-
background-color: map-get($colors, green)
|
22
|
-
color: white
|
23
|
-
|
24
|
-
&[data-type="error"]
|
25
|
-
background-color: map-get($colors, red)
|
26
|
-
color: white
|
27
|
-
|
28
|
-
&[data-type="info"]
|
29
|
-
background-color: map-get($colors, blue)
|
30
|
-
color: white
|
20
|
+
@content
|
@@ -43,6 +43,30 @@ input[type="file"]::-webkit-file-upload-button
|
|
43
43
|
|
44
44
|
+growl
|
45
45
|
|
46
|
+
// Status
|
47
|
+
// ------
|
48
|
+
|
49
|
+
.status_bar
|
50
|
+
+status_bar
|
51
|
+
.status_bar-status
|
52
|
+
&[data-type="status-red"]
|
53
|
+
+label(map-get($colors, red))
|
54
|
+
|
55
|
+
&[data-type="status-orange"]
|
56
|
+
+label(map-get($colors, orange))
|
57
|
+
|
58
|
+
&[data-type="status-yellow"]
|
59
|
+
+label(map-get($colors, yellow))
|
60
|
+
|
61
|
+
&[data-type="status-green"]
|
62
|
+
+label(map-get($colors, green))
|
63
|
+
|
64
|
+
&[data-type="status-blue"]
|
65
|
+
+label(map-get($colors, blue))
|
66
|
+
|
67
|
+
&[data-type="status-violet"]
|
68
|
+
+label(map-get($colors, violet))
|
69
|
+
|
46
70
|
// Tooltips
|
47
71
|
// --------
|
48
72
|
|
@@ -1,3 +1,3 @@
|
|
1
1
|
@font-face
|
2
2
|
font-family: 'Kickstart'
|
3
|
-
src: url(data:application/x-font-woff;charset=utf-8;base64,
|
3
|
+
src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAhAABEAAAAADGQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABgAAAABwAAAAcbMG9U0dERUYAAAGcAAAAHQAAACAAQgAET1MvMgAAAbwAAABBAAAAYGl6iNpjbWFwAAACAAAAAGwAAAF6U3dB6mN2dCAAAAJsAAAABgAAAAYFEQBEZnBnbQAAAnQAAAGxAAACZVO0L6dnYXNwAAAEKAAAAAgAAAAIAAAAEGdseWYAAAQwAAAA5wAAASQqOzxvaGVhZAAABRgAAAAxAAAANgcNT75oaGVhAAAFTAAAAB8AAAAkDXIHUGhtdHgAAAVsAAAA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8VqBwQH1AD0+yDSXbPbVatuQV6SojXDCeP9FHPNlTMvu8HUv3Sl6k3somtohWeeY5+/E7LY74Lm7JbDK2nnT7B8+1jU0AAAB42m3FOw6CQBQF0HtBwS+oCb1LeIyOn5KQsBTQxBgaC1evgbl2nuYgwujTocU/BcCIMWJk2HPCKROmnHHOBZdccc2MOTfccpd0j3d/K0MufT3vZpUNO7PfpXb6oI/a65M+64u+6irsmrAP+6b+At0WJ3AAALgB/4WwAY0AS7AIUFixAQGOWbFGBitYIbAQWUuwFFJYIbCAWR2wBitcWFmwFCsAAAABVC1RwwAA) format('opentype')
|
@@ -28,7 +28,7 @@
|
|
28
28
|
+column(8, 2, 2)
|
29
29
|
|
30
30
|
.main-navigation
|
31
|
-
+navbar($bleed-container: true)
|
31
|
+
+navbar($bleed-container: true, $collapse: true)
|
32
32
|
|
33
33
|
.logo
|
34
34
|
height: 30px
|
@@ -38,7 +38,7 @@
|
|
38
38
|
opacity: 0.8
|
39
39
|
|
40
40
|
.docs-nav
|
41
|
-
+navbar($bleed-container: true, $background: map-get($black, lightest))
|
41
|
+
+navbar($bleed-container: true, $background: map-get($black, lightest), $collapse: true)
|
42
42
|
|
43
43
|
// Colors
|
44
44
|
// Kind of shitty, but there is a colors page that directly relies on this.
|
@@ -228,7 +228,6 @@
|
|
228
228
|
|
229
229
|
&.label-yellow
|
230
230
|
+label(map-get($colors, yellow))
|
231
|
-
color: map-get($black, light)
|
232
231
|
|
233
232
|
&.label-green
|
234
233
|
+label(map-get($colors, green))
|
@@ -239,6 +238,12 @@
|
|
239
238
|
&.label-violet
|
240
239
|
+label(map-get($colors, violet))
|
241
240
|
|
241
|
+
&.label-primary
|
242
|
+
+label($primary-color)
|
243
|
+
|
244
|
+
&.label-secondary
|
245
|
+
+label($secondary-color)
|
246
|
+
|
242
247
|
// NAVIGATION
|
243
248
|
// ----------
|
244
249
|
|
@@ -248,12 +253,6 @@
|
|
248
253
|
.navbar-dark
|
249
254
|
+navbar($background: map-get($black, lighter))
|
250
255
|
|
251
|
-
// STATUS
|
252
|
-
// ------
|
253
|
-
|
254
|
-
.status-bar
|
255
|
-
+statusBar
|
256
|
-
|
257
256
|
// TABLES
|
258
257
|
// ------
|
259
258
|
table
|
@@ -191,8 +191,8 @@ hr
|
|
191
191
|
// Navigation
|
192
192
|
// ----------
|
193
193
|
|
194
|
-
=navbar($bleed-container: false, $background: map-get($white, dark))
|
195
|
-
+navbar-default($bleed-container, $background)
|
194
|
+
=navbar($bleed-container: false, $background: map-get($white, dark), $breakpoint: $tablet, $collapse: false)
|
195
|
+
+navbar-default($bleed-container, $background, $breakpoint, $collapse)
|
196
196
|
|
197
197
|
=dropdown_menu
|
198
198
|
+dropdown_menu-default
|
@@ -251,11 +251,5 @@ hr
|
|
251
251
|
=tooltip_trigger
|
252
252
|
+tooltip_trigger-default
|
253
253
|
|
254
|
-
// Statuses
|
255
|
-
// --------
|
256
|
-
|
257
|
-
.status-bar
|
258
|
-
+statusBar()
|
259
|
-
|
260
254
|
@import ../core/_direct-apply.sass
|
261
255
|
@import ../vendor/_index
|
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.11
|
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-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|