archetype-utilities 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/archetype-utilities.rb +4 -0
- data/stylesheets/_archetype-utilities.scss +20 -0
- data/stylesheets/archetype-utilities/_accessibility.scss +110 -0
- data/stylesheets/archetype-utilities/_align.scss +32 -0
- data/stylesheets/archetype-utilities/_clearfix.scss +26 -0
- data/stylesheets/archetype-utilities/_helpers.scss +45 -0
- data/stylesheets/archetype-utilities/_ie.scss +32 -0
- data/stylesheets/archetype-utilities/_links.scss +13 -0
- data/stylesheets/archetype-utilities/_lists.scss +16 -0
- data/stylesheets/archetype-utilities/_media.scss +123 -0
- data/stylesheets/archetype-utilities/_normalize.scss +454 -0
- data/stylesheets/archetype-utilities/_pe.scss +135 -0
- data/stylesheets/archetype-utilities/_print.scss +12 -0
- data/stylesheets/archetype-utilities/_pseudo.scss +49 -0
- data/stylesheets/archetype-utilities/_sass-lists.scss +51 -0
- data/stylesheets/archetype-utilities/_triangles.scss +83 -0
- data/stylesheets/archetype-utilities/_typography.scss +62 -0
- data/stylesheets/archetype-utilities/_units.scss +46 -0
- metadata +89 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d737ce0ef3db1e2d9649b1b38e8f546356ebbba8
|
4
|
+
data.tar.gz: 6e76b3cfc110ca9cbfba8172d1c1fcaf7591c286
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7a08cb9d135e5ecfd3c11f224c1283c24e3adcffa29d353b3e54a20136c1a2475786b0ba1958b334e1d7d09df11d0f512f8774cc202975e8a4895dcdaa89b50f
|
7
|
+
data.tar.gz: bda8b1c7ee274ab0c9e1b924ead1e6bd3cca2e7abe37a637b788916756ce9d5041ac857c36c99994434442dfced0941a584a8c46080269dbb423755fef96237f
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* Archetype Utilities
|
3
|
+
*/
|
4
|
+
@import "archetype-utilities/helpers";
|
5
|
+
@import "archetype-utilities/accessibility";
|
6
|
+
@import "archetype-utilities/clearfix";
|
7
|
+
@import "archetype-utilities/triangles";
|
8
|
+
@import "archetype-utilities/units";
|
9
|
+
@import "archetype-utilities/pseudo";
|
10
|
+
@import "archetype-utilities/align";
|
11
|
+
@import "archetype-utilities/normalize";
|
12
|
+
@import "archetype-utilities/media";
|
13
|
+
@import "archetype-utilities/typography";
|
14
|
+
@import "archetype-utilities/print";
|
15
|
+
@import "archetype-utilities/links";
|
16
|
+
@import "archetype-utilities/lists";
|
17
|
+
@import "archetype-utilities/ie";
|
18
|
+
//@import "archetype-utilities/pe";
|
19
|
+
@import "archetype-utilities/sass-lists";
|
20
|
+
|
@@ -0,0 +1,110 @@
|
|
1
|
+
/**
|
2
|
+
* Accessibility
|
3
|
+
*
|
4
|
+
*/
|
5
|
+
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Focus state for keyboard and accessibility
|
9
|
+
*
|
10
|
+
* https://github.com/jlong/sass-twitter-bootstrap/blob/master/lib/_mixins.scss
|
11
|
+
* ex: &:focus { @include tab-focus(); }
|
12
|
+
*/
|
13
|
+
@mixin tab-focus() {
|
14
|
+
// Default
|
15
|
+
outline: thin dotted #333;
|
16
|
+
// Webkit
|
17
|
+
outline: 5px auto -webkit-focus-ring-color;
|
18
|
+
outline-offset: -2px;
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Image Replacement
|
23
|
+
*/
|
24
|
+
@mixin ir() {
|
25
|
+
background-color: transparent;
|
26
|
+
border: 0;
|
27
|
+
overflow: hidden;
|
28
|
+
&:before {
|
29
|
+
content: "";
|
30
|
+
display: block;
|
31
|
+
width: 0;
|
32
|
+
height: 150%;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
%ir {
|
37
|
+
@include ir;
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Hidden
|
42
|
+
*
|
43
|
+
* http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
|
44
|
+
* same as compass: @include hide-text(); which includes a hide-left argument
|
45
|
+
*/
|
46
|
+
@mixin hidden {
|
47
|
+
overflow: hidden;
|
48
|
+
text-indent: 110%;
|
49
|
+
white-space: nowrap;
|
50
|
+
}
|
51
|
+
|
52
|
+
%hidden {
|
53
|
+
@include hidden;
|
54
|
+
}
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Invisable
|
58
|
+
*
|
59
|
+
* Hide from both screenreaders and browsers: h5bp.com/u
|
60
|
+
* http://www.456bereastreet.com/archive/200711/screen_readers_sometimes_ignore_displaynone
|
61
|
+
* http://a11yproject.com/posts/how-to-hide-content
|
62
|
+
*
|
63
|
+
* also consider adding: aria-hidden="true" attribute
|
64
|
+
*/
|
65
|
+
@mixin invisable {
|
66
|
+
display: none !important;
|
67
|
+
visibility: hidden;
|
68
|
+
}
|
69
|
+
|
70
|
+
%hidden {
|
71
|
+
@include hidden;
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Visually Hidden
|
76
|
+
*
|
77
|
+
* Hide only visually, but have it available for screenreaders: h5bp.com/v
|
78
|
+
*
|
79
|
+
* $focus-state argument extends the .visuallyhidden class
|
80
|
+
* allows the element to be focusable when navigated to via the keyboard: h5bp.com/p
|
81
|
+
*/
|
82
|
+
@mixin visually-hidden($focus-state: null) {
|
83
|
+
border: 0;
|
84
|
+
clip: rect(0 0 0 0);
|
85
|
+
height: 1px;
|
86
|
+
margin: -1px;
|
87
|
+
overflow: hidden;
|
88
|
+
padding: 0;
|
89
|
+
position: absolute;
|
90
|
+
width: 1px;
|
91
|
+
@if $focus-state == "focusable" {
|
92
|
+
&:active,
|
93
|
+
&:focus {
|
94
|
+
clip: auto;
|
95
|
+
height: auto;
|
96
|
+
margin: 0;
|
97
|
+
overflow: visible;
|
98
|
+
position: static;
|
99
|
+
width: auto;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
%visuallyhidden {
|
105
|
+
@include visually-hidden;
|
106
|
+
}
|
107
|
+
%visuallyhidden-focusable {
|
108
|
+
@include visually-hidden(focusable);
|
109
|
+
}
|
110
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* Alignment
|
3
|
+
*
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Center-align a block level element
|
8
|
+
*
|
9
|
+
*/
|
10
|
+
@mixin horizontal-center {
|
11
|
+
display: block;
|
12
|
+
margin-left: auto;
|
13
|
+
margin-right: auto;
|
14
|
+
}
|
15
|
+
|
16
|
+
%horizontal-center {
|
17
|
+
@include horizontal-center;
|
18
|
+
}
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Vertical Align of content
|
22
|
+
*
|
23
|
+
* http://css-tricks.com/vertically-center-multi-lined-text/
|
24
|
+
*/
|
25
|
+
@mixin vertical-center {
|
26
|
+
display: table-cell;
|
27
|
+
vertical-align: middle;
|
28
|
+
}
|
29
|
+
|
30
|
+
%vertical-center {
|
31
|
+
@include vertical-center;
|
32
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/**
|
2
|
+
* Clearfix
|
3
|
+
*
|
4
|
+
*/
|
5
|
+
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Modern Clearfix
|
9
|
+
*
|
10
|
+
* no legacy support, but works well for modern browsers and border-box
|
11
|
+
* http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
|
12
|
+
*
|
13
|
+
* see compass docs for legacy clearfix options
|
14
|
+
*/
|
15
|
+
@mixin a-clearfix() {
|
16
|
+
&:after {
|
17
|
+
content: "";
|
18
|
+
display: table;
|
19
|
+
clear: both;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
%cf {
|
24
|
+
@include a-clearfix();
|
25
|
+
}
|
26
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Helper Utilities
|
3
|
+
*
|
4
|
+
*/
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Apply capital case to an element (usually a `strong`).
|
10
|
+
*/
|
11
|
+
.caps {
|
12
|
+
text-transform: uppercase;
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Text Overflow
|
19
|
+
*
|
20
|
+
* Requires inline-block or block for proper styling
|
21
|
+
*/
|
22
|
+
@mixin text-overflow() {
|
23
|
+
overflow: hidden;
|
24
|
+
text-overflow: ellipsis;
|
25
|
+
white-space: nowrap;
|
26
|
+
}
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Drupal Unpublished Node / Comment
|
30
|
+
*
|
31
|
+
* The word "Unpublished" displayed underneath unpublished nodes and comments.
|
32
|
+
* http://drupal.org/project/zen
|
33
|
+
*/
|
34
|
+
@mixin unpublished-div {
|
35
|
+
height: 0;
|
36
|
+
overflow: visible;
|
37
|
+
color: #d8d8d8;
|
38
|
+
font-size: 75px;
|
39
|
+
line-height: 1;
|
40
|
+
font-family: Impact, "Arial Narrow", Helvetica, sans-serif;
|
41
|
+
font-weight: bold;
|
42
|
+
text-transform: uppercase;
|
43
|
+
text-align: center;
|
44
|
+
word-wrap: break-word; // A very nice CSS3 property
|
45
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* IE
|
3
|
+
*
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* nth-child() support for IE7 and 8
|
8
|
+
*
|
9
|
+
* https://github.com/Snugug/toolkit/blob/master/compass/stylesheets/toolkit/_children-of-ie.scss
|
10
|
+
*/
|
11
|
+
@function nth-child($n) {
|
12
|
+
|
13
|
+
// If a single number for nth.
|
14
|
+
@if type-of($n) == number {
|
15
|
+
$nth-child: first-child;
|
16
|
+
@for $i from 2 through $n {
|
17
|
+
$nth-child: append($nth-child, #{"+*"});
|
18
|
+
}
|
19
|
+
@return #{":"}$nth-child;
|
20
|
+
}
|
21
|
+
|
22
|
+
// If a nth-child string, need to parse the string.
|
23
|
+
@else {
|
24
|
+
$n: nth(children-of-ie-nth($n), 1);
|
25
|
+
$nth-child: first-child;
|
26
|
+
@for $i from 2 through $n {
|
27
|
+
$nth-child: append($nth-child, #{"~*"});
|
28
|
+
}
|
29
|
+
@return #{":"}$nth-child;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* List Numbers
|
3
|
+
*
|
4
|
+
* replace OL > LI numbers so they can be styled
|
5
|
+
*/
|
6
|
+
|
7
|
+
@mixin replace-list-numbers($decimal: null) {
|
8
|
+
counter-reset: li;
|
9
|
+
list-style-type: none;
|
10
|
+
li {
|
11
|
+
&:before {
|
12
|
+
content: counter(li) $decimal;
|
13
|
+
counter-increment: li;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,123 @@
|
|
1
|
+
/**
|
2
|
+
* Media
|
3
|
+
*
|
4
|
+
* intrinsic ratio, and hifi
|
5
|
+
*/
|
6
|
+
|
7
|
+
|
8
|
+
/**
|
9
|
+
* hidpi
|
10
|
+
*
|
11
|
+
* media query syntax: http://css-tricks.com/snippets/css/retina-display-media-query/
|
12
|
+
*
|
13
|
+
* 1. recommended values for $resolution: 1, 1.3, 1.5, 2;
|
14
|
+
*/
|
15
|
+
$default-hidpi-ratio: 1.3 !default; /* 1 */
|
16
|
+
|
17
|
+
@mixin hidpi($resolution: $default-hidpi-ratio) {
|
18
|
+
@media
|
19
|
+
only screen and (-webkit-min-device-pixel-ratio: $resolution),
|
20
|
+
only screen and (min-resolution: #{round($resolution * 96 )}dpi) {
|
21
|
+
@content;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Fluid Ratios
|
28
|
+
*
|
29
|
+
* Force an element and its children to hold a fluid ratio
|
30
|
+
* http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
31
|
+
* https://github.com/ericam/accoutrement/blob/master/stylesheets/accoutrement/_media.scss
|
32
|
+
*
|
33
|
+
* also see: jquery solution: http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php
|
34
|
+
*
|
35
|
+
* @include fluid-ratio([$ratio, $width, $children])
|
36
|
+
* $ratio: 16/9, 4/3, 3/2
|
37
|
+
* $width: Fluid width
|
38
|
+
* $children: Child elements to keep within the ratio
|
39
|
+
*
|
40
|
+
* 1. Default fluid ratio
|
41
|
+
* 2. Default fluid ratio width
|
42
|
+
* 3. Child elements to keep within the ratio
|
43
|
+
*/
|
44
|
+
$default-fluid-ratio: 16/9 !default; /* 1 */
|
45
|
+
$default-fluid-ratio-width: 100% !default; /* 2 */
|
46
|
+
$default-fluid-ratio-children: '*' !default; /* 3 */
|
47
|
+
|
48
|
+
@mixin fluid-ratio(
|
49
|
+
$ratio: $default-fluid-ratio,
|
50
|
+
$width: $default-fluid-ratio-width,
|
51
|
+
$children: $default-fluid-ratio-children) {
|
52
|
+
position: relative;
|
53
|
+
height: 0;
|
54
|
+
padding-top: (1 / $ratio) * $width;
|
55
|
+
width: $width;
|
56
|
+
@if $children {
|
57
|
+
> #{$children} {
|
58
|
+
display: block;
|
59
|
+
position: absolute;
|
60
|
+
width: 100%;
|
61
|
+
height: 100%;
|
62
|
+
top: 0;
|
63
|
+
margin: 0;
|
64
|
+
padding: 0;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
/**
|
70
|
+
* Fluid Scaling
|
71
|
+
*
|
72
|
+
* https://github.com/Snugug/toolkit/blob/master/compass/stylesheets/toolkit/_intrinsic-ratio.scss
|
73
|
+
*/
|
74
|
+
|
75
|
+
$intrinsic-ratio: 16/9 !default;
|
76
|
+
$intrinsic-ratio-width: 100% !default;
|
77
|
+
$intrinsic-ratio-elements: '> *' !default;
|
78
|
+
$intrinsic-ratio-extend: true !default;
|
79
|
+
|
80
|
+
@mixin intrinsic-ratio-parent {
|
81
|
+
position: relative;
|
82
|
+
height: 0;
|
83
|
+
}
|
84
|
+
|
85
|
+
@mixin intrinsic-ratio-child {
|
86
|
+
display: block;
|
87
|
+
position: absolute;
|
88
|
+
width: 100% !important; // Nuke the external styles
|
89
|
+
height: 100% !important; // Nuke the external styles
|
90
|
+
top: 0;
|
91
|
+
margin: 0;
|
92
|
+
padding: 0;
|
93
|
+
}
|
94
|
+
|
95
|
+
@mixin intrinsic-ratio($ratio: $intrinsic-ratio, $width: $intrinsic-ratio-width, $elements: $intrinsic-ratio-elements, $extend: $intrinsic-ratio-extend) {
|
96
|
+
@if not $extend {
|
97
|
+
@include intrinsic-ratio-parent;
|
98
|
+
}
|
99
|
+
@else {
|
100
|
+
@extend %intrinsic-ratio-parent;
|
101
|
+
}
|
102
|
+
padding-top: (1 / $ratio) * $width;
|
103
|
+
width: $width;
|
104
|
+
@each $element in $elements {
|
105
|
+
#{$element} {
|
106
|
+
@if not $extend {
|
107
|
+
@include intrinsic-ratio-child;
|
108
|
+
}
|
109
|
+
@else {
|
110
|
+
@extend %intrinsic-ratio-child;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
%intrinsic-ratio-parent {
|
117
|
+
@include intrinsic-ratio-parent;
|
118
|
+
}
|
119
|
+
|
120
|
+
%intrinsic-ratio-child {
|
121
|
+
@include intrinsic-ratio-child;
|
122
|
+
}
|
123
|
+
|
@@ -0,0 +1,454 @@
|
|
1
|
+
/**
|
2
|
+
* Normalize
|
3
|
+
*
|
4
|
+
* normalize.css v2.1.1 | MIT License | git.io/normalize
|
5
|
+
*/
|
6
|
+
|
7
|
+
|
8
|
+
/**
|
9
|
+
* HTML5 Display Definitions
|
10
|
+
*/
|
11
|
+
@mixin normalize-display {
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Corrects `block` display not defined in IE 8/9.
|
15
|
+
*/
|
16
|
+
article,
|
17
|
+
aside,
|
18
|
+
details,
|
19
|
+
figcaption,
|
20
|
+
figure,
|
21
|
+
footer,
|
22
|
+
header,
|
23
|
+
hgroup,
|
24
|
+
nav,
|
25
|
+
section,
|
26
|
+
summary {
|
27
|
+
display: block;
|
28
|
+
}
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Corrects `inline-block` display not defined in IE 8/9.
|
32
|
+
*/
|
33
|
+
audio,
|
34
|
+
canvas,
|
35
|
+
video {
|
36
|
+
display: inline-block;
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Prevents modern browsers from displaying `audio` without controls.
|
41
|
+
* Remove excess height in iOS 5 devices.
|
42
|
+
*/
|
43
|
+
audio:not([controls]) {
|
44
|
+
display: none;
|
45
|
+
height: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Addresses styling for `hidden` attribute not present in IE 8/9.
|
50
|
+
*/
|
51
|
+
[hidden] {
|
52
|
+
display: none;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Page
|
58
|
+
*
|
59
|
+
*/
|
60
|
+
|
61
|
+
@mixin normalize-page() {
|
62
|
+
|
63
|
+
/**
|
64
|
+
* 1. Prevent system color scheme's background color being used in Firefox, IE,
|
65
|
+
* and Opera.
|
66
|
+
* 2. Prevent system color scheme's text color being used in Firefox, IE, and
|
67
|
+
* Opera.
|
68
|
+
* 3. Set default font family to sans-serif
|
69
|
+
* 4. Prevent iOS text size adjust after orientation change, without disabling
|
70
|
+
* user zoom.
|
71
|
+
*/
|
72
|
+
|
73
|
+
html {
|
74
|
+
background: #fff; /* 1 */
|
75
|
+
color: #000; /* 2 */
|
76
|
+
font-family: sans-serif; /* 3 */
|
77
|
+
-ms-text-size-adjust: 100%; /* 4 */
|
78
|
+
-webkit-text-size-adjust: 100%; /* 4 */
|
79
|
+
}
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Removes default margin.
|
83
|
+
*/
|
84
|
+
body {
|
85
|
+
margin: 0;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
/**
|
90
|
+
* Links
|
91
|
+
*/
|
92
|
+
|
93
|
+
@mixin normalize-links {
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Addresses `outline` inconsistency between Chrome and other browsers.
|
97
|
+
*/
|
98
|
+
a:focus {
|
99
|
+
outline: thin dotted;
|
100
|
+
}
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Improves readability when focused and also mouse hovered in all browsers.
|
104
|
+
*/
|
105
|
+
a:active,
|
106
|
+
a:hover {
|
107
|
+
outline: 0;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Typography
|
113
|
+
*/
|
114
|
+
|
115
|
+
@mixin normalize-typography() {
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Addresses `h1` font sizes within `section` and `article` in Firefox 4+, Safari 5, and Chrome.
|
119
|
+
*/
|
120
|
+
h1 {
|
121
|
+
font-size: 2em;
|
122
|
+
margin: 0.67em 0;
|
123
|
+
}
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Addresses styling not present in IE 8/9, Safari 5, and Chrome.
|
127
|
+
*/
|
128
|
+
abbr[title] {
|
129
|
+
border-bottom: 1px dotted;
|
130
|
+
}
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
134
|
+
*/
|
135
|
+
b,
|
136
|
+
strong {
|
137
|
+
font-weight: bold;
|
138
|
+
}
|
139
|
+
|
140
|
+
/**
|
141
|
+
* Addresses styling not present in Safari 5 and Chrome.
|
142
|
+
*/
|
143
|
+
dfn {
|
144
|
+
font-style: italic;
|
145
|
+
}
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Address differences between Firefox and other browsers.
|
149
|
+
*/
|
150
|
+
hr {
|
151
|
+
-moz-box-sizing: content-box;
|
152
|
+
box-sizing: content-box;
|
153
|
+
height: 0;
|
154
|
+
}
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Addresses styling not present in IE 8/9.
|
158
|
+
*/
|
159
|
+
mark {
|
160
|
+
background: #ff0;
|
161
|
+
color: #000;
|
162
|
+
}
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Corrects font family set oddly in Safari 5 and Chrome.
|
166
|
+
*/
|
167
|
+
code,
|
168
|
+
kbd,
|
169
|
+
pre,
|
170
|
+
samp {
|
171
|
+
font-family: monospace;
|
172
|
+
font-size: 1em;
|
173
|
+
}
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Improves readability of pre-formatted text in all browsers.
|
177
|
+
*/
|
178
|
+
pre {
|
179
|
+
white-space: pre;
|
180
|
+
white-space: pre-wrap;
|
181
|
+
word-wrap: break-word;
|
182
|
+
}
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Sets consistent quote types.
|
186
|
+
*/
|
187
|
+
q {
|
188
|
+
quotes: "\201C" "\201D" "\2018" "\2019";
|
189
|
+
}
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Addresses inconsistent and variable font size in all browsers.
|
193
|
+
*/
|
194
|
+
small {
|
195
|
+
font-size: 80%;
|
196
|
+
}
|
197
|
+
|
198
|
+
/**
|
199
|
+
* Prevents `sub` and `sup` affecting `line-height` in all browsers.
|
200
|
+
*/
|
201
|
+
sub,
|
202
|
+
sup {
|
203
|
+
font-size: 75%;
|
204
|
+
line-height: 0;
|
205
|
+
position: relative;
|
206
|
+
vertical-align: baseline;
|
207
|
+
}
|
208
|
+
|
209
|
+
sup {
|
210
|
+
top: -0.5em;
|
211
|
+
}
|
212
|
+
|
213
|
+
sub {
|
214
|
+
bottom: -0.25em;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
/**
|
219
|
+
* Embeded Content
|
220
|
+
*/
|
221
|
+
|
222
|
+
@mixin normalize-embeds {
|
223
|
+
|
224
|
+
/**
|
225
|
+
* Removes border when inside `a` element in IE 8/9.
|
226
|
+
*/
|
227
|
+
img {
|
228
|
+
border: 0;
|
229
|
+
}
|
230
|
+
|
231
|
+
/**
|
232
|
+
* Corrects overflow displayed oddly in IE 9.
|
233
|
+
*/
|
234
|
+
svg:not(:root) {
|
235
|
+
overflow: hidden;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
/**
|
240
|
+
* Figures
|
241
|
+
*/
|
242
|
+
@mixin normalize-figures {
|
243
|
+
/**
|
244
|
+
* Addresses margin not present in IE 8/9 and Safari 5.
|
245
|
+
*/
|
246
|
+
figure {
|
247
|
+
margin: 0;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
/**
|
252
|
+
* Forms
|
253
|
+
*/
|
254
|
+
@mixin normalize-forms() {
|
255
|
+
|
256
|
+
/**
|
257
|
+
* Define consistent border, margin, and padding.
|
258
|
+
*/
|
259
|
+
fieldset {
|
260
|
+
border: 1px solid #c0c0c0;
|
261
|
+
margin: 0 2px;
|
262
|
+
padding: 0.35em 0.62em 0.75em;
|
263
|
+
}
|
264
|
+
|
265
|
+
/**
|
266
|
+
* 1. Corrects color not being inherited in IE 8/9.
|
267
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
268
|
+
*/
|
269
|
+
legend {
|
270
|
+
border: 0; /* 1 */
|
271
|
+
padding: 0; /* 2 */
|
272
|
+
}
|
273
|
+
|
274
|
+
/**
|
275
|
+
* 1. Corrects font family not being inherited in all browsers.
|
276
|
+
* 2. Corrects font size not being inherited in all browsers.
|
277
|
+
* 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
|
278
|
+
*/
|
279
|
+
button,
|
280
|
+
input,
|
281
|
+
select,
|
282
|
+
textarea {
|
283
|
+
font-family: inherit; /* 1 */
|
284
|
+
font-size: 100%; /* 2 */
|
285
|
+
margin: 0; /* 3 */
|
286
|
+
}
|
287
|
+
|
288
|
+
/**
|
289
|
+
* Addresses Firefox 4+ setting `line-height` on `input` using `!important` in the UA stylesheet.
|
290
|
+
*/
|
291
|
+
button,
|
292
|
+
input {
|
293
|
+
line-height: normal;
|
294
|
+
}
|
295
|
+
|
296
|
+
/**
|
297
|
+
* Address inconsistent 'text-transform' inheritance for 'button' and 'select'.
|
298
|
+
* All lother form control elements do not inherit 'text-transform' values.
|
299
|
+
* Correct 'button' style inheritance in Chrome, Safari 5+, and IE 8+.
|
300
|
+
* Correct 'select' style inheritance in Firefox 4+ and Opera
|
301
|
+
*/
|
302
|
+
button,
|
303
|
+
select {
|
304
|
+
text-transform: none;
|
305
|
+
}
|
306
|
+
|
307
|
+
/**
|
308
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
|
309
|
+
* 2. Corrects inability to style clickable `input` types in iOS.
|
310
|
+
* 3. Improves usability and consistency of cursor style between image-type `input` and others.
|
311
|
+
*/
|
312
|
+
button,
|
313
|
+
html input[type="button"], /* 1 */
|
314
|
+
input[type="reset"],
|
315
|
+
input[type="submit"] {
|
316
|
+
-webkit-appearance: button; /* 2 */
|
317
|
+
cursor: pointer; /* 3 */
|
318
|
+
}
|
319
|
+
|
320
|
+
/**
|
321
|
+
* Re-set default cursor for disabled elements.
|
322
|
+
*/
|
323
|
+
button[disabled],
|
324
|
+
input[disabled] {
|
325
|
+
cursor: default;
|
326
|
+
}
|
327
|
+
/**
|
328
|
+
* 1. Addresses box sizing set to `content-box` in IE 8/9.
|
329
|
+
* 2. Removes excess padding in IE 8/9.
|
330
|
+
*/
|
331
|
+
input[type="checkbox"],
|
332
|
+
input[type="radio"] {
|
333
|
+
box-sizing: border-box; /* 1 */
|
334
|
+
padding: 0; /* 2 */
|
335
|
+
}
|
336
|
+
/**
|
337
|
+
* 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
|
338
|
+
* 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome (include `-moz` to future-proof).
|
339
|
+
*/
|
340
|
+
input[type="search"] {
|
341
|
+
-webkit-appearance: textfield; /* 1 */
|
342
|
+
-moz-box-sizing: content-box;
|
343
|
+
-webkit-box-sizing: content-box; /* 2 */
|
344
|
+
box-sizing: content-box;
|
345
|
+
}
|
346
|
+
|
347
|
+
/**
|
348
|
+
* Removes inner padding and search cancel button in Safari 5 and Chrome on OS X.
|
349
|
+
*/
|
350
|
+
input[type="search"]::-webkit-search-cancel-button,
|
351
|
+
input[type="search"]::-webkit-search-decoration {
|
352
|
+
-webkit-appearance: none;
|
353
|
+
}
|
354
|
+
|
355
|
+
/**
|
356
|
+
* Removes inner padding and border in Firefox 4+.
|
357
|
+
*/
|
358
|
+
button::-moz-focus-inner,
|
359
|
+
input::-moz-focus-inner {
|
360
|
+
border: 0;
|
361
|
+
padding: 0;
|
362
|
+
}
|
363
|
+
|
364
|
+
/**
|
365
|
+
* 1. Removes default vertical scrollbar in IE 8/9.
|
366
|
+
* 2. Improves readability and alignment in all browsers.
|
367
|
+
*/
|
368
|
+
textarea {
|
369
|
+
overflow: auto; /* 1 */
|
370
|
+
vertical-align: top; /* 2 */
|
371
|
+
}
|
372
|
+
}
|
373
|
+
|
374
|
+
/**
|
375
|
+
* Tables
|
376
|
+
*
|
377
|
+
*/
|
378
|
+
@mixin normalize-tables {
|
379
|
+
|
380
|
+
/**
|
381
|
+
* Remove most spacing between table cells.
|
382
|
+
*/
|
383
|
+
table {
|
384
|
+
border-collapse: collapse;
|
385
|
+
border-spacing: 0;
|
386
|
+
}
|
387
|
+
}
|
388
|
+
|
389
|
+
|
390
|
+
/**
|
391
|
+
* non-Normalize additions
|
392
|
+
*
|
393
|
+
*/
|
394
|
+
|
395
|
+
/**
|
396
|
+
* Box Model
|
397
|
+
*
|
398
|
+
* Apply natural box-model to all elements (ie8+ only)
|
399
|
+
* http://paulirish.com/2012/box-sizing-border-box-ftw/
|
400
|
+
*/
|
401
|
+
@mixin normalize-box-model {
|
402
|
+
*,
|
403
|
+
*:after,
|
404
|
+
*:before {
|
405
|
+
-moz-box-sizing: border-box;
|
406
|
+
-webkit-box-sizing: border-box;
|
407
|
+
box-sizing: border-box;
|
408
|
+
}
|
409
|
+
}
|
410
|
+
|
411
|
+
|
412
|
+
@mixin normalize-highlights() {
|
413
|
+
|
414
|
+
/**
|
415
|
+
* Tap Highlight Color
|
416
|
+
*
|
417
|
+
* https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
|
418
|
+
*/
|
419
|
+
html {
|
420
|
+
-webkit-tap-highlight-color: #fe57a1;
|
421
|
+
}
|
422
|
+
/**
|
423
|
+
* Text Selection
|
424
|
+
*
|
425
|
+
* Remove text-shadow in selection highlight. These selection declarations have to be separate
|
426
|
+
* https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
|
427
|
+
*/
|
428
|
+
::-moz-selection {
|
429
|
+
background: #fe57a1;
|
430
|
+
color: white;
|
431
|
+
text-shadow: none;
|
432
|
+
}
|
433
|
+
::selection {
|
434
|
+
background: #fe57a1;
|
435
|
+
color: white;
|
436
|
+
text-shadow: none;
|
437
|
+
}
|
438
|
+
}
|
439
|
+
|
440
|
+
@mixin normalize-chromeframe() {
|
441
|
+
|
442
|
+
/**
|
443
|
+
* Chrome Frame Prompt
|
444
|
+
*
|
445
|
+
* https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
|
446
|
+
*/
|
447
|
+
.chromeframe {
|
448
|
+
margin: 0.2em 0;
|
449
|
+
background: #ccc;
|
450
|
+
color: #000;
|
451
|
+
padding: 0.2em 0;
|
452
|
+
}
|
453
|
+
}
|
454
|
+
|