Last active
April 6, 2017 22:51
-
-
Save renatodeleao/d844cd35cce9108f2ff7750bb6a1eec2 to your computer and use it in GitHub Desktop.
Revisions
-
renatodeleao revised this gist
Aug 5, 2016 . 1 changed file with 0 additions and 1 deletion.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 @@ -1,4 +1,3 @@ [data-layout]{ position: relative; display: flex; -
renatodeleao renamed this gist
Aug 5, 2016 . 1 changed file with 1 addition and 0 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 @@ -1,3 +1,4 @@ ```SCSS [data-layout]{ position: relative; display: flex; -
renatodeleao created this gist
Aug 5, 2016 .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,35 @@ [data-layout]{ position: relative; display: flex; } //contains keyowords [data-layout*="vertical"] { flex-direction: column; } [data-layout*="wrap"] { flex-wrap: wrap; } [data-layout*="between"] { justify-content: space-between; } [data-layout*="center"] { justify-content: center; } [data-layout*="around"] { justify-content: space-around; } [data-layout*="end"] { justify-content: flex-end } [data-layout*="baseline"] { align-items: baseline;} [data-layout*="top"] { align-items: flex-start; } [data-layout*="bottom"] { align-items: flex-end; } [data-layout*="middle"] { align-items: center; } [class*="--expander"]{ flex: 1; } [class*="--breaker"]{ flex: 1 1 100%; } [class*="--shy-left"]{ margin-left: auto; } [class*="--shy-right"]{ margin-left: auto; }