File tree Expand file tree Collapse file tree 8 files changed +55
-67
lines changed Expand file tree Collapse file tree 8 files changed +55
-67
lines changed Original file line number Diff line number Diff line change 1+ # sass-lint config generated by make-sass-lint-config v0.1.2
2+ files :
3+ include : ' **/*.s+(a|c)ss'
4+ options :
5+ formatter : stylish
6+ merge-default-rules : true
7+ rules :
8+ bem-depth : 1
9+ border-zero :
10+ - 1
11+ - convention : zero
12+ brace-style :
13+ - 1
14+ - allow-single-line : false
15+ class-name-format :
16+ - 1
17+ - convention : ^(?!js-).*
18+ convention-explanation : should not be written in the form js-*
19+ extends-before-declarations : 0
20+ extends-before-mixins : 0
21+ function-name-format : 1
22+ id-name-format :
23+ - 1
24+ - convention : hyphenatedbem
25+ leading-zero : 0
26+ mixin-name-format : 1
27+ mixins-before-declarations : 0
28+ # SEE: https://tech.bellycard.com/blog/sass-mixins-vs-extends-the-data/
29+ no-extends : 1
30+ no-qualifying-elements : 0
31+ placeholder-name-format :
32+ - 1
33+ - convention : hyphenatedbem
34+ property-sort-order : 0
35+ variable-name-format : 1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11@import ' variables' ;
22
3-
43.flag {
54 margin-left : -1rem ;
65
76 & :nth-child (1 ) {
8- opacity : $flag-starting-opacity - .5 ;
7+ opacity : $flag-starting-opacity - 0 .5 ;
98 }
109
1110 & :nth-child (2 ) {
12- opacity : $flag-starting-opacity - .4 ;
11+ opacity : $flag-starting-opacity - 0 .4 ;
1312 }
1413
1514 & :nth-child (3 ) {
16- opacity : $flag-starting-opacity - .3 ;
15+ opacity : $flag-starting-opacity - 0 .3 ;
1716 }
1817
1918 & :nth-child (4 ) {
20- opacity : $flag-starting-opacity - .2 ;
19+ opacity : $flag-starting-opacity - 0 .2 ;
2120 }
2221
2322 & :nth-child (5 ) {
Original file line number Diff line number Diff line change 33@import ' colors' ;
44@import ' CustomFlag' ;
55
6-
76.flag-block {
87 border-bottom : 1px dotted col (grey-ultra-light );
98 border-right : 1px dotted col (grey-ultra-light );
109 box-sizing : border-box ;
11- padding : 1rem .5rem 0 ;
10+ padding : 1rem 0 .5rem 0 ;
1211 text-align : center ;
13- transition : background .5s ;
12+ transition : background 0 .5s ;
1413
1514 .country-name {
1615 margin-top : 1rem ;
1918 .country-code {
2019 color : col (red-it );
2120 font-size : $font-size-country-code ;
22- padding : 0 0 0 .25rem ;
21+ padding : 0 0 0 0 .25rem ;
2322 }
2423
2524 & :hover {
Original file line number Diff line number Diff line change 22@import ' mixins' ;
33@import ' colors' ;
44
5-
65body {
76 font-family : ' Open Sans' , sans-serif ;
87 font-size : 1rem ;
98}
109
11- % base-heading {
10+ @mixin base-heading {
1211 text-align : center ;
1312 text-transform : uppercase ;
1413}
@@ -18,14 +17,14 @@ body {
1817}
1918
2019.heading {
21- @extend % base-heading ;
20+ @include base-heading ;
2221 font-size : 1.5rem ;
2322}
2423
2524.sub-heading {
26- @extend % base-heading ;
25+ @include base-heading ;
2726 color : col (red-it );
28- font-size : .8rem ;
27+ font-size : 0 .8rem ;
2928}
3029
3130// Flags
Original file line number Diff line number Diff line change 11$colors : (
22 grey-ultra-light : #e6e6e6 ,
33 grey-light : #ddd ,
4- red-it : #ce2b37 ,
5- green-it : #009246
4+ red-it : #ce2b37 ,
5+ green-it : #009246 ,
66);
77
88@function col ($color-code ) {
Original file line number Diff line number Diff line change 44 $instructions : ' ' ;
55 @if ($max and $min ) {
66 $instructions : ' (min-width: #{$min } ) and (max-width: #{$max } )' ;
7- }@elseif ($min ) {
7+ }
8+ @elseif ($min ) {
89 $instructions : ' (min-width: #{$min } )' ;
9- }@elseif ($max ) {
10+ }
11+ @elseif ($max ) {
1012 $instructions : ' (max-width: #{$max } )' ;
1113 }
1214
6264@mixin flag-block-mq-content ($items-per-row ) {
6365 width : calc (100% / #{$items-per-row } );
6466
65- & :nth-child (#{$items-per-row } n + #{$items-per-row } ) {
67+ & :nth-child (#{$items-per-row } n + #{$items-per-row } ) {
6668 border-right : 0 ;
6769 }
6870
69- & :nth-last-child (-n + #{$items-per-row - 1 } ) {
71+ & :nth-last-child (-n + #{$items-per-row - 1 } ) {
7072 border-bottom : 0 ;
7173 }
7274}
Original file line number Diff line number Diff line change 11$flag-starting-opacity : 1 ;
2- $font-size-country-code : .75rem ;
2+ $font-size-country-code : 0 .75rem ;
You can’t perform that action at this time.
0 commit comments