Skip to content

Commit

Permalink
FFE-169 Added right-padding on columns, included reset class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Nordström committed Mar 10, 2017
1 parent 20fd4a0 commit 31b888a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules
examples/examples.css
examples/fonts/
npm-debug.log
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## Version 7.0.1
* right-padding on `__details-col` to make space between columns, use modifier `--no-padding` to cancel

## Version 7.0.0

**Potentially breaking change:** The first column is now fixed at 33.33% width.
Expand Down
7 changes: 7 additions & 0 deletions less/ffe-details-list.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
}

&__details-col {
padding-right: 20px;

&:nth-child(1) {
// This approach was used, rather than just width: 33.33%;, because of weird behavior
// with four columns where the first column would only wrap its children, not take up
Expand All @@ -54,6 +56,11 @@
flex-grow: 2;
text-align: right;
}

&&--last,
&&--no-padding {
padding-right: 0;
}
}
}

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": "ffe-details-list",
"version": "7.0.0",
"version": "7.0.1",
"description": "Opplisting av attributter i en grid",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 31b888a

Please sign in to comment.