kickstart_rails 3.0.55 → 3.0.56

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/core/_animations.sass +8 -0
  3. data/app/assets/stylesheets/core/_base.sass +8 -0
  4. data/app/assets/stylesheets/core/_base_components.sass +15 -0
  5. data/app/assets/stylesheets/core/_dependent_components.sass +12 -0
  6. data/app/assets/stylesheets/core/_direct-apply.sass +337 -0
  7. data/app/assets/stylesheets/core/_grid.sass +148 -0
  8. data/app/assets/stylesheets/core/_icons.sass +3 -0
  9. data/app/assets/stylesheets/core/_index.sass +7 -0
  10. data/app/assets/stylesheets/core/_mixins.sass +22 -0
  11. data/app/assets/stylesheets/core/_normalize.sass +339 -0
  12. data/app/assets/stylesheets/core/_root-element.sass +17 -0
  13. data/app/assets/stylesheets/core/_typography.sass +180 -0
  14. data/app/assets/stylesheets/core/components/_alerts.sass +23 -0
  15. data/app/assets/stylesheets/core/components/_buttons.sass +159 -0
  16. data/app/assets/stylesheets/core/components/_dropdown_menu.sass +69 -0
  17. data/app/assets/stylesheets/core/components/_forms.sass +107 -0
  18. data/app/assets/stylesheets/core/components/_growls.sass +2 -0
  19. data/app/assets/stylesheets/core/components/_hr.sass +5 -0
  20. data/app/assets/stylesheets/core/components/_images.sass +43 -0
  21. data/app/assets/stylesheets/core/components/_labels.sass +15 -0
  22. data/app/assets/stylesheets/core/components/_modals.sass +73 -0
  23. data/app/assets/stylesheets/core/components/_navbar.sass +283 -0
  24. data/app/assets/stylesheets/core/components/_notifications.sass +20 -0
  25. data/app/assets/stylesheets/core/components/_pagination.sass +11 -0
  26. data/app/assets/stylesheets/core/components/_progress.sass +12 -0
  27. data/app/assets/stylesheets/core/components/_tables.sass +70 -0
  28. data/app/assets/stylesheets/core/components/_tabs.sass +37 -0
  29. data/app/assets/stylesheets/core/components/_tooltips.sass +26 -0
  30. data/app/assets/stylesheets/themes/default/theme.sass +6 -4
  31. data/app/assets/stylesheets/vendor/_index.sass +0 -1
  32. data/lib/kickstart_rails/version.rb +1 -1
  33. metadata +29 -7
  34. data/app/assets/stylesheets/vendor/switch/README.md +0 -45
  35. data/app/assets/stylesheets/vendor/switch/example.sass +0 -14
  36. data/app/assets/stylesheets/vendor/switch/gulpfile.js +0 -16
  37. data/app/assets/stylesheets/vendor/switch/index.html +0 -18
  38. data/app/assets/stylesheets/vendor/switch/package.json +0 -24
  39. data/app/assets/stylesheets/vendor/switch/switch.sass +0 -53
@@ -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: map-get($white, darker), $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
+ +root-element($size: $size)
41
+ +button-size($size)
42
+ +button-color($background-color)
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
+ border-color: $background-color
51
+
52
+ &.open
53
+ background-color: darken($background-color, 5%)
54
+
55
+ @if lightness($background-color) > 75%
56
+ color: map-get($black, lighter)
57
+ @else
58
+ color: white
59
+
60
+ @if $background-color == map-get($colors, yellow)
61
+ color: map-get($black, lighter)
62
+
63
+ @if $background-color == transparent
64
+ color: map-get($black, lighter)
65
+
66
+ =button-size($size)
67
+ padding: ($size * $size * map-get($rootElement, paddingV)) ($size * $size * map-get($rootElement, paddingH))
68
+ line-height: $size * $default-line-height
69
+ margin-bottom: 0
70
+ font-size: ($default-font-size - 2) * $size
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
@@ -0,0 +1,107 @@
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: 'none')
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
+ vertical-align: middle
91
+ margin-right: $space/5
92
+
93
+ @content
94
+
95
+ =field-colors($color)
96
+ label, p
97
+ color: $color
98
+
99
+ +text-inputs
100
+ border-color: $color
101
+
102
+ select
103
+ border-color: $color
104
+ background-color: $color
105
+
106
+ textarea
107
+ 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,43 @@
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
+ width: 100%
13
+
14
+ + img, + figure
15
+ margin-left: $space/2
16
+
17
+ h1
18
+ +heading-xs
19
+
20
+ > img, > figure
21
+ + :not(img)
22
+ margin-left: $space/2
23
+ width: 100%
24
+
25
+ @content
26
+
27
+ =thumbnail-default
28
+ +root-element
29
+ border: 1px solid map-get($white, darker)
30
+ display: inline-block
31
+ max-width: 100%
32
+
33
+ img
34
+ max-width: 100%
35
+
36
+ figcaption
37
+ font-size: 0.85rem
38
+
39
+ @content
40
+
41
+ figure
42
+ margin: 0
43
+ padding: 0
@@ -0,0 +1,15 @@
1
+ =label-default($background-color: $primary-color)
2
+ +root-element
3
+ background: $background-color
4
+ font-size: 0.8rem
5
+ color: white
6
+ line-height: normal
7
+ font-weight: bold
8
+
9
+ @if $background-color == map-get($colors, yellow)
10
+ color: $default-font-color
11
+
12
+ &:after
13
+ border-top-color: $background-color
14
+
15
+ @content
@@ -0,0 +1,73 @@
1
+ =modal-default()
2
+ +root-element
3
+ border-width: 0
4
+ padding: $space
5
+ position: fixed
6
+ box-shadow: 0px 0px 99999px 99999px rgba(0, 0, 0, 0.35), 0px 0px 25px rgba(0, 0, 0, 0.5)
7
+ top: 15px
8
+ top: 5vh
9
+ left: 2%
10
+ right: 2%
11
+ margin: 0px auto
12
+ display: none
13
+ background: white
14
+ border-color: map-get($white, dark)
15
+ animation-duration: 0.2s
16
+ animation-timing-function: ease
17
+ animation-fill-mode: both
18
+ z-index: 1500
19
+
20
+ &[style="display: block;"]
21
+ animation-name: fadeInDown
22
+
23
+ @media screen and (min-width: $tablet)
24
+ top: 75px
25
+ top: 10vh
26
+ width: 650px
27
+ left: 50%
28
+ margin-left: -325px
29
+
30
+ > header, > footer
31
+ +alert
32
+
33
+ > h1, > h2, > h3, > h4, > h5, > h6
34
+ margin-bottom: 0
35
+
36
+ background: map-get($white, dark)
37
+ color: $default-font-color
38
+ margin: -$space
39
+ bottom: $space
40
+
41
+ > header
42
+ border-bottom-left-radius: 0
43
+ border-bottom-right-radius: 0
44
+ position: relative
45
+
46
+ a[data-modal-close]
47
+ position: absolute
48
+ top: $space/2
49
+ right: $space/2
50
+ line-height: 1.3rem
51
+ text-decoration: none
52
+ font-size: 1.3rem
53
+
54
+ > footer
55
+ margin:
56
+ top: $space
57
+ bottom: -$space
58
+ border-top-left-radius: 0
59
+ border-top-right-radius: 0
60
+
61
+ ul
62
+ +list($style: 'unstyled horizontal')
63
+ text-align: right
64
+
65
+ li
66
+ margin:
67
+ bottom: 0
68
+ right: 0
69
+
70
+ [role="button"]
71
+ text-decoration: none
72
+
73
+ @content