kickstart_rails 3.0.17 → 3.0.18

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails/docs.js +11 -22
  3. data/app/assets/javascripts/kickstart_rails/kickstart.js +12 -12
  4. data/app/assets/javascripts/kickstart_rails/kickstart.min.js +1 -1
  5. data/app/assets/javascripts/kickstart_rails/navbar-fixer.js +19 -0
  6. data/app/assets/javascripts/kickstart_rails/test.js +58 -58
  7. data/app/assets/stylesheets/kickstart_rails/components/_alerts.sass +1 -0
  8. data/app/assets/stylesheets/kickstart_rails/components/_images.sass +4 -0
  9. data/app/assets/stylesheets/kickstart_rails/components/_navbar.sass +1 -0
  10. data/app/assets/stylesheets/kickstart_rails/components/_tables.sass +4 -1
  11. data/app/assets/stylesheets/kickstart_rails/core/_animations.sass +2 -2
  12. data/app/assets/stylesheets/kickstart_rails/core/_typography.sass +1 -1
  13. data/app/assets/stylesheets/kickstart_rails/docs.sass +40 -3
  14. data/app/assets/stylesheets/kickstart_rails/fullpage.sass +7 -0
  15. data/app/assets/stylesheets/kickstart_rails/pages/docs/form.sass +0 -0
  16. data/app/assets/stylesheets/kickstart_rails/pages/docs/grid.sass +73 -0
  17. data/app/assets/stylesheets/kickstart_rails/pages/docs/index.sass +163 -30
  18. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/alerts.sass +5 -0
  19. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/buttons.sass +52 -0
  20. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/forms.sass +31 -0
  21. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/image.sass +4 -0
  22. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/images.sass +7 -0
  23. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/labels.sass +10 -0
  24. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/modals.sass +18 -0
  25. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/navigation.sass +14 -0
  26. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/notifications.sass +17 -0
  27. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tables.sass +13 -0
  28. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tabs.sass +7 -0
  29. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tooltips.sass +7 -0
  30. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/typography.sass +56 -0
  31. data/app/assets/stylesheets/kickstart_rails/pages/index.sass +58 -11
  32. data/app/assets/stylesheets/kickstart_rails/themes/_canary.sass +11 -3
  33. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +4 -3
  34. data/lib/kickstart_rails/version.rb +1 -1
  35. metadata +32 -15
@@ -14,6 +14,7 @@
14
14
 
15
15
  h1
16
16
  +heading-xs
17
+ color: inherit
17
18
 
18
19
  a:not([role=button])
19
20
  color: inherit
@@ -25,6 +25,10 @@
25
25
  +root-element
26
26
  border: 1px solid map-get($white, darker)
27
27
  display: inline-block
28
+ max-width: 100%
29
+
30
+ img
31
+ max-width: 100%
28
32
 
29
33
  figcaption
30
34
  font-size: 0.85rem
@@ -73,6 +73,7 @@
73
73
  display: block
74
74
 
75
75
  h1
76
+ +heading-xxs
76
77
  margin-bottom: 0
77
78
  font-size: $base-font-size
78
79
  line-height: $default-line-height
@@ -55,7 +55,10 @@
55
55
  =table-hover
56
56
  tbody, thead
57
57
  tr:hover
58
- background-color: map-get($white, darker)
58
+ background-color: $primary-color
59
+
60
+ td, th
61
+ color: white
59
62
 
60
63
  =table-zebra
61
64
  tbody, thead
@@ -1,8 +1,8 @@
1
1
  @keyframes fadeInDown
2
2
  0%
3
3
  opacity: 0
4
- // transform: translateY(-20px)
4
+ transform: translateY(-20px)
5
5
 
6
6
  100%
7
7
  opacity: 1
8
- // transform: translateY(0)
8
+ transform: translateY(0)
@@ -33,7 +33,7 @@ a
33
33
  color: darken(map-get($colors, blue), 25%)
34
34
  border-radius: $space/5
35
35
  padding: ($space/5)
36
- font-family: monospace
36
+ font-family: $mono-font-family
37
37
  word-break: break-all
38
38
  word-wrap: break-word
39
39
  border: 0px !important
@@ -4,11 +4,14 @@
4
4
  // Page-level styling goes elsewhere.
5
5
 
6
6
  // Choose your theme
7
- @import themes/_canary
7
+ @import themes/_default
8
8
 
9
9
  // Basic layout
10
10
  // ------------
11
11
 
12
+ body
13
+ background-color: map-get($white, darkest)
14
+
12
15
  .wrapper
13
16
  +container
14
17
 
@@ -18,12 +21,26 @@
18
21
 
19
22
  #screen
20
23
  +screen
24
+ max-width: $xl-monitor
25
+ box-shadow: 0px 0px $space map-get($gray, darker)
26
+ margin: 0px auto
27
+ background: white
21
28
 
22
29
  // Navigation
23
30
  // ----------
24
31
 
25
32
  .main-navigation
26
- +navbar($collapse: true, $layout: 'fluid', $background-color: map-get($brown, darkest))
33
+ +navbar($collapse: true, $layout: 'fluid', $background-color: transparent)
34
+
35
+ nav.expand
36
+ background: white
37
+ color: map-get($black, light)
38
+
39
+ > ul > li > a:not([role=button])
40
+ color: map-get($black, light)
41
+
42
+ svg
43
+ fill: map-get($black, light)
27
44
 
28
45
  svg
29
46
  height: 30px
@@ -33,7 +50,7 @@
33
50
  // ------
34
51
 
35
52
  footer.main
36
- background: map-get($brown, light)
53
+ background: map-get($gray, light)
37
54
  padding: $space 0
38
55
  color: white
39
56
 
@@ -41,6 +58,26 @@ footer.main
41
58
  color: white
42
59
  text-decoration: underline
43
60
 
61
+ // Growl
62
+ .growl
63
+ +alert
64
+
65
+ &.warning
66
+ background-color: map-get($colors, yellow)
67
+ color: black
68
+
69
+ // Iframes
70
+ // -------
71
+
72
+ iframe.animation
73
+ max-width: 500px
74
+ height: 200px
75
+ display: block
76
+ margin-left: auto
77
+ margin-right: auto
78
+ margin-bottom: 25px
79
+ overflow: hidden
80
+
44
81
  // Components
45
82
  // ----------
46
83
 
@@ -0,0 +1,7 @@
1
+ @import themes/_default
2
+
3
+ .main-navigation
4
+ +navbar($background-color: white)
5
+
6
+ svg
7
+ fill: map-get($black, lighter)
@@ -0,0 +1,73 @@
1
+ @import ../../themes/_default
2
+
3
+ .row
4
+ +row
5
+
6
+ .col-2
7
+ +column(2)
8
+
9
+ .col-3
10
+ +column(3)
11
+
12
+ .col-6
13
+ +column(6)
14
+
15
+ .col-4
16
+ +column(4)
17
+
18
+ .col-9
19
+ +column(9)
20
+
21
+ .col-12
22
+ +column(12)
23
+
24
+ .col-left-6
25
+ +left(6)
26
+
27
+ .col-left-1
28
+ +left(1)
29
+
30
+ .col-left-3
31
+ +left(3)
32
+
33
+ .col-left-4
34
+ +left(4)
35
+
36
+ .col-left-2
37
+ +left(2)
38
+
39
+ .col-right-3
40
+ +right(3)
41
+
42
+ .col-right-4
43
+ +right(4)
44
+
45
+ .col-right-6
46
+ +right(6)
47
+
48
+ .col-right-twothirds
49
+ +right('twothirds')
50
+
51
+ .col-left-twothirds
52
+ +left('twothirds')
53
+
54
+ .col-third
55
+ +column('third')
56
+
57
+ .col-twothirds
58
+ +column('twothirds')
59
+
60
+ .col-example
61
+ +root-element
62
+ background: map-get($white, darker)
63
+ color: map-get($black, lighter)
64
+ text-align: center
65
+
66
+ &.gray
67
+ background: white
68
+ margin:
69
+ bottom: 0
70
+ top: $space/2
71
+
72
+ table
73
+ +table
@@ -2,73 +2,206 @@
2
2
  // ==================
3
3
  // Generic styles that should be shared across the documentation
4
4
 
5
- @import themes/_canary
5
+ @import themes/_default
6
+
7
+ h1
8
+ +heading-rg
9
+
10
+ h2
11
+ +heading-xs
12
+
13
+ h3, h4, h5, h6
14
+ +heading-xxs
6
15
 
7
16
  .docs-nav
8
17
  +navbar($collapse: true, $layout: 'fluid')
9
18
  margin-top: -$space
10
19
 
11
20
  .fixed-area
12
- @media screen and (max-width: $tablet)
21
+ margin-top: -$space
22
+
23
+ @media screen and (max-width: $phablet)
13
24
  +container
14
25
 
15
- .fixed-toc, .fixed-main
16
- @media screen and (min-width: $tablet)
17
- position: absolute
18
- top: 88px
19
- bottom: 0
20
- overflow: auto
26
+ .fixed-main, .fixed-toc
27
+ @media screen and (min-width: $phablet)
28
+ float: left
29
+
30
+ .fixed-main
31
+ @media screen and (min-width: $phablet)
32
+ width: 50%
33
+
34
+ @media screen and (min-width: $tablet)
35
+ width: 75%
36
+
37
+ @media screen and (min-width: $large-monitor)
38
+ width: 80%
39
+
40
+ .fixed-toc
41
+ width: 100%
42
+ font-size: 0.85rem
43
+
44
+ a
45
+ color: map-get($colors, blue)
46
+
47
+ ul
48
+ +list($style: 'unstyled')
49
+ margin-bottom: 0
21
50
 
22
- .fixed-toc
23
- ul
24
- +list($style: 'unstyled')
51
+ > li
52
+ margin-bottom: 0
25
53
 
26
- @media screen and (min-width: $tablet)
27
- left: 0
28
- right: 50%
29
- padding: $space
54
+ > ul
55
+ // border-left: 1px solid map-get($colors, blue)
56
+ padding-left: $space/3
57
+ margin-bottom: $space/3
30
58
 
31
59
  h1
32
- +heading-xxs
60
+ +heading-xs
33
61
 
34
- @media screen and (min-width: $desktop)
35
- right: 75%
62
+ @media screen and(min-width: $phablet)
63
+ padding: $space
64
+ width: 50%
36
65
 
37
- .fixed-main
38
- @media screen and (min-width: $tablet)
39
- left: 50%
40
- right: 0
66
+ @media screen and (min-width: $tablet)
67
+ width: 25%
41
68
 
42
- @media screen and (min-width: $desktop)
43
- left: 25%
69
+ @media screen and (min-width: $large-monitor)
70
+ width: 20%
71
+
72
+ // When in fixed position
73
+ &.fixed
74
+ .fixed-toc
75
+ @media screen and (min-width: $phablet)
76
+ position: fixed
77
+ top: 0px
78
+ bottom: 0
79
+ left: 0
80
+ right: 50%
81
+ overflow: auto
82
+
83
+ @media screen and (min-width: $tablet)
84
+ right: 75%
85
+
86
+ @media screen and (min-width: $large-monitor)
87
+ right: 80%
88
+
89
+ @media screen and (min-width: $xl-monitor)
90
+ left: calc(50vw - #{$xl-monitor/2})
91
+
92
+ .fixed-main
93
+ @media screen and (min-width: $phablet)
94
+ margin-left: 50%
95
+
96
+ @media screen and (min-width: $tablet)
97
+ margin-left: 25%
98
+
99
+ @media screen and (min-width: $large-monitor)
100
+ margin-left: 20%
44
101
 
45
102
  .document
103
+ margin-bottom: $space * 4
46
104
 
47
105
  .code
48
106
  background: #1d1f21
49
- padding: $space
107
+ padding: $space/4
50
108
 
51
- > p:first-child
109
+ p:first-child
52
110
  display: none
53
111
 
112
+ @media screen and (min-width: $phablet)
113
+ .article, .code
114
+ padding: $space
115
+
54
116
  @media screen and (min-width: $desktop)
55
117
  display: flex
56
118
  justify-content: flex-start
57
119
  align-items: stretch
120
+ margin:
121
+ bottom: 0
122
+ top: 0
58
123
 
59
124
  .article, .code
60
125
  width: 50%
61
- padding: $space
62
- left: 0
63
- border-bottom: 1px solid map-get($brown, lightest)
126
+ border-bottom: 1px solid map-get($white, darker)
64
127
 
65
128
  .code
66
- padding: $space
67
129
  border-color: darken(map-get($colors, blue), 35%)
68
130
 
131
+ .article.article-full
132
+ width: 100%
133
+ position: relative
134
+
135
+ padding-right: calc(50% + #{$space})
136
+
137
+ &:after
138
+ content: ' '
139
+ display: block
140
+ position: absolute
141
+ top: 0
142
+ right: 0
143
+ left: 50%
144
+ bottom: -1px
145
+ // background: lighten(#1d1f21, 10%)
146
+ background: black
147
+ border-bottom: 1px solid map-get($black, light)
148
+
149
+ .page_heading
150
+ +page_heading
151
+
152
+ h1
153
+ +heading-md
154
+
155
+ @media screen and (min-width: $phablet)
156
+ padding-left: $space
157
+ margin-bottom: 0
158
+
159
+ @media screen and (min-width: $phablet)
160
+ margin-top: $space
161
+
162
+ @media screen and (min-width: $desktop)
163
+ margin-bottom: 0
164
+
69
165
  // Highlight JS
70
166
 
71
167
  code, pre, kbd, samp
72
168
  &.hljs
73
169
  font-size: 0.9rem
170
+ font-family: $mono-font-family
171
+
172
+ // Main page overrides
173
+ .main-navigation
174
+ svg
175
+ fill: map-get($black, lighter)
176
+
177
+ +navbar($collapse: true, $background-color: white)
178
+
179
+ // Optional doc blocks toggling
180
+ .if-semantic, .if-jquery
181
+ display: none
182
+
183
+ span.ifnot-semantic, span.ifnot-jquery
184
+ display: inline
185
+
186
+ body.show-semantic
187
+ .ifnot-semantic
188
+ display: none
189
+
190
+ .if-semantic
191
+ display: block
192
+
193
+ span.if-semantic
194
+ display: inline
195
+
196
+ body.show-jquery
197
+ .ifnot-jquery
198
+ display: none
199
+
200
+ .if-jquery
201
+ display: block
202
+
203
+ span.if-jquery
204
+ display: inline
74
205
 
206
+ .example
207
+ margin-bottom: $space