kickstart_rails 3.0.20 → 3.0.21

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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/kickstart_rails/core/_base_components.sass +10 -10
  3. data/app/assets/stylesheets/kickstart_rails/core/_dependent_components.sass +7 -7
  4. data/app/assets/stylesheets/kickstart_rails/core/components/_alerts.sass +23 -0
  5. data/app/assets/stylesheets/kickstart_rails/core/components/_buttons.sass +159 -0
  6. data/app/assets/stylesheets/kickstart_rails/core/components/_dropdown_menu.sass +69 -0
  7. data/app/assets/stylesheets/kickstart_rails/core/components/_forms.sass +106 -0
  8. data/app/assets/stylesheets/kickstart_rails/core/components/_growls.sass +2 -0
  9. data/app/assets/stylesheets/kickstart_rails/core/components/_hr.sass +5 -0
  10. data/app/assets/stylesheets/kickstart_rails/core/components/_images.sass +40 -0
  11. data/app/assets/stylesheets/kickstart_rails/core/components/_labels.sass +15 -0
  12. data/app/assets/stylesheets/kickstart_rails/core/components/_modals.sass +73 -0
  13. data/app/assets/stylesheets/kickstart_rails/core/components/_navbar.sass +270 -0
  14. data/app/assets/stylesheets/kickstart_rails/core/components/_notifications.sass +20 -0
  15. data/app/assets/stylesheets/kickstart_rails/core/components/_pagination.sass +11 -0
  16. data/app/assets/stylesheets/kickstart_rails/core/components/_progress.sass +12 -0
  17. data/app/assets/stylesheets/kickstart_rails/core/components/_tables.sass +70 -0
  18. data/app/assets/stylesheets/kickstart_rails/core/components/_tabs.sass +37 -0
  19. data/app/assets/stylesheets/kickstart_rails/core/components/_tooltips.sass +26 -0
  20. data/app/assets/stylesheets/kickstart_rails/docs.sass +9 -3
  21. data/app/assets/stylesheets/kickstart_rails/fullpage.sass +1 -1
  22. data/app/assets/stylesheets/kickstart_rails/kickstart-semantic.sass +1 -1
  23. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +1 -1
  24. data/app/assets/stylesheets/kickstart_rails/pages/docs/grid.sass +1 -1
  25. data/app/assets/stylesheets/kickstart_rails/pages/docs/index.sass +4 -1
  26. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/alerts.sass +1 -1
  27. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/buttons.sass +1 -1
  28. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/forms.sass +1 -1
  29. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/image.sass +1 -1
  30. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/images.sass +1 -1
  31. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/labels.sass +1 -1
  32. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/modals.sass +1 -1
  33. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/navigation.sass +1 -1
  34. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/notifications.sass +1 -1
  35. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tables.sass +1 -1
  36. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tabs.sass +1 -1
  37. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tooltips.sass +1 -1
  38. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/typography.sass +1 -1
  39. data/app/assets/stylesheets/kickstart_rails/pages/index.sass +2 -3
  40. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +6 -0
  41. data/app/assets/stylesheets/kickstart_rails/themes/default/theme.sass +264 -0
  42. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/LICENSE +22 -0
  43. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/README.md +14 -0
  44. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/example.sass +14 -0
  45. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/gulpfile.js +16 -0
  46. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/index.html +18 -0
  47. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/package.json +24 -0
  48. data/app/assets/stylesheets/kickstart_rails/vendor/Kickstart-Switch/switch.sass +53 -0
  49. data/app/assets/stylesheets/kickstart_rails/vendor/_index.sass +1 -0
  50. data/app/assets/stylesheets/kickstart_rails/vendor/switch/LICENSE +22 -0
  51. data/app/assets/stylesheets/kickstart_rails/vendor/switch/README.md +34 -0
  52. data/app/assets/stylesheets/kickstart_rails/vendor/switch/example.sass +14 -0
  53. data/app/assets/stylesheets/kickstart_rails/vendor/switch/gulpfile.js +16 -0
  54. data/app/assets/stylesheets/kickstart_rails/vendor/switch/index.html +18 -0
  55. data/app/assets/stylesheets/kickstart_rails/vendor/switch/index.sass +53 -0
  56. data/app/assets/stylesheets/kickstart_rails/vendor/switch/package.json +24 -0
  57. data/app/assets/stylesheets/kickstart_rails/vendor/switch/switch.sass +53 -0
  58. data/lib/kickstart_rails/version.rb +1 -1
  59. metadata +34 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b48cdc4f0317a972d9246e6c82a707fc9def4d2
4
- data.tar.gz: 7188f82f5cb27fb3458368199869e4917e927107
3
+ metadata.gz: e64e790f2da776c6a1bec55b992ec9f7b4fe7133
4
+ data.tar.gz: 42da6c5a09063ab68057ab58d7d541c5a526043e
5
5
  SHA512:
6
- metadata.gz: 12663f1475e7309ecaf8aa3434ddbf3ae3e535f2b2bd43409b6a4d80c62fa20985e0e874cf9ea78cc6b3d4c051533616f771d699bed6f3f876f5aad72d7e1c2c
7
- data.tar.gz: f6589b5c29ce5ee5724bdab9390b8a039cef515326cbabbefe25f023c29e60b01afa293d3c8813fb7241032f808365fc737face2bbfc31b3ac10b2bbbbfdb207
6
+ metadata.gz: b50fae422df5651763820dbcdf2d1c7f59f1587726976c294b11e709f6741426d7fcc8504c98d6ab4d5c1b7a6d3e9e35e38e25eeafe2e3e0039323699595acc2
7
+ data.tar.gz: 7a49dca59927f93de427cba7e2b845107ced0528979087e2cef67c43ca79e2d8493daba7579d10d9a6aa432c6bf8bb04ac2d076ac3a9483b882c84630b5218ee
@@ -3,13 +3,13 @@
3
3
  // These are the base components from which dependent components can extend.
4
4
 
5
5
  // Components
6
- @import ../components/_alerts
7
- @import ../components/_buttons
8
- @import ../components/_hr
9
- @import ../components/_images
10
- @import ../components/_labels
11
- @import ../components/_modals
12
- @import ../components/_progress
13
- @import ../components/_tables
14
- @import ../components/_dropdown_menu
15
- @import ../components/_navbar
6
+ @import components/_alerts
7
+ @import components/_buttons
8
+ @import components/_hr
9
+ @import components/_images
10
+ @import components/_labels
11
+ @import components/_modals
12
+ @import components/_progress
13
+ @import components/_tables
14
+ @import components/_dropdown_menu
15
+ @import components/_navbar
@@ -3,10 +3,10 @@
3
3
  // These components extend the core and base components.
4
4
 
5
5
  // Components
6
- @import ../components/_growls
7
- @import ../components/_modals
8
- @import ../components/_notifications
9
- @import ../components/_tabs
10
- @import ../components/_tooltips
11
- @import ../components/_forms
12
- @import ../components/_pagination
6
+ @import components/_growls
7
+ @import components/_modals
8
+ @import components/_notifications
9
+ @import components/_tabs
10
+ @import components/_tooltips
11
+ @import components/_forms
12
+ @import components/_pagination
@@ -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, $size)
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
@@ -0,0 +1,106 @@
1
+ label, legend
2
+ display: block
3
+ font-weight: 500
4
+ margin-bottom: $space/4
5
+
6
+ =form-default($layout: 'none')
7
+ margin-bottom: $space
8
+
9
+ @if ($layout == 'horizontal')
10
+ +form-horizontal
11
+ @if ($layout == 'left')
12
+ +form-left
13
+
14
+ @content
15
+
16
+ =input-styles
17
+ +root-element
18
+ margin: 0
19
+ bottom: 0
20
+ border: 1px solid #CCC
21
+ display: block
22
+ border-radius: 3px
23
+ max-width: 100%
24
+
25
+ label + &
26
+ margin-top: ($space/5)
27
+
28
+ &:focus
29
+ outline: 0px
30
+ box-shadow: 0px 0px 0px 2px $primary-color
31
+
32
+ @content
33
+
34
+ +text-inputs
35
+ +input-styles
36
+
37
+ textarea
38
+ +input-styles
39
+ width: 300px
40
+
41
+ input[type="checkbox"],
42
+ input[type="radio"]
43
+ display: inline-block
44
+ width: 14px
45
+ margin:
46
+ left: 1px
47
+ right: 5px
48
+
49
+ select
50
+ +button
51
+ height: calc(#{$default-line-height} + #{2 * map-get($rootElement, paddingV)})
52
+ background-image: none
53
+
54
+ =form-horizontal
55
+ display: inline-block
56
+
57
+ label, input
58
+ display: inline-block
59
+
60
+ @content
61
+
62
+ =form-left
63
+ label
64
+ +root-element
65
+ padding:
66
+ right: 0
67
+ left: 0
68
+ display: inline-block
69
+ margin:
70
+ top: 0
71
+ bottom: 0
72
+
73
+ @media screen and (min-width: $tablet)
74
+ label:not(.checkbox):not(.radio)
75
+ text-align: right
76
+
77
+ @content
78
+
79
+ =form_group-default($layout)
80
+ display: block
81
+ margin-bottom: $space
82
+
83
+ @if $layout == 'horizontal'
84
+ display: inherit
85
+ margin:
86
+ right: $space/5
87
+
88
+ > *
89
+ display: inline-block
90
+ margin-right: $space/5
91
+
92
+ @content
93
+
94
+ =field-colors($color)
95
+ label, p
96
+ color: $color
97
+
98
+ +text-inputs
99
+ border-color: $color
100
+
101
+ select
102
+ border-color: $color
103
+ background-color: $color
104
+
105
+ textarea
106
+ border-color: $color
@@ -0,0 +1,2 @@
1
+ =growl-default
2
+ @content
@@ -0,0 +1,5 @@
1
+ =hr-default
2
+ border: 0
3
+ top: 2px solid $default-font-color
4
+
5
+ @content
@@ -0,0 +1,40 @@
1
+ =thumbnail-content-default
2
+ display: flex
3
+ overflow: hidden
4
+ margin-bottom: $space
5
+ align-items: flex-start
6
+
7
+ img, figure
8
+ flex-grow: 0
9
+ flex-shrink: 0
10
+
11
+ > :not(img)
12
+ + img, + figure
13
+ margin-left: $space/2
14
+
15
+ h1
16
+ +heading-xs
17
+
18
+ > img, > figure
19
+ + :not(img)
20
+ margin-left: $space/2
21
+
22
+ @content
23
+
24
+ =thumbnail-default
25
+ +root-element
26
+ border: 1px solid map-get($white, darker)
27
+ display: inline-block
28
+ max-width: 100%
29
+
30
+ img
31
+ max-width: 100%
32
+
33
+ figcaption
34
+ font-size: 0.85rem
35
+
36
+ @content
37
+
38
+ figure
39
+ margin: 0
40
+ padding: 0