Last active
February 28, 2020 09:47
-
-
Save iamravenous/b5fb378a14a2bf5ae63d399dcf83a287 to your computer and use it in GitHub Desktop.
Revisions
-
Franco Moya revised this gist
Jun 30, 2017 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ } @include element('link') { display: block; padding: 1.25rem; font-size: 1rem; font-weight: bold; text-transform: uppercase; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ .navbar__link { display: block; padding: 1.25rem; font-size: 1rem; font-weight: bold; text-transform: uppercase; -
Franco Moya revised this gist
Jun 29, 2017 . 2 changed files with 1 addition and 1 deletion.There are no files selected for viewing
File renamed without changes.This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ @import 'bem-builder'; @import 'navbar'; -
Franco Moya created this gist
Jun 29, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ @mixin element($name) { @at-root #{&}__#{$name}{ @content; } } @mixin modifier($name) { @at-root #{&}--#{$name} { @content; } } @mixin modified-by($arg) { .#{$arg} & { @content; } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ .navbar { padding-top: 1.875rem; @include element('list') { display: block; @include modified-by('navbar--center') { display: inline-block; } } @include element('item') { float: left; } @include element('link') { display: block; padding: 20px; font-size: 1rem; font-weight: bold; text-transform: uppercase; @include modifier('active') { background-color: crimson; color: white; } } @include modifier('center') { text-align: center; } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ .navbar { padding-top: 1.875rem; } .navbar__list { display: block; } .navbar--center .navbar__list { display: inline-block; } .navbar__item { float: left; } .navbar__link { display: block; padding: 20px; font-size: 1rem; font-weight: bold; text-transform: uppercase; } .navbar__link--active { background-color: crimson; color: white; } .navbar--center { text-align: center; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ @import 'mixins'; @import 'navbar';