kickstart_rails 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/kickstart_rails/docs.js +29 -0
- data/app/assets/javascripts/kickstart_rails/kickstart.js +111 -10
- data/app/assets/javascripts/kickstart_rails/kickstart.min.js +1 -1
- data/app/assets/javascripts/kickstart_rails/test.js +235 -54
- data/app/assets/stylesheets/kickstart_rails/components/_alerts.sass +2 -1
- data/app/assets/stylesheets/kickstart_rails/components/_growls.sass +1 -0
- data/app/assets/stylesheets/kickstart_rails/components/_images.sass +2 -1
- data/app/assets/stylesheets/kickstart_rails/components/_notifications.sass +1 -5
- data/app/assets/stylesheets/kickstart_rails/core/_animations.sass +1 -1
- data/app/assets/stylesheets/kickstart_rails/core/_dependent_components.sass +0 -1
- data/app/assets/stylesheets/kickstart_rails/core/_direct-apply.sass +27 -2
- data/app/assets/stylesheets/kickstart_rails/core/_grid.sass +77 -54
- data/app/assets/stylesheets/kickstart_rails/core/_mixins.sass +8 -7
- data/app/assets/stylesheets/kickstart_rails/core/_typography.sass +1 -1
- data/app/assets/stylesheets/kickstart_rails/docs.sass +3 -3
- data/app/assets/stylesheets/kickstart_rails/kickstart.sass +27 -19
- data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +9 -3
- data/lib/kickstart_rails/version.rb +1 -1
- metadata +14 -14
@@ -0,0 +1 @@
|
|
1
|
+
=growl-default
|
@@ -14,12 +14,8 @@
|
|
14
14
|
margin: 5px auto
|
15
15
|
max-width: 300px
|
16
16
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15)
|
17
|
-
|
18
|
-
animation-delay: 0.2s
|
19
|
-
animation-timing-function: ease
|
20
|
-
animation-fill-mode: both
|
17
|
+
+fadeInDown
|
21
18
|
z-index: 1000
|
22
|
-
animation-name: fadeInDown
|
23
19
|
|
24
20
|
&[data-type="success"]
|
25
21
|
background-color: map-get($colors, green)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// ===================
|
3
3
|
// Regardless of semantic or non-semantic usage, some styles
|
4
4
|
// Should be applied directly to classes or elements no matter
|
5
|
-
// what. This include should be included near the end of the
|
5
|
+
// what. This include should be included near the end of the
|
6
6
|
// import chain but before kickstart.sass to accomplish this.
|
7
7
|
|
8
8
|
// Buttons
|
@@ -18,6 +18,31 @@ input[type="file"]::-webkit-file-upload-button
|
|
18
18
|
|
19
19
|
+dropdown_menu
|
20
20
|
|
21
|
+
// Growls
|
22
|
+
// ------
|
23
|
+
|
24
|
+
.growl_container
|
25
|
+
position: fixed
|
26
|
+
top: 0
|
27
|
+
right: 0
|
28
|
+
padding: $space/2
|
29
|
+
z-index: 1000
|
30
|
+
width: 300px
|
31
|
+
overflow: auto
|
32
|
+
max-height: 100vh
|
33
|
+
|
34
|
+
.growl
|
35
|
+
box-shadow: 0px 0px $space/2 rgba(0, 0, 0, 0.5)
|
36
|
+
transition: all 0.5s
|
37
|
+
|
38
|
+
&.show, &.hide
|
39
|
+
+fadeInDown
|
40
|
+
|
41
|
+
&.hide
|
42
|
+
animation-direction: reverse
|
43
|
+
|
44
|
+
+growl
|
45
|
+
|
21
46
|
// Tooltips
|
22
47
|
// --------
|
23
48
|
|
@@ -69,7 +94,7 @@ input[type="file"]::-webkit-file-upload-button
|
|
69
94
|
&:after, &:before
|
70
95
|
opacity: 1
|
71
96
|
|
72
|
-
&:after
|
97
|
+
&:after
|
73
98
|
transform: translateY(-8px)
|
74
99
|
transition: transform 0.25s
|
75
100
|
|
@@ -21,10 +21,21 @@ $tablet-landscape: 960px
|
|
21
21
|
$desktop: 1024px
|
22
22
|
$large-monitor: 1200px
|
23
23
|
$xl-monitor: 1400px
|
24
|
+
$xxl-monitor: 1800px
|
24
25
|
|
25
26
|
$grid-columns: 12
|
26
27
|
$grid-gutter: 15px
|
27
28
|
|
29
|
+
// Grid breakpoints
|
30
|
+
// ----------------
|
31
|
+
// Critical breakpoints where offsets and alternative grid styles will
|
32
|
+
// be displayed
|
33
|
+
|
34
|
+
$showOffsets: $tablet-landscape // Offsets render at this breakpoint
|
35
|
+
$showColumns: $phablet // Allow < 12 columns
|
36
|
+
$showPartialColumns: $tablet // Simpler alternative to actual columns
|
37
|
+
$showFullColumns: $desktop // Actual user-defined column measurement
|
38
|
+
|
28
39
|
=container
|
29
40
|
margin: 0px auto
|
30
41
|
display: block
|
@@ -33,10 +44,10 @@ $grid-gutter: 15px
|
|
33
44
|
left: 25px
|
34
45
|
right: 25px
|
35
46
|
|
36
|
-
@media screen and (min-width: $
|
47
|
+
@media screen and (min-width: $showOffsets)
|
37
48
|
max-width: $desktop
|
38
49
|
|
39
|
-
@media screen and (min-width: $
|
50
|
+
@media screen and (min-width: $xxl-monitor)
|
40
51
|
max-width: $large-monitor
|
41
52
|
|
42
53
|
=row
|
@@ -46,72 +57,84 @@ $grid-gutter: 15px
|
|
46
57
|
align-items: stretch
|
47
58
|
flex-wrap: wrap
|
48
59
|
|
49
|
-
=
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
@else if $type == 'pull'
|
54
|
-
@media screen and (min-width: $desktop)
|
55
|
-
margin-left: calc(#{percentage($columns/$grid-columns)} + #{$grid-gutter})
|
60
|
+
=measure-columns($columns, $prop)
|
61
|
+
// TODO: DRY this somehow?
|
62
|
+
@if $prop == "width"
|
63
|
+
width: calc(#{percentage($columns/$grid-columns)} - #{(($grid-columns/$columns - 1) * $grid-gutter)/($grid-columns/$columns)})
|
56
64
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
@else if $
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
+set-offset(6)
|
67
|
-
+set-offset(4)
|
68
|
-
@else
|
69
|
-
+set-offset($columns)
|
65
|
+
@else if $prop == "margin-left"
|
66
|
+
margin-left: calc(#{percentage($columns/$grid-columns)} - #{(($grid-columns/$columns - 1) * $grid-gutter)/($grid-columns/$columns) - $grid-gutter})
|
67
|
+
|
68
|
+
@else if $prop == "margin-right"
|
69
|
+
margin-right: calc(#{percentage($columns/$grid-columns)} - #{(($grid-columns/$columns - 1) * $grid-gutter)/($grid-columns/$columns) - $grid-gutter})
|
70
|
+
|
71
|
+
=set-offset($columns, $side: "margin-right")
|
72
|
+
// Never show leftes and rights on mobile
|
73
|
+
// +measure-columns(0, $side)
|
70
74
|
|
71
|
-
|
75
|
+
// Look for keywords
|
72
76
|
@if $columns == "half"
|
73
|
-
|
77
|
+
@media screen and (min-width: $showPartialColumns)
|
78
|
+
+measure-columns(6, $side)
|
79
|
+
|
74
80
|
@else if $columns == "third"
|
75
|
-
@media screen and (min-width: $
|
76
|
-
+
|
77
|
-
|
81
|
+
@media screen and (min-width: $showPartialColumns)
|
82
|
+
+measure-columns(6, $side)
|
83
|
+
|
84
|
+
@media screen and (min-width: $showFullColumns)
|
85
|
+
+measure-columns(4, $side)
|
86
|
+
|
78
87
|
@else if $columns == "twothirds"
|
79
|
-
@media screen and (min-width: $
|
80
|
-
+
|
81
|
-
|
88
|
+
@media screen and (min-width: $showPartialColumns)
|
89
|
+
+measure-columns(6, $side)
|
90
|
+
|
91
|
+
@media screen and (min-width: $showFullColumns)
|
92
|
+
+measure-columns(8, $side)
|
93
|
+
|
82
94
|
@else
|
83
|
-
|
95
|
+
@media screen and (min-width: $showPartialColumns)
|
96
|
+
+measure-columns($columns, $side)
|
84
97
|
|
85
|
-
|
86
|
-
|
98
|
+
// Convenience mixins
|
99
|
+
=right($columns)
|
100
|
+
+set-offset($columns, "margin-right")
|
101
|
+
=left($columns)
|
102
|
+
+set-offset($columns, "margin-left")
|
103
|
+
|
104
|
+
=set-column($columns, $right, $left)
|
105
|
+
+measure-columns($columns, "width")
|
106
|
+
clear: none
|
87
107
|
display: block
|
88
108
|
margin-left: 0
|
89
109
|
|
90
|
-
@
|
91
|
-
|
92
|
-
clear: none
|
110
|
+
@if $right != 0
|
111
|
+
+set-offset($right, "margin-right")
|
93
112
|
|
94
|
-
@if $
|
95
|
-
+
|
113
|
+
@if $left != 0
|
114
|
+
+set-offset($left, "margin-left")
|
96
115
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
=column($columns: 12, $pull: 0, $push: 0)
|
116
|
+
=column($columns: 12, $right: 0, $left: 0)
|
117
|
+
// Everything is a full width column on mobile by default
|
101
118
|
+set-column(12, 0, 0)
|
119
|
+
|
120
|
+
// Look for keywords
|
102
121
|
@if $columns == "half"
|
103
|
-
@media screen and (min-width: $
|
104
|
-
+set-column($grid-columns/2, $
|
122
|
+
@media screen and (min-width: $showPartialColumns)
|
123
|
+
+set-column($grid-columns/2, $right, $left)
|
124
|
+
|
105
125
|
@else if $columns == "third"
|
106
|
-
@media screen and (min-width: $
|
107
|
-
+set-column($grid-columns/2, $
|
108
|
-
@media screen and (min-width: $
|
109
|
-
+set-column($grid-columns/3, $
|
126
|
+
@media screen and (min-width: $showPartialColumns)
|
127
|
+
+set-column($grid-columns/2, $right, $left)
|
128
|
+
@media screen and (min-width: $showFullColumns)
|
129
|
+
+set-column($grid-columns/3, $right, $left)
|
130
|
+
|
110
131
|
@else if $columns == "twothirds"
|
111
|
-
@media screen and (min-width: $
|
112
|
-
+set-column($grid-columns/2, $
|
113
|
-
@media screen and (min-width: $
|
114
|
-
+set-column(($grid-columns * 2/3), $
|
132
|
+
@media screen and (min-width: $showPartialColumns)
|
133
|
+
+set-column($grid-columns/2, $right, $left)
|
134
|
+
@media screen and (min-width: $showFullColumns)
|
135
|
+
+set-column(($grid-columns * 2/3), $right, $left)
|
136
|
+
|
115
137
|
@else
|
116
|
-
|
117
|
-
|
138
|
+
// No keywords found, pass in values.
|
139
|
+
@media screen and (min-width: $showColumns)
|
140
|
+
+set-column($columns, $right, $left)
|
@@ -1,10 +1,3 @@
|
|
1
|
-
=alternate-headings
|
2
|
-
h1
|
3
|
-
+heading-xs
|
4
|
-
|
5
|
-
h2, h3, h4, h5
|
6
|
-
+xheading-xs
|
7
|
-
|
8
1
|
=text-inputs
|
9
2
|
input[type="date"],
|
10
3
|
input[type="datetime"],
|
@@ -20,3 +13,11 @@
|
|
20
13
|
input[type="url"],
|
21
14
|
input[type="week"]
|
22
15
|
@content
|
16
|
+
|
17
|
+
=fadeInDown
|
18
|
+
animation-duration: 0.25s
|
19
|
+
animation-delay: 0.2s
|
20
|
+
animation-timing-function: ease
|
21
|
+
animation-fill-mode: both
|
22
|
+
animation-name: fadeInDown
|
23
|
+
|
@@ -19,13 +19,13 @@
|
|
19
19
|
+heading-xs
|
20
20
|
|
21
21
|
h2
|
22
|
-
+
|
22
|
+
+heading-xxs
|
23
23
|
|
24
24
|
.fullpane
|
25
25
|
+column(12)
|
26
26
|
|
27
27
|
@media screen and (min-width: $tablet-landscape)
|
28
|
-
+column(8, 2)
|
28
|
+
+column(8, 2, 2)
|
29
29
|
|
30
30
|
.main-navigation
|
31
31
|
+navbar($bleed-container: true)
|
@@ -105,7 +105,7 @@ h1.example-
|
|
105
105
|
&xs
|
106
106
|
+heading-xs
|
107
107
|
&xxs
|
108
|
-
+
|
108
|
+
+heading-xs
|
109
109
|
|
110
110
|
.if-jquery, .ifnot-jquery, .if-semantic, .ifnot-semantic
|
111
111
|
display: none
|
@@ -35,6 +35,14 @@
|
|
35
35
|
.alert
|
36
36
|
+alert
|
37
37
|
|
38
|
+
&.alert-red
|
39
|
+
background: map-get($colors, red)
|
40
|
+
&.alert-green
|
41
|
+
background: map-get($colors, green)
|
42
|
+
&.alert-yellow
|
43
|
+
background: map-get($colors, yellow)
|
44
|
+
color: $default-font-color
|
45
|
+
|
38
46
|
// BUTTONS
|
39
47
|
// -------
|
40
48
|
.button
|
@@ -161,35 +169,35 @@
|
|
161
169
|
+column('twothirds')
|
162
170
|
|
163
171
|
[class^="col"]
|
164
|
-
//
|
172
|
+
// Left offsets
|
165
173
|
@each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
|
166
|
-
&.col-
|
167
|
-
+
|
174
|
+
&.col-left-#{$screen}third
|
175
|
+
+left('third')
|
168
176
|
|
169
|
-
&.col-
|
170
|
-
+
|
177
|
+
&.col-left-#{$screen}twothirds
|
178
|
+
+left('twothirds')
|
171
179
|
|
172
|
-
&.col-
|
173
|
-
+
|
180
|
+
&.col-left-#{$screen}half
|
181
|
+
+left('half')
|
174
182
|
|
175
183
|
@for $i from 1 through 12
|
176
|
-
&.col-
|
177
|
-
+
|
184
|
+
&.col-left-#{$screen}#{$i}
|
185
|
+
+left($i)
|
178
186
|
|
179
|
-
//
|
187
|
+
// Right offsets
|
180
188
|
@each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
|
181
|
-
&.col-
|
182
|
-
+
|
189
|
+
&.col-right-#{$screen}third
|
190
|
+
+right('third')
|
183
191
|
|
184
|
-
&.col-
|
185
|
-
+
|
192
|
+
&.col-right-#{$screen}twothirds
|
193
|
+
+right('twothirds')
|
186
194
|
|
187
|
-
&.col-
|
188
|
-
+
|
195
|
+
&.col-right-#{$screen}half
|
196
|
+
+right('half')
|
189
197
|
|
190
198
|
@for $i from 1 through 12
|
191
|
-
&.col-
|
192
|
-
+
|
199
|
+
&.col-right-#{$screen}#{$i}
|
200
|
+
+right($i)
|
193
201
|
|
194
202
|
// IMAGES
|
195
203
|
// ------
|
@@ -311,7 +319,7 @@ table
|
|
311
319
|
+heading-xs
|
312
320
|
|
313
321
|
.xxs
|
314
|
-
+
|
322
|
+
+heading-xxs
|
315
323
|
|
316
324
|
.readable
|
317
325
|
+p(true)
|
@@ -101,8 +101,8 @@ pre
|
|
101
101
|
=heading-xs
|
102
102
|
+heading-xs-default
|
103
103
|
|
104
|
-
=
|
105
|
-
+
|
104
|
+
=heading-xxs
|
105
|
+
+heading-xxs-default
|
106
106
|
|
107
107
|
h1, h2, h3, h4, h5, h6
|
108
108
|
font-family: $heading-font-family
|
@@ -123,7 +123,7 @@ h5
|
|
123
123
|
+heading-xs
|
124
124
|
|
125
125
|
h6
|
126
|
-
+
|
126
|
+
+heading-xxs
|
127
127
|
|
128
128
|
=type
|
129
129
|
+type-default
|
@@ -227,6 +227,11 @@ hr
|
|
227
227
|
=form_group($orientation: 'vertical')
|
228
228
|
+form_group-default($orientation)
|
229
229
|
|
230
|
+
// Growls
|
231
|
+
// ------
|
232
|
+
|
233
|
+
=growl
|
234
|
+
+growl-default
|
230
235
|
|
231
236
|
// Modals
|
232
237
|
// ------
|
@@ -252,4 +257,5 @@ hr
|
|
252
257
|
.status-bar
|
253
258
|
+statusBar()
|
254
259
|
|
260
|
+
@import ../core/_direct-apply.sass
|
255
261
|
@import ../vendor/_index
|