kickstart_rails 3.0.14 → 3.0.15

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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails/docs.js +38 -19
  3. data/app/assets/javascripts/kickstart_rails/kickstart.js +5 -5
  4. data/app/assets/javascripts/kickstart_rails/test.js +9 -9
  5. data/app/assets/stylesheets/kickstart_rails/components/_alerts.sass +2 -0
  6. data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +13 -4
  7. data/app/assets/stylesheets/kickstart_rails/components/_dropdown_menu.sass +2 -0
  8. data/app/assets/stylesheets/kickstart_rails/components/_forms.sass +9 -1
  9. data/app/assets/stylesheets/kickstart_rails/components/_growls.sass +1 -0
  10. data/app/assets/stylesheets/kickstart_rails/components/_hr.sass +1 -0
  11. data/app/assets/stylesheets/kickstart_rails/components/_images.sass +4 -0
  12. data/app/assets/stylesheets/kickstart_rails/components/_labels.sass +2 -0
  13. data/app/assets/stylesheets/kickstart_rails/components/_modals.sass +2 -0
  14. data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +4 -0
  15. data/app/assets/stylesheets/kickstart_rails/components/_navbar.sass +218 -0
  16. data/app/assets/stylesheets/kickstart_rails/components/_pagination.sass +11 -0
  17. data/app/assets/stylesheets/kickstart_rails/components/_tables.sass +34 -3
  18. data/app/assets/stylesheets/kickstart_rails/components/_tooltips.sass +9 -6
  19. data/app/assets/stylesheets/kickstart_rails/core/_base_components.sass +1 -3
  20. data/app/assets/stylesheets/kickstart_rails/core/_dependent_components.sass +1 -1
  21. data/app/assets/stylesheets/kickstart_rails/core/_direct-apply.sass +95 -5
  22. data/app/assets/stylesheets/kickstart_rails/docs.sass +6 -0
  23. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +16 -33
  24. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +7 -7
  25. data/lib/kickstart_rails/version.rb +1 -1
  26. 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
- tbody tr:nth-child(2n)
35
- background-color: lighten(map-get($gray, light), 50%)
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: map-get($colors, blue))
1
+ =tooltip_trigger-default($background-color: false)
2
2
  position: relative
3
3
  display: inline-block
4
4
  cursor: pointer
5
5
 
6
- .tooltip
7
- +label($background-color)
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
@@ -7,6 +7,6 @@
7
7
  @import ../components/_modals
8
8
  @import ../components/_notifications
9
9
  @import ../components/_tabs
10
- @import ../components/_tiles
11
10
  @import ../components/_tooltips
12
11
  @import ../components/_forms
12
+ @import ../components/_pagination
@@ -8,7 +8,7 @@
8
8
  // Buttons
9
9
  // -------
10
10
 
11
- button:not(.navbar-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(-16px)
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))
@@ -9,12 +9,18 @@
9
9
 
10
10
  // Now write your own Sass
11
11
 
12
+ html, body
13
+ overflow-x: hidden
14
+
12
15
  .mainpane
13
16
  +column('twothirds')
14
17
 
15
18
  .sidebar
16
19
  +column('third')
17
20
 
21
+ section
22
+ margin-bottom: $space
23
+
18
24
  h1
19
25
  +heading-xs
20
26
 
@@ -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
- // TILES
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
- &.tile-blue
288
- +tile-color(map-get($colors, blue))
270
+ &.table-zebra
271
+ +table-zebra
289
272
 
290
- &.tile-violet
291
- +tile-color(map-get($colors, violet))
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(http://fonts.googleapis.com/css?family=Lato:300,400,700,400italic)
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
- // Tiles
248
- // -----
247
+ // Pagination
248
+ // ----------
249
249
 
250
- =tile($color: map-get($gray, dark))
251
- +tile-default($color)
250
+ =pagination($background: map-get($white, darker))
251
+ +pagination-default($background)
252
252
 
253
253
  // Tooltips
254
254
  // --------
@@ -1,3 +1,3 @@
1
1
  module Kickstart_rails
2
- VERSION = "3.0.14"
2
+ VERSION = "3.0.15"
3
3
  end
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.14
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-02 00:00:00.000000000 Z
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