-
-
Save saramayoral/7b4fec78217bc341fc2026646b52515f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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 characters
<div class="container"> | |
<div class="test">hello</div> | |
<div class="test2">hello</div> | |
<div class="test">hello</div> | |
</div> |
This file contains 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 characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@import 'susy'; | |
$susy: ( | |
columns: 12, | |
column-width: 5em, | |
); | |
$gutter: gutters(static); | |
@mixin calc-span($span) { | |
$span: append($span, 'wide'); | |
float: left; | |
width: calc(#{span($span)} - #{$gutter}); | |
margin-right: $gutter; | |
} | |
.container { | |
@include container(show); | |
} | |
.test { | |
@include calc-span(3); | |
background: rgba(gray, .5); | |
} | |
.test2 { | |
@include calc-span(4); | |
background: rgba(gray, .5); | |
} |
This file contains 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 characters
.container { | |
max-width: 73.75em; | |
margin-left: auto; | |
margin-right: auto; | |
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 80%, transparent 80%); | |
background-size: 8.47458%; | |
background-origin: content-box; | |
background-clip: content-box; | |
background-position: left top; | |
} | |
.container:after { | |
content: " "; | |
display: block; | |
clear: both; | |
} | |
.test { | |
float: left; | |
width: calc(25.42373% - 1.25em); | |
margin-right: 1.25em; | |
background: rgba(128, 128, 128, 0.5); | |
} | |
.test2 { | |
float: left; | |
width: calc(33.89831% - 1.25em); | |
margin-right: 1.25em; | |
background: rgba(128, 128, 128, 0.5); | |
} |
This file contains 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 characters
<div class="container"> | |
<div class="test">hello</div> | |
<div class="test2">hello</div> | |
<div class="test">hello</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment