sass-lintage (indentation, imbrication, clarté, etc)

This commit is contained in:
PhilippeVay 2016-12-08 14:24:27 +01:00
parent 12239d8b07
commit 0374d02282
16 changed files with 211 additions and 101 deletions

View file

@ -30,10 +30,12 @@
filter: grayscale(1);
}
ul.is-unstyled,
ul.unstyled {
list-style: none;
padding-left: 0;
ul {
&.is-unstyled,
&.unstyled {
list-style: none;
padding-left: 0;
}
}
/* Width Helpers */

View file

@ -83,8 +83,8 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html
*/
[class*="#{$kna-namespace}flex-container"],
.#{$kna-namespace}flex-container{
display : flex;
.#{$kna-namespace}flex-container {
display: flex;
flex-wrap: wrap;
}
@ -103,17 +103,17 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html
.#{$kna-namespace}flex-item-first,
.#{$kna-namespace}item-first {
order : -1;
order: -1;
}
.#{$kna-namespace}flex-item-medium,
.#{$kna-namespace}item-medium {
order : 0;
order: 0;
}
.#{$kna-namespace}flex-item-last,
.#{$kna-namespace}item-last {
order : 1;
order: 1;
}
.#{$kna-namespace}flex-item-center,

View file

@ -20,23 +20,19 @@ Description: Reset styles for WordPress usage of KNACSS
.comment-navigation,
.paging-navigation,
.post-navigation {
margin: 0 0 1.5em;
overflow: hidden;
}
margin: 0 0 1.5em;
.comment-navigation .nav-previous,
.paging-navigation .nav-previous,
.post-navigation .nav-previous {
float: left;
width: 50%;
}
& .nav-previous {
float: left;
width: 50%;
}
.comment-navigation .nav-next,
.paging-navigation .nav-next,
.post-navigation .nav-next {
float: right;
text-align: right;
width: 50%;
& .nav-next {
float: right;
width: 50%;
text-align: right;
}
}
// class in img elements
@ -64,7 +60,8 @@ Description: Reset styles for WordPress usage of KNACSS
.comment-content {
clear: both;
&::after, &::before {
&::after,
&::before {
content: "";
display: table;
}
@ -115,7 +112,7 @@ Description: Reset styles for WordPress usage of KNACSS
}
}
// class for categorie
// class for category
.category- {
&name-of-category {
}
@ -128,6 +125,7 @@ Description: Reset styles for WordPress usage of KNACSS
// if display posts
&.blog {
}
// if static page
&.page {
}
@ -138,6 +136,7 @@ Description: Reset styles for WordPress usage of KNACSS
// if is frontpage
&.home {
}
// if static page
&.page {
}
@ -160,6 +159,7 @@ Description: Reset styles for WordPress usage of KNACSS
// if has results
.search-results {
}
// if has no results
.search-no-results {
}
@ -235,10 +235,10 @@ img.wp-smiley {
text-align: center;
vertical-align: top;
@for $i from 2 through 9 {
.gallery-columns-#{$i} & {
$w: floor(10000/$i)/100;
max-width: unquote($w + '%');
@for $i from 2 through 9 {
.gallery-columns-#{$i} & {
$w: floor(10000 / $i) / 100;
max-width: unquote($w + '%');
}
}
}