staple 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/Gemfile +13 -0
  4. data/LICENSE.md +23 -0
  5. data/README.md +51 -0
  6. data/Rakefile +0 -0
  7. data/config.rb +24 -0
  8. data/lib/snippet_helpers.rb +69 -0
  9. data/lib/staple/import_generator.rb +50 -0
  10. data/lib/staple/list_generator.rb +22 -0
  11. data/lib/staple.rb +2 -0
  12. data/source/CNAME +1 -0
  13. data/source/_accordion.html.erb +24 -0
  14. data/source/_accordion_tabs.html.erb +26 -0
  15. data/source/_accordion_tabs_minimal.html.erb +26 -0
  16. data/source/_badges.html.erb +7 -0
  17. data/source/_breadcrumbs.html.erb +7 -0
  18. data/source/_browser.html.erb +29 -0
  19. data/source/_button_group.html.erb +18 -0
  20. data/source/_cards.html.erb +59 -0
  21. data/source/_centered_navigation.html.erb +38 -0
  22. data/source/_code.html.erb +10 -0
  23. data/source/_comment.html.erb +21 -0
  24. data/source/_device.html.erb +10 -0
  25. data/source/_dropdown.html.erb +12 -0
  26. data/source/_expander.html.erb +6 -0
  27. data/source/_flashes.html.erb +15 -0
  28. data/source/_footer.html.erb +28 -0
  29. data/source/_footer_2.html.erb +33 -0
  30. data/source/_grid_items.html.erb +37 -0
  31. data/source/_grid_items_lines.html.erb +44 -0
  32. data/source/_hero.html.erb +11 -0
  33. data/source/_hover_tile_animation.html.erb +11 -0
  34. data/source/_icon_bullet_points.html.erb +30 -0
  35. data/source/_image_gradient_dynamic.html.erb +7 -0
  36. data/source/_intro_text.html.erb +6 -0
  37. data/source/_label_alerts.html.erb +5 -0
  38. data/source/_modal.html.erb +14 -0
  39. data/source/_navigation.html.erb +44 -0
  40. data/source/_pagination.html.erb +17 -0
  41. data/source/_progress_bar.html.erb +3 -0
  42. data/source/_progress_bar_indication.html.erb +5 -0
  43. data/source/_search_bar.html.erb +8 -0
  44. data/source/_search_tools.html.erb +58 -0
  45. data/source/_side_image.html.erb +10 -0
  46. data/source/_sliding_menu.html.erb +13 -0
  47. data/source/_snippet.html.erb +4 -0
  48. data/source/_switch.html.erb +4 -0
  49. data/source/_tables.html.erb +31 -0
  50. data/source/_tables_minimal.html.erb +31 -0
  51. data/source/_texture-legend.html.erb +24 -0
  52. data/source/_textures.html.erb +4 -0
  53. data/source/_tooltip.html.erb +6 -0
  54. data/source/_type_system_geometric.html.erb +18 -0
  55. data/source/_type_system_rounded.html.erb +18 -0
  56. data/source/_type_system_sans.html.erb +18 -0
  57. data/source/_type_system_serif.html.erb +19 -0
  58. data/source/_type_system_slab.html.erb +18 -0
  59. data/source/_type_system_traditional.html.erb +18 -0
  60. data/source/_vertical_tabs.html.erb +30 -0
  61. data/source/_video.html.erb +5 -0
  62. data/source/components.html.erb +174 -0
  63. data/source/index.html.erb +162 -0
  64. data/source/javascripts/all.js +11 -0
  65. data/source/javascripts/jquery.erToc.js +477 -0
  66. data/source/javascripts/jquery.glide.js +941 -0
  67. data/source/javascripts/staple/accordion.js +5 -0
  68. data/source/javascripts/staple/accordion_tabs.js +19 -0
  69. data/source/javascripts/staple/accordion_tabs_minimal.js +19 -0
  70. data/source/javascripts/staple/centered_navigation.js +14 -0
  71. data/source/javascripts/staple/dropdown.js +9 -0
  72. data/source/javascripts/staple/expander.js +53 -0
  73. data/source/javascripts/staple/navigation.js +23 -0
  74. data/source/javascripts/staple/search_tools.js +110 -0
  75. data/source/javascripts/staple/sliding_menu.js +13 -0
  76. data/source/javascripts/staple/vertical_tabs.js +32 -0
  77. data/source/layouts/layout.erb +1 -0
  78. data/source/refills-hero.html.erb +7 -0
  79. data/source/refills-menu.html.erb +5 -0
  80. data/source/refills-page-scripts.html.erb +66 -0
  81. data/source/stylesheets/_bourbon-nav.scss +86 -0
  82. data/source/stylesheets/_normalize.scss +425 -0
  83. data/source/stylesheets/_refills-nav.scss +102 -0
  84. data/source/stylesheets/_refills-styles.scss +543 -0
  85. data/source/stylesheets/all.scss +61 -0
  86. data/source/stylesheets/staple/_accordion-tabs-minimal.scss +60 -0
  87. data/source/stylesheets/staple/_accordion-tabs.scss +88 -0
  88. data/source/stylesheets/staple/_accordion.scss +55 -0
  89. data/source/stylesheets/staple/_badges.scss +44 -0
  90. data/source/stylesheets/staple/_breadcrumbs.scss +84 -0
  91. data/source/stylesheets/staple/_browser.scss +141 -0
  92. data/source/stylesheets/staple/_button-group.scss +81 -0
  93. data/source/stylesheets/staple/_cards.scss +132 -0
  94. data/source/stylesheets/staple/_centered-navigation.scss +251 -0
  95. data/source/stylesheets/staple/_comment.scss +60 -0
  96. data/source/stylesheets/staple/_device.scss +83 -0
  97. data/source/stylesheets/staple/_dropdown.scss +127 -0
  98. data/source/stylesheets/staple/_expander.scss +30 -0
  99. data/source/stylesheets/staple/_flashes.scss +29 -0
  100. data/source/stylesheets/staple/_footer-2.scss +117 -0
  101. data/source/stylesheets/staple/_footer.scss +76 -0
  102. data/source/stylesheets/staple/_grid-items-lines.scss +86 -0
  103. data/source/stylesheets/staple/_grid-items.scss +97 -0
  104. data/source/stylesheets/staple/_hero.scss +54 -0
  105. data/source/stylesheets/staple/_hover-tile-animation.scss +52 -0
  106. data/source/stylesheets/staple/_icon-bullet-points.scss +63 -0
  107. data/source/stylesheets/staple/_image-gradient-dynamic.scss +59 -0
  108. data/source/stylesheets/staple/_intro-text.scss +67 -0
  109. data/source/stylesheets/staple/_label-alerts.scss +11 -0
  110. data/source/stylesheets/staple/_modal.scss +147 -0
  111. data/source/stylesheets/staple/_navigation.scss +329 -0
  112. data/source/stylesheets/staple/_pagination.scss +51 -0
  113. data/source/stylesheets/staple/_progress-bar-indication.scss +39 -0
  114. data/source/stylesheets/staple/_progress-bar.scss +83 -0
  115. data/source/stylesheets/staple/_search-bar.scss +40 -0
  116. data/source/stylesheets/staple/_search-tools.scss +67 -0
  117. data/source/stylesheets/staple/_side-image.scss +59 -0
  118. data/source/stylesheets/staple/_sliding-menu.scss +63 -0
  119. data/source/stylesheets/staple/_switch.scss +77 -0
  120. data/source/stylesheets/staple/_tables-minimal.scss +60 -0
  121. data/source/stylesheets/staple/_tables.scss +88 -0
  122. data/source/stylesheets/staple/_texture-legend.scss +182 -0
  123. data/source/stylesheets/staple/_textures.scss +119 -0
  124. data/source/stylesheets/staple/_tooltip.scss +57 -0
  125. data/source/stylesheets/staple/_type-system-geometric.scss +103 -0
  126. data/source/stylesheets/staple/_type-system-rounded.scss +107 -0
  127. data/source/stylesheets/staple/_type-system-sans.scss +110 -0
  128. data/source/stylesheets/staple/_type-system-serif.scss +111 -0
  129. data/source/stylesheets/staple/_type-system-slab.scss +107 -0
  130. data/source/stylesheets/staple/_type-system-traditional.scss +114 -0
  131. data/source/stylesheets/staple/_vertical-tabs.scss +105 -0
  132. data/source/stylesheets/staple/_video.scss +21 -0
  133. data/source/type-systems.html.erb +67 -0
  134. data/source/vendor/javascripts/ZeroClipboard.min.js +9 -0
  135. data/source/vendor/javascripts/fixedsticky.js +185 -0
  136. data/source/vendor/javascripts/prism.js +13 -0
  137. data/source/vendor/javascripts/smooth-scroll.js +125 -0
  138. data/source/vendor/stylesheets/fixedsticky.css +22 -0
  139. data/source/vendor/stylesheets/prism.css +126 -0
  140. data/staple.gemspec +19 -0
  141. metadata +184 -0
@@ -0,0 +1,251 @@
1
+ .centered-navigation {
2
+ $centered-navigation-padding: 1em;
3
+ $centered-navigation-logo-height: 2em;
4
+ $centered-navigation-background: #E7F1EC;
5
+ $centered-navigation-color: transparentize($base-font-color, 0.3);
6
+ $centered-navigation-color-hover: $base-font-color;
7
+ $centered-navigation-height: 60px;
8
+ $centered-navigation-item-padding: 1em;
9
+ $centered-navigation-submenu-padding: 1em;
10
+ $centered-navigation-submenu-width: 12em;
11
+ $centered-navigation-item-nudge: 2.2em;
12
+ $horizontal-bar-mode: $large-screen;
13
+
14
+ background-color: $centered-navigation-background;
15
+ border-bottom: 1px solid darken($centered-navigation-background, 6);
16
+ font-family: $serif;
17
+ height: $centered-navigation-height;
18
+ width: 100%;
19
+ z-index: 9999;
20
+
21
+ // Mobile view
22
+
23
+ .mobile-logo {
24
+ display: inline;
25
+ float: left;
26
+ max-height: $centered-navigation-height;
27
+ padding-left: $centered-navigation-padding;
28
+
29
+ img {
30
+ max-height: $centered-navigation-height;
31
+ opacity: .6;
32
+ padding: .8em 0;
33
+ }
34
+
35
+ @include media($horizontal-bar-mode) {
36
+ display: none;
37
+ }
38
+ }
39
+
40
+ .centered-navigation-menu-button {
41
+ color: $centered-navigation-color;
42
+ display: block;
43
+ float: right;
44
+ font-weight: 700;
45
+ line-height: $centered-navigation-height;
46
+ margin: 0;
47
+ padding-right: $centered-navigation-submenu-padding;
48
+ text-transform: uppercase;
49
+
50
+ @include media ($horizontal-bar-mode) {
51
+ display: none;
52
+ }
53
+
54
+ &:hover {
55
+ color: $centered-navigation-color-hover;
56
+ }
57
+ }
58
+
59
+ // Nav menu
60
+
61
+ .centered-navigation-wrapper {
62
+ @include outer-container;
63
+ @include clearfix;
64
+ position: relative;
65
+ z-index: 999;
66
+ }
67
+
68
+ ul.centered-navigation-menu {
69
+ -webkit-transform-style: preserve-3d; // stop webkit flicker
70
+ clear: both;
71
+ display: none;
72
+ margin: 0 auto;
73
+ overflow: visible;
74
+ padding: 0;
75
+ width: 100%;
76
+ z-index: 99999;
77
+
78
+ @include media ($horizontal-bar-mode) {
79
+ display: block;
80
+ text-align: center;
81
+ }
82
+ }
83
+
84
+ // The nav items
85
+
86
+ .nav-link:first-child {
87
+ @include media($horizontal-bar-mode) {
88
+ margin-left: $centered-navigation-item-nudge;
89
+ }
90
+ }
91
+
92
+ ul li.nav-link {
93
+ background: $centered-navigation-background;
94
+ display: block;
95
+ line-height: $centered-navigation-height;
96
+ overflow: hidden;
97
+ padding-right: $centered-navigation-submenu-padding;
98
+ text-align: right;
99
+ width: 100%;
100
+ z-index: 9999;
101
+
102
+ @include media($horizontal-bar-mode) {
103
+ background: transparent;
104
+ display: inline;
105
+ line-height: $centered-navigation-height;
106
+
107
+ a {
108
+ padding-right: $centered-navigation-item-padding;
109
+ }
110
+ }
111
+
112
+ a {
113
+ color: $centered-navigation-color;
114
+ display: inline-block;
115
+
116
+
117
+ &:hover {
118
+ color: $centered-navigation-color-hover;
119
+ }
120
+ }
121
+ }
122
+
123
+ li.logo.nav-link {
124
+ display: none;
125
+ line-height: 0;
126
+
127
+ @include media($large-screen) {
128
+ display: inline;
129
+ }
130
+ }
131
+
132
+ .logo img {
133
+ margin-bottom: -$centered-navigation-logo-height / 3;
134
+ max-height: $centered-navigation-logo-height;
135
+ opacity: .6;
136
+ }
137
+
138
+ // Sub menus
139
+
140
+ li.more.nav-link {
141
+ padding-right: 0;
142
+
143
+ @include media($large-screen) {
144
+ padding-right: $centered-navigation-submenu-padding;
145
+ }
146
+
147
+ > ul > li:first-child a {
148
+ padding-top: 1em;
149
+ }
150
+
151
+ a {
152
+ margin-right: $centered-navigation-submenu-padding;
153
+ }
154
+
155
+ > a {
156
+ padding-right: 0.6em;
157
+ }
158
+
159
+ > a:after {
160
+ @include position(absolute, auto -.4em auto auto);
161
+ color: $centered-navigation-color;
162
+ content: '\25BE';
163
+ }
164
+ }
165
+
166
+ li.more {
167
+ overflow: visible;
168
+ padding-right: 0;
169
+
170
+ a {
171
+ padding-right: $centered-navigation-submenu-padding;
172
+ }
173
+
174
+ > a {
175
+ padding-right: 1.6em;
176
+ position: relative;
177
+
178
+ @include media($large-screen) {
179
+ margin-right: $centered-navigation-submenu-padding;
180
+ }
181
+
182
+ &:after {
183
+ content: '›';
184
+ font-size: 1.2em;
185
+ position: absolute;
186
+ right: $centered-navigation-submenu-padding / 2;
187
+ }
188
+ }
189
+
190
+ &:hover > .submenu {
191
+ display: block;
192
+ }
193
+
194
+ @include media($horizontal-bar-mode) {
195
+ padding-right: $centered-navigation-submenu-padding;
196
+ position: relative;
197
+ }
198
+ }
199
+
200
+ ul.submenu {
201
+ display: none;
202
+ padding-left: 0;
203
+
204
+ @include media($horizontal-bar-mode) {
205
+ left: -$centered-navigation-submenu-padding;
206
+ position: absolute;
207
+ top: 1.5em;
208
+ }
209
+
210
+ .submenu {
211
+ @include media($horizontal-bar-mode) {
212
+ left: $centered-navigation-submenu-width - .2em;
213
+ top: 0;
214
+ }
215
+ }
216
+
217
+ li {
218
+ display: block;
219
+ padding-right: 0;
220
+
221
+ @include media($horizontal-bar-mode) {
222
+ line-height: $centered-navigation-height / 1.3;
223
+
224
+ &:first-child > a {
225
+ border-top-left-radius: $base-border-radius;
226
+ border-top-right-radius: $base-border-radius;
227
+ }
228
+
229
+ &:last-child > a {
230
+ border-bottom-left-radius: $base-border-radius;
231
+ border-bottom-right-radius: $base-border-radius;
232
+ padding-bottom: .7em;
233
+ }
234
+ }
235
+
236
+ a {
237
+ background-color: darken($centered-navigation-background, 3);
238
+ display: inline-block;
239
+ text-align: right;
240
+ width: 100%;
241
+
242
+ @include media($horizontal-bar-mode) {
243
+ background-color: $centered-navigation-background;
244
+ padding-left: $centered-navigation-submenu-padding;
245
+ text-align: left;
246
+ width: $centered-navigation-submenu-width;
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
@@ -0,0 +1,60 @@
1
+ .comment {
2
+ $comment-gutter: 1.4em;
3
+ $comment-image-padding: .7em;
4
+ $comment-image-width: 4em;
5
+ $comment-color: $base-font-color;
6
+ $comment-background: lighten($base-accent-color, 15);
7
+ $comment-detail-color: transparentize($comment-color, .5);
8
+ $comment-image-vert-alignment: top;
9
+
10
+ display: table;
11
+ width: 100%;
12
+ margin-bottom: $base-spacing;
13
+ padding-bottom: 1em;
14
+ border-bottom: 1px solid transparentize($comment-color, .9);
15
+
16
+ .comment-image,
17
+ .comment-content {
18
+ display: table-cell;
19
+ vertical-align: $comment-image-vert-alignment;
20
+ }
21
+
22
+ .comment-image {
23
+ padding-right: $comment-gutter;
24
+
25
+ > img {
26
+ width: $comment-image-width;
27
+ height: auto;
28
+ border-radius: $base-border-radius;
29
+ padding: $comment-image-padding;
30
+ background: $comment-background;
31
+ display: block;
32
+ max-width: none;
33
+ }
34
+
35
+ .comment-reverse-order & {
36
+ padding-right: 0;
37
+ padding-left: 10px;
38
+ }
39
+ }
40
+
41
+ .comment-content {
42
+ width: 100%;
43
+
44
+ h1 {
45
+ font-size: 1em;
46
+ margin-bottom: .5em;
47
+ }
48
+
49
+ p {
50
+ margin-bottom: .5em;
51
+ }
52
+
53
+ p.comment-detail {
54
+ font-style: italic;
55
+ font-size: .9em;
56
+ color: $comment-detail-color;
57
+ }
58
+ }
59
+ }
60
+
@@ -0,0 +1,83 @@
1
+ $device-padding-vertical: 5em;
2
+ $device-padding-horizontal: .4em;
3
+ $device-screen-width: 14em;
4
+ $device-screen-height: 25em;
5
+ $device-background: darken(gray, 40);
6
+ $device-backside-background: darken($device-background, 10);
7
+ $device-text-color: white;
8
+
9
+ $device-background-top: #162C4C;
10
+ $device-background-bottom: #0A120D;
11
+ $gradient-angle: 10deg;
12
+ $device-image: 'https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/mountains.png';
13
+ $device-screen-image: 'https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/cosmin_capitanu_screen.jpg';
14
+
15
+ .device-background {
16
+ @include background(url($device-image), linear-gradient($gradient-angle, $device-background-bottom, $device-background-top), no-repeat $device-background-top scroll);
17
+ background-repeat: no-repeat;
18
+ background-size: cover;
19
+ width: 100%;
20
+ height: 20em;
21
+ }
22
+
23
+ .device-text {
24
+ color: $device-text-color;
25
+ padding: 2em;
26
+
27
+ @include media($large-screen) {
28
+ max-width: 50%;
29
+ padding: 4em;
30
+ float: left;
31
+ }
32
+
33
+ h4 {
34
+ margin-bottom: .5em;
35
+ padding-bottom: .5em;
36
+ border-bottom: 1px solid transparentize($device-text-color, .7);
37
+ }
38
+
39
+ p {
40
+ font-family: $serif;
41
+ margin-bottom: 1.5em;
42
+ }
43
+ }
44
+
45
+ .device {
46
+ display: none;
47
+ position: relative;
48
+
49
+ @include media($large-screen) {
50
+ @include transform(
51
+ perspective(800px)
52
+ translateX(0px)
53
+ translateY(-100px)
54
+ translateZ(50px)
55
+ rotateX(0deg)
56
+ rotateY(-20deg)
57
+ rotateZ(-0deg));
58
+ display: block;
59
+ float: right;
60
+ margin-bottom: -12em;
61
+ margin-right: 5em;
62
+ padding: $device-padding-vertical 0;
63
+ width: $device-screen-width + (2 * $device-padding-horizontal);
64
+ border-radius: 2em;
65
+ background: $device-background;
66
+ box-shadow:
67
+ 1px 0px lighten($device-backside-background, 20),
68
+ 4px 0px lighten($device-backside-background, 2),
69
+ 7px 0px $device-backside-background,
70
+ 10px 0px $device-backside-background,
71
+ 13px 0px $device-backside-background;
72
+ z-index: 99999;
73
+
74
+ .screen {
75
+ @include size($device-screen-width $device-screen-height);
76
+ background-image: url($device-screen-image);
77
+ background-size: cover;
78
+ box-shadow: inset 0 1px 8px transparentize(black, .5);
79
+ margin: auto;
80
+ border-radius: .2em;
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,127 @@
1
+ $dropdown-color: $base-font-color;
2
+ $dropdown-description-color: lighten($dropdown-color, 40);
3
+ $dropdown-border: 1px solid silver;
4
+ $dropdown-background: $base-background-color;
5
+ $dropdown-background-hover: darken($dropdown-background, 3);
6
+ $dropdown-inner-border: 1px solid silver;
7
+ $dropdown-height: 40px;
8
+ $dropdown-padding: 1em;
9
+ $dropdown-distance-from-menu: 50px;
10
+ $dropdown-arrow-top-distance: 0;
11
+
12
+ .dropdown {
13
+ text-align: center;
14
+ }
15
+
16
+ .dropdown-container {
17
+ display: inline-block;
18
+ position: relative;
19
+ }
20
+
21
+ .dropdown-description {
22
+ background: $dropdown-background;
23
+ border-bottom-left-radius: $base-border-radius;
24
+ border-bottom: $dropdown-border;
25
+ border-left: $dropdown-border;
26
+ border-top-left-radius: $base-border-radius;
27
+ border-top: $dropdown-border;
28
+ color: $dropdown-description-color;
29
+ float: left;
30
+ font-size: .7em;
31
+ line-height: $dropdown-height;
32
+ margin-bottom: 0;
33
+ padding: 0 ($dropdown-padding / 2) 0 $dropdown-padding;
34
+
35
+ @include media($large-screen) {
36
+ font-size: 1em;
37
+ }
38
+ }
39
+
40
+ .dropdown-button {
41
+ background: $dropdown-background;
42
+ border-bottom-right-radius: $base-border-radius;
43
+ border-top-right-radius: $base-border-radius;
44
+ border-top: $dropdown-border;
45
+ border-right: $dropdown-border;
46
+ border-bottom: $dropdown-border;
47
+ cursor: pointer;
48
+ float: right;
49
+ font-size: .7em;
50
+ font-weight: 800;
51
+ line-height: $dropdown-height;
52
+ margin-bottom: 0;
53
+ padding: 0 ($dropdown-padding * 3.5) 0 ($dropdown-padding / 2);
54
+ position: relative;
55
+
56
+ @include media($large-screen) {
57
+ font-size: 1em;
58
+ padding: 0 ($dropdown-padding * 2.5) 0 ($dropdown-padding / 2);
59
+ }
60
+ }
61
+
62
+ .dropdown-button:hover{
63
+ background-color: $dropdown-background-hover;
64
+ }
65
+
66
+ .dropdown-button:after {
67
+ color: $base-font-color;
68
+ content: "\25BE";
69
+ display: block;
70
+ position: absolute;
71
+ right: $dropdown-padding;
72
+ top: $dropdown-arrow-top-distance;
73
+ }
74
+
75
+ .menu {
76
+ @include transition (all 0.2s ease-in-out);
77
+ background: $dropdown-background;
78
+ border-radius: $base-border-radius;
79
+ border: $dropdown-border;
80
+ box-shadow: 0 2px 2px transparentize(black, .8);
81
+ color: $dropdown-color;
82
+ cursor: pointer;
83
+ display: none;
84
+ overflow: show;
85
+ position: absolute;
86
+ right: 0;
87
+ top: $dropdown-distance-from-menu;
88
+ width: 228px;
89
+ z-index: 99999;
90
+
91
+ &:before {
92
+ @include position(absolute, 0 1em 0 0);
93
+ color: $dropdown-background;
94
+ content: "\25b2";
95
+ font-size: 1.4em;
96
+ pointer-events: none;
97
+ text-shadow: 0 -2px 2px transparentize(black, .7);
98
+ top: -1em;
99
+ }
100
+ }
101
+
102
+ .menu li {
103
+ border-bottom: $dropdown-inner-border;
104
+ color: $dropdown-color;
105
+ padding: $dropdown-padding / 2;
106
+ }
107
+
108
+ .menu li:hover {
109
+ background: $dropdown-background-hover;
110
+ }
111
+
112
+ .menu li:first-child {
113
+ border-top-left-radius: $base-border-radius;
114
+ border-top-right-radius: $base-border-radius;
115
+ }
116
+
117
+ .menu li:last-child {
118
+ border: none;
119
+ border-bottom-left-radius: $base-border-radius;
120
+ border-bottom-right-radius: $base-border-radius;
121
+ }
122
+
123
+ .show-menu {
124
+ display: block;
125
+ }
126
+
127
+ // Inspired by code by www.HUSAMUI.com
@@ -0,0 +1,30 @@
1
+ $expander-arrow-width: 5px;
2
+ $expander-toggle-size: 1em;
3
+ $expander-toggle-arrow-size: $expander-toggle-size * .75;
4
+ $expander-toggle-margin: 1em;
5
+
6
+ .expander {
7
+ margin: auto;
8
+ width: 60%;
9
+ }
10
+
11
+ .expander a.expander-toggle {
12
+ @include user-select(none);
13
+ border-bottom: 1px solid $light-gray;
14
+ cursor: pointer;
15
+ display: block;
16
+ font-size: $expander-toggle-size;
17
+ margin-bottom: $expander-toggle-size;
18
+ padding-bottom: $expander-toggle-size / 4;
19
+
20
+ &:before {
21
+ content: '\25BA';
22
+ font-size: $expander-toggle-arrow-size;
23
+ margin-right: 1em;
24
+ }
25
+ }
26
+
27
+ .expander.expanded .expander-toggle:before {
28
+ content: '\25BC';
29
+ margin-right: .95em;
30
+ }
@@ -0,0 +1,29 @@
1
+ $flash-red: #FBE3E4;
2
+ $flash-yellow: #FFF6BF;
3
+ $flash-green: #E6EFC2;
4
+
5
+ %flash-base {
6
+ display: block;
7
+ font-weight: bold;
8
+ margin-bottom: $base-spacing / 2;
9
+ padding: $base-spacing / 2;
10
+ }
11
+
12
+ $flashes: (alert: $flash-yellow, error: $flash-red, notice: lighten($base-accent-color, 40), success: $flash-green);
13
+
14
+ @each $flash, $color in $flashes {
15
+ .flash-#{$flash} {
16
+ @extend %flash-base;
17
+ background: $color;
18
+ color: darken($color, 60);
19
+
20
+ a {
21
+ color: darken($color, 70);
22
+ border-bottom: 1px solid transparentize(darken($color, 70), .7);
23
+
24
+ &:hover {
25
+ color: darken($color, 90);
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,117 @@
1
+ // Uncomment this for a sticky footer.
2
+ //
3
+ // .wrapper-for-content-outside-of-footer {
4
+ // min-height: 100%;
5
+ // height: auto !important;
6
+ // height: 100%;
7
+ // margin: 0 auto -4em;
8
+ // }
9
+
10
+ // html, body {
11
+ // height: 100%;
12
+ // }
13
+
14
+ // .wrapper-for-content-outside-of-footer:after {
15
+ // content: "";
16
+ // display: block;
17
+ // }
18
+
19
+ // .footer-2, .wrapper-for-content-outside-of-footer:after {
20
+ // height: 17em;
21
+
22
+ // @include media($large-screen) {
23
+ // height: 4em;
24
+ // }
25
+ // }
26
+
27
+ .footer-2 {
28
+ $footer-background: desaturate(darken($base-accent-color, 20), 30);
29
+ $footer-color: white;
30
+ $footer-link-color: transparentize($footer-color, .6);
31
+ $footer-disclaimer-color: transparentize($footer-color, .6);
32
+
33
+ background: $footer-background;
34
+ padding: $base-spacing;
35
+ width: 100%;
36
+
37
+ .footer-logo {
38
+ margin-right: 1em;
39
+ margin-bottom: 1em;
40
+
41
+ @include media($large-screen) {
42
+ float: left;
43
+ margin-bottom: 0;
44
+ }
45
+ }
46
+
47
+ .footer-logo img {
48
+ height: 1.6em;
49
+ }
50
+
51
+ ul {
52
+ margin-bottom: 1em;
53
+ @include media($large-screen) {
54
+ float: left;
55
+ margin-left: 1em;
56
+ margin-bottom: 0;
57
+ }
58
+ }
59
+
60
+ ul li {
61
+ padding-right: 1em;
62
+ font-weight: 800;
63
+
64
+ @include media($large-screen) {
65
+ display: inline;
66
+ text-align: left;
67
+ }
68
+ }
69
+
70
+ ul li a {
71
+ color: $footer-link-color;
72
+
73
+ &:hover {
74
+ color: transparentize($footer-color, 0);
75
+ }
76
+ }
77
+
78
+ .footer-secondary-links {
79
+ @include media($large-screen) {
80
+ float: right;
81
+ }
82
+
83
+ li {
84
+ font-size: .8em;
85
+ font-weight: 400;
86
+ }
87
+
88
+ ul.footer-social {
89
+ margin-top: 1em;
90
+
91
+ @include media($large-screen) {
92
+ float: right;
93
+ margin-top: 0;
94
+ }
95
+
96
+ li {
97
+ float: left;
98
+ font-size: 1em;
99
+ padding-right: .7em;
100
+
101
+ &:last-child {
102
+ padding-right: 0;
103
+ }
104
+ }
105
+
106
+ img {
107
+ opacity: .7;
108
+ height: 1.6em;
109
+ padding: 1px;
110
+
111
+ &:hover {
112
+ opacity: 1;
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }