kickstart_rails 3.0.39 → 3.0.40

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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails/app.coffee +17 -0
  3. data/app/assets/javascripts/kickstart_rails/buffer.coffee +32 -0
  4. data/app/assets/javascripts/kickstart_rails/buttons.coffee +8 -0
  5. data/app/assets/javascripts/kickstart_rails/debouncer.coffee +14 -0
  6. data/app/assets/javascripts/kickstart_rails/docs.coffee +179 -0
  7. data/app/assets/javascripts/kickstart_rails/dropdown.coffee +40 -0
  8. data/app/assets/javascripts/kickstart_rails/growl.coffee +56 -0
  9. data/app/assets/javascripts/kickstart_rails/ks.coffee +16 -0
  10. data/app/assets/javascripts/kickstart_rails/modal.coffee +29 -0
  11. data/app/assets/javascripts/kickstart_rails/navbar-fixer.coffee +9 -0
  12. data/app/assets/javascripts/kickstart_rails/navbar.coffee +36 -0
  13. data/app/assets/javascripts/kickstart_rails/status.coffee +30 -0
  14. data/app/assets/javascripts/kickstart_rails/tabs.coffee +32 -0
  15. data/app/assets/javascripts/kickstart_rails/tests.coffee +10 -0
  16. data/app/assets/javascripts/kickstart_rails/throttler.coffee +7 -0
  17. data/app/assets/stylesheets/core/_animations.sass +8 -0
  18. data/app/assets/stylesheets/core/_base.sass +16 -0
  19. data/app/assets/stylesheets/core/_base_components.sass +15 -0
  20. data/app/assets/stylesheets/core/_dependent_components.sass +12 -0
  21. data/app/assets/stylesheets/core/_direct-apply.sass +337 -0
  22. data/app/assets/stylesheets/core/_grid.sass +142 -0
  23. data/app/assets/stylesheets/core/_icons.sass +3 -0
  24. data/app/assets/stylesheets/core/_index.sass +7 -0
  25. data/app/assets/stylesheets/core/_mixins.sass +22 -0
  26. data/app/assets/stylesheets/core/_normalize.sass +339 -0
  27. data/app/assets/stylesheets/core/_root-element.sass +17 -0
  28. data/app/assets/stylesheets/core/_typography.sass +180 -0
  29. data/app/assets/stylesheets/core/components/_alerts.sass +23 -0
  30. data/app/assets/stylesheets/core/components/_buttons.sass +159 -0
  31. data/app/assets/stylesheets/core/components/_dropdown_menu.sass +69 -0
  32. data/app/assets/stylesheets/core/components/_forms.sass +106 -0
  33. data/app/assets/stylesheets/core/components/_growls.sass +2 -0
  34. data/app/assets/stylesheets/core/components/_hr.sass +5 -0
  35. data/app/assets/stylesheets/core/components/_images.sass +40 -0
  36. data/app/assets/stylesheets/core/components/_labels.sass +15 -0
  37. data/app/assets/stylesheets/core/components/_modals.sass +73 -0
  38. data/app/assets/stylesheets/core/components/_navbar.sass +270 -0
  39. data/app/assets/stylesheets/core/components/_notifications.sass +20 -0
  40. data/app/assets/stylesheets/core/components/_pagination.sass +11 -0
  41. data/app/assets/stylesheets/core/components/_progress.sass +12 -0
  42. data/app/assets/stylesheets/core/components/_tables.sass +70 -0
  43. data/app/assets/stylesheets/core/components/_tabs.sass +37 -0
  44. data/app/assets/stylesheets/core/components/_tooltips.sass +26 -0
  45. data/app/assets/stylesheets/docs.sass +99 -0
  46. data/app/assets/stylesheets/fullpage.sass +7 -0
  47. data/app/assets/stylesheets/kickstart-semantic.sass +10 -0
  48. data/app/assets/stylesheets/kickstart.sass +344 -0
  49. data/app/assets/stylesheets/pages/docs/form.sass +0 -0
  50. data/app/assets/stylesheets/pages/docs/grid.sass +73 -0
  51. data/app/assets/stylesheets/pages/docs/index.sass +217 -0
  52. data/app/assets/stylesheets/pages/docs/ui/alerts.sass +5 -0
  53. data/app/assets/stylesheets/pages/docs/ui/buttons.sass +52 -0
  54. data/app/assets/stylesheets/pages/docs/ui/forms.sass +31 -0
  55. data/app/assets/stylesheets/pages/docs/ui/images.sass +7 -0
  56. data/app/assets/stylesheets/pages/docs/ui/labels.sass +10 -0
  57. data/app/assets/stylesheets/pages/docs/ui/modals.sass +18 -0
  58. data/app/assets/stylesheets/pages/docs/ui/navigation.sass +14 -0
  59. data/app/assets/stylesheets/pages/docs/ui/notifications.sass +17 -0
  60. data/app/assets/stylesheets/pages/docs/ui/tables.sass +13 -0
  61. data/app/assets/stylesheets/pages/docs/ui/tabs.sass +7 -0
  62. data/app/assets/stylesheets/pages/docs/ui/tooltips.sass +7 -0
  63. data/app/assets/stylesheets/pages/docs/ui/typography.sass +56 -0
  64. data/app/assets/stylesheets/pages/index.sass +105 -0
  65. data/app/assets/stylesheets/themes/default/theme.sass +264 -0
  66. data/app/assets/stylesheets/vendor/_index.sass +10 -0
  67. data/app/assets/stylesheets/vendor/switch/README.md +34 -0
  68. data/app/assets/stylesheets/vendor/switch/example.sass +14 -0
  69. data/app/assets/stylesheets/vendor/switch/gulpfile.js +16 -0
  70. data/app/assets/stylesheets/vendor/switch/index.html +18 -0
  71. data/app/assets/stylesheets/vendor/switch/package.json +24 -0
  72. data/app/assets/stylesheets/vendor/switch/switch.sass +53 -0
  73. data/lib/kickstart_rails/version.rb +1 -1
  74. metadata +72 -1
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Root Element
3
+ * =========
4
+ * The root element is a base for several many elements in the library
5
+ * To ensure consistent spacing when mixed into blocks.
6
+ */
7
+
8
+ =root-element($size: 1)
9
+ padding: ($size * $size * map-get($rootElement, paddingV)) ($size * $size * map-get($rootElement, paddingV))
10
+ border-radius: map-get($rootElement, border-radius)
11
+ border: 1px solid transparent
12
+ outline: none
13
+ margin-bottom: $space
14
+ @if $size != 1
15
+ font-size: #{$size}rem
16
+ line-height: $size * $default-line-height
17
+ font-family: $body-font-family
@@ -0,0 +1,180 @@
1
+ =type-default
2
+ font-family: $default-font
3
+ font-size: $default-font-size
4
+ font-size: calc(#{$default-font-size - 2} + #{$scalingFactor})
5
+ line-height: $default-line-height
6
+ line-height: calc(#{$default-line-height} + #{$scalingFactor})
7
+ color: $default-font-color
8
+
9
+ html
10
+ color: map-get($black, lightest)
11
+
12
+ ul
13
+ margin: 0
14
+ bottom: $space
15
+
16
+ h1, h2, h3, h4, h5, h6, p
17
+ margin: 0
18
+ line-height: normal
19
+
20
+ p
21
+ margin: 0
22
+ bottom: $space
23
+ line-height: $default-line-height
24
+
25
+ a
26
+ text-decoration: none
27
+ color: map-get($colors, blue)
28
+
29
+ &:hover
30
+ text-decoration: underline
31
+
32
+ =pre-default
33
+ color: darken(map-get($colors, blue), 25%)
34
+ border-radius: $space/5
35
+ padding: ($space/5)
36
+ font-family: $mono-font-family
37
+ word-break: break-all
38
+ word-wrap: break-word
39
+ border: 0px !important
40
+ margin: 0
41
+ bottom: $space
42
+
43
+ =code-default
44
+ margin-bottom: 0px
45
+ padding: 0 (($space/5)/3)
46
+
47
+ =p-default($content-optimized: false)
48
+ font-size: 1rem
49
+ margin-bottom: $space
50
+ line-height: $default-line-height
51
+
52
+ @if ($content-optimized)
53
+ font-size: 1.25rem
54
+ line-height: 1.85rem
55
+ margin-bottom: 1.25rem
56
+
57
+ =hero-default
58
+ padding:
59
+ top: $space
60
+ top: 2vw
61
+ bottom: $space
62
+ bottom: 2vw
63
+ min-height: 450px
64
+ min-height: 35vw
65
+ background: $primary-color
66
+ margin-bottom: $space
67
+ box-shadow: inset 0px -30px 100px -20px hsla(0, 0%, 0%, 0.15), inset 0px 40px 90px -20px rgba(255, 255, 255, 0.15)
68
+ display: flex
69
+ flex-direction: column
70
+ justify-content: center
71
+ align-items: center
72
+ color: white
73
+
74
+ > h1, > h2, > h3, > h4, > h5, > h6, > p
75
+ text-align: center
76
+ font-weight: 300
77
+
78
+ h1, h2, h3, h4, h5, h6, p
79
+ color: inherit
80
+
81
+ h1
82
+ +heading-xxl
83
+ h2
84
+ +heading-xl
85
+ h3
86
+ +heading-lg
87
+ h4
88
+ +heading-md
89
+ h5
90
+ +heading-rg
91
+ h6
92
+ +heading-sm
93
+
94
+ > img
95
+ margin: 0px auto
96
+ display: block
97
+
98
+ =heading-break
99
+ margin:
100
+ top: 2rem
101
+ &:first-child
102
+ margin-top: 0
103
+
104
+ =page-heading-default
105
+ h1, h2, h3, h4, h5, h6
106
+ border-bottom: 1px solid map-get($white, darker)
107
+ padding-bottom: $space/2
108
+
109
+ =heading-xxl-default
110
+ font-size: 3rem
111
+ margin:
112
+ bottom: 1.65rem
113
+ +heading-break
114
+
115
+ =heading-xl-default
116
+ font-size: 2.7rem
117
+ margin:
118
+ bottom: 1.5rem
119
+ +heading-break
120
+
121
+ =heading-lg-default
122
+ font-size: 2.4rem
123
+ margin:
124
+ bottom: 1.25rem
125
+ +heading-break
126
+
127
+ =heading-md-default
128
+ font-size: 2.1rem
129
+ margin:
130
+ bottom: 1.15rem
131
+ +heading-break
132
+
133
+ =heading-rg-default
134
+ font-size: 1.8rem
135
+ margin:
136
+ bottom: 1rem
137
+ +heading-break
138
+
139
+ =heading-sm-default
140
+ font-size: 1.5rem
141
+ margin:
142
+ bottom: 0.85rem
143
+ +heading-break
144
+
145
+ =heading-xs-default
146
+ font-size: 1.2rem
147
+ margin:
148
+ bottom: 0.7rem
149
+ +heading-break
150
+
151
+ =heading-xxs-default
152
+ font-size: 0.9rem
153
+ margin:
154
+ bottom: 0.5rem
155
+ +heading-break
156
+
157
+ =list-default($style: 'none')
158
+ margin-bottom: $space
159
+
160
+ @if ($style == 'unstyled')
161
+ +list-unstyled
162
+
163
+ @if ($style == 'horizontal')
164
+ +list-horizontal
165
+
166
+ @if ($style == 'unstyled horizontal')
167
+ +list-unstyled
168
+ +list-horizontal
169
+
170
+ =list-unstyled
171
+ padding: 0
172
+ list-style: none
173
+
174
+ > li
175
+ margin-bottom: 0.85rem
176
+
177
+ =list-horizontal
178
+ > li
179
+ display: inline-block
180
+ margin-right: 5px
@@ -0,0 +1,23 @@
1
+ =alert-default
2
+ +root-element
3
+ padding: $space/2
4
+ background: $primary-color
5
+ color: white
6
+ margin:
7
+ bottom: $space
8
+
9
+ p
10
+ +p
11
+
12
+ > *:last-child
13
+ margin-bottom: 0
14
+
15
+ h1
16
+ +heading-xs
17
+ color: inherit
18
+
19
+ a:not([role=button])
20
+ color: inherit
21
+ text-decoration: underline
22
+
23
+ @content
@@ -0,0 +1,159 @@
1
+ =button-default($background-color: $secondary-color, $size: 1)
2
+ display: inline-block
3
+ cursor: pointer
4
+ text-decoration: none
5
+ color: map-get($black, light)
6
+ text-align: left
7
+ transition: box-shadow 0.15s
8
+ vertical-align: middle
9
+ user-select: none
10
+
11
+ &[disabled], &:disabled
12
+ color: rgba(0, 0, 0, 0.25)
13
+ pointer-events: none
14
+ // TODO: Cursor disabled?
15
+
16
+ &.menu-item
17
+ position: relative
18
+
19
+ ul
20
+ display: none
21
+
22
+ &:after
23
+ content: '+'
24
+ font-family: 'Kickstart', Kickstart
25
+ font-size: 0.65rem
26
+ display: inline-block
27
+ color: rgba(0, 0, 0, 0.3)
28
+
29
+ &:hover
30
+ box-shadow: 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset, 0px 2px 0px 0px rgba(255, 255, 255, 0.1) inset
31
+ text-decoration: none
32
+
33
+ &:active
34
+ box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.1) inset, 0px -2px 0px 0px rgba(255, 255, 255, 0.1) inset
35
+ text-decoration: none
36
+
37
+ // TODO: Done this way, these properties are not mutex
38
+ // in the case of missing params.
39
+
40
+ +button-color($background-color)
41
+ +root-element($size: $size)
42
+ +button-size($size)
43
+
44
+ @content
45
+
46
+ // Separated from main mixin for access by non-semantic library.
47
+
48
+ =button-color($background-color)
49
+ background-color: $background-color
50
+
51
+ &.open
52
+ background-color: darken($background-color, 5%)
53
+
54
+ @if lightness($background-color) > 75%
55
+ color: map-get($black, lighter)
56
+ @else
57
+ color: white
58
+
59
+ @if $background-color == map-get($colors, yellow)
60
+ color: map-get($black, lighter)
61
+
62
+ @if $background-color == transparent
63
+ color: map-get($black, lighter)
64
+
65
+ =button-size($size)
66
+ padding: ($size * $size * map-get($rootElement, paddingV)) ($size * $size * map-get($rootElement, paddingH))
67
+ line-height: $size * $default-line-height
68
+ margin-bottom: 0
69
+ font-size: ($default-font-size - 2) * $size
70
+ border-color: hsla(0, 0%, 0%, 0.15)
71
+ padding:
72
+ left: $size * $size * map-get($rootElement, paddingH)
73
+ right: $size * $size * map-get($rootElement, paddingH)
74
+
75
+ &.menu-item
76
+ &:after
77
+ font-size: $size * 0.85rem
78
+ margin-left: $size * $size * $space/4
79
+
80
+ &.open
81
+ ul
82
+ display: block
83
+
84
+ ul
85
+ +button-dropdown-menu
86
+
87
+ li
88
+ padding:
89
+ left: 0
90
+ right: 0
91
+ margin:
92
+ bottom: 0
93
+
94
+ + .button-dropdown + ul
95
+ // Button with dropdown
96
+ +button-dropdown-menu
97
+
98
+ &.button-dropdown
99
+ padding:
100
+ left: map-get($rootElement, paddingV) * $size * $size
101
+ right: map-get($rootElement, paddingV) * $size * $size
102
+
103
+ =button-dropdown-menu
104
+ // Most of the styling actually comes from the global dropdown_menu
105
+ // styling, however this will provide some specifics for working
106
+ // with buttons.
107
+ margin-top: 5px
108
+ right: -$space
109
+ border: 1px solid map-get($white, darker)
110
+
111
+ =button-group-default($background-color: map-get($white, darker), $size: 1)
112
+ list-style: none
113
+ padding: 0
114
+ margin:
115
+ bottom: 0
116
+ top: 0
117
+ display: flex
118
+ align-items: center
119
+ position: relative
120
+
121
+ > li
122
+ color: inherit
123
+
124
+ > a, > button, > input
125
+ color: inherit
126
+ +button($background-color, $size)
127
+ text-decoration: inherit
128
+ vertical-align: top
129
+
130
+ &:not(:first-child):not(:last-child):not(:only-child)
131
+ > a, > button, > input
132
+ border-radius: 0
133
+ border-left: 0
134
+
135
+ &:first-child:not(:only-child)
136
+ > a, > button, > input
137
+ border-top-right-radius: 0
138
+ border-bottom-right-radius: 0
139
+
140
+ &:last-child:not(:only-child)
141
+ > a, > button, > input
142
+ border-top-left-radius: 0
143
+ border-bottom-left-radius: 0
144
+ border-left: 0
145
+
146
+ .button-dropdown
147
+
148
+ &:after
149
+ content: '+'
150
+ display: block
151
+ font-family: "Kickstart", Kickstart
152
+ color: rgba(0, 0, 0, 0.3)
153
+ font-size: 90%
154
+
155
+ > li > ul
156
+ +button-dropdown-menu
157
+ display: none
158
+
159
+ @content
@@ -0,0 +1,69 @@
1
+ =dropdown_menu-default
2
+ .menu-item
3
+ ul
4
+ display: none
5
+ position: absolute
6
+ padding: 0
7
+ list-style: none
8
+ z-index: 10
9
+ background: white
10
+ top: 100%
11
+ margin-top: 1px
12
+ left: -1px // Compensate for border
13
+ min-width: 175px
14
+ border:
15
+ left: 1px solid map-get($white, darker)
16
+ right: 1px solid map-get($white, darker)
17
+ bottom: 1px solid map-get($white, darker)
18
+ border-radius: map-get($rootElement, border-radius)
19
+ box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.25)
20
+ background: white
21
+
22
+ &:before
23
+ display: block
24
+ position: absolute
25
+ content: ' '
26
+
27
+ li
28
+ border: 0px
29
+
30
+ a:not([role=button])
31
+ +button-default
32
+ display: block
33
+ margin-bottom: 0
34
+ border-radius: 0
35
+ background: white
36
+ border-color: white
37
+ font-size: $default-font-size
38
+
39
+ &:hover
40
+ border-color: map-get($white, dark)
41
+ background: map-get($white, dark)
42
+ box-shadow: none
43
+
44
+ &:active
45
+ border-color: map-get($white, darker)
46
+ background: map-get($white, darker)
47
+ box-shadow: none
48
+
49
+ &:first-child
50
+ border-top-right-radius: map-get($rootElement, border-radius)
51
+ border-top-left-radius: map-get($rootElement, border-radius)
52
+
53
+ a:not([role=button])
54
+ border-top-right-radius: map-get($rootElement, border-radius)
55
+ border-top-left-radius: map-get($rootElement, border-radius)
56
+
57
+ &:last-child
58
+ border-bottom-right-radius: map-get($rootElement, border-radius)
59
+ border-bottom-left-radius: map-get($rootElement, border-radius)
60
+
61
+ a:not([role=button])
62
+ border-bottom-right-radius: map-get($rootElement, border-radius)
63
+ border-bottom-left-radius: map-get($rootElement, border-radius)
64
+
65
+ &.open
66
+ ul
67
+ display: block
68
+
69
+ @content