Skip to content

Commit

Permalink
Merge pull request #13 in FFE/ffe-details-list from feature/FFE-130-s…
Browse files Browse the repository at this point in the history
…tylelint to master

* commit '5be912c09e3e1c4e9913ef025fdbfeeef0f16320':
  Fix linting errors
  FFE-130 Add stylelint with ffe config
  • Loading branch information
kwltrs committed Jan 10, 2017
2 parents 99c228d + 23627b8 commit 6f97534
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-ffe"
}
13 changes: 0 additions & 13 deletions less/ffe-details-list.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.ffe-details-list {

&__details-row,
&__section-title {
text-align: left;
Expand All @@ -11,15 +10,13 @@
&--no-border {
border-bottom: none;
}

}

&__section-title {
margin-top: 60px;
}

@media screen and (min-width: @breakpoint-md) {

&__details-row {
display: flex;
flex-flow: row nowrap;
Expand All @@ -33,7 +30,6 @@
}

&__details-col {

&:nth-child(1) {
min-width: 33.33%;
}
Expand All @@ -54,34 +50,25 @@
flex-grow: 2;
text-align: right;
}

}

}

@media screen and (min-width: @breakpoint-lg) {

&__details-row,
&__section-title {
padding: 20px 0;
}

}

}

.no-flexbox .ffe-details-list {

@media screen and (min-width: @breakpoint-md) {

&__details-row {
display: block;
}

&__details-col {
display: inline-block;
}

}

}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"examples": "lessc examples/examples.less examples/examples.css && mkdirp examples/fonts && cp -R node_modules/ffe-core/fonts/* examples/fonts/ && echo Now open /examples/index.html to see styleguide.",
"lint": "lessc --lint examples/examples.less && stylelint less/*.less",
"has-published": "npm show . versions -s | grep -q ${npm_package_version}",
"postpublish": "git tag ${npm_package_version} && git push --tags"
},
Expand Down Expand Up @@ -32,6 +33,8 @@
"ffe-core": "^8.1.0",
"ffe-visual-tests-support": "^2.1.0",
"less": "^2.7.1",
"mkdirp": "^0.5.1"
"mkdirp": "^0.5.1",
"stylelint": "^7.7.1",
"stylelint-config-ffe": "^0.2.0"
}
}

0 comments on commit 6f97534

Please sign in to comment.