jekyll-theme-simpleton 0.4.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +24 -3
- data/_includes/copyright.html +7 -0
- data/_includes/footer.html +3 -1
- data/_includes/header.html +7 -7
- data/_includes/menu.html +19 -13
- data/_includes/post-listing.html +55 -0
- data/_includes/series.html +33 -0
- data/_layouts/default.html +17 -10
- data/_layouts/home.html +4 -34
- data/_layouts/page.html +43 -26
- data/_layouts/post.html +46 -27
- data/_sass/README.md +50 -0
- data/_sass/abstracts/_all.scss +7 -0
- data/_sass/abstracts/_mixins.scss +58 -0
- data/_sass/{modules → abstracts/variables}/_breakpoints.scss +0 -0
- data/_sass/{modules → abstracts/variables}/_colors.scss +6 -0
- data/_sass/abstracts/variables/_spacing.scss +8 -0
- data/_sass/abstracts/variables/_transition.scss +2 -0
- data/_sass/abstracts/variables/_typography.scss +3 -0
- data/_sass/abstracts/variables/_z-index.scss +4 -0
- data/_sass/base/_all.scss +3 -0
- data/_sass/base/_normalize.scss +1 -0
- data/_sass/base/_typography.scss +4 -0
- data/_sass/components/_hero.scss +5 -0
- data/_sass/components/_list-style-none.scss +3 -0
- data/_sass/components/_nav.scss +7 -0
- data/_sass/components/_text-align.scss +21 -0
- data/_sass/layout/_gallery.scss +31 -0
- data/_sass/layout/_justified-p.scss +5 -0
- data/_sass/layout/_side-menu.scss +118 -0
- data/_sass/pages/_gallery.scss +0 -0
- data/_sass/pages/_home.scss +31 -28
- data/_sass/themes/_beko-art.scss +60 -0
- data/_sass/themes/_purebred.scss +5 -0
- data/_sass/themes/_simpleton.scss +23 -0
- data/_sass/vendor/_bootstrap.scss +1 -0
- data/_sass/vendor/_dancing-script.scss +1 -0
- data/_sass/vendor/_normalize.scss +1 -0
- data/_sass/vendor/_purecss.scss +2 -0
- data/assets/css/style.scss +1 -1
- data/node_modules/normalize.css/CHANGELOG.md +175 -0
- data/node_modules/normalize.css/LICENSE.md +21 -0
- data/node_modules/normalize.css/README.md +102 -0
- data/node_modules/normalize.css/normalize.css +349 -0
- data/node_modules/normalize.css/package.json +15 -0
- metadata +53 -13
- data/_sass/modules/_all.scss +0 -13
- data/_sass/modules/_mixins.scss +0 -13
- data/_sass/modules/_spacing.scss +0 -1
- data/_sass/modules/_typography.scss +0 -1
- data/_sass/partials/base.scss +0 -1
- data/_sass/partials/side-menu.scss +0 -86
@@ -0,0 +1,21 @@
|
|
1
|
+
.text-align {
|
2
|
+
&-start {
|
3
|
+
text-align: start !important;
|
4
|
+
}
|
5
|
+
|
6
|
+
&-end {
|
7
|
+
text-align: end !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
&-center {
|
11
|
+
text-align: center !important;
|
12
|
+
}
|
13
|
+
|
14
|
+
&-justify {
|
15
|
+
text-align: justify !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
&-match-parent {
|
19
|
+
text-align: match-parent !important;
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#gallery {
|
2
|
+
#gallery-header {
|
3
|
+
#category-filter {
|
4
|
+
|
5
|
+
#category-list {
|
6
|
+
|
7
|
+
.category-item {
|
8
|
+
@extend .pure-menu-item;
|
9
|
+
|
10
|
+
.category-button {
|
11
|
+
}
|
12
|
+
|
13
|
+
.disabled {
|
14
|
+
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
#gallery-content {
|
22
|
+
|
23
|
+
img {
|
24
|
+
}
|
25
|
+
|
26
|
+
figure {
|
27
|
+
|
28
|
+
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,118 @@
|
|
1
|
+
#menu-container {
|
2
|
+
* {
|
3
|
+
@include transition;
|
4
|
+
}
|
5
|
+
|
6
|
+
#menu-toggle {
|
7
|
+
display: none;
|
8
|
+
|
9
|
+
&:checked {
|
10
|
+
~ #menu {
|
11
|
+
left: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
~ #menu-icon {
|
15
|
+
background: green;
|
16
|
+
left: $menu-width;
|
17
|
+
|
18
|
+
span {
|
19
|
+
$translation-y: 9px;
|
20
|
+
$rotation-deg: 45deg;
|
21
|
+
&:first-child {
|
22
|
+
transform: translate(0, $translation-y) rotate($rotation-deg);
|
23
|
+
}
|
24
|
+
|
25
|
+
&:nth-child(2) {
|
26
|
+
opacity: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
&:last-child {
|
30
|
+
transform: translate(0, -$translation-y) rotate(-$rotation-deg);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
} // #menu-toggle
|
36
|
+
|
37
|
+
#menu {
|
38
|
+
@include foreground;
|
39
|
+
|
40
|
+
position: fixed;
|
41
|
+
top: 0;
|
42
|
+
left: -$menu-width;
|
43
|
+
bottom: 0;
|
44
|
+
background: $menu-background-color;
|
45
|
+
width: $menu-width;
|
46
|
+
box-sizing: border-box;
|
47
|
+
overflow-y: auto;
|
48
|
+
|
49
|
+
#menu-header {
|
50
|
+
border-bottom: 1px solid $menu-separator-color;
|
51
|
+
}
|
52
|
+
|
53
|
+
.menu-heading {
|
54
|
+
font-size: 125%;
|
55
|
+
font-weight: 300%;
|
56
|
+
letter-spacing: .1em;
|
57
|
+
margin-top: 0;
|
58
|
+
text-transform: uppercase;
|
59
|
+
}
|
60
|
+
|
61
|
+
.menu-list {
|
62
|
+
.menu-item {
|
63
|
+
margin: 0;
|
64
|
+
padding: 0;
|
65
|
+
height: 100%;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
.menu-link {
|
70
|
+
color: $menu-text-color;
|
71
|
+
text-decoration: $link-text-decoration;
|
72
|
+
padding: .5em .8em;
|
73
|
+
}
|
74
|
+
|
75
|
+
.menu-heading,
|
76
|
+
.menu-link {
|
77
|
+
display: block;
|
78
|
+
}
|
79
|
+
|
80
|
+
@include media-screen-gt-sm {
|
81
|
+
left: 0;
|
82
|
+
}
|
83
|
+
|
84
|
+
} // #menu
|
85
|
+
|
86
|
+
#menu-icon {
|
87
|
+
@include foreground;
|
88
|
+
position: fixed;
|
89
|
+
|
90
|
+
top: 0;
|
91
|
+
left: 0;
|
92
|
+
width: $hamburger-size;
|
93
|
+
height: $hamburger-size;
|
94
|
+
display: flex;
|
95
|
+
flex-flow: column nowrap;
|
96
|
+
justify-content: space-evenly;
|
97
|
+
align-items: center;
|
98
|
+
|
99
|
+
@include media-screen-gt-sm {
|
100
|
+
display: none;
|
101
|
+
}
|
102
|
+
|
103
|
+
span {
|
104
|
+
display: block;
|
105
|
+
background: $hamburger-color;
|
106
|
+
height: $hamburger-height;
|
107
|
+
width: $hamburger-width;
|
108
|
+
border-radius: $hamburger-radius;
|
109
|
+
cursor: $clickable-cursor;
|
110
|
+
}
|
111
|
+
} // #menu-icon
|
112
|
+
} // #menu-container
|
113
|
+
|
114
|
+
@include media-screen-gt-sm {
|
115
|
+
#layout {
|
116
|
+
margin-left: $menu-width;
|
117
|
+
}
|
118
|
+
}
|
File without changes
|
data/_sass/pages/_home.scss
CHANGED
@@ -1,39 +1,42 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
grid-template: 1fr / 1fr;
|
4
|
-
width: 100%;
|
5
|
-
height: 100vh;
|
1
|
+
$gallery-height: 80vh;
|
2
|
+
$tile-size: $gallery-height / 3;
|
6
3
|
|
7
|
-
.hero-tile {
|
8
|
-
animation: carousel ease-out 10s infinite;
|
9
4
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
#hero-gallery {
|
6
|
+
height: $gallery-height;
|
7
|
+
margin: ((100vh - $gallery-height) / 2) auto;
|
8
|
+
|
9
|
+
display: grid;
|
10
|
+
grid-template-columns: repeat(auto-fit, minmax($tile-size, 1fr));
|
11
|
+
grid-template-rows: repeat(3, 1fr);
|
12
|
+
gap: 0;
|
13
|
+
|
14
|
+
overflow: hidden;
|
14
15
|
}
|
15
16
|
|
17
|
+
.tile {
|
18
|
+
//animation: carousel ease-out 10s infinite;
|
19
|
+
width: auto;
|
20
|
+
height: $tile-size;
|
16
21
|
|
17
|
-
|
18
|
-
|
19
|
-
opacity: 1;
|
20
|
-
}
|
22
|
+
background-size: cover;
|
23
|
+
background-position: center;
|
21
24
|
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
+
a {
|
26
|
+
@include transition;
|
25
27
|
|
26
|
-
|
28
|
+
height: 100%;
|
29
|
+
text-decoration: none;
|
30
|
+
text-align: center;
|
31
|
+
display: flex;
|
32
|
+
justify-content: center;
|
33
|
+
align-items: center;
|
27
34
|
opacity: 0;
|
28
|
-
|
35
|
+
color: white;
|
36
|
+
background: #000;
|
29
37
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
/*
|
35
|
-
100% {
|
36
|
-
background: 1;
|
38
|
+
&:hover {
|
39
|
+
opacity: 1;
|
40
|
+
}
|
37
41
|
}
|
38
|
-
*/
|
39
42
|
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
@import "vendor/bootstrap";
|
2
|
+
@import "vendor/dancing-script";
|
3
|
+
|
4
|
+
@import "base/all";
|
5
|
+
|
6
|
+
@import "components/hero";
|
7
|
+
|
8
|
+
:root {
|
9
|
+
#main {
|
10
|
+
min-height: 100vh;
|
11
|
+
|
12
|
+
> *:first-child:not(#hero) {
|
13
|
+
margin-top: 10vh;
|
14
|
+
}
|
15
|
+
|
16
|
+
#hero {
|
17
|
+
#hero-content {
|
18
|
+
background-color: black;
|
19
|
+
overflow: hidden;
|
20
|
+
height: 80vh;
|
21
|
+
margin: 10vh auto;
|
22
|
+
|
23
|
+
|
24
|
+
#hero-image {
|
25
|
+
background-image: url('../../assets/images/hero.webp');
|
26
|
+
|
27
|
+
|
28
|
+
background-size: contain;
|
29
|
+
background-position: left;
|
30
|
+
background-repeat: no-repeat;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.blockquote {
|
38
|
+
font-family: "Dancing Script", cursive;
|
39
|
+
position: static;
|
40
|
+
|
41
|
+
p {
|
42
|
+
@extend .fs-2;
|
43
|
+
|
44
|
+
&::before {
|
45
|
+
content: "\201C";
|
46
|
+
font-size: 200%;
|
47
|
+
|
48
|
+
//@extend .fs-1;
|
49
|
+
@extend .fw-bold;
|
50
|
+
}
|
51
|
+
|
52
|
+
/*
|
53
|
+
&::after {
|
54
|
+
content: "\201C";
|
55
|
+
|
56
|
+
@extend .fs-1;
|
57
|
+
}
|
58
|
+
*/
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@import "base/all";
|
2
|
+
|
3
|
+
@import "components/list-style-none";
|
4
|
+
@import "layout/justified-p";
|
5
|
+
|
6
|
+
#layout {
|
7
|
+
width: 100%;
|
8
|
+
|
9
|
+
& > * {
|
10
|
+
@include media-screen-width-breakpoints;
|
11
|
+
|
12
|
+
margin: {
|
13
|
+
left: auto;
|
14
|
+
right: auto;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.post-excerpt {
|
19
|
+
p {
|
20
|
+
margin: 0;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "bootstrap/scss/bootstrap";
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "@fontsource/dancing-script"
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "../../node_modules/normalize.css/normalize"
|
data/assets/css/style.scss
CHANGED
@@ -0,0 +1,175 @@
|
|
1
|
+
# Changes to normalize.css
|
2
|
+
|
3
|
+
### 8.0.1 (November 4, 2018)
|
4
|
+
|
5
|
+
* Fix regression in IE rendering of `main` element.
|
6
|
+
|
7
|
+
### 8.0.0 (February 2, 2018)
|
8
|
+
|
9
|
+
* Remove support for older browsers Android 4, lte IE 9, lte Safari 7.
|
10
|
+
* Don't remove search input cancel button in Chrome/Safari.
|
11
|
+
* Form inputs inherit `font-family`.
|
12
|
+
* Fix text decoration in Safari 8+.
|
13
|
+
|
14
|
+
### 7.0.0 (May 2, 2017)
|
15
|
+
|
16
|
+
* Revert changes in `body` and form elements styles introduced by v6
|
17
|
+
|
18
|
+
### 6.0.0 (March 26, 2017)
|
19
|
+
|
20
|
+
* Remove all opinionated rules
|
21
|
+
* Correct document heading comment
|
22
|
+
* Update `abbr[title]` support
|
23
|
+
|
24
|
+
### 5.0.0 (October 3, 2016)
|
25
|
+
|
26
|
+
* Add normalized sections not already present from
|
27
|
+
https://html.spec.whatwg.org/multipage/.
|
28
|
+
* Move unsorted rules into their respective sections.
|
29
|
+
* Update the `summary` style in all browsers.
|
30
|
+
* Remove `::placeholder` styles due to a bug in Edge.
|
31
|
+
* More explicitly define font resets on form controls.
|
32
|
+
* Remove the `optgroup` normalization needed by the previous font reset.
|
33
|
+
* Update text-size-adjust documentation
for IE on Windows Phone
|
34
|
+
* Update OS X reference to macOS
|
35
|
+
* Update the semver strategy.
|
36
|
+
|
37
|
+
### 4.2.0 (June 30, 2016)
|
38
|
+
|
39
|
+
* Correct the `line-height` in all browsers.
|
40
|
+
* Restore `optgroup` font inheritance.
|
41
|
+
* Update normalize.css heading.
|
42
|
+
|
43
|
+
### 4.1.1 (April 12, 2016)
|
44
|
+
|
45
|
+
* Update normalize.css heading.
|
46
|
+
|
47
|
+
### 4.1.0 (April 11, 2016)
|
48
|
+
|
49
|
+
* Normalize placeholders in Chrome, Edge, and Safari.
|
50
|
+
* Normalize `text-decoration-skip` property in Safari.
|
51
|
+
* Normalize file select buttons.
|
52
|
+
* Normalize search input outlines in Safari.
|
53
|
+
* Limit Firefox focus normalizations to buttons.
|
54
|
+
* Restore `main` to package.json.
|
55
|
+
* Restore proper overflow to certain `select` elements.
|
56
|
+
* Remove opinionated cursor styles on buttons.
|
57
|
+
* Update stylelint configuration.
|
58
|
+
* Update tests.
|
59
|
+
|
60
|
+
### 4.0.0 (March 19, 2016)
|
61
|
+
|
62
|
+
* Add the correct font weight for `b` and `strong` in Chrome, Edge, and Safari.
|
63
|
+
* Correct inconsistent `overflow` for `hr` in Edge and IE.
|
64
|
+
* Correct inconsistent `box-sizing` for `hr` in Firefox.
|
65
|
+
* Correct inconsistent `text-decoration` and `border-bottom` for `abbr[title]`
|
66
|
+
in Chrome, Edge, Firefox IE, Opera, and Safari.
|
67
|
+
* Correct inheritance and scaling of `font-size` for preformatted text.
|
68
|
+
* Correct `legend` text wrapping not present in Edge and IE.
|
69
|
+
* Remove unnecessary normalization of `line-height` for `input`.
|
70
|
+
* Remove unnecessary normalization of `color` for form controls.
|
71
|
+
* Remove unnecessary `box-sizing` for `input[type="search"]` in Chrome, Edge,
|
72
|
+
Firefox, IE, and Safari.
|
73
|
+
* Remove opinionated table resets.
|
74
|
+
* Remove opinionated `pre` overflow.
|
75
|
+
* Remove selector weight from some input selectors.
|
76
|
+
* Update normalization of `border-style` for `img`.
|
77
|
+
* Update normalization of `color` inheritance for `legend`.
|
78
|
+
* Update normalization of `background-color` for `mark`.
|
79
|
+
* Update normalization of `outline` for `:-moz-focusring` removed by a previous
|
80
|
+
normalization in Firefox.
|
81
|
+
* Update opinionated style of `outline-width` for `a:active` and `a:hover`.
|
82
|
+
* Update comments to identify opinionated styles.
|
83
|
+
* Update comments to specify browser/versions affected by all changes.
|
84
|
+
* Update comments to use one voice.
|
85
|
+
|
86
|
+
---
|
87
|
+
|
88
|
+
### 3.0.3 (March 30, 2015)
|
89
|
+
|
90
|
+
* Remove unnecessary vendor prefixes.
|
91
|
+
* Add `main` property.
|
92
|
+
|
93
|
+
### 3.0.2 (October 4, 2014)
|
94
|
+
|
95
|
+
* Only alter `background-color` of links in IE 10.
|
96
|
+
* Add `menu` element to HTML5 display definitions.
|
97
|
+
|
98
|
+
### 3.0.1 (March 27, 2014)
|
99
|
+
|
100
|
+
* Add package.json for npm support.
|
101
|
+
|
102
|
+
### 3.0.0 (January 28, 2014)
|
103
|
+
|
104
|
+
### 3.0.0-rc.1 (January 26, 2014)
|
105
|
+
|
106
|
+
* Explicit tests for each normalization.
|
107
|
+
* Fix i18n for `q` element.
|
108
|
+
* Fix `pre` text formatting and overflow.
|
109
|
+
* Fix vertical alignment of `progress`.
|
110
|
+
* Address `button` overflow in IE 8/9/10.
|
111
|
+
* Revert `textarea` alignment modification.
|
112
|
+
* Fix number input button cursor in Chrome on OS X.
|
113
|
+
* Remove `a:focus` outline normalization.
|
114
|
+
* Fix `figure` margin normalization.
|
115
|
+
* Normalize `optgroup`.
|
116
|
+
* Remove default table cell padding.
|
117
|
+
* Set correct display for `progress` in IE 8/9.
|
118
|
+
* Fix `font` and `color` inheritance for forms.
|
119
|
+
|
120
|
+
---
|
121
|
+
|
122
|
+
### 2.1.3 (August 26, 2013)
|
123
|
+
|
124
|
+
* Fix component.json.
|
125
|
+
* Remove the gray background color from active links in IE 10.
|
126
|
+
|
127
|
+
### 2.1.2 (May 11, 2013)
|
128
|
+
|
129
|
+
* Revert root `color` and `background` normalizations.
|
130
|
+
|
131
|
+
### 2.1.1 (April 8, 2013)
|
132
|
+
|
133
|
+
* Normalize root `color` and `background` to counter the effects of system
|
134
|
+
color schemes.
|
135
|
+
|
136
|
+
### 2.1.0 (January 21, 2013)
|
137
|
+
|
138
|
+
* Normalize `text-transform` for `button` and `select`.
|
139
|
+
* Normalize `h1` margin when within HTML5 sectioning elements.
|
140
|
+
* Normalize `hr` element.
|
141
|
+
* Remove unnecessary `pre` styles.
|
142
|
+
* Add `main` element to HTML5 display definitions.
|
143
|
+
* Fix cursor style for disabled button `input`.
|
144
|
+
|
145
|
+
### 2.0.1 (August 20, 2012)
|
146
|
+
|
147
|
+
* Remove stray IE 6/7 `inline-block` hack from HTML5 display settings.
|
148
|
+
|
149
|
+
### 2.0.0 (August 19, 2012)
|
150
|
+
|
151
|
+
* Remove legacy browser form normalizations.
|
152
|
+
* Remove all list normalizations.
|
153
|
+
* Add `quotes` normalizations.
|
154
|
+
* Remove all heading normalizations except `h1` font size.
|
155
|
+
* Form elements automatically inherit `font-family` from ancestor.
|
156
|
+
* Drop support for IE 6/7, Firefox < 4, and Safari < 5.
|
157
|
+
|
158
|
+
---
|
159
|
+
|
160
|
+
### 1.0.1 (August 19, 2012)
|
161
|
+
|
162
|
+
* Adjust `small` font size normalization.
|
163
|
+
|
164
|
+
### 1.0.0 (August 14, 2012)
|
165
|
+
|
166
|
+
(Only the notable changes since public release)
|
167
|
+
|
168
|
+
* Add MIT License.
|
169
|
+
* Hide `audio` elements without controls in iOS 5.
|
170
|
+
* Normalize heading margins and font size.
|
171
|
+
* Move font-family normalization from `body` to `html`.
|
172
|
+
* Remove scrollbar normalization.
|
173
|
+
* Remove excess padding from checkbox and radio inputs in IE 7.
|
174
|
+
* Add IE9 correction for SVG overflow.
|
175
|
+
* Add fix for legend not inheriting color in IE 6/7/8/9.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright © Nicolas Gallagher and Jonathan Neal
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
10
|
+
so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# normalize.css
|
2
|
+
|
3
|
+
<a href="https://github.com/necolas/normalize.css"><img
|
4
|
+
src="https://necolas.github.io/normalize.css/logo.svg" alt="Normalize Logo"
|
5
|
+
width="80" height="80" align="right"></a>
|
6
|
+
|
7
|
+
> A modern alternative to CSS resets
|
8
|
+
|
9
|
+
[![npm][npm-image]][npm-url] [![license][license-image]][license-url]
|
10
|
+
[![changelog][changelog-image]][changelog-url]
|
11
|
+
[![gitter][gitter-image]][gitter-url]
|
12
|
+
|
13
|
+
|
14
|
+
**NPM**
|
15
|
+
|
16
|
+
```sh
|
17
|
+
npm install --save normalize.css
|
18
|
+
```
|
19
|
+
|
20
|
+
**CDN**
|
21
|
+
|
22
|
+
See https://yarnpkg.com/en/package/normalize.css
|
23
|
+
|
24
|
+
**Download**
|
25
|
+
|
26
|
+
See https://necolas.github.io/normalize.css/latest/normalize.css
|
27
|
+
|
28
|
+
|
29
|
+
## What does it do?
|
30
|
+
|
31
|
+
* Preserves useful defaults, unlike many CSS resets.
|
32
|
+
* Normalizes styles for a wide range of elements.
|
33
|
+
* Corrects bugs and common browser inconsistencies.
|
34
|
+
* Improves usability with subtle modifications.
|
35
|
+
* Explains what code does using detailed comments.
|
36
|
+
|
37
|
+
|
38
|
+
## Browser support
|
39
|
+
|
40
|
+
* Chrome
|
41
|
+
* Edge
|
42
|
+
* Firefox ESR+
|
43
|
+
* Internet Explorer 10+
|
44
|
+
* Safari 8+
|
45
|
+
* Opera
|
46
|
+
|
47
|
+
|
48
|
+
## Extended details and known issues
|
49
|
+
|
50
|
+
Additional detail and explanation of the esoteric parts of normalize.css.
|
51
|
+
|
52
|
+
#### `pre, code, kbd, samp`
|
53
|
+
|
54
|
+
The `font-family: monospace, monospace` hack fixes the inheritance and scaling
|
55
|
+
of font-size for preformatted text. The duplication of `monospace` is
|
56
|
+
intentional. [Source](https://en.wikipedia.org/wiki/User:Davidgothberg/Test59).
|
57
|
+
|
58
|
+
#### `sub, sup`
|
59
|
+
|
60
|
+
Normally, using `sub` or `sup` affects the line-box height of text in all
|
61
|
+
browsers. [Source](https://gist.github.com/413930).
|
62
|
+
|
63
|
+
#### `select`
|
64
|
+
|
65
|
+
By default, Chrome on OS X and Safari on OS X allow very limited styling of
|
66
|
+
`select`, unless a border property is set. The default font weight on `optgroup`
|
67
|
+
elements cannot safely be changed in Chrome on OSX and Safari on OS X.
|
68
|
+
|
69
|
+
#### `[type="checkbox"]`
|
70
|
+
|
71
|
+
It is recommended that you do not style checkbox and radio inputs as Firefox's
|
72
|
+
implementation does not respect box-sizing, padding, or width.
|
73
|
+
|
74
|
+
#### `[type="number"]`
|
75
|
+
|
76
|
+
Certain font size values applied to number inputs cause the cursor style of the
|
77
|
+
decrement button to change from `default` to `text`.
|
78
|
+
|
79
|
+
#### `[type="search"]`
|
80
|
+
|
81
|
+
The search input is not fully stylable by default. In Chrome and Safari on
|
82
|
+
OSX/iOS you can't control `font`, `padding`, `border`, or `background`. In
|
83
|
+
Chrome and Safari on Windows you can't control `border` properly. It will apply
|
84
|
+
`border-width` but will only show a border color (which cannot be controlled)
|
85
|
+
for the outer 1px of that border. Applying `-webkit-appearance: textfield`
|
86
|
+
addresses these issues without removing the benefits of search inputs (e.g.
|
87
|
+
showing past searches).
|
88
|
+
|
89
|
+
## Contributing
|
90
|
+
|
91
|
+
Please read the [contribution guidelines](CONTRIBUTING.md) in order to make the
|
92
|
+
contribution process easy and effective for everyone involved.
|
93
|
+
|
94
|
+
|
95
|
+
[changelog-image]: https://img.shields.io/badge/changelog-md-blue.svg?style=flat-square
|
96
|
+
[changelog-url]: CHANGELOG.md
|
97
|
+
[license-image]: https://img.shields.io/npm/l/normalize.css.svg?style=flat-square
|
98
|
+
[license-url]: LICENSE.md
|
99
|
+
[npm-image]: https://img.shields.io/npm/v/normalize.css.svg?style=flat-square
|
100
|
+
[npm-url]: https://www.npmjs.com/package/normalize.css
|
101
|
+
[gitter-image]: https://img.shields.io/badge/chat-gitter-blue.svg?style=flat-square
|
102
|
+
[gitter-url]: https://gitter.im/necolas/normalize.css
|