8000 :art: Fixes sass · djangocon/djangocon-us-docs@094836a · GitHub
[go: up one dir, main page]

Skip to content

Commit 094836a

Browse files
committed
🎨 Fixes sass
1 parent dc2a656 commit 094836a

File tree

3 files changed

+575
-0
lines changed

3 files changed

+575
-0
lines changed

_sass/normalize.scss/README.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# normalize.scss v0.1.0
2+
3+
Normalize.scss is the SCSS version of [normalize.css](http://necolas.github.io/normalize.css), a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards.
4+
5+
[View the normalize.css test file](http://necolas.github.io/normalize.css/latest/test.html)
6+
7+
## Install
8+
9+
* [npm](http://npmjs.org/): `npm install --save normalize.scss`
10+
* [Component(1)](https://github.com/component/component/): `component install guerrero/normalize.scss`
11+
* [Bower](http://bower.io/): `bower install --save normalize.scss`
12+
* Download: Go to [this link](https://raw.githubusercontent.com/guerrero/normalize.scss/master/normalize.scss), press right-click on the page and choose "Save as..."
13+
14+
No other styles should come before Normalize.scss.
15+
16+
It's recommendable to modify `normalize.scss` to suit it to your project
17+
18+
## What does it do?
19+
20+
* Preserves useful defaults, unlike many CSS resets.
21+
* Normalizes styles for a wide range of elements.
22+
* Corrects bugs and common browser inconsistencies.
23+
* Improves usability with subtle improvements.
24+
* Explains what code does using detailed comments.
25+
26+
## Browser support
27+
28+
* Google Chrome (latest)
29+
* Mozilla Firefox (latest)
30+
* Mozilla Firefox 4
31+
* Opera (latest)
32+
* Apple Safari 6+
33+
* Internet Explorer 8+
34+
35+
[Normalize.css v1 provides legacy browser
36+
support](https://github.com/necolas/normalize.css/tree/v1) (IE 6+, Safari 4+),
37+
but is no longer actively developed.
38+
39+
## Extended details
40+
41+
Additional detail and explanation of the esoteric parts of normalize.css.
42+
43+
#### `pre, code, kbd, samp`
44+
45+
The `font-family: monospace, monospace` hack fixes the inheritance and scaling
46+
of font-size for preformated text. The duplication of `monospace` is
47+
intentional. [Source](http://en.wikipedia.org/wiki/User:Davidgothberg/Test59).
48+
49+
#### `sub, sup`
50+
51+
Normally, using `sub` or `sup` affects the line-box height of text in all
52+
browsers. [Source](http://gist.github.com/413930).
53+
54+
#### `svg:not(:root)`
55+
56+
Adding `overflow: hidden` fixes IE9's SVG rendering. Earlier versions of IE
57+
don't support SVG, so we can safely use the `:not()` and `:root` selectors that
58+
modern browsers use in the default UA stylesheets to apply this style. [SVG
59+
Mailing List discussion](http://lists.w3.org/Archives/Public/public-svg-wg/2008JulSep/0339.html)
60+
61+
#### `input[type="search"]`
62+
63+
The search input is not fully stylable by default. In Chrome and Safari on
64+
OSX/iOS you can't control `font`, `padding`, `border`, or `background`. In
65+
Chrome and Safari on Windows you can't control `border` properly. It will apply
66+
`border-width` but will only show a border color (which cannot be controlled)
67+
for the outer 1px of that border. Applying `-webkit-appearance: textfield`
68+
addresses these issues without removing the benefits of search inputs (e.g.
69+
showing past searches).
70+
71+
#### `legend`
72+
73+
Adding `border: 0` corrects an IE 8–11 bug where `color` (yes, `color`) is not
74+
inherited by `legend`.
75+
76+
## Acknowledgements
77+
78+
Normalize.scss is a project by [Alex Guerrero](https://github.com/guerrero) based on [normalize.css](http://necolas.github.io/normalize.css) from [Nicolas Gallagher](https://github.com/necolas), co-created with [Jonathan Neal](https://github.com/jonathantneal).

0 commit comments

Comments
 (0)
0