Skip to content

Commit 08a4896

Browse files
Merge pull request #5 from azdanov/bump-deps
Update to [email protected]
2 parents 8fa057d + c4c8aca commit 08a4896

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<p align="center"><img src="https://assets-cdn.github.com/favicon.ico" width=24 height=24/> <a href="https://github.com/arcticicestudio/styled-modern-normalize/releases/latest"><img src="https://img.shields.io/github/release/arcticicestudio/styled-modern-normalize.svg?style=flat-square"/></a> <img src="https://www.npmjs.com/static/images/touch-icons/favicon-32x32.png" width=24 height=24/> <a href="https://www.npmjs.com/package/styled-modern-normalize"><img src="https://img.shields.io/npm/v/styled-modern-normalize.svg?style=flat-square"/></a> <a href="https://www.npmjs.com/package/styled-modern-normalize"><img src="https://img.shields.io/npm/dt/styled-modern-normalize.svg?style=flat-square"/></a> <a href="https://www.npmjs.com/package/styled-modern-normalize"><img src="https://img.shields.io/npm/dm/styled-modern-normalize.svg?style=flat-square"/></a></p>
66

7-
<p align="center"><a href="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/arcticicestudio/styleguide-javascript"><img src="https://img.shields.io/badge/modern--normalize.css-0.4.0-5E81AC.svg?style=flat-square"/></a></p>
7+
<p align="center"><a href="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/arcticicestudio/styleguide-javascript"><img src="https://img.shields.io/badge/modern--normalize.css-0.5.0-5E81AC.svg?style=flat-square"/></a></p>
88

99
# 0.1.0
1010

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
<p align="center"><img src="https://circleci.com/favicon.ico" width=24 height=24/> <a href="https://circleci.com/gh/arcticicestudio/styled-modern-normalize"><img src="https://img.shields.io/circleci/project/github/arcticicestudio/styled-modern-normalize/develop.svg?style=flat-square"/></a> <img src="https://cdn.travis-ci.org/images/favicon-c566132d45ab1a9bcae64d8d90e4378a.svg" width=24 height=24/> <a href="https://travis-ci.org/arcticicestudio/styled-modern-normalize"><img src="https://img.shields.io/travis/arcticicestudio/styled-modern-normalize/develop.svg?style=flat-square"/></a></p>
88

9-
<p align="center"><a href="https://github.com/arcticicestudio/styled-modern-normalize/blob/develop/CHANGELOG.md#010"><img src="https://img.shields.io/badge/Changelog-0.1.0-5E81AC.svg?style=flat-square"/></a> <a href="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/arcticicestudio/styleguide-javascript"><img src="https://img.shields.io/badge/modern--normalize.css-0.4.0-5E81AC.svg?style=flat-square"/></a></p>
9+
<p align="center"><a href="https://github.com/arcticicestudio/styled-modern-normalize/blob/develop/CHANGELOG.md#010"><img src="https://img.shields.io/badge/Changelog-0.1.0-5E81AC.svg?style=flat-square"/></a> <a href="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/arcticicestudio/styleguide-javascript"><img src="https://img.shields.io/badge/modern--normalize.css-0.5.0-5E81AC.svg?style=flat-square"/></a></p>
1010

1111
A common import method for `modern-normalize.css` is to use [unnamed imports][mdn-import] which works fine for projects with _vanilla_ CSS or pre-processors workflows like Sass/Less and a bundler like [webpack][], but it doesn't make use of the advantages of CSS-in-JS libraries like _styled-components_, e.g. auto-prefixing and CSS optimizing.
1212

1313
[styled-modern-normalize][npm-styled-modern-normalize] is a proxy package of [modern-normalize.css][npm-modern-normalize] for [styled-components][] to provide the CSS as template literal with interpolation by using _styled-component_'s [`css`][sc-doc-api-css] API function. This allows to import and use it via [`injectGlobal`][sc-doc-api-injectglobal] or any other styled component.
1414

15-
The package is based on and compatible with _modern-normalize.css_ version 0.4.0.
15+
The package is based on and compatible with _modern-normalize.css_ version 0.5.0.
1616

1717
## Getting Started
1818

@@ -84,7 +84,7 @@ The version of _modern-normalize.css_ this package is currently based is exporte
8484
import { MODERN_NORMALIZE_VERSION } from "styled-modern-normalize";
8585

8686
// Example:
87-
console.log(MODERN_NORMALIZE_VERSION); // "0.4.0"
87+
console.log(MODERN_NORMALIZE_VERSION); // "0.5.0"
8888
```
8989

9090
### Development Workflow

src/index.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import { css } from "styled-components";
2424

25-
const MODERN_NORMALIZE_VERSION = "0.4.0";
25+
const MODERN_NORMALIZE_VERSION = "0.5.0";
2626

2727
const modernNormalize = css`
2828
html {
@@ -42,6 +42,7 @@ const modernNormalize = css`
4242
4343
html {
4444
line-height: 1.15;
45+
-webkit-text-size-adjust: 100%;
4546
}
4647
4748
body {
@@ -53,11 +54,6 @@ const modernNormalize = css`
5354
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
5455
}
5556
56-
h1 {
57-
font-size: 2em;
58-
margin: 0.67em 0;
59-
}
60-
6157
hr {
6258
height: 0;
6359
}
@@ -168,10 +164,6 @@ const modernNormalize = css`
168164
font: inherit;
169165
}
170166
171-
details {
172-
display: block;
173-
}
174-
175167
summary {
176168
display: list-item;
177169
}

0 commit comments

Comments
 (0)