Created
February 15, 2016 20:42
-
-
Save sdempsey/f1d7b107729eebe74369 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$alignments: left, right, center; | |
.large-hero { | |
color: white; | |
&-content { | |
bottom: 1.5rem; | |
position: absolute; | |
@each $alignment in $alignments { | |
.#{$alignment} & { | |
@if ($alignment != center) { | |
#{$alignment}: 1.5rem; | |
} @else { | |
left: 50%; | |
transform: tranlsateX(-50%); | |
} | |
text-align: #{$alignment}; | |
} | |
} | |
} | |
} |
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
.large-hero { | |
color: white; | |
} | |
.large-hero-content { | |
bottom: 1.5rem; | |
position: absolute; | |
} | |
.left .large-hero-content { | |
left: 1.5rem; | |
text-align: left; | |
} | |
.right .large-hero-content { | |
right: 1.5rem; | |
text-align: right; | |
} | |
.center .large-hero-content { | |
left: 50%; | |
transform: tranlsateX(-50%); | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment