best 0.0.1 → 0.0.2

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 (128) hide show
  1. data/README.md +19 -0
  2. data/framework/best/best.rb +32 -0
  3. data/framework/best/stylesheets/_best.scss +15 -0
  4. data/framework/best/stylesheets/best/_button.scss +49 -0
  5. data/framework/best/stylesheets/best/_effects.scss +5 -0
  6. data/framework/best/stylesheets/best/_form.scss +6 -0
  7. data/framework/best/stylesheets/best/_layout.scss +7 -0
  8. data/framework/best/stylesheets/best/_navigation.scss +8 -0
  9. data/framework/best/stylesheets/best/_reset.scss +4 -0
  10. data/framework/best/stylesheets/best/_utilities.scss +4 -0
  11. data/framework/best/stylesheets/best/effects/_iterative.scss +15 -0
  12. data/framework/best/stylesheets/best/effects/_keyframes.scss +121 -0
  13. data/framework/best/stylesheets/best/form/_form-layout.scss +120 -0
  14. data/framework/best/stylesheets/best/form/_form-style.scss +41 -0
  15. data/framework/best/stylesheets/best/form/_form-validation.scss +25 -0
  16. data/framework/best/stylesheets/best/layout/_dl-horizontal.scss +32 -0
  17. data/framework/best/stylesheets/best/layout/_equal-heights.scss +70 -0
  18. data/framework/best/stylesheets/best/layout/_layout-center.scss +20 -0
  19. data/framework/best/stylesheets/best/layout/_mediablock.scss +34 -0
  20. data/framework/best/stylesheets/best/navigation/_navigation-breadcrumb.scss +59 -0
  21. data/framework/best/stylesheets/best/navigation/_navigation-dropdown.scss +39 -0
  22. data/framework/best/stylesheets/best/navigation/_navigation-horizontal.scss +34 -0
  23. data/framework/best/stylesheets/best/navigation/_navigation.scss +28 -0
  24. data/framework/best/stylesheets/best/navigation/_tinynav.scss +18 -0
  25. data/framework/best/stylesheets/best/reset/_normalize.scss +376 -0
  26. data/framework/best/stylesheets/best/utilities/_em.scss +6 -0
  27. data/template/breakpoints.html +89 -0
  28. data/template/codekit-config.json +1142 -0
  29. data/template/colors.html +115 -0
  30. data/template/components/custom-select/arrow.gif +0 -0
  31. data/template/components/custom-select/custom-select.css +23 -0
  32. data/template/components/custom-select/custom-select.html +31 -0
  33. data/template/components/custom-select/custom-select.js +9 -0
  34. data/template/components/custom-select/customSelect.jquery.js +56 -0
  35. data/template/components/custom-select/customSelect.jquery.min.js +1 -0
  36. data/template/components/dropdown/dropdown.css +54 -0
  37. data/template/components/dropdown/dropdown.html +34 -0
  38. data/template/components/dropdown/dropdown.js +50 -0
  39. data/template/components/example component/component.css +5 -0
  40. data/template/components/example component/component.html +13 -0
  41. data/template/components/example component/component.js b/data/template/components/example → component/component.js +0 -0
  42. data/template/components/fancybox/CHANGELOG.md +115 -0
  43. data/template/components/fancybox/README.md +217 -0
  44. data/template/components/fancybox/component.json +8 -0
  45. data/template/components/fancybox/demo/1_b.jpg +0 -0
  46. data/template/components/fancybox/demo/1_s.jpg +0 -0
  47. data/template/components/fancybox/demo/2_b.jpg +0 -0
  48. data/template/components/fancybox/demo/2_s.jpg +0 -0
  49. data/template/components/fancybox/demo/3_b.jpg +0 -0
  50. data/template/components/fancybox/demo/3_s.jpg +0 -0
  51. data/template/components/fancybox/demo/4_b.jpg +0 -0
  52. data/template/components/fancybox/demo/4_s.jpg +0 -0
  53. data/template/components/fancybox/demo/5_b.jpg +0 -0
  54. data/template/components/fancybox/demo/5_s.jpg +0 -0
  55. data/template/components/fancybox/demo/ajax.txt +15 -0
  56. data/template/components/fancybox/demo/iframe.html +26 -0
  57. data/template/components/fancybox/demo/index.html +307 -0
  58. data/template/components/fancybox/lib/jquery-1.8.2.min.js +2 -0
  59. data/template/components/fancybox/lib/jquery.mousewheel-3.0.6.pack.js +13 -0
  60. data/template/components/fancybox/source/blank.gif +0 -0
  61. data/template/components/fancybox/source/fancybox_loading.gif +0 -0
  62. data/template/components/fancybox/source/fancybox_overlay.png +0 -0
  63. data/template/components/fancybox/source/fancybox_sprite.png +0 -0
  64. data/template/components/fancybox/source/helpers/fancybox_buttons.png +0 -0
  65. data/template/components/fancybox/source/helpers/jquery.fancybox-buttons.css +96 -0
  66. data/template/components/fancybox/source/helpers/jquery.fancybox-buttons.js +121 -0
  67. data/template/components/fancybox/source/helpers/jquery.fancybox-media.js +196 -0
  68. data/template/components/fancybox/source/helpers/jquery.fancybox-thumbs.css +54 -0
  69. data/template/components/fancybox/source/helpers/jquery.fancybox-thumbs.js +162 -0
  70. data/template/components/fancybox/source/jquery.fancybox.css +249 -0
  71. data/template/components/fancybox/source/jquery.fancybox.js +1985 -0
  72. data/template/components/fancybox/source/jquery.fancybox.pack.js +45 -0
  73. data/template/components/jquery/component.json +14 -0
  74. data/template/components/jquery/composer.json +23 -0
  75. data/template/components/jquery/jquery.js +9472 -0
  76. data/template/components/jquery/jquery.min.js +2 -0
  77. data/template/config.rb +25 -0
  78. data/template/css/style.css +1094 -0
  79. data/template/fancybox.html +118 -0
  80. data/template/forms.html +132 -0
  81. data/template/grid.html +122 -0
  82. data/template/index.html +116 -0
  83. data/template/jade/--- from cybex as inspiration/keyvisuals.jade +37 -0
  84. data/template/jade/--- from cybex as inspiration/m-carousel.jade +37 -0
  85. data/template/jade/--- from cybex as inspiration/m-faq.jade +23 -0
  86. data/template/jade/--- from cybex as inspiration/m-keyvisual.jade +55 -0
  87. data/template/jade/--- from cybex as inspiration/m-search.jade +3 -0
  88. data/template/jade/--- from cybex as inspiration/m-slideshow.jade +12 -0
  89. data/template/jade/--- from cybex as inspiration/m-social.jade +10 -0
  90. data/template/jade/breakpoints.jade +26 -0
  91. data/template/jade/colors.jade +32 -0
  92. data/template/jade/fancybox.jade +34 -0
  93. data/template/jade/forms.jade +39 -0
  94. data/template/jade/grid.jade +36 -0
  95. data/template/jade/includes/module-development.jade +1 -0
  96. data/template/jade/includes/nav-development.jade +27 -0
  97. data/template/jade/includes/nav-meta.jade +6 -0
  98. data/template/jade/includes/nav-primary.jade +5 -0
  99. data/template/jade/includes/nav-secondary.jade +18 -0
  100. data/template/jade/index.jade +33 -0
  101. data/template/jade/layouts/layout-footer.jade +5 -0
  102. data/template/jade/layouts/layout-header.jade +3 -0
  103. data/template/jade/layouts/layout-html5.jade +26 -0
  104. data/template/jade/layouts/layout-page.jade +40 -0
  105. data/template/jade/mixins/form-helpers.jade +10 -0
  106. data/template/jade/mixins/mixin-menu.jade +3 -0
  107. data/template/jade/typography.jade +38 -0
  108. data/template/js/footer.js +16 -0
  109. data/template/js/footer.min.js +3 -0
  110. data/template/js/header.js +1 -0
  111. data/template/js/header.min.js +3 -0
  112. data/template/js/main.js +18 -0
  113. data/template/js/main.min.js +1 -0
  114. data/template/js/vendor/jquery.flexslider.min.js +6 -0
  115. data/template/js/vendor/modernizr-custom.js +4 -0
  116. data/template/readme.md +6 -0
  117. data/template/sass/_base.scss +66 -0
  118. data/template/sass/_config.scss +58 -0
  119. data/template/sass/_labs.scss +4 -0
  120. data/template/sass/_layout.scss +26 -0
  121. data/template/sass/_m-breakpoints.scss +42 -0
  122. data/template/sass/_m-colors.scss +39 -0
  123. data/template/sass/_m-navigation.scss +43 -0
  124. data/template/sass/_m-offcanvas.scss +60 -0
  125. data/template/sass/_module.scss +63 -0
  126. data/template/sass/style.scss +38 -0
  127. data/template/typography.html +120 -0
  128. metadata +130 -3
@@ -0,0 +1,25 @@
1
+ // Form validation
2
+ // ============================================================================
3
+ /* Not done. Don't use. */
4
+
5
+ @import "compass/css3/border-radius";
6
+
7
+
8
+ @mixin form-validation() {
9
+ .field-help {
10
+ @include border-bottom-left-radius(1em);
11
+ @include border-bottom-right-radius(1em);
12
+ margin: 0 1em;
13
+ padding: .3em 1em .4em;
14
+ background: green;
15
+ color: #fff;
16
+ }
17
+ form .error {
18
+ background: red;
19
+ color: #fff;
20
+ }
21
+ input[type=text].field_error,
22
+ textarea.field_error {
23
+ border-color: red;
24
+ }
25
+ }
@@ -0,0 +1,32 @@
1
+ // Horizontal list
2
+ // ============================================================================
3
+
4
+ /* Can't even remember what this is… */
5
+
6
+ /*
7
+ <div class="m-dl-horizontal">
8
+ <dl>
9
+ <dt><i class="icon icon-headset"></i></dt>
10
+ <dd>text<small>small text</small></dd>
11
+ <dt><i class="icon icon-chat"></i></dt>
12
+ <dd>text<small>small text</small></dd>
13
+ <dt><i class="icon icon-mail"></i></dt>
14
+ <dd>text<small>small text</small></dd>
15
+ </dl>
16
+ </div>
17
+ */
18
+
19
+ @mixin dl-horizontal($width: 3.75em) {
20
+ dt {
21
+ float: left;
22
+ width: $width;
23
+ overflow: hidden;
24
+ clear: left;
25
+ text-align: right;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ }
29
+ dd {
30
+ margin-left: $width;
31
+ }
32
+ }
@@ -0,0 +1,70 @@
1
+ // Equal heights
2
+ // ============================================================================
3
+ /* Equal height columns. Needs testing. */
4
+ /*
5
+ <div class="l-equal-heights">
6
+ <div class="l-col"></div>
7
+ <div class="l-col"></div>
8
+ </div>
9
+ */
10
+
11
+ @mixin equal-heights($selector: unquote('.article')) {
12
+ display: table;
13
+ width: 100%;
14
+ table-layout: fixed;
15
+ overflow: hidden;
16
+ #{$selector} {
17
+ display: table-cell;
18
+ float: none;
19
+ vertical-align: top;
20
+ }
21
+ }
22
+
23
+ /*
24
+ ## Alternative method
25
+ Also see: http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks
26
+ (not ready for use in combination with Susy)
27
+
28
+ ```` $('.l-tertiary .article').wrapAll('<div class="container-eq eq-4"><div class="container-eq eq-3"><div class="container-eq eq-2"><div class="container-eq eq-1">');````
29
+ */
30
+
31
+ @mixin equal-heights-alt($selector: unquote('.article'), $column-width: 22.68%, $gutter-width: 3.093%) {
32
+ .container-eq {
33
+ clear: left;
34
+ float: left;
35
+ width: 100%;
36
+ }
37
+ .eq-1 {
38
+ clear: none;
39
+ position:relative;
40
+ right: 25%;
41
+ background: #fff689; /* column 1 background colour */
42
+ }
43
+ .eq-2 {
44
+ position:relative;
45
+ right: 25%;
46
+ background: #ffa7a7; /* column 2 background colour */
47
+ }
48
+ .eq-3 {
49
+ position:relative;
50
+ right: 25%;
51
+ background: #89ffa2; /* column 3 background colour */
52
+ }
53
+ .eq-4 {
54
+ overflow:hidden;
55
+ background: #b2f0f9; /* column 4 background colour */
56
+ }
57
+
58
+ #{$selector} {
59
+ float: left;
60
+ width: $column-width;
61
+ position: relative;
62
+ overflow: hidden;
63
+
64
+ &:nth-child(1) { left: 77%;}
65
+ &:nth-child(2) { left: 81%;}
66
+ &:nth-child(3) { left: 85%;}
67
+ &:nth-child(4) { left: 89%;}
68
+ }
69
+
70
+ }
@@ -0,0 +1,20 @@
1
+ // Layout center
2
+ // ============================================================================
3
+ /* Centers an element and gives a max-width. Useful for containers. Not so useful
4
+ now that we're using Susy */
5
+
6
+ /*
7
+ <div class="layout-center">This will be centered and given a max-width.</div>
8
+ */
9
+
10
+
11
+ @import "compass/utilities/general/clearfix";
12
+
13
+
14
+
15
+ @mixin layout-center($max-width: 60em, $padding: 1em) {
16
+ @include pie-clearfix;
17
+ max-width: $max-width;
18
+ margin-left: auto; margin-right: auto;
19
+ padding-left: $padding; padding-right: $padding;
20
+ }
@@ -0,0 +1,34 @@
1
+ // Media Block
2
+ // =============================================================================
3
+ /* The infamous media block module. Instant win */
4
+ /*
5
+ <div class="media-block">
6
+ <figure class="media">This is fluid.</figure>
7
+ <div class="entry">This as well.</div>
8
+ </div>
9
+ */
10
+
11
+ @import "compass/utilities/general/clearfix";
12
+
13
+
14
+
15
+ @mixin media-block($media-selector: unquote(".media"), $entry-selector: unquote(".entry"), $margin-right: 1em) {
16
+ @include pie-clearfix;
17
+ // overflow:hidden;
18
+ // _overflow:visible;
19
+ // *zoom:1;
20
+
21
+ #{$media-selector} {
22
+ float: left;
23
+ margin-right: $margin-right;
24
+ img { display: block;}
25
+ }
26
+ #{$entry-selector} {
27
+ // overflow:hidden;
28
+ // _overflow:visible;
29
+ display: table-cell;
30
+ width: 10000px;
31
+ *width: auto;
32
+ *zoom: 1;
33
+ }
34
+ }
@@ -0,0 +1,59 @@
1
+ // Navigation Breadcrumb
2
+ // ============================================================================
3
+ /* Use for breadcrumbs */
4
+ /*
5
+ <p>Just testing</p>
6
+ <nav class="oskartestingstyledocco">
7
+ <ul>
8
+ <li><a href="#">Link</a></li>
9
+ <li><a href="#">Link</a></li>
10
+ <li><a href="#">Link</a></li>
11
+ <li><a href="#">Link</a></li>
12
+ </ul>
13
+ </nav>
14
+ */
15
+
16
+ @import "best/navigation/navigation";
17
+ @import "compass/utilities/general/clearfix";
18
+
19
+
20
+
21
+ @mixin navigation-breadcrumb($alignment : left) {
22
+ @include navigation;
23
+ @include pie-clearfix;
24
+
25
+ li {
26
+ float: left;
27
+ }
28
+ .divider {
29
+ padding: 0 0.6em;
30
+ }
31
+ }
32
+
33
+
34
+ // /**
35
+ // * Simple breadcrumb styling to apply to (ordered) lists. Extends `.nav`.
36
+ // */
37
+ // .breadcrumb > li:before{
38
+ // content:"» ";
39
+ // }
40
+ // /**
41
+ // * Remove separator from first item in the list.
42
+ // */
43
+ // .breadcrumb > li:first-child:before,
44
+ // .breadcrumb--path > li:first-child:before{
45
+ // content:"";
46
+ // display:none;
47
+ // }
48
+ // /**
49
+ // * For denoting a path-like structure, GitHub style.
50
+ // */
51
+ // .breadcrumb--path > li:before{
52
+ // content:"/ ";
53
+ // }
54
+ // /**
55
+ // * Denote the root of the tree.
56
+ // */
57
+ // .breadcrumb__root{
58
+ // font-weight:bold;
59
+ // }
@@ -0,0 +1,39 @@
1
+ // Navigation Dropdown
2
+ // ============================================================================
3
+ /* Use for dropdowns. Doesn't include styling. */
4
+ /*
5
+ <nav class="dropdown">
6
+ <ul>
7
+ <li><a href="#">Link</a></li>
8
+ <li><a href="#">Link</a></li>
9
+ <li><a href="#">Link</a></li>
10
+ <li><a href="#">Link</a></li>
11
+ </ul>
12
+ </nav>
13
+ */
14
+
15
+ @import "best/navigation/navigation";
16
+ @import "compass/utilities/general/clearfix";
17
+
18
+
19
+
20
+ @mixin navigation-dropdown {
21
+
22
+ li {
23
+ position: relative;
24
+
25
+ &:hover > ul {
26
+ display: block;
27
+ }
28
+ }
29
+
30
+ li ul {
31
+ position: absolute;
32
+ top: auto;
33
+ z-index: 10;
34
+ }
35
+ li li {
36
+ float: none;
37
+ margin: 0;
38
+ }
39
+ }
@@ -0,0 +1,34 @@
1
+ // Navigation Horizontal
2
+ // ============================================================================
3
+ /* Use for horizontal navigation */
4
+ /*
5
+ <p>Just testing</p>
6
+ <nav class="oskartestingstyledocco">
7
+ <ul>
8
+ <li><a href="#">Link</a></li>
9
+ <li><a href="#">Link</a></li>
10
+ <li><a href="#">Link</a></li>
11
+ <li><a href="#">Link</a></li>
12
+ </ul>
13
+ </nav>
14
+ */
15
+
16
+ @import "best/navigation/navigation";
17
+ @import "compass/utilities/general/clearfix";
18
+
19
+ @mixin navigation-horizontal($alignment: left, $spacing: 1em) {
20
+ @include navigation;
21
+
22
+ ul {
23
+ @include pie-clearfix;
24
+ }
25
+ li {
26
+ float: left;
27
+ @if($alignment == left) {
28
+ margin-right: $spacing;
29
+ }
30
+ @else {
31
+ margin-left: $spacing;
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,28 @@
1
+
2
+ // Navigation
3
+ // ============================================================================
4
+ /* Used as a base for navigation. */
5
+ /*
6
+ <p>Just testing</p>
7
+ <nav class="oskartestingstyledocco">
8
+ <ul>
9
+ <li><a href="#">Link</a></li>
10
+ <li><a href="#">Link</a></li>
11
+ <li><a href="#">Link</a></li>
12
+ <li><a href="#">Link</a></li>
13
+ </ul>
14
+ </nav>
15
+ */
16
+
17
+ @mixin navigation {
18
+ ul {
19
+ padding: 0;
20
+ margin: 0;
21
+ }
22
+ li {
23
+ list-style: none;
24
+ }
25
+ a {
26
+ display: inline-block;
27
+ }
28
+ }
@@ -0,0 +1,18 @@
1
+ // Tinynav
2
+ // ============================================================================
3
+ /*
4
+ tinynav() quickly enables you to enable (yo!) tinynav to your navigation. This is dependant on the tinynav.js script
5
+ */
6
+
7
+
8
+ @mixin tinynav($breakpoint: 600px, $menu-selector: unquote(".m-menu-primary > ul")) {
9
+
10
+ // above breakpoint hide tinynav
11
+ .tinynav { display: none; }
12
+
13
+ // below breakpoint show tinynav and hide menu
14
+ @media screen and (max-width: $breakpoint) {
15
+ .tinynav { display: block; }
16
+ #{$menu-selector} { display: none; }
17
+ }
18
+ }
@@ -0,0 +1,376 @@
1
+ // Normalize
2
+ // ============================================================================
3
+ /*
4
+ In a customized version for Best
5
+ */
6
+
7
+
8
+ /*! normalize.css v2.0.1 | MIT License | git.io/normalize */
9
+
10
+ /* ==========================================================================
11
+ HTML5 display definitions
12
+ ========================================================================== */
13
+
14
+ /*
15
+ * Corrects `block` display not defined in IE 8/9.
16
+ */
17
+
18
+ article,
19
+ aside,
20
+ details,
21
+ figcaption,
22
+ figure,
23
+ footer,
24
+ header,
25
+ hgroup,
26
+ nav,
27
+ section,
28
+ summary {
29
+ display: block;
30
+ }
31
+
32
+ /*
33
+ * Corrects `inline-block` display not defined in IE 8/9.
34
+ */
35
+
36
+ audio,
37
+ canvas,
38
+ video {
39
+ display: inline-block;
40
+ }
41
+
42
+ /*
43
+ * Prevents modern browsers from displaying `audio` without controls.
44
+ * Remove excess height in iOS 5 devices.
45
+ */
46
+
47
+ audio:not([controls]) {
48
+ display: none;
49
+ height: 0;
50
+ }
51
+
52
+ /*
53
+ * Addresses styling for `hidden` attribute not present in IE 8/9.
54
+ */
55
+
56
+ [hidden] {
57
+ display: none;
58
+ }
59
+
60
+ /* ==========================================================================
61
+ Base
62
+ ========================================================================== */
63
+
64
+ /*
65
+ * 1. Sets default font family to sans-serif.
66
+ * 2. Prevents iOS text size adjust after orientation change, without disabling
67
+ * user zoom.
68
+ */
69
+
70
+ html {
71
+ -webkit-text-size-adjust: 100%; /* 2 */
72
+ -ms-text-size-adjust: 100%; /* 2 */
73
+ }
74
+
75
+ /*
76
+ * Removes default margin.
77
+ */
78
+
79
+ body {
80
+ margin: 0;
81
+ }
82
+
83
+ /* ==========================================================================
84
+ Links
85
+ ========================================================================== */
86
+
87
+ /*
88
+ * Addresses `outline` inconsistency between Chrome and other browsers.
89
+ */
90
+
91
+ a:focus {
92
+ outline: thin dotted;
93
+ }
94
+
95
+ /*
96
+ * Improves readability when focused and also mouse hovered in all browsers.
97
+ */
98
+
99
+ a:active,
100
+ a:hover {
101
+ outline: 0;
102
+ }
103
+
104
+ /* ==========================================================================
105
+ Typography
106
+ ========================================================================== */
107
+
108
+ /*
109
+ * Addresses styling not present in IE 8/9, Safari 5, and Chrome.
110
+ */
111
+
112
+ abbr[title] {
113
+ border-bottom: 1px dotted;
114
+ }
115
+
116
+ /*
117
+ * Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
118
+ */
119
+
120
+ b,
121
+ strong {
122
+ font-weight: bold;
123
+ }
124
+
125
+ /*
126
+ * Addresses styling not present in Safari 5 and Chrome.
127
+ */
128
+
129
+ dfn {
130
+ font-style: italic;
131
+ }
132
+
133
+ /*
134
+ * Addresses styling not present in IE 8/9.
135
+ */
136
+
137
+ mark {
138
+ background: #ff0;
139
+ color: #000;
140
+ }
141
+
142
+
143
+ /*
144
+ * Corrects font family set oddly in Safari 5 and Chrome.
145
+ */
146
+
147
+ code,
148
+ kbd,
149
+ pre,
150
+ samp {
151
+ font-family: monospace, serif;
152
+ font-size: 1em;
153
+ }
154
+
155
+ /*
156
+ * Improves readability of pre-formatted text in all browsers.
157
+ */
158
+
159
+ pre {
160
+ white-space: pre;
161
+ white-space: pre-wrap;
162
+ word-wrap: break-word;
163
+ }
164
+
165
+ /*
166
+ * Sets consistent quote types.
167
+ */
168
+
169
+ q {
170
+ quotes: "\201C" "\201D" "\2018" "\2019";
171
+ }
172
+
173
+ /*
174
+ * Addresses inconsistent and variable font size in all browsers.
175
+ */
176
+
177
+ small {
178
+ font-size: 80%;
179
+ }
180
+
181
+ /*
182
+ * Prevents `sub` and `sup` affecting `line-height` in all browsers.
183
+ */
184
+
185
+ sub,
186
+ sup {
187
+ font-size: 75%;
188
+ line-height: 0;
189
+ position: relative;
190
+ vertical-align: baseline;
191
+ }
192
+
193
+ sup {
194
+ top: -0.5em;
195
+ }
196
+
197
+ sub {
198
+ bottom: -0.25em;
199
+ }
200
+
201
+ /* ==========================================================================
202
+ Embedded content
203
+ ========================================================================== */
204
+
205
+ /*
206
+ * Removes border when inside `a` element in IE 8/9.
207
+ */
208
+
209
+ img {
210
+ border: 0;
211
+ height: auto;
212
+ }
213
+
214
+ /*
215
+ * Corrects overflow displayed oddly in IE 9.
216
+ */
217
+
218
+ svg:not(:root) {
219
+ overflow: hidden;
220
+ }
221
+
222
+ /* ==========================================================================
223
+ Figures
224
+ ========================================================================== */
225
+
226
+ /*
227
+ * Addresses margin not present in IE 8/9 and Safari 5.
228
+ */
229
+
230
+ figure {
231
+ margin: 0;
232
+ }
233
+
234
+ /* ==========================================================================
235
+ Forms
236
+ ========================================================================== */
237
+
238
+ /*
239
+ * Define consistent border, margin, and padding.
240
+ */
241
+
242
+ fieldset {
243
+ border: 0;
244
+ margin: 0;
245
+ padding: 0;
246
+ }
247
+
248
+ /*
249
+ * 1. Corrects color not being inherited in IE 8/9.
250
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
251
+ */
252
+
253
+ legend {
254
+ border: 0; /* 1 */
255
+ padding: 0; /* 2 */
256
+ }
257
+
258
+ /*
259
+ * 1. Corrects font family not being inherited in all browsers.
260
+ * 2. Corrects font size not being inherited in all browsers.
261
+ * 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
262
+ */
263
+
264
+ button,
265
+ input,
266
+ select,
267
+ textarea {
268
+ font-family: inherit; /* 1 */
269
+ font-size: 100%; /* 2 */
270
+ margin: 0; /* 3 */
271
+ }
272
+
273
+ /*
274
+ * Addresses Firefox 4+ setting `line-height` on `input` using `!important` in
275
+ * the UA stylesheet.
276
+ */
277
+
278
+ button,
279
+ input {
280
+ line-height: normal;
281
+ }
282
+
283
+ /*
284
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
285
+ * and `video` controls.
286
+ * 2. Corrects inability to style clickable `input` types in iOS.
287
+ * 3. Improves usability and consistency of cursor style between image-type
288
+ * `input` and others.
289
+ */
290
+
291
+ button,
292
+ html input[type="button"], /* 1 */
293
+ input[type="reset"],
294
+ input[type="submit"] {
295
+ -webkit-appearance: button; /* 2 */
296
+ cursor: pointer; /* 3 */
297
+ }
298
+
299
+ /*
300
+ * Re-set default cursor for disabled elements.
301
+ */
302
+
303
+ button[disabled],
304
+ input[disabled] {
305
+ cursor: default;
306
+ }
307
+
308
+ /*
309
+ * 1. Addresses box sizing set to `content-box` in IE 8/9.
310
+ * 2. Removes excess padding in IE 8/9.
311
+ */
312
+
313
+ input[type="checkbox"],
314
+ input[type="radio"] {
315
+ box-sizing: border-box; /* 1 */
316
+ padding: 0; /* 2 */
317
+ }
318
+
319
+ /*
320
+ * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
321
+ * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
322
+ * (include `-moz` to future-proof).
323
+ */
324
+
325
+ input[type="search"] {
326
+ -webkit-appearance: textfield; /* 1 */
327
+ -moz-box-sizing: content-box;
328
+ -webkit-box-sizing: content-box; /* 2 */
329
+ box-sizing: content-box;
330
+ }
331
+
332
+ /*
333
+ * Removes inner padding and search cancel button in Safari 5 and Chrome
334
+ * on OS X.
335
+ */
336
+
337
+ input[type="search"]::-webkit-search-cancel-button,
338
+ input[type="search"]::-webkit-search-decoration {
339
+ -webkit-appearance: none;
340
+ }
341
+
342
+ /*
343
+ * Removes inner padding and border in Firefox 4+.
344
+ */
345
+
346
+ button::-moz-focus-inner,
347
+ input::-moz-focus-inner {
348
+ border: 0;
349
+ padding: 0;
350
+ }
351
+
352
+ /*
353
+ * 1. Removes default vertical scrollbar in IE 8/9.
354
+ * 2. Improves readability and alignment in all browsers.
355
+ */
356
+
357
+ textarea {
358
+ overflow: auto; /* 1 */
359
+ vertical-align: top; /* 2 */
360
+ }
361
+
362
+ /* ==========================================================================
363
+ Tables
364
+ ========================================================================== */
365
+
366
+ /*
367
+ * Remove most spacing between table cells.
368
+ */
369
+
370
+ table {
371
+ border-collapse: collapse;
372
+ border-spacing: 0;
373
+ }
374
+
375
+ // Fluid Media
376
+ img, embed, object, video, iframe { max-width: 100%; }