normalize-scss 3.0.0.alpha.1 → 3.0.0.alpha.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -15
- data/CONTRIBUTING.md +1 -1
- data/README.md +24 -18
- data/_normalize.scss +376 -349
- data/normalize-scss.gemspec +7 -10
- metadata +11 -12
- data/bower.json +0 -26
- data/component.json +0 -9
- data/test.html +0 -360
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d45d794b5591a510f433b3b9d692650432b3e09a
|
|
4
|
+
data.tar.gz: b770074d637693024fc353dda98a6957db991a23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce9187f6c5c387c51d01416b20fa9ee06472e53c157966d6eb88885aa7b72f426fabd9f87d5e3840dc2534e8e6185b07a1a22db1b2c6f140ad1820e621ac9bc1
|
|
7
|
+
data.tar.gz: abdf52c1ccdfdcbac305a5d16bc0bae0b1c9d966bb34815cdd975c2f654512f79a7dcb56b95651b3b67d351c5e43b1521fdb1ae69759f2c72f9cfc06ae337235
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
===
|
|
1
|
+
=== normalize-scss 3.0.0-alpha.2+normalize.3.0.0 (February 11, 2014)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
* Upgrade to Normalize.css 3.0.0.
|
|
4
|
+
* Add additional support-legacy-browser() so IE 8/9/10 and Safari 5 support can be removed.
|
|
5
|
+
|
|
6
|
+
=== normalize-scss 3.0.0-alpha.1+normalize.2.1.3 (January 22, 2014)
|
|
4
7
|
|
|
5
8
|
* Upgrade to Compass 1.0's support module.
|
|
6
9
|
* Use Compass 1.0.0's improved establish-baseline() mixin.
|
|
@@ -9,21 +12,40 @@
|
|
|
9
12
|
* Fix a bug in Compass 1.0.0-alpha.17 by overriding its support-legacy-browser() function.
|
|
10
13
|
* Font size of "code, kbd, pre, samp" should always be 1em relative to parent.
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
|
|
16
|
+
== normalize.css change log
|
|
17
|
+
|
|
18
|
+
=== normalize.css 3.0.0 (January 28, 2014)
|
|
19
|
+
|
|
20
|
+
* Explicit tests for each normalization.
|
|
21
|
+
* Fix i18n for `q` element.
|
|
22
|
+
* Fix `pre` text formatting and overflow.
|
|
23
|
+
* Fix vertical alignment of `progress`.
|
|
24
|
+
* Address `button` overflow in IE 8/9/10.
|
|
25
|
+
* Revert `textarea` alignment modification.
|
|
26
|
+
* Fix number input button cursor in Chrome on OS X.
|
|
27
|
+
* Remove `a:focus` outline normalization.
|
|
28
|
+
* Fix `figure` margin normalization.
|
|
29
|
+
* Normalize `optgroup`.
|
|
30
|
+
* Remove default table cell padding.
|
|
31
|
+
* Set correct display for `progress` in IE 8/9.
|
|
32
|
+
* Fix `font` and `color` inheritance for forms.
|
|
33
|
+
|
|
34
|
+
=== normalize.css 2.1.3 (August 26, 2013)
|
|
13
35
|
|
|
14
36
|
* Fix component.json.
|
|
15
37
|
* Remove the gray background color from active links in IE 10.
|
|
16
38
|
|
|
17
|
-
=== 2.1.2 (May 11, 2013)
|
|
39
|
+
=== normalize.css 2.1.2 (May 11, 2013)
|
|
18
40
|
|
|
19
41
|
* Revert root `color` and `background` normalizations.
|
|
20
42
|
|
|
21
|
-
=== 2.1.1 (April 8, 2013)
|
|
43
|
+
=== normalize.css 2.1.1 (April 8, 2013)
|
|
22
44
|
|
|
23
45
|
* Normalize root `color` and `background` to counter the effects of system
|
|
24
46
|
color schemes.
|
|
25
47
|
|
|
26
|
-
=== 2.1.0 (January 21, 2013)
|
|
48
|
+
=== normalize.css 2.1.0 (January 21, 2013)
|
|
27
49
|
|
|
28
50
|
* Normalize `text-transform` for `button` and `select`.
|
|
29
51
|
* Normalize `h1` margin when within HTML5 sectioning elements.
|
|
@@ -32,11 +54,11 @@
|
|
|
32
54
|
* Add `main` element to HTML5 display definitions.
|
|
33
55
|
* Fix cursor style for disabled button `input`.
|
|
34
56
|
|
|
35
|
-
=== 2.0.1 (August 20, 2012)
|
|
57
|
+
=== normalize.css 2.0.1 (August 20, 2012)
|
|
36
58
|
|
|
37
59
|
* Remove stray IE 6/7 `inline-block` hack from HTML5 display settings.
|
|
38
60
|
|
|
39
|
-
=== 2.0.0 (August 19, 2012)
|
|
61
|
+
=== normalize.css 2.0.0 (August 19, 2012)
|
|
40
62
|
|
|
41
63
|
* Remove legacy browser form normalizations.
|
|
42
64
|
* Remove all list normalizations.
|
|
@@ -45,35 +67,35 @@
|
|
|
45
67
|
* Form elements automatically inherit `font-family` from ancestor.
|
|
46
68
|
* Drop support for IE 6/7, Firefox < 4, and Safari < 5.
|
|
47
69
|
|
|
48
|
-
=== 1.1.3 (August 30, 2013)
|
|
70
|
+
=== normalize.css 1.1.3 (August 30, 2013)
|
|
49
71
|
|
|
50
72
|
* Update component.json to fit new specification
|
|
51
73
|
|
|
52
|
-
=== 1.1.2 (May 11, 2013)
|
|
74
|
+
=== normalize.css 1.1.2 (May 11, 2013)
|
|
53
75
|
|
|
54
76
|
* Revert root `color` and `background` normalizations.
|
|
55
77
|
|
|
56
|
-
=== 1.1.1 (April 8, 2013)
|
|
78
|
+
=== normalize.css 1.1.1 (April 8, 2013)
|
|
57
79
|
|
|
58
80
|
* Normalize root `color` and `background` to counter the effects of system
|
|
59
81
|
color schemes.
|
|
60
82
|
|
|
61
|
-
=== 1.1.0 (January 21, 2013)
|
|
83
|
+
=== normalize.css 1.1.0 (January 21, 2013)
|
|
62
84
|
|
|
63
85
|
* Normalize `text-transform` for `button` and `select`.
|
|
64
86
|
* Normalize `hr` element (excluding IE 6/7).
|
|
65
87
|
* Add `main` element to HTML5 display definitions.
|
|
66
88
|
* Fix cursor style for disabled button `input`.
|
|
67
89
|
|
|
68
|
-
=== 1.0.2 (November 17, 2012)
|
|
90
|
+
=== normalize.css 1.0.2 (November 17, 2012)
|
|
69
91
|
|
|
70
92
|
* Correct `h6` font size normalization.
|
|
71
93
|
|
|
72
|
-
=== 1.0.1 (August 19, 2012)
|
|
94
|
+
=== normalize.css 1.0.1 (August 19, 2012)
|
|
73
95
|
|
|
74
96
|
* Adjust `small` font size normalization.
|
|
75
97
|
|
|
76
|
-
=== 1.0.0 (August 14, 2012)
|
|
98
|
+
=== normalize.css 1.0.0 (August 14, 2012)
|
|
77
99
|
|
|
78
100
|
(Only the notable changes since public release)
|
|
79
101
|
|
data/CONTRIBUTING.md
CHANGED
|
@@ -172,6 +172,6 @@ cutting new releases.
|
|
|
172
172
|
added to the CHANGELOG (inc. date), and the `bower.json`, `component.json`,
|
|
173
173
|
and `normalize.css` files.
|
|
174
174
|
3. The commit message must be of `v0.0.0` format.
|
|
175
|
-
4. Create an annotated tag for the version: `git tag -m "v0.0.0"
|
|
175
|
+
4. Create an annotated tag for the version: `git tag -m "v0.0.0" 0.0.0`.
|
|
176
176
|
5. Push the changes and tags to GitHub: `git push --tags origin master`
|
|
177
177
|
6. Checkout the `gh-pages` branch and follow the instructions in the README.
|
data/README.md
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
## Latest downloadable version
|
|
2
2
|
|
|
3
|
-
The latest release of _normalize.scss for Sass 3.3 and Compass 1.0 is: [3.0.0-alpha.
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
The latest release of _normalize.scss for Sass 3.3 and Compass 1.0 is: [3.0.0-alpha.2+normalize.3.0.0](https://github.com/JohnAlbin/normalize-scss/releases/tag/3.0.0-alpha.2%2Bnormalize.3.0.0).
|
|
4
|
+
It combines normalize.css v3.0.0 and normalize v1.1.3.
|
|
5
|
+
|
|
6
|
+
The latest release of _normalize.scss for Sass 3.2 and Compass 0.12 is: [2.2.0+normalize.2.1.3(https://github.com/JohnAlbin/normalize-scss/releases/tag/2.2.0%2Bnormalize.2.1.3).
|
|
7
|
+
It combines normalize.css v2.1.3 and normalize v1.1.3.
|
|
6
8
|
|
|
7
9
|
## The Compass port of normalize.css
|
|
8
10
|
|
|
9
|
-
__This project is the Sass/Compass
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
__This project is the Sass/Compass version of Normalize.css__, a collection of HTML
|
|
12
|
+
element and attribute rulesets to normalize styles across all browsers. This
|
|
13
|
+
port aims to use the best partials from Compass to make Normalize even easier to
|
|
14
|
+
integrate with your website. To learn about why Normalize.css is so amazing,
|
|
15
|
+
skip to the "normalize.css" section below.
|
|
13
16
|
|
|
14
17
|
This Sass/Compass port currently utilizes:
|
|
15
18
|
|
|
@@ -25,7 +28,7 @@ the two versions using Compass' `$legacy-support-for-ie7` variable.
|
|
|
25
28
|
Did a client wait until the last minute to mention their CEO uses IE 7? Simply
|
|
26
29
|
set `$legacy-support-for-ie7` to `true` and recompile your Sass files.
|
|
27
30
|
|
|
28
|
-
# normalize.css
|
|
31
|
+
# normalize.css v3
|
|
29
32
|
|
|
30
33
|
Normalize.css is a customisable CSS file that makes browsers render all
|
|
31
34
|
elements more consistently and in line with modern standards.
|
|
@@ -34,17 +37,19 @@ The project relies on researching the differences between default browser
|
|
|
34
37
|
styles in order to precisely target only the styles that need or benefit from
|
|
35
38
|
normalizing.
|
|
36
39
|
|
|
37
|
-
[
|
|
40
|
+
[View the test file](http://necolas.github.io/normalize.css/latest/test.html)
|
|
38
41
|
|
|
39
42
|
## Install
|
|
40
43
|
|
|
41
44
|
Install using one of the following methods:
|
|
42
45
|
|
|
43
|
-
Download from the [project page](https://github.com/JohnAlbin/normalize
|
|
46
|
+
Download from the [project page](https://github.com/JohnAlbin/normalize-scss/releases).
|
|
47
|
+
|
|
48
|
+
Install with [Bower](http://bower.io/): `bower install --save normalize.scss` (or to install the latest pre-release version: `bower install --save normalize.scss#3.0.0-alpha.2+normalize.3.0.0`)
|
|
44
49
|
|
|
45
|
-
Install with [
|
|
50
|
+
Install with [Component(1)](http://component.io/): `component install JohnAlbin/normalize-scss`
|
|
46
51
|
|
|
47
|
-
Install with [
|
|
52
|
+
Install with [Ruby Gem](https://rubygems.org/gems/normalize-scss): `sudo gem install normalize-scss` (or to install the latest pre-release version: `sudo gem install --pre normalize-scss`)
|
|
48
53
|
|
|
49
54
|
## What does it do?
|
|
50
55
|
|
|
@@ -71,10 +76,11 @@ the defaults later in your Sass if necessary.
|
|
|
71
76
|
|
|
72
77
|
## Browser support
|
|
73
78
|
|
|
74
|
-
* Google Chrome
|
|
75
|
-
* Mozilla Firefox
|
|
76
|
-
*
|
|
77
|
-
* Opera
|
|
79
|
+
* Google Chrome (latest)
|
|
80
|
+
* Mozilla Firefox (latest)
|
|
81
|
+
* Mozilla Firefox 4
|
|
82
|
+
* Opera (latest)
|
|
83
|
+
* Apple Safari 6+
|
|
78
84
|
* Internet Explorer 8+
|
|
79
85
|
* Internet Explorer 6-7 (when `$legacy-support-for-ie7` or
|
|
80
86
|
`$legacy-support-for-ie6` is set to `true`)
|
|
@@ -90,7 +96,7 @@ guidelines](CONTRIBUTING.md).
|
|
|
90
96
|
|
|
91
97
|
Updates to most CSS rules should be reported to Necolas' upstream [Normalize.css
|
|
92
98
|
project](http://necolas.github.com/normalize.css/). Updates to the Sass should
|
|
93
|
-
be reported in the [Normalize
|
|
99
|
+
be reported in the [Normalize-scss project](https://github.com/JohnAlbin/normalize-scss/).
|
|
94
100
|
|
|
95
101
|
## Acknowledgements
|
|
96
102
|
|
|
@@ -113,4 +119,4 @@ Some of the above projects convert normalize into Sass mixins. That makes it
|
|
|
113
119
|
impossible to add Normalize using __Approach 1__ (by copying the file into your website
|
|
114
120
|
and customizing/overriding for your needs.)
|
|
115
121
|
|
|
116
|
-
[](https://travis-ci.org/JohnAlbin/normalize-scss)
|
data/_normalize.scss
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* normalize
|
|
1
|
+
/* normalize-scss 3.0.0-alpha.2+normalize.3.0.0 | MIT/GPLv2 License | bit.ly/normalize-scss */
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
// =============================================================================
|
|
5
4
|
// Variables and Imports
|
|
6
5
|
//
|
|
7
6
|
// If you have a base partial (or equivalent), you should move these lines to
|
|
@@ -11,28 +10,28 @@
|
|
|
11
10
|
|
|
12
11
|
// These 3 variables are copies of ones used in Compass' Vertical Rhythm module.
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
// The base font size.
|
|
14
|
+
$base-font-size: 16px !default;
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
// The base line height determines the basic unit of vertical rhythm.
|
|
17
|
+
$base-line-height: 24px !default;
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
// The length unit in which to output vertical rhythm values.
|
|
20
|
+
// Supported values: px, em, rem.
|
|
21
|
+
$rhythm-unit: 'em' !default;
|
|
23
22
|
|
|
24
23
|
// This variable is a copy of the one used in Compass' support module.
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
// Optional map of minimum browser versions to support. For example, to
|
|
26
|
+
// remove support for IE 7 and earlier, set $browser-minimum-versions['ie']
|
|
27
|
+
// to '8'.
|
|
28
|
+
$browser-minimum-versions: (
|
|
29
|
+
'chrome': null,
|
|
30
|
+
'firefox': null,
|
|
31
|
+
'ie': null,
|
|
32
|
+
'safari': null,
|
|
33
|
+
'opera': null
|
|
34
|
+
) !default;
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
// Set this to true to force CSS output to exactly match normalize.css.
|
|
@@ -58,10 +57,11 @@ $indent-amount: 40px !default;
|
|
|
58
57
|
@import "compass/typography/vertical_rhythm";
|
|
59
58
|
|
|
60
59
|
|
|
61
|
-
// To work around a bug in
|
|
60
|
+
// To work around a bug in compass-core 1.0.0-alpha.17, we override Compass'
|
|
62
61
|
// support-legacy-browser() function with a version of our own.
|
|
63
62
|
// @TODO Remove this monkey patch after it's fixed in Compass.
|
|
64
63
|
// @see https://github.com/chriseppstein/compass/pull/1524
|
|
64
|
+
// @see also https://github.com/chriseppstein/compass/pull/1520
|
|
65
65
|
@function support-legacy-browser($browser, $min-version, $max-version: null, $threshold: $critical-usage-threshold) {
|
|
66
66
|
@if not index($supported-browsers, $browser) {
|
|
67
67
|
@return false;
|
|
@@ -79,12 +79,47 @@ $indent-amount: 40px !default;
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
/*
|
|
83
|
-
|
|
82
|
+
/* Base
|
|
83
|
+
========================================================================== */
|
|
84
|
+
|
|
85
|
+
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
|
86
|
+
/**
|
|
87
|
+
* Establish a vertical rhythm unit using $base-font-size, $base-line-height,
|
|
88
|
+
* and $rhythm-unit variables. Also, correct text resizing oddly in IE 6/7 when
|
|
89
|
+
* body `font-size` is set using `em` units.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
@include establish-baseline();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 1. Set default font family to sans-serif.
|
|
97
|
+
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
|
98
|
+
* user zoom.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
html {
|
|
102
|
+
font-family: $base-font-family; /* 1 */
|
|
103
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
|
104
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
105
|
+
// Show a background image that can be used to debug your alignments.
|
|
106
|
+
// @include debug-vertical-alignment();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Remove default margin.
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
body {
|
|
114
|
+
margin: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* HTML5 display definitions
|
|
84
118
|
========================================================================== */
|
|
85
119
|
|
|
86
120
|
/**
|
|
87
|
-
* Correct `block` display not defined in IE 8/9.
|
|
121
|
+
* Correct `block` display not defined in IE 8/9. Correct `block` display
|
|
122
|
+
* not defined on `summary` and `details` in IE and Firefox and on `main` in IE.
|
|
88
123
|
*/
|
|
89
124
|
|
|
90
125
|
article,
|
|
@@ -99,21 +134,26 @@ main,
|
|
|
99
134
|
nav,
|
|
100
135
|
section,
|
|
101
136
|
summary {
|
|
102
|
-
|
|
137
|
+
display: block;
|
|
103
138
|
}
|
|
104
139
|
|
|
105
140
|
/**
|
|
106
|
-
* Correct `inline-block` display not defined in IE 8/9.
|
|
141
|
+
* 1. Correct `inline-block` display not defined in IE 8/9.
|
|
142
|
+
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
|
107
143
|
*/
|
|
108
144
|
|
|
109
145
|
audio,
|
|
110
146
|
canvas,
|
|
147
|
+
progress,
|
|
111
148
|
video {
|
|
112
|
-
|
|
149
|
+
@if support-legacy-browser(ie, "9") {
|
|
150
|
+
display: inline-block; /* 1 */
|
|
113
151
|
@if support-legacy-browser(ie, "7") {
|
|
114
|
-
|
|
115
|
-
|
|
152
|
+
*display: inline;
|
|
153
|
+
*zoom: 1;
|
|
116
154
|
}
|
|
155
|
+
}
|
|
156
|
+
vertical-align: baseline; /* 2 */
|
|
117
157
|
}
|
|
118
158
|
|
|
119
159
|
/**
|
|
@@ -122,117 +162,101 @@ video {
|
|
|
122
162
|
*/
|
|
123
163
|
|
|
124
164
|
audio:not([controls]) {
|
|
165
|
+
display: none;
|
|
166
|
+
height: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@if support-legacy-browser(ie, "10") {
|
|
170
|
+
/**
|
|
171
|
+
* Address `[hidden]` styling not present in IE 8/9/10.
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
[hidden] {
|
|
125
175
|
display: none;
|
|
126
|
-
|
|
176
|
+
}
|
|
127
177
|
}
|
|
128
178
|
|
|
129
179
|
/**
|
|
130
|
-
* Address `[hidden]` styling not present in IE 8/9.
|
|
131
180
|
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
|
132
181
|
*/
|
|
133
182
|
|
|
134
|
-
[hidden],
|
|
135
183
|
template {
|
|
136
|
-
|
|
184
|
+
display: none;
|
|
137
185
|
}
|
|
138
186
|
|
|
139
|
-
/*
|
|
140
|
-
Base
|
|
187
|
+
/* Links
|
|
141
188
|
========================================================================== */
|
|
142
189
|
|
|
143
|
-
@if
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
* body `font-size` is set using `em` units.
|
|
148
|
-
*/
|
|
190
|
+
@if support-legacy-browser(ie, "10") {
|
|
191
|
+
/**
|
|
192
|
+
* Remove the gray background color from active links in IE 10.
|
|
193
|
+
*/
|
|
149
194
|
|
|
150
|
-
|
|
195
|
+
a {
|
|
196
|
+
background: transparent;
|
|
197
|
+
}
|
|
151
198
|
}
|
|
152
199
|
|
|
153
200
|
/**
|
|
154
|
-
*
|
|
155
|
-
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
|
156
|
-
* user zoom.
|
|
201
|
+
* Improve readability when focused and also mouse hovered in all browsers.
|
|
157
202
|
*/
|
|
158
203
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
-webkit-text-size-adjust: 100%; /* 2 */
|
|
163
|
-
// Show a background image that can be used to debug your alignments.
|
|
164
|
-
// @include debug-vertical-alignment();
|
|
204
|
+
a:active,
|
|
205
|
+
a:hover {
|
|
206
|
+
outline: 0;
|
|
165
207
|
}
|
|
166
208
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
* Address `font-family` inconsistency between `textarea` and other form
|
|
170
|
-
* elements.
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
|
-
button,
|
|
174
|
-
input,
|
|
175
|
-
select,
|
|
176
|
-
textarea {
|
|
177
|
-
font-family: $base-font-family;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
209
|
+
/* Text-level semantics
|
|
210
|
+
========================================================================== */
|
|
180
211
|
|
|
181
212
|
/**
|
|
182
|
-
*
|
|
213
|
+
* Address styling not present in IE, Safari 5, and Chrome.
|
|
183
214
|
*/
|
|
184
215
|
|
|
185
|
-
|
|
186
|
-
|
|
216
|
+
abbr[title] {
|
|
217
|
+
border-bottom: 1px dotted;
|
|
187
218
|
}
|
|
188
219
|
|
|
189
|
-
/* ==========================================================================
|
|
190
|
-
Links
|
|
191
|
-
========================================================================== */
|
|
192
|
-
|
|
193
220
|
/**
|
|
194
|
-
*
|
|
221
|
+
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
|
195
222
|
*/
|
|
196
223
|
|
|
197
|
-
|
|
198
|
-
|
|
224
|
+
b,
|
|
225
|
+
strong {
|
|
226
|
+
font-weight: bold;
|
|
199
227
|
}
|
|
200
228
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
229
|
+
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
|
230
|
+
/**
|
|
231
|
+
* Set 1 unit of vertical rhythm on the top and bottom margin.
|
|
232
|
+
*/
|
|
204
233
|
|
|
205
|
-
|
|
206
|
-
|
|
234
|
+
blockquote {
|
|
235
|
+
margin: rhythm(1) $indent-amount;
|
|
236
|
+
}
|
|
207
237
|
}
|
|
208
238
|
|
|
209
239
|
/**
|
|
210
|
-
*
|
|
240
|
+
* Address odd `em`-unit font size rendering in all browsers.
|
|
211
241
|
*/
|
|
212
242
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
243
|
+
code,
|
|
244
|
+
kbd,
|
|
245
|
+
pre,
|
|
246
|
+
samp {
|
|
247
|
+
font-family: monospace, serif;
|
|
248
|
+
@if support-legacy-browser(ie, "6") {
|
|
249
|
+
_font-family: 'courier new', monospace;
|
|
250
|
+
}
|
|
251
|
+
font-size: 1em;
|
|
216
252
|
}
|
|
217
253
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
|
223
|
-
/**
|
|
224
|
-
* Set 1 unit of vertical rhythm on the top and bottom margin.
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
|
-
p,
|
|
228
|
-
pre {
|
|
229
|
-
margin: rhythm(1) 0;
|
|
230
|
-
}
|
|
254
|
+
/**
|
|
255
|
+
* Address styling not present in Safari 5 and Chrome.
|
|
256
|
+
*/
|
|
231
257
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
margin: rhythm(1) $indent-amount;
|
|
235
|
-
}
|
|
258
|
+
dfn {
|
|
259
|
+
font-style: italic;
|
|
236
260
|
}
|
|
237
261
|
|
|
238
262
|
/**
|
|
@@ -241,130 +265,79 @@ a:hover {
|
|
|
241
265
|
*/
|
|
242
266
|
|
|
243
267
|
h1 {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
268
|
+
/* Set the font-size and line-height while keeping a proper vertical rhythm. */
|
|
269
|
+
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
|
270
|
+
@include adjust-font-size-to( $h1-font-size );
|
|
271
|
+
}
|
|
272
|
+
@else {
|
|
273
|
+
font-size: if($rhythm-unit == "px", $h1-font-size, ($h1-font-size / $base-font-size)#{$rhythm-unit});
|
|
274
|
+
}
|
|
251
275
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
276
|
+
/* Set 1 unit of vertical rhythm on the top and bottom margins. */
|
|
277
|
+
@include leader(1, $h1-font-size);
|
|
278
|
+
@include trailer(1, $h1-font-size);
|
|
255
279
|
}
|
|
256
280
|
|
|
257
281
|
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
h3 {
|
|
265
|
-
@include adjust-font-size-to( $h3-font-size );
|
|
266
|
-
@include leader(1, $h3-font-size);
|
|
267
|
-
@include trailer(1, $h3-font-size);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
h4 {
|
|
271
|
-
@include adjust-font-size-to( $h4-font-size );
|
|
272
|
-
@include leader(1, $h4-font-size);
|
|
273
|
-
@include trailer(1, $h4-font-size);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
h5 {
|
|
277
|
-
@include adjust-font-size-to( $h5-font-size );
|
|
278
|
-
@include leader(1, $h5-font-size);
|
|
279
|
-
@include trailer(1, $h5-font-size);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
h6 {
|
|
283
|
-
@include adjust-font-size-to( $h6-font-size );
|
|
284
|
-
@include leader(1, $h6-font-size);
|
|
285
|
-
@include trailer(1, $h6-font-size);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Address styling not present in IE 8/9, Safari 5, and Chrome.
|
|
291
|
-
*/
|
|
292
|
-
|
|
293
|
-
abbr[title] {
|
|
294
|
-
border-bottom: 1px dotted;
|
|
295
|
-
}
|
|
282
|
+
h2 {
|
|
283
|
+
@include adjust-font-size-to( $h2-font-size );
|
|
284
|
+
@include leader(1, $h2-font-size);
|
|
285
|
+
@include trailer(1, $h2-font-size);
|
|
286
|
+
}
|
|
296
287
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
288
|
+
h3 {
|
|
289
|
+
@include adjust-font-size-to( $h3-font-size );
|
|
290
|
+
@include leader(1, $h3-font-size);
|
|
291
|
+
@include trailer(1, $h3-font-size);
|
|
292
|
+
}
|
|
300
293
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
font-
|
|
304
|
-
|
|
294
|
+
h4 {
|
|
295
|
+
@include adjust-font-size-to( $h4-font-size );
|
|
296
|
+
@include leader(1, $h4-font-size);
|
|
297
|
+
@include trailer(1, $h4-font-size);
|
|
298
|
+
}
|
|
305
299
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
300
|
+
h5 {
|
|
301
|
+
@include adjust-font-size-to( $h5-font-size );
|
|
302
|
+
@include leader(1, $h5-font-size);
|
|
303
|
+
@include trailer(1, $h5-font-size);
|
|
304
|
+
}
|
|
309
305
|
|
|
310
|
-
|
|
311
|
-
font-
|
|
306
|
+
h6 {
|
|
307
|
+
@include adjust-font-size-to( $h6-font-size );
|
|
308
|
+
@include leader(1, $h6-font-size);
|
|
309
|
+
@include trailer(1, $h6-font-size);
|
|
310
|
+
}
|
|
312
311
|
}
|
|
313
312
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
hr {
|
|
319
|
-
@include box-sizing(content-box);
|
|
320
|
-
height: 0;
|
|
321
|
-
}
|
|
313
|
+
@if support-legacy-browser(ie, "9") {
|
|
314
|
+
/**
|
|
315
|
+
* Address styling not present in IE 8/9.
|
|
316
|
+
*/
|
|
322
317
|
|
|
323
|
-
|
|
324
|
-
* Address styling not present in IE 8/9.
|
|
325
|
-
*/
|
|
326
|
-
|
|
327
|
-
mark {
|
|
318
|
+
mark {
|
|
328
319
|
background: #ff0;
|
|
329
320
|
color: #000;
|
|
321
|
+
}
|
|
330
322
|
}
|
|
331
323
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
324
|
+
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
|
325
|
+
/**
|
|
326
|
+
* Set 1 unit of vertical rhythm on the top and bottom margin.
|
|
327
|
+
*/
|
|
335
328
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
font-family: monospace, serif;
|
|
341
|
-
@if support-legacy-browser(ie, "6") {
|
|
342
|
-
_font-family: 'courier new', monospace;
|
|
343
|
-
}
|
|
344
|
-
font-size: 1em;
|
|
329
|
+
p,
|
|
330
|
+
pre {
|
|
331
|
+
margin: rhythm(1) 0;
|
|
332
|
+
}
|
|
345
333
|
}
|
|
346
334
|
|
|
347
335
|
/**
|
|
348
|
-
*
|
|
336
|
+
* Contain overflow in all browsers.
|
|
349
337
|
*/
|
|
350
338
|
|
|
351
339
|
pre {
|
|
352
|
-
|
|
353
|
-
white-space: pre;
|
|
354
|
-
white-space: pre-wrap;
|
|
355
|
-
word-wrap: break-word;
|
|
356
|
-
}
|
|
357
|
-
@else {
|
|
358
|
-
white-space: pre-wrap;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Set consistent quote types.
|
|
364
|
-
*/
|
|
365
|
-
|
|
366
|
-
q {
|
|
367
|
-
quotes: "\201C" "\201D" "\2018" "\2019";
|
|
340
|
+
overflow: auto;
|
|
368
341
|
}
|
|
369
342
|
|
|
370
343
|
/**
|
|
@@ -372,7 +345,7 @@ q {
|
|
|
372
345
|
*/
|
|
373
346
|
|
|
374
347
|
small {
|
|
375
|
-
|
|
348
|
+
font-size: 80%;
|
|
376
349
|
}
|
|
377
350
|
|
|
378
351
|
/**
|
|
@@ -381,191 +354,178 @@ small {
|
|
|
381
354
|
|
|
382
355
|
sub,
|
|
383
356
|
sup {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
357
|
+
font-size: 75%;
|
|
358
|
+
line-height: 0;
|
|
359
|
+
position: relative;
|
|
360
|
+
vertical-align: baseline;
|
|
388
361
|
}
|
|
389
362
|
|
|
390
363
|
sup {
|
|
391
|
-
|
|
364
|
+
top: -0.5em;
|
|
392
365
|
}
|
|
393
366
|
|
|
394
367
|
sub {
|
|
395
|
-
|
|
368
|
+
bottom: -0.25em;
|
|
396
369
|
}
|
|
397
370
|
|
|
398
|
-
/* ==========================================================================
|
|
399
|
-
Lists
|
|
400
|
-
========================================================================== */
|
|
401
|
-
|
|
402
371
|
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
372
|
+
/* Lists
|
|
373
|
+
========================================================================== */
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Address margins set differently in IE 6/7.
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
dl,
|
|
380
|
+
menu,
|
|
381
|
+
ol,
|
|
382
|
+
ul {
|
|
383
|
+
margin: rhythm(1) 0;
|
|
384
|
+
}
|
|
406
385
|
|
|
407
|
-
|
|
408
|
-
menu,
|
|
386
|
+
@if not $strict-normalize {
|
|
409
387
|
ol,
|
|
410
388
|
ul {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
ol,
|
|
416
|
-
ul {
|
|
417
|
-
ol,
|
|
418
|
-
ul {
|
|
419
|
-
margin: 0;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
389
|
+
ol,
|
|
390
|
+
ul {
|
|
391
|
+
margin: 0;
|
|
392
|
+
}
|
|
422
393
|
}
|
|
394
|
+
}
|
|
423
395
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
396
|
+
dd {
|
|
397
|
+
margin: 0 0 0 $indent-amount;
|
|
398
|
+
}
|
|
427
399
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
400
|
+
/**
|
|
401
|
+
* Address paddings set differently in IE 6/7.
|
|
402
|
+
*/
|
|
431
403
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
404
|
+
menu,
|
|
405
|
+
ol,
|
|
406
|
+
ul {
|
|
407
|
+
padding: 0 0 0 $indent-amount;
|
|
408
|
+
}
|
|
437
409
|
}
|
|
438
410
|
|
|
439
411
|
@if support-legacy-browser(ie, "7") {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
412
|
+
/**
|
|
413
|
+
* Correct list images handled incorrectly in IE 7.
|
|
414
|
+
*/
|
|
415
|
+
|
|
416
|
+
nav ul,
|
|
417
|
+
nav ol {
|
|
418
|
+
list-style: none;
|
|
419
|
+
list-style-image: none;
|
|
420
|
+
}
|
|
449
421
|
}
|
|
450
422
|
|
|
451
|
-
/*
|
|
452
|
-
Embedded content
|
|
423
|
+
/* Embedded content
|
|
453
424
|
========================================================================== */
|
|
454
425
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
426
|
+
@if support-legacy-browser(ie, "10") {
|
|
427
|
+
/**
|
|
428
|
+
* Remove border when inside `a` element in IE 8/9/10.
|
|
429
|
+
*/
|
|
458
430
|
|
|
459
|
-
img {
|
|
431
|
+
img {
|
|
460
432
|
border: 0;
|
|
461
433
|
@if support-legacy-browser(ie, "7") {
|
|
462
|
-
|
|
463
|
-
|
|
434
|
+
/* Improve image quality when scaled in IE 7. */
|
|
435
|
+
-ms-interpolation-mode: bicubic;
|
|
464
436
|
}
|
|
437
|
+
}
|
|
465
438
|
}
|
|
466
439
|
|
|
467
440
|
/**
|
|
468
|
-
* Correct overflow displayed
|
|
441
|
+
* Correct overflow displayed in IE.
|
|
469
442
|
*/
|
|
470
443
|
|
|
471
444
|
svg:not(:root) {
|
|
472
|
-
|
|
445
|
+
overflow: hidden;
|
|
473
446
|
}
|
|
474
447
|
|
|
475
|
-
/*
|
|
476
|
-
Figures
|
|
448
|
+
/* Grouping content
|
|
477
449
|
========================================================================== */
|
|
478
450
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
figure {
|
|
484
|
-
margin: 0;
|
|
485
|
-
}
|
|
451
|
+
@if support-legacy-browser(ie, "9") or support-legacy-browser(safari, "5") {
|
|
452
|
+
/**
|
|
453
|
+
* Address margin not present in IE 8/9 and Safari 5.
|
|
454
|
+
*/
|
|
486
455
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
@if support-legacy-browser(ie, "7") {
|
|
492
|
-
/**
|
|
493
|
-
* Correct margin displayed oddly in IE 6/7.
|
|
494
|
-
*/
|
|
495
|
-
|
|
496
|
-
form {
|
|
497
|
-
margin: 0;
|
|
498
|
-
}
|
|
456
|
+
figure {
|
|
457
|
+
margin: rhythm(1) $indent-amount;
|
|
458
|
+
}
|
|
499
459
|
}
|
|
500
460
|
|
|
501
461
|
/**
|
|
502
|
-
*
|
|
462
|
+
* Address differences between Firefox and other browsers.
|
|
503
463
|
*/
|
|
504
464
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
border-color: #c0c0c0;
|
|
509
|
-
@include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35);
|
|
510
|
-
@include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65);
|
|
511
|
-
@include apply-side-rhythm-border(left, $width: 1px, $lines: 0.625);
|
|
512
|
-
@include apply-side-rhythm-border(right, $width: 1px, $lines: 0.625);
|
|
465
|
+
hr {
|
|
466
|
+
@include box-sizing(content-box);
|
|
467
|
+
height: 0;
|
|
513
468
|
}
|
|
514
469
|
|
|
470
|
+
/* Forms
|
|
471
|
+
========================================================================== */
|
|
472
|
+
|
|
515
473
|
/**
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
* 3. Correct alignment displayed oddly in IE 6/7.
|
|
474
|
+
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
|
475
|
+
* styling of `select`, unless a `border` property is set.
|
|
519
476
|
*/
|
|
520
477
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
478
|
+
@if support-legacy-browser(ie, "7") {
|
|
479
|
+
/**
|
|
480
|
+
* Correct margin displayed oddly in IE 6/7.
|
|
481
|
+
*/
|
|
482
|
+
|
|
483
|
+
form {
|
|
484
|
+
margin: 0;
|
|
485
|
+
}
|
|
527
486
|
}
|
|
528
487
|
|
|
529
488
|
/**
|
|
530
|
-
* 1. Correct
|
|
531
|
-
*
|
|
489
|
+
* 1. Correct color not being inherited.
|
|
490
|
+
* Known issue: affects color of disabled elements.
|
|
491
|
+
* 2. Correct font properties not being inherited.
|
|
532
492
|
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
|
533
|
-
* 4.
|
|
493
|
+
* 4. Address `font-family` inconsistency between `textarea` and other form in IE 7
|
|
494
|
+
* 5. Improve appearance and consistency with IE 6/7.
|
|
534
495
|
*/
|
|
535
496
|
|
|
536
497
|
button,
|
|
537
498
|
input,
|
|
499
|
+
optgroup,
|
|
538
500
|
select,
|
|
539
501
|
textarea {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
502
|
+
color: inherit; /* 1 */
|
|
503
|
+
font: inherit; /* 2 */
|
|
504
|
+
margin: 0; /* 3 */
|
|
505
|
+
@if support-legacy-browser(ie, "7") {
|
|
506
|
+
*font-family: $base-font-family; /* 4 */
|
|
507
|
+
*vertical-align: middle; /* 5 */
|
|
508
|
+
}
|
|
547
509
|
}
|
|
548
510
|
|
|
549
511
|
/**
|
|
550
|
-
* Address
|
|
551
|
-
* the UA stylesheet.
|
|
512
|
+
* Address `overflow` set to `hidden` in IE.
|
|
552
513
|
*/
|
|
553
514
|
|
|
554
|
-
button
|
|
555
|
-
|
|
556
|
-
line-height: normal;
|
|
515
|
+
button {
|
|
516
|
+
overflow: visible;
|
|
557
517
|
}
|
|
558
518
|
|
|
559
519
|
/**
|
|
560
520
|
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
|
561
521
|
* All other form control elements do not inherit `text-transform` values.
|
|
562
|
-
* Correct `button` style inheritance in
|
|
563
|
-
* Correct `select` style inheritance in Firefox
|
|
522
|
+
* Correct `button` style inheritance in Firefox, IE, and Opera.
|
|
523
|
+
* Correct `select` style inheritance in Firefox.
|
|
564
524
|
*/
|
|
565
525
|
|
|
566
526
|
button,
|
|
567
527
|
select {
|
|
568
|
-
|
|
528
|
+
text-transform: none;
|
|
569
529
|
}
|
|
570
530
|
|
|
571
531
|
/**
|
|
@@ -582,11 +542,11 @@ button,
|
|
|
582
542
|
html input[type="button"], /* 1 */
|
|
583
543
|
input[type="reset"],
|
|
584
544
|
input[type="submit"] {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
545
|
+
-webkit-appearance: button; /* 2 */
|
|
546
|
+
cursor: pointer; /* 3 */
|
|
547
|
+
@if support-legacy-browser(ie, "7") {
|
|
548
|
+
*overflow: visible; /* 4 */
|
|
549
|
+
}
|
|
590
550
|
}
|
|
591
551
|
|
|
592
552
|
/**
|
|
@@ -595,24 +555,59 @@ input[type="submit"] {
|
|
|
595
555
|
|
|
596
556
|
button[disabled],
|
|
597
557
|
html input[disabled] {
|
|
598
|
-
|
|
558
|
+
cursor: default;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Remove inner padding and border in Firefox 4+.
|
|
563
|
+
*/
|
|
564
|
+
|
|
565
|
+
button::-moz-focus-inner,
|
|
566
|
+
input::-moz-focus-inner {
|
|
567
|
+
border: 0;
|
|
568
|
+
padding: 0;
|
|
599
569
|
}
|
|
600
570
|
|
|
601
571
|
/**
|
|
602
|
-
*
|
|
603
|
-
*
|
|
604
|
-
* 3. Remove excess padding in IE 7.
|
|
605
|
-
* Known issue: excess padding remains in IE 6.
|
|
572
|
+
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
|
573
|
+
* the UA stylesheet.
|
|
606
574
|
*/
|
|
607
575
|
|
|
608
|
-
input
|
|
609
|
-
|
|
576
|
+
input {
|
|
577
|
+
line-height: normal;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
@if support-legacy-browser(ie, "10") {
|
|
581
|
+
/**
|
|
582
|
+
* It's recommended that you don't attempt to style these elements.
|
|
583
|
+
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
|
584
|
+
*
|
|
585
|
+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
|
586
|
+
* 2. Remove excess padding in IE 8/9/10.
|
|
587
|
+
* 3. Remove excess padding in IE 7.
|
|
588
|
+
* Known issue: excess padding remains in IE 6.
|
|
589
|
+
*/
|
|
590
|
+
|
|
591
|
+
input[type="checkbox"],
|
|
592
|
+
input[type="radio"] {
|
|
610
593
|
@include box-sizing(border-box); /* 1 */
|
|
611
594
|
padding: 0; /* 2 */
|
|
612
595
|
@if support-legacy-browser(ie, "7") {
|
|
613
|
-
|
|
614
|
-
|
|
596
|
+
*height: 13px; /* 3 */
|
|
597
|
+
*width: 13px; /* 3 */
|
|
615
598
|
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
|
604
|
+
* `font-size` values of the `input`, it causes the cursor style of the
|
|
605
|
+
* decrement button to change from `default` to `text`.
|
|
606
|
+
*/
|
|
607
|
+
|
|
608
|
+
input[type="number"]::-webkit-inner-spin-button,
|
|
609
|
+
input[type="number"]::-webkit-outer-spin-button {
|
|
610
|
+
height: auto;
|
|
616
611
|
}
|
|
617
612
|
|
|
618
613
|
/**
|
|
@@ -622,42 +617,69 @@ input[type="radio"] {
|
|
|
622
617
|
*/
|
|
623
618
|
|
|
624
619
|
input[type="search"] {
|
|
625
|
-
|
|
626
|
-
|
|
620
|
+
-webkit-appearance: textfield; /* 1 */
|
|
621
|
+
@include box-sizing(content-box); /* 2 */
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
|
625
|
+
* Safari (but not Chrome) clips the cancel button when the search input has
|
|
626
|
+
* padding (and `textfield` appearance).
|
|
627
|
+
*/
|
|
628
|
+
|
|
629
|
+
&::-webkit-search-cancel-button,
|
|
630
|
+
&::-webkit-search-decoration {
|
|
631
|
+
-webkit-appearance: none;
|
|
632
|
+
}
|
|
627
633
|
}
|
|
628
634
|
|
|
629
635
|
/**
|
|
630
|
-
*
|
|
631
|
-
* on OS X.
|
|
636
|
+
* Define consistent border, margin, and padding.
|
|
632
637
|
*/
|
|
633
638
|
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
639
|
+
fieldset {
|
|
640
|
+
margin: 0 2px;
|
|
641
|
+
/* Apply borders and padding that keep the vertical rhythm. */
|
|
642
|
+
border-color: #c0c0c0;
|
|
643
|
+
@include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35 );
|
|
644
|
+
@include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65 );
|
|
645
|
+
@include apply-side-rhythm-border(left, $width: 1px, $lines: 0.625);
|
|
646
|
+
@include apply-side-rhythm-border(right, $width: 1px, $lines: 0.625);
|
|
637
647
|
}
|
|
638
648
|
|
|
639
649
|
/**
|
|
640
|
-
*
|
|
650
|
+
* 1. Correct `color` not being inherited in IE.
|
|
651
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
|
652
|
+
* 3. Correct alignment displayed oddly in IE 6/7.
|
|
641
653
|
*/
|
|
642
654
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
border: 0;
|
|
646
|
-
|
|
655
|
+
legend {
|
|
656
|
+
@if support-legacy-browser(ie, "9") {
|
|
657
|
+
border: 0; /* 1 */
|
|
658
|
+
}
|
|
659
|
+
padding: 0; /* 2 */
|
|
660
|
+
@if support-legacy-browser(ie, "7") {
|
|
661
|
+
*margin-left: -7px; /* 3 */
|
|
662
|
+
}
|
|
647
663
|
}
|
|
648
664
|
|
|
649
665
|
/**
|
|
650
|
-
*
|
|
651
|
-
* 2. Improve readability and alignment in all browsers.
|
|
666
|
+
* Remove default vertical scrollbar in IE.
|
|
652
667
|
*/
|
|
653
668
|
|
|
654
669
|
textarea {
|
|
655
|
-
|
|
656
|
-
vertical-align: top; /* 2 */
|
|
670
|
+
overflow: auto;
|
|
657
671
|
}
|
|
658
672
|
|
|
659
|
-
|
|
660
|
-
|
|
673
|
+
/**
|
|
674
|
+
* Don't inherit the `font-weight` (applied by a rule above).
|
|
675
|
+
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
|
676
|
+
*/
|
|
677
|
+
|
|
678
|
+
optgroup {
|
|
679
|
+
font-weight: bold;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/* Tables
|
|
661
683
|
========================================================================== */
|
|
662
684
|
|
|
663
685
|
/**
|
|
@@ -665,6 +687,11 @@ textarea {
|
|
|
665
687
|
*/
|
|
666
688
|
|
|
667
689
|
table {
|
|
668
|
-
|
|
669
|
-
|
|
690
|
+
border-collapse: collapse;
|
|
691
|
+
border-spacing: 0;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
td,
|
|
695
|
+
th {
|
|
696
|
+
padding: 0;
|
|
670
697
|
}
|