plinth 0.0.1.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. data/.codoopts +10 -0
  2. data/.env +1 -0
  3. data/.gitignore +23 -0
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +1 -0
  6. data/Capfile +4 -0
  7. data/Gemfile +52 -0
  8. data/Gemfile.lock +243 -0
  9. data/Guardfile +9 -0
  10. data/LICENSE +22 -0
  11. data/Procfile +1 -0
  12. data/README.md +79 -0
  13. data/Rakefile +35 -0
  14. data/app/assets/images/layouts/basic-marketing-site.png +0 -0
  15. data/app/assets/images/layouts/jumbotron-site.png +0 -0
  16. data/app/assets/images/rails.png +0 -0
  17. data/app/assets/javascripts/application.js +17 -0
  18. data/app/assets/javascripts/base.js.coffee +3 -0
  19. data/app/assets/javascripts/grids.js.coffee +3 -0
  20. data/app/assets/javascripts/javascript.js.coffee +3 -0
  21. data/app/assets/javascripts/lib/modernizr.js +4 -0
  22. data/app/assets/javascripts/modules.js.coffee +3 -0
  23. data/app/assets/stylesheets/application-old-ie.css.scss +10 -0
  24. data/app/assets/stylesheets/application.css.scss +57 -0
  25. data/app/assets/stylesheets/base/_all.scss +6 -0
  26. data/app/assets/stylesheets/base/_reset.css.scss +16 -0
  27. data/app/assets/stylesheets/base/_type.scss +16 -0
  28. data/app/assets/stylesheets/modules/_coderay.css.scss +171 -0
  29. data/app/assets/stylesheets/modules/_layout_examples.css.scss +13 -0
  30. data/app/assets/stylesheets/modules/_webfont_table.css.scss +47 -0
  31. data/app/assets/stylesheets/vanilla-normal-old-ie.css.scss +11 -0
  32. data/app/assets/stylesheets/vanilla-normal.css.scss +33 -0
  33. data/app/controllers/application_controller.rb +5 -0
  34. data/app/controllers/base_controller.rb +52 -0
  35. data/app/controllers/grids_controller.rb +48 -0
  36. data/app/controllers/javascript_controller.rb +20 -0
  37. data/app/controllers/javascripts_controller.rb +4 -0
  38. data/app/controllers/modules_controller.rb +43 -0
  39. data/app/controllers/ui_controller.rb +2 -0
  40. data/app/helpers/plinth_helper.rb +33 -0
  41. data/app/views/base/_webfonts_social_standard.html +429 -0
  42. data/app/views/base/_webfonts_ss_standard.html +2413 -0
  43. data/app/views/base/buttons.html.haml +20 -0
  44. data/app/views/base/forms.html.haml +40 -0
  45. data/app/views/base/images.html.haml +20 -0
  46. data/app/views/base/index.html.haml +68 -0
  47. data/app/views/base/labels.html.haml +22 -0
  48. data/app/views/base/lists.html.haml +20 -0
  49. data/app/views/base/webfonts.html.haml +17 -0
  50. data/app/views/grids/index.html.haml +73 -0
  51. data/app/views/grids/layouts/basic-marketing-site.haml +69 -0
  52. data/app/views/grids/layouts/jumbotron-site.haml +92 -0
  53. data/app/views/grids/layouts.html.haml +9 -0
  54. data/app/views/layouts/_main_nav.html.haml +15 -0
  55. data/app/views/layouts/application.html.haml +15 -0
  56. data/app/views/modules/alerts.html.haml +12 -0
  57. data/app/views/modules/footer.html.haml +2 -0
  58. data/app/views/modules/index.html.haml +5 -0
  59. data/app/views/modules/nav.html.haml +12 -0
  60. data/app/views/modules/panels.html.haml +3 -0
  61. data/app/views/modules/tabs.html.haml +58 -0
  62. data/app/views/old_javascript/close.html.haml +2 -0
  63. data/app/views/old_javascript/forms.html.haml +2 -0
  64. data/app/views/old_javascript/ga_events.html.haml +2 -0
  65. data/app/views/old_javascript/index.html.haml +2 -0
  66. data/app/views/old_javascript/responsive_resize.html.haml +2 -0
  67. data/app/views/old_javascript/switch.html.haml +2 -0
  68. data/app/views/parts/base/_button.haml +3 -0
  69. data/app/views/parts/base/_button_colours.haml +4 -0
  70. data/app/views/parts/base/_button_group.haml +4 -0
  71. data/app/views/parts/base/_button_sizing.haml +3 -0
  72. data/app/views/parts/base/_button_states.haml +3 -0
  73. data/app/views/parts/base/_form_example.haml +26 -0
  74. data/app/views/parts/base/_form_example_horizontal.haml +26 -0
  75. data/app/views/parts/base/_form_group.haml +10 -0
  76. data/app/views/parts/base/_form_location.haml +3 -0
  77. data/app/views/parts/base/_labels.haml +5 -0
  78. data/app/views/parts/base/_labels_sizing.haml +3 -0
  79. data/app/views/parts/base/_list.haml +10 -0
  80. data/app/views/parts/base/_list_action.haml +5 -0
  81. data/app/views/parts/base/_list_nav.haml +12 -0
  82. data/app/views/parts/base/_list_unset.haml +10 -0
  83. data/app/views/parts/base/_type_body.haml +2 -0
  84. data/app/views/parts/base/_type_headings.haml +5 -0
  85. data/app/views/parts/base/_type_helpers.haml +3 -0
  86. data/app/views/parts/base/_type_links.haml +9 -0
  87. data/app/views/parts/base/_type_shouts.haml +4 -0
  88. data/app/views/parts/grids/_example_layout_1.haml +10 -0
  89. data/app/views/parts/grids/_live_grid.haml +29 -0
  90. data/app/views/parts/modules/_alerts.haml +11 -0
  91. data/app/views/parts/modules/_nav_footer.haml +34 -0
  92. data/app/views/parts/modules/_nav_header.haml +18 -0
  93. data/app/views/parts/modules/_panels.haml +9 -0
  94. data/app/views/parts/modules/_tabs_minimal.haml +11 -0
  95. data/app/views/parts/modules/_tabs_simple_group.haml +11 -0
  96. data/app/views/parts/modules/_tabs_simple_group_toggle.haml +11 -0
  97. data/app/views/parts/modules/_tabs_toggle.haml +5 -0
  98. data/app/views/parts/modules/_tabs_traditional.haml +11 -0
  99. data/app/views/shared/_placeholder_text.html.haml +1 -0
  100. data/app/views/shared/_title.html.haml +8 -0
  101. data/app/views/shared/_ui_nav.html.haml +5 -0
  102. data/app/views/ui/alert.html.haml +35 -0
  103. data/app/views/ui/buttons.html.haml +116 -0
  104. data/app/views/ui/footer.html.haml +69 -0
  105. data/app/views/ui/forms/_vertical_form.haml +7 -0
  106. data/app/views/ui/forms.html.haml +59 -0
  107. data/app/views/ui/grids.html.haml +18 -0
  108. data/app/views/ui/index.html.haml +5 -0
  109. data/app/views/ui/labels.html.haml +15 -0
  110. data/app/views/ui/modules/panel.html.haml +3 -0
  111. data/app/views/ui/nav.html.haml +48 -0
  112. data/app/views/ui/tabs.html.haml +171 -0
  113. data/app/views/ui/typography.html.haml +118 -0
  114. data/db/development.sqlite3 +0 -0
  115. data/db/seeds.rb +7 -0
  116. data/doc/README_FOR_APP +2 -0
  117. data/lib/assets/.gitkeep +0 -0
  118. data/lib/plinth/version.rb +3 -0
  119. data/lib/plinth.rb +11 -0
  120. data/lib/tasks/.gitkeep +0 -0
  121. data/lib/templates/haml/scaffold/_form.html.haml +8 -0
  122. data/log/.gitkeep +0 -0
  123. data/plinth.gemspec +33 -0
  124. data/public/404.html +26 -0
  125. data/public/422.html +26 -0
  126. data/public/500.html +25 -0
  127. data/public/favicon.ico +0 -0
  128. data/public/javascripts/LICENSE.html +158 -0
  129. data/public/javascripts/README.md.html +163 -0
  130. data/public/javascripts/assets/codo.css +1 -0
  131. data/public/javascripts/assets/codo.js +21 -0
  132. data/public/javascripts/assets/search_data.js +1 -0
  133. data/public/javascripts/class_index.html +215 -0
  134. data/public/javascripts/class_list.html +58 -0
  135. data/public/javascripts/classes/Close.html +259 -0
  136. data/public/javascripts/classes/GAEvent.html +231 -0
  137. data/public/javascripts/classes/ResizeHandler.html +225 -0
  138. data/public/javascripts/classes/Switch.html +318 -0
  139. data/public/javascripts/classes/TBGForm.html +373 -0
  140. data/public/javascripts/extra_list.html +36 -0
  141. data/public/javascripts/file_list.html +74 -0
  142. data/public/javascripts/files/styleguide/plugins/tbg-close.js.coffee.html +160 -0
  143. data/public/javascripts/files/styleguide/plugins/tbg-forms.js.coffee.html +160 -0
  144. data/public/javascripts/files/styleguide/plugins/tbg-ga-events.js.coffee.html +160 -0
  145. data/public/javascripts/files/styleguide/plugins/tbg-respinsiveresize.js.coffee.html +160 -0
  146. data/public/javascripts/files/styleguide/plugins/tbg-switch.js.coffee.html +160 -0
  147. data/public/javascripts/index.html +14 -0
  148. data/public/javascripts/method_list.html +187 -0
  149. data/public/javascripts/mixin_list.html +28 -0
  150. data/public/robots.txt +5 -0
  151. data/script/rails +6 -0
  152. data/spec/javascripts/fixtures/plugins/tbg-close_fixture.html.haml +4 -0
  153. data/spec/javascripts/fixtures/plugins/tbg-forms_fixture.html.haml +12 -0
  154. data/spec/javascripts/fixtures/plugins/tbg-ga-events_fixture.html.haml +9 -0
  155. data/spec/javascripts/fixtures/plugins/tbg-switch_fixture.html.haml +11 -0
  156. data/spec/javascripts/plugins/tbg-close_spec.js.coffee +54 -0
  157. data/spec/javascripts/plugins/tbg-forms_spec.js.coffee +87 -0
  158. data/spec/javascripts/plugins/tbg-ga-events_spec.js.coffee +83 -0
  159. data/spec/javascripts/plugins/tbg-switch_spec.js.coffee +96 -0
  160. data/spec/javascripts/spec.js.coffee +2 -0
  161. data/vendor/assets/fonts/ss-social-circle.eot +0 -0
  162. data/vendor/assets/fonts/ss-social-circle.svg +139 -0
  163. data/vendor/assets/fonts/ss-social-circle.ttf +0 -0
  164. data/vendor/assets/fonts/ss-social-circle.woff +0 -0
  165. data/vendor/assets/fonts/ss-social-regular.eot +0 -0
  166. data/vendor/assets/fonts/ss-social-regular.svg +133 -0
  167. data/vendor/assets/fonts/ss-social-regular.ttf +0 -0
  168. data/vendor/assets/fonts/ss-social-regular.woff +0 -0
  169. data/vendor/assets/fonts/ss-social.js +75 -0
  170. data/vendor/assets/fonts/ss-standard.eot +0 -0
  171. data/vendor/assets/fonts/ss-standard.js +75 -0
  172. data/vendor/assets/fonts/ss-standard.svg +207 -0
  173. data/vendor/assets/fonts/ss-standard.ttf +0 -0
  174. data/vendor/assets/fonts/ss-standard.woff +0 -0
  175. data/vendor/assets/images/background.png +0 -0
  176. data/vendor/assets/images/logos/sb-logo-white.png +0 -0
  177. data/vendor/assets/images/logos/sb-logo-white.svg +5 -0
  178. data/vendor/assets/images/middleman.png +0 -0
  179. data/vendor/assets/index.html.haml +8 -0
  180. data/vendor/assets/javascripts/.gitkeep +0 -0
  181. data/vendor/assets/javascripts/plinth/lib/handlebars.js +3 -0
  182. data/vendor/assets/javascripts/plinth/lib/jquery.fitvids.js +81 -0
  183. data/vendor/assets/javascripts/plinth/lib/ss-social.js +75 -0
  184. data/vendor/assets/javascripts/plinth/lib/ss-standard.js +78 -0
  185. data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.css +1 -0
  186. data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.js +21 -0
  187. data/vendor/assets/javascripts/plinth/plugins/doc/assets/search_data.js +1 -0
  188. data/vendor/assets/javascripts/plinth/plugins/doc/class_index.html +194 -0
  189. data/vendor/assets/javascripts/plinth/plugins/doc/class_list.html +58 -0
  190. data/vendor/assets/javascripts/plinth/plugins/doc/classes/Close.html +215 -0
  191. data/vendor/assets/javascripts/plinth/plugins/doc/classes/GAEvent.html +235 -0
  192. data/vendor/assets/javascripts/plinth/plugins/doc/classes/ResizeHandler.html +192 -0
  193. data/vendor/assets/javascripts/plinth/plugins/doc/classes/Switch.html +233 -0
  194. data/vendor/assets/javascripts/plinth/plugins/doc/classes/TBGForm.html +318 -0
  195. data/vendor/assets/javascripts/plinth/plugins/doc/extra_list.html +30 -0
  196. data/vendor/assets/javascripts/plinth/plugins/doc/file_list.html +58 -0
  197. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-close.js.coffee.html +154 -0
  198. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-forms.js.coffee.html +154 -0
  199. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-ga-events.js.coffee.html +154 -0
  200. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-respinsiveresize.js.coffee.html +154 -0
  201. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-switch.js.coffee.html +154 -0
  202. data/vendor/assets/javascripts/plinth/plugins/doc/index.html +14 -0
  203. data/vendor/assets/javascripts/plinth/plugins/doc/method_list.html +163 -0
  204. data/vendor/assets/javascripts/plinth/plugins/doc/mixin_list.html +28 -0
  205. data/vendor/assets/javascripts/plinth/plugins/tbg-close.js.coffee +97 -0
  206. data/vendor/assets/javascripts/plinth/plugins/tbg-forms.js.coffee +156 -0
  207. data/vendor/assets/javascripts/plinth/plugins/tbg-ga-events.js.coffee +107 -0
  208. data/vendor/assets/javascripts/plinth/plugins/tbg-respinsiveresize.js.coffee +73 -0
  209. data/vendor/assets/javascripts/plinth/plugins/tbg-switch.js.coffee +121 -0
  210. data/vendor/assets/stylesheets/.gitkeep +0 -0
  211. data/vendor/assets/stylesheets/_functions.scss +28 -0
  212. data/vendor/assets/stylesheets/_mixins.css.scss +273 -0
  213. data/vendor/assets/stylesheets/_settings.css.scss +120 -0
  214. data/vendor/assets/stylesheets/plinth/base/_all.css.scss +7 -0
  215. data/vendor/assets/stylesheets/plinth/base/_buttons.css.scss +166 -0
  216. data/vendor/assets/stylesheets/plinth/base/_form.css.scss +196 -0
  217. data/vendor/assets/stylesheets/plinth/base/_labels.css.scss +58 -0
  218. data/vendor/assets/stylesheets/plinth/base/_lists.css.scss +57 -0
  219. data/vendor/assets/stylesheets/plinth/base/_reset.css.scss +284 -0
  220. data/vendor/assets/stylesheets/plinth/base/_type.css.scss +328 -0
  221. data/vendor/assets/stylesheets/plinth/base/webfonts/_all.css.scss +2 -0
  222. data/vendor/assets/stylesheets/plinth/base/webfonts/ss-social.css.scss +57 -0
  223. data/vendor/assets/stylesheets/plinth/base/webfonts/ss-standard.css.scss +48 -0
  224. data/vendor/assets/stylesheets/plinth/grid/_grid.css.scss +127 -0
  225. data/vendor/assets/stylesheets/plinth/modules/_alert.css.scss +71 -0
  226. data/vendor/assets/stylesheets/plinth/modules/_all-grid.css.scss +1 -0
  227. data/vendor/assets/stylesheets/plinth/modules/_all-no-grid.css.scss +4 -0
  228. data/vendor/assets/stylesheets/plinth/modules/_footer.css.scss +93 -0
  229. data/vendor/assets/stylesheets/plinth/modules/_nav.css.scss +106 -0
  230. data/vendor/assets/stylesheets/plinth/modules/_panel.css.scss +28 -0
  231. data/vendor/assets/stylesheets/plinth/modules/_switch.css.scss +88 -0
  232. data/vendor/assets/stylesheets/plinth.css.scss +15 -0
  233. data/vendor/assets/views/buttons/_buttons.haml +9 -0
  234. data/vendor/assets/views/forms/_vertical_form.haml +7 -0
  235. data/vendor/assets/views/type/_headings.haml +6 -0
  236. data/vendor/assets/views/type/_paragraphs.haml +4 -0
  237. metadata +537 -0
@@ -0,0 +1,284 @@
1
+ //
2
+ // normalize.css - Global resets to level out browser handling or default elements
3
+ // MIT License | git.io/normalize
4
+ // @author Nicolas Gallagher and Jonathan Neal
5
+ //
6
+
7
+ @import "compass/css3/box-sizing";
8
+
9
+ // ==========================================================================
10
+ // HTML5 display definitions
11
+ // ==========================================================================
12
+
13
+ // Corrects `block` display not defined in IE6/7/8/9 & FF3.
14
+
15
+ article,
16
+ aside,
17
+ details,
18
+ figcaption,
19
+ figure,
20
+ footer,
21
+ header,
22
+ hgroup,
23
+ nav,
24
+ section,
25
+ summary {
26
+ display: block;
27
+ }
28
+
29
+ // Corrects `inline-block` display not defined in IE6/7/8/9 & FF3.
30
+
31
+ audio,
32
+ canvas,
33
+ video {
34
+ display: inline-block;
35
+ *display: inline;
36
+ *zoom: 1;
37
+ }
38
+
39
+ // Prevents modern browsers from displaying `audio` without controls.
40
+ // Remove excess height in iOS5 devices.
41
+
42
+ audio:not([controls]) {
43
+ display: none;
44
+ height: 0;
45
+ }
46
+
47
+ // Addresses styling for `hidden` attribute not present in IE7/8/9, FF3, S4.
48
+ // Known issue: no IE6 support.
49
+
50
+ [hidden] {
51
+ display: none;
52
+ }
53
+
54
+
55
+
56
+ // ==========================================================================
57
+ // Lists
58
+ // ==========================================================================
59
+
60
+ // Addresses margins set differently in IE6/7.
61
+
62
+ dl,
63
+ menu,
64
+ ol,
65
+ ul {
66
+ margin: 0 0 ms(0);
67
+ }
68
+
69
+ dd {
70
+ margin: 0 0 0 ms(1);
71
+ }
72
+
73
+ // Addresses paddings set differently in IE6/7.
74
+
75
+ menu,
76
+ ol,
77
+ ul {
78
+ padding: 0 0 0 $column-gutter*2;
79
+ }
80
+
81
+ // Corrects list images handled incorrectly in IE7.
82
+
83
+ nav ul,
84
+ nav ol {
85
+ list-style: none;
86
+ list-style-image: none;
87
+ }
88
+
89
+ // ==========================================================================
90
+ // Embedded content
91
+ // ==========================================================================
92
+
93
+ //
94
+ // 1. Removes border when inside `a` element in IE6/7/8/9, FF3.
95
+ // 2. Improves image quality when scaled in IE7.
96
+ // code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
97
+
98
+ img {
99
+ border: 0; // 1
100
+ -ms-interpolation-mode: bicubic; // 2
101
+ }
102
+
103
+ // Corrects overflow displayed oddly in IE9.
104
+
105
+ svg:not(:root) {
106
+ overflow: hidden;
107
+ }
108
+
109
+ // ==========================================================================
110
+ // Figures
111
+ // ==========================================================================
112
+
113
+ // Addresses margin not present in IE6/7/8/9, S5, O11.
114
+
115
+ figure {
116
+ margin: 0;
117
+ }
118
+
119
+ figure img {
120
+ max-width: 100% !important;
121
+ }
122
+
123
+ // ==========================================================================
124
+ // Forms
125
+ // ==========================================================================
126
+
127
+ // Corrects margin displayed oddly in IE6/7.
128
+
129
+ form {
130
+ margin: 0;
131
+ }
132
+
133
+ // Define consistent border, margin, and padding.
134
+
135
+ fieldset {
136
+ border: 1px solid #c0c0c0;
137
+ margin: 0 2px;
138
+ padding: 0.35em 0.625em 0.75em;
139
+ }
140
+
141
+ // 1. Corrects color not being inherited in IE6/7/8/9.
142
+ // 2. Corrects text not wrapping in FF3.
143
+ // 3. Corrects alignment displayed oddly in IE6/7.
144
+
145
+ legend {
146
+ border: 0; // 1
147
+ padding: 0;
148
+ white-space: normal; // 2
149
+ *margin-left: -7px; // 3
150
+ }
151
+
152
+ // 1. Corrects font size not being inherited in all browsers.
153
+ // 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome.
154
+ // 3. Improves appearance and consistency in all browsers
155
+
156
+ button,
157
+ input,
158
+ select,
159
+ textarea {
160
+ font-size: 100%; // 1
161
+ margin: 0; // 2
162
+ vertical-align: baseline; // 3
163
+ *vertical-align: middle; // 3
164
+ }
165
+
166
+ //
167
+ // Addresses FF3/4 setting `line-height` on `input` using `!important` in the
168
+ // UA stylesheet
169
+
170
+ button,
171
+ input {
172
+ line-height: normal;
173
+ }
174
+
175
+ // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
176
+ // and `video` controls.
177
+ // 2. Corrects inability to style clickable `input` types in iOS.
178
+ // 3. Improves usability and consistency of cursor style between image-type
179
+ // `input` and others.
180
+ // 4. Removes inner spacing in IE7 without affecting normal text inputs.
181
+ // Known issue: inner spacing remains in IE6.
182
+
183
+ button,
184
+ html input[type="button"], // 1
185
+ input[type="reset"],
186
+ input[type="submit"] {
187
+ -webkit-appearance: button; // 2
188
+ cursor: pointer; // 3
189
+ *overflow: visible; // 4
190
+ }
191
+
192
+ // Re-set default cursor for disabled elements.
193
+
194
+ button[disabled],
195
+ input[disabled] {
196
+ cursor: default;
197
+ }
198
+
199
+ // 1. Addresses box sizing set to content-box in IE8/9.
200
+ // 2. Removes excess padding in IE8/9.
201
+ // 3. Removes excess padding in IE7.
202
+ // Known issue: excess padding remains in IE6.
203
+
204
+ input[type="checkbox"],
205
+ input[type="radio"] {
206
+ box-sizing: border-box; // 1
207
+ padding: 0; // 2
208
+ *height: 13px; // 3
209
+ *width: 13px; // 3
210
+ }
211
+
212
+
213
+ // 1. Addresses `appearance` set to `searchfield` in S5, Chrome.
214
+ // 2. Addresses `box-sizing` set to `border-box` in S5, Chrome (include `-moz`
215
+ // to future-proof).
216
+
217
+ input[type="search"] {
218
+ -webkit-appearance: textfield; // 1
219
+ -moz-box-sizing: content-box;
220
+ -webkit-box-sizing: content-box; // 2
221
+ box-sizing: content-box;
222
+ }
223
+
224
+ // Removes inner padding and search cancel button in S5, Chrome on OS X.
225
+
226
+ input[type="search"]::-webkit-search-cancel-button,
227
+ input[type="search"]::-webkit-search-decoration {
228
+ -webkit-appearance: none;
229
+ }
230
+
231
+ // Removes inner padding and border in FF3+.
232
+
233
+ button::-moz-focus-inner,
234
+ input::-moz-focus-inner {
235
+ border: 0;
236
+ padding: 0;
237
+ }
238
+
239
+ // 1. Removes default vertical scrollbar in IE6/7/8/9.
240
+ // 2. Improves readability and alignment in all browsers.
241
+
242
+ textarea {
243
+ overflow: auto; // 1
244
+ vertical-align: top; // 2
245
+ }
246
+
247
+ // ==========================================================================
248
+ // Tables
249
+ // ==========================================================================
250
+
251
+ // Remove most spacing between table cells.
252
+
253
+ table {
254
+ border-collapse: collapse;
255
+ border-spacing: 0;
256
+ }
257
+
258
+ // ==========================================================================
259
+ // Hide only visually, but have it available for screenreaders: h5bp.com/v
260
+ // ==========================================================================
261
+
262
+ .visuallyhidden {
263
+ border: 0;
264
+ clip: rect(0 0 0 0);
265
+ height: 1px;
266
+ margin: -1px;
267
+ overflow: hidden;
268
+ padding: 0;
269
+ position: absolute;
270
+ width: 1px;
271
+ }
272
+
273
+ // Extends the .visuallyhidden class to allow the element to be focusable
274
+ // when navigated to via the keyboard: h5bp.com/p
275
+
276
+ .visuallyhidden.focusable:active,
277
+ .visuallyhidden.focusable:focus {
278
+ clip: auto;
279
+ height: auto;
280
+ margin: 0;
281
+ overflow: visible;
282
+ position: static;
283
+ width: auto;
284
+ }
@@ -0,0 +1,328 @@
1
+ //
2
+ // Type Defaults - Using Normalize.css rules as starting point
3
+ // $author Ad Taylor
4
+
5
+ // ==========================================================================
6
+ // Base
7
+ // ==========================================================================
8
+
9
+
10
+ // 1. Corrects text resizing oddly in IE6/7 when body `font-size` is set using
11
+ // `em` units.
12
+ // 2. Prevents iOS text size adjust after orientation change, without disabling
13
+ // user zoom.
14
+
15
+
16
+ html {
17
+ font-size: 100%; // 1
18
+ -webkit-text-size-adjust: 100%; // 2
19
+ -ms-text-size-adjust: 100%; // 2
20
+ }
21
+
22
+ // Addresses `font-family` inconsistency between `textarea` and other form
23
+ // elements.
24
+
25
+ html,
26
+ button,
27
+ input,
28
+ select,
29
+ textarea {
30
+ font-family: $base-font-family;
31
+ }
32
+
33
+ // Addresses margins handled incorrectly in IE6/7.
34
+
35
+ body {
36
+ margin: 0;
37
+ background-color: $body-color;
38
+ font-size: ms(0);
39
+ line-height: $base-line-height;
40
+ color: $body-font-color;
41
+ -webkit-font-smoothing: antialiased;
42
+ }
43
+
44
+ // ==========================================================================
45
+ // Links
46
+ // ==========================================================================
47
+
48
+ a {
49
+ border-bottom: 1px dotted $txt-color;
50
+ text-decoration: none;
51
+ color: $txt-color;
52
+ }
53
+
54
+ // Addresses `outline` inconsistency between Chrome and other browsers.
55
+
56
+ a:focus {
57
+ outline: thin dotted;
58
+ }
59
+
60
+ // Improves readability when focused and also mouse hovered in all browsers.
61
+ // people.opera.com/patrickl/experiments/keyboard/test
62
+
63
+ a:active,
64
+ a.is-active,
65
+ .is-active > a,
66
+ a:hover {
67
+ border-color: $main-color;
68
+ outline: 0;
69
+ color: $main-color-hover;
70
+ }
71
+
72
+ a.prominent {
73
+ color: $txt-color;
74
+ text-decoration: none;
75
+ font-weight: bold;
76
+
77
+ &:active,
78
+ &.is-active,
79
+ &:hover {
80
+ border-bottom: 1px dotted $main-color;
81
+ color: $main-color-hover;
82
+ }
83
+ }
84
+
85
+ // ==========================================================================
86
+ // Basic Typography
87
+ // ==========================================================================
88
+
89
+ /* Headings */
90
+ h1, .h1, h2, .h2, h3, .h3,
91
+ h4, .h4, h5, .h5 {
92
+ margin-bottom: ms(0);
93
+ margin-top: ms(0);
94
+ font-family: $header-font-family;
95
+ font-weight: bold;
96
+ }
97
+
98
+ h1, .h1 {
99
+ font-size: ms(4);
100
+ line-height: 1.19;
101
+ }
102
+
103
+ h2, .h2 {
104
+ font-size: ms(3);
105
+ line-height: 1.19;
106
+ }
107
+
108
+ h3, .h3 {
109
+ font-size: ms(2);
110
+ }
111
+
112
+ h4, .h4{
113
+ font-size: ms(1);
114
+ }
115
+
116
+ h5, .h5 {
117
+ font-size: ms(0);
118
+ }
119
+
120
+ .h-light {
121
+ font-weight: normal;
122
+ }
123
+
124
+ @include smallest-query(true) {
125
+ // Pass true to output outside
126
+ // media query for IE
127
+ h1, .h1 {
128
+ font-size: ms(4);
129
+ line-height: 1.34;
130
+ }
131
+ }
132
+
133
+ // Addresses styling not present in IE7/8/9, S5, Chrome.
134
+
135
+ abbr[title] {
136
+ border-bottom: 1px dotted;
137
+ }
138
+
139
+ // Addresses style set to `bolder` in FF3+, S4/5, Chrome.
140
+
141
+
142
+ b,
143
+ strong {
144
+ font-weight: bold;
145
+ }
146
+
147
+ blockquote {
148
+ margin: 1em 40px;
149
+ }
150
+
151
+ // Addresses styling not present in S5, Chrome.
152
+
153
+
154
+ dfn {
155
+ font-style: italic;
156
+ }
157
+
158
+ // Addresses styling not present in IE6/7/8/9.
159
+
160
+
161
+ mark {
162
+ background: #ff0;
163
+ color: #000;
164
+ }
165
+
166
+ // Addresses margins set differently in IE6/7.
167
+
168
+ p,
169
+ pre {
170
+ margin-bottom: ms(0);
171
+ margin-top: 0;
172
+ }
173
+
174
+
175
+ // Corrects font family set oddly in IE6, S4/5, Chrome.
176
+ // en.wikipedia.org/wiki/User:Davidgothberg/Test59
177
+
178
+ code,
179
+ kbd,
180
+ pre,
181
+ samp {
182
+ font-family: monospace, serif;
183
+ _font-family: 'courier new', monospace;
184
+ font-size: 1em;
185
+ }
186
+
187
+ code {
188
+ background-color: transparentize( $main-color, 0.7);
189
+ }
190
+
191
+ pre > code {
192
+ display: block;
193
+ }
194
+
195
+ // Improves readability of pre-formatted text in all browsers.
196
+
197
+ pre {
198
+ white-space: pre;
199
+ white-space: pre-wrap;
200
+ word-wrap: break-word;
201
+ }
202
+
203
+ // Addresses CSS quotes not supported in IE6/7.
204
+
205
+ q {
206
+ quotes: none;
207
+ }
208
+
209
+ // Addresses `quotes` property not supported in S4.
210
+
211
+ q:before,
212
+ q:after {
213
+ content: '';
214
+ content: none;
215
+ }
216
+
217
+ small {
218
+ font-size: 0.785em;
219
+ }
220
+
221
+ // Prevents `sub` and `sup` affecting `line-height` in all browsers.
222
+ // gist.github.com/413930
223
+
224
+ sub,
225
+ sup {
226
+ font-size: 75%;
227
+ line-height: 0;
228
+ position: relative;
229
+ vertical-align: baseline;
230
+ }
231
+
232
+ sup {
233
+ top: -0.5em;
234
+ }
235
+
236
+ sub {
237
+ bottom: -0.25em;
238
+ }
239
+
240
+ figure {
241
+ margin-bottom: ms(2);
242
+ figcaption {
243
+ font-size: ms(0)*0.8;
244
+ color: mono(2);
245
+ }
246
+ }
247
+
248
+
249
+ // ==========================================================================
250
+ // Web fonts
251
+ // ==========================================================================
252
+ @import "webfonts/all";
253
+
254
+
255
+ // ==========================================================================
256
+ // Icons
257
+ // ==========================================================================
258
+
259
+ a[href*='twitter.com'], .twitter {
260
+ color: $twitter-color;
261
+ }
262
+ a[href*='twitter.com'], a.twitter {
263
+ &:hover, &:focus {
264
+ color: darken($twitter-color, 10%);
265
+ }
266
+ }
267
+
268
+ a[href*='mailto:'], .email {
269
+ color: $email-color;
270
+ }
271
+ a[href*='mailto:'], a.email {
272
+ &:hover, &:focus {
273
+ color: darken($email-color, 10%);
274
+ }
275
+ }
276
+
277
+
278
+ a[href*='facebook.com'], .facebook {
279
+ color: $facebook-color;
280
+ }
281
+ a[href*='facebook.com'], a.facebook {
282
+ &:hover, &:focus {
283
+ color: darken($facebook-color, 10%);
284
+ }
285
+ }
286
+
287
+
288
+ // ==========================================================================
289
+ // Typographic Extensions
290
+ // ==========================================================================
291
+
292
+ // Standout copy like leading paragraphs
293
+
294
+ .standout {
295
+ font-size: ms(1);
296
+ }
297
+
298
+ // Supporting text
299
+
300
+ .support {
301
+ @extend small;
302
+ margin-bottom: ms(0)/2;
303
+ }
304
+
305
+ // Secondary text
306
+
307
+ .secondary {
308
+ color: mono(2);
309
+ }
310
+
311
+ // Shout
312
+
313
+ .shout {
314
+ font-weight: bold;
315
+
316
+ &.small {
317
+ color: $main-color;
318
+ }
319
+
320
+ &.medium {
321
+ font-size: ms(1);
322
+ }
323
+
324
+ &.large {
325
+ font-size: ms(5);
326
+ }
327
+ }
328
+
@@ -0,0 +1,2 @@
1
+ @import "ss-social";
2
+ @import "ss-standard";
@@ -0,0 +1,57 @@
1
+ @charset "UTF-8";
2
+
3
+ /*
4
+ * Symbolset
5
+ * www.symbolset.com
6
+ * Copyright © 2012 Oak Studios LLC
7
+ *
8
+ * Upload this file to your web server
9
+ * and place this within your <head> tags.
10
+ * <link href="webfonts/ss-social.css" rel="stylesheet" />
11
+ */
12
+
13
+ @font-face {
14
+ font: {
15
+ family: 'SSSocial';
16
+ weight: 'normal';
17
+ style: 'normal';
18
+ }
19
+ src: asset-url('ss-social-circle.eot', font);
20
+ src: asset-url('ss-social-circle.eot?#iefix', font) format('embedded-opentype'),
21
+ asset-url('ss-social-circle.woff', font) format('woff'),
22
+ asset-url('ss-social-circle.ttf', font) format('truetype'),
23
+ asset-url('ss-social-circle.svg#SSSocialCircle', font) format('svg');
24
+ }
25
+
26
+
27
+ .ss-icon, .ss-icon.ss-social, .ss-icon.ss-social-no-circle,
28
+ [class^="ss-"]:before, [class*=" ss-"]:before,
29
+ [class^="ss-"][class*=" ss-social"]:before, [class*=" ss-"][class*=" ss-social"]:before,
30
+ [class^="ss-"].right:after, [class*=" ss-"].right:after,
31
+ [class^="ss-"][class*=" ss-social"].right:after, [class*=" ss-"][class*=" ss-social"].right:after{
32
+ font-family: "SSSocial";
33
+ font-style: normal;
34
+ font-weight: normal;
35
+ text-decoration: none;
36
+ border: none;
37
+ text-rendering: optimizeLegibility;
38
+ white-space: nowrap;
39
+ -webkit-font-feature-settings: "liga";
40
+ -moz-font-feature-settings: "liga=1";
41
+ -moz-font-feature-settings: "liga";
42
+ -ms-font-feature-settings: "liga" 1;
43
+ -o-font-feature-settings: "liga";
44
+ font-feature-settings: "liga";
45
+ -webkit-font-smoothing: antialiased;
46
+ vertical-align: middle;
47
+ }
48
+
49
+ .ss-icon.ss-social-no-circle,
50
+ [class^="ss-"].ss-social-no-circle:before, [class*=" ss-"].ss-social-no-circle:before,
51
+ [class^="ss-"].ss-social-no-circle.right:after, [class*=" ss-"].ss-social-no-circle.right:after{
52
+ font-weight: bold;
53
+ }
54
+
55
+ [class^="ss-"].right:before, [class^="ss-"][class*=" ss-social"].right:before{display:none;content:'';}
56
+
57
+ .ss-facebook:before,.ss-facebook.right:after{content:''}.ss-twitter:before,.ss-twitter.right:after{content:''}.ss-linkedin:before,.ss-linkedin.right:after{content:''}.ss-googleplus:before,.ss-googleplus.right:after{content:''}.ss-tumblr:before,.ss-tumblr.right:after{content:''}.ss-wordpress:before,.ss-wordpress.right:after{content:''}.ss-blogger:before,.ss-blogger.right:after{content:''}.ss-posterous:before,.ss-posterous.right:after{content:''}.ss-youtube:before,.ss-youtube.right:after{content:''}.ss-vimeo:before,.ss-vimeo.right:after{content:''}.ss-flickr:before,.ss-flickr.right:after{content:''}.ss-instagram:before,.ss-instagram.right:after{content:''}.ss-pinterest:before,.ss-pinterest.right:after{content:''}.ss-dribbble:before,.ss-dribbble.right:after{content:''}.ss-behance:before,.ss-behance.right:after{content:''}.ss-github:before,.ss-github.right:after{content:''}.ss-octocat:before,.ss-octocat.right:after{content:''}.ss-paypal:before,.ss-paypal.right:after{content:''}.ss-foursquare:before,.ss-foursquare.right:after{content:''}.ss-skype:before,.ss-skype.right:after{content:''}.ss-rdio:before,.ss-rdio.right:after{content:''}.ss-spotify:before,.ss-spotify.right:after{content:''}.ss-lastfm:before,.ss-lastfm.right:after{content:''}.ss-mail:before,.ss-mail.right:after{content:'✉'}.ss-like:before,.ss-like.right:after{content:'👍'}.ss-rss:before,.ss-rss.right:after{content:''}