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.
@@ -9,7 +9,8 @@
9
9
  > *:last-child
10
10
  margin-bottom: 0
11
11
 
12
- +alternate-headings
12
+ h1
13
+ +heading-xs
13
14
 
14
15
  a:not([role=button])
15
16
  color: inherit
@@ -12,7 +12,8 @@
12
12
  + img, + figure
13
13
  margin-left: $space/2
14
14
 
15
- +alternate-headings
15
+ h1
16
+ +heading-xs
16
17
 
17
18
  > img, > figure
18
19
  + :not(img)
@@ -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
- animation-duration: 0.25s
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)
@@ -1,4 +1,4 @@
1
- @keyframes fadeInDown
1
+ @keyframes fadeInDown
2
2
  0%
3
3
  opacity: 0
4
4
  transform: translateY(-20px)
@@ -10,4 +10,3 @@
10
10
  @import ../components/_tiles
11
11
  @import ../components/_tooltips
12
12
  @import ../components/_forms
13
- @import ../core/_direct-apply.sass
@@ -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: $tablet-landscape)
47
+ @media screen and (min-width: $showOffsets)
37
48
  max-width: $desktop
38
49
 
39
- @media screen and (min-width: $large-monitor)
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
- =set-offset($columns, $type: 'push')
50
- @if $type == 'push'
51
- @media screen and (min-width: $desktop)
52
- margin-right: calc(#{percentage($columns/$grid-columns)} + #{$grid-gutter})
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
- =push($columns)
58
- @if $columns == "half"
59
- +set-offset(6)
60
- @else if $columns == "third"
61
- @media screen and (min-width: $tablet)
62
- +set-offset(6)
63
- +set-offset(4)
64
- @else if $columns == "twothirds"
65
- @media screen and (min-width: $tablet)
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
- =pull($columns)
75
+ // Look for keywords
72
76
  @if $columns == "half"
73
- +set-offset(6, 'pull')
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: $tablet)
76
- +set-offset(6, 'pull')
77
- +set-offset(4, 'pull')
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: $tablet)
80
- +set-offset(6, 'pull')
81
- +set-offset(4, 'pull')
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
- +set-offset($columns, 'pull')
95
+ @media screen and (min-width: $showPartialColumns)
96
+ +measure-columns($columns, $side)
84
97
 
85
- =set-column($columns, $pull, $push)
86
- width: 100%
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
- @media screen and (min-width: $phablet)
91
- width: calc(#{percentage($columns/$grid-columns)} - #{$grid-gutter})
92
- clear: none
110
+ @if $right != 0
111
+ +set-offset($right, "margin-right")
93
112
 
94
- @if $pull != 0
95
- +pull($pull)
113
+ @if $left != 0
114
+ +set-offset($left, "margin-left")
96
115
 
97
- @if $pull != 0
98
- +push($push)
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: $tablet)
104
- +set-column($grid-columns/2, $pull, $push)
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: $phablet)
107
- +set-column($grid-columns/2, $pull, $push)
108
- @media screen and (min-width: $tablet)
109
- +set-column($grid-columns/3, $pull, $push)
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: $phablet)
112
- +set-column($grid-columns/2, $pull, $push)
113
- @media screen and (min-width: $tablet)
114
- +set-column(($grid-columns * 2/3), $pull, $push)
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
- @media screen and (min-width: $tablet)
117
- +set-column($columns, $pull, $push)
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
+
@@ -148,7 +148,7 @@ a
148
148
  bottom: 0.7rem
149
149
  +heading-break
150
150
 
151
- =xheading-xs-default
151
+ =heading-xxs-default
152
152
  font-size: 0.9rem
153
153
  margin:
154
154
  bottom: 0.5rem
@@ -19,13 +19,13 @@
19
19
  +heading-xs
20
20
 
21
21
  h2
22
- +xheading-xs
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
- +xheading-xs
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
- // Pulls
172
+ // Left offsets
165
173
  @each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
166
- &.col-pull-#{$screen}third
167
- +pull('third')
174
+ &.col-left-#{$screen}third
175
+ +left('third')
168
176
 
169
- &.col-push-#{$screen}twothirds
170
- +pull('twothirds')
177
+ &.col-left-#{$screen}twothirds
178
+ +left('twothirds')
171
179
 
172
- &.col-push-#{$screen}half
173
- +pull('half')
180
+ &.col-left-#{$screen}half
181
+ +left('half')
174
182
 
175
183
  @for $i from 1 through 12
176
- &.col-pull-#{$screen}#{$i}
177
- +pull($i)
184
+ &.col-left-#{$screen}#{$i}
185
+ +left($i)
178
186
 
179
- // Pushes
187
+ // Right offsets
180
188
  @each $screen in '', 'xs-', 'sm-', 'rg-', 'md-', 'lg-', 'xl-'
181
- &.col-push-#{$screen}third
182
- +push('third')
189
+ &.col-right-#{$screen}third
190
+ +right('third')
183
191
 
184
- &.col-push-#{$screen}twothirds
185
- +push('twothirds')
192
+ &.col-right-#{$screen}twothirds
193
+ +right('twothirds')
186
194
 
187
- &.col-push-#{$screen}half
188
- +push('half')
195
+ &.col-right-#{$screen}half
196
+ +right('half')
189
197
 
190
198
  @for $i from 1 through 12
191
- &.col-push-#{$screen}#{$i}
192
- +push($i)
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
- +xheading-xs
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
- =xheading-xs
105
- +xheading-xs-default
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
- +xheading-xs
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
@@ -1,3 +1,3 @@
1
1
  module Kickstart_rails
2
- VERSION = "3.0.6"
2
+ VERSION = "3.0.7"
3
3
  end