Skip to content

Instantly share code, notes, and snippets.

@robmazan
Last active August 29, 2015 14:17
Show Gist options
  • Save robmazan/647d84b36de98ea07b38 to your computer and use it in GitHub Desktop.
Save robmazan/647d84b36de98ea07b38 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<section class="some">
<p class="some__element">Hello</p>
</section>
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.some {
&__element {
font-size: 3rem;
display: flex;
width: 200px;
height: 200px;
text-align: center;
box-shadow: 0 0 5px;
justify-content: center;
align-items: center;
@at-root .no-boxshadow & {
border: 1px solid black;
}
@at-root .no-flexbox & {
display: table-cell;
vertical-align: middle;
}
}
}
.some__element {
font-size: 3rem;
display: flex;
width: 200px;
height: 200px;
text-align: center;
box-shadow: 0 0 5px;
justify-content: center;
align-items: center;
}
.no-boxshadow .some__element {
border: 1px solid black;
}
.no-flexbox .some__element {
display: table-cell;
vertical-align: middle;
}
<section class="some">
<p class="some__element">Hello</p>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment