Skip to content

Commit

Permalink
inherited link colors
Browse files Browse the repository at this point in the history
  • Loading branch information
herereadthis committed Jul 2, 2015
1 parent 62784a3 commit 95011c6
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
npm-debug.log
.sass-cache/
/dist/
src/components/
src/components/
.idea/
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,25 @@ $ npm run grunt

### CSS importing

##### Recommended (A): Add Mossflower as a Bower dependency
##### Recommended (A): Add Mossflower as an NPM package

```
$ bower install --save mossflower
$ npm install --save mossflower
```

##### Recommended (B): Add Mossflower as a package
If you add Mossflower as an NPM package, then it will default to the `.less` version if you are using commonJS modules

```javascript
// ECMAScript 5
require('mossflower');
// ES6
import 'mossflower';
```
$ npm install --save mossflower

##### Recommended (B): Add Mossflower as a Bower dependency

```
$ bower install --save mossflower
```

##### Alternative: Add Mossflower as a submodule
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mossflower",
"version": "0.2.8",
"version": "0.2.9",
"authors": [
{
"name": "Jimmy Ha",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mossflower",
"version": "0.2.8",
"version": "0.2.9",
"description": "Mossflower is a global reset CSS utility for both LESS and SASS",
"main": "src/less/mossflower.less",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions src/less/globals.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ a {
&:hover {
text-decoration: underline;
}
// typically text tags are given a defined color somewhere else, which will
// then be overridden if they are children of links
span {
color: inherit;
}
}

img {
Expand Down
5 changes: 5 additions & 0 deletions src/sass/_globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ a {
&:hover {
text-decoration: underline;
}
// typically text tags are given a defined color somewhere else, which will
// then be overridden if they are children of links
span {
color: inherit;
}
}

img {
Expand Down

0 comments on commit 95011c6

Please sign in to comment.