Skip to content
This repository was archived by the owner on Nov 26, 2021. It is now read-only.

Change from SCSS to plain CSS #5

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 31 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,50 @@
These are simple reset styles to get started on your next frontend project. It uses ideas from all major resets stylesheets like [Eric Meyers Reset](http://meyerweb.com/eric/tools/css/reset/) and [html5doctor.com Reset Stylesheet](http://html5doctor.com/html-5-reset-stylesheet/), but just includes the absolute necessary styles.

## Package Manager
The package is available on [Bower](https://bower.io/) and [npm](https://www.npmjs.com/).
The package is available [npm](https://www.npmjs.com/).

### NPM
Add package to your package.json file by typing this command into your terminal:
Add the package to your package.json file by typing this command into your terminal:

#### NPM
```
npm install miux-reset --save
```

#### Yarn
```
yarn add miux-reset
```

... or add the following line inside 'dependencies'to your package.json:
```
"miux-reset": "^1.0.0"
"miux-reset": "^2.0.0"
```

### Bower
Add package to your bower.json file by typing this command into your terminal:
## Usage
### SCSS/CSS
```
bower install miux-reset --save
import '../../node_modules/miux-reset/reset.css';
/* other imports and more styles */
```
... or add the following line inside 'dependencies'to your bower.json:

### Styled Components (React)
```
"miux-reset": "^1.0.0"
import miuxReset from "miux-reset";

const GlobalStyle = createGlobalStyle`
${miuxReset}
/* other styles */
`;
```

## Version
### 1.0.0
- Reset styles based on SCSS

### 2.0.0
- Plain CSS file for easy import and usage everywhere
- Stripped bower support

## Contributor
[Miux](http://miux.ch) is a small agency in Chur, the eastern part of Switzerland.

Expand Down
19 changes: 0 additions & 19 deletions bower.json

This file was deleted.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "miux-reset",
"version": "1.0.0",
"description": "Simple reset styles",
"main": "reset.scss",
"version": "2.0.0",
"description": "Simple reset styles based on plain CSS",
"main": "reset.css",
"style": "reset.css",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -13,6 +14,7 @@
"keywords": [
"reset",
"scss",
"css",
"style",
"lightweight",
"simple",
Expand All @@ -23,8 +25,6 @@
"Marc Wieland (https://marcwieland.name)"
],
"license": "ISC",
"bugs": {
"url": "https://github.com/miux/reset/issues"
},
"homepage": "http://miux.ch"
"bugs": "https://github.com/miux/reset/issues",
"homepage": "https://miux.ch"
}
16 changes: 8 additions & 8 deletions reset.scss → reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ html, body {
}

html {
height: 100%;
box-sizing: border-box;
overflow-y: scroll;
font-size: 100%;
line-height: 1.25;
color: rgb(0, 0, 0);
color: rgb(0,0,0);
text-size-adjust: none;
text-rendering: optimizeLegibility;
//-webkit-font-smoothing: antialiased;
//-moz-osx-font-smoothing: grayscale;
}

body {
min-height: 100%;
font-variant-ligatures: no-common-ligatures;
}

Expand Down Expand Up @@ -75,11 +75,11 @@ strong {

a {
text-decoration: none;
// remove border on IE
img {
border: none;
}
}

/* remove border on IE */
a img {
border: none;
}

button,
Expand Down