Created
August 22, 2014 03:05
-
-
Save matiassingers/d44dd870fc2a34ab1776 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="ordinary-page"> | |
<div class="page-header"> | |
<div class="page-title"> | |
<h1>Ordinary Page Heading</h1> | |
</div> | |
</div> | |
</div> | |
<div class="search"> | |
<div class="page-header"> | |
<div class="page-title"> | |
<h1>Search Page Heading</h1> | |
</div> | |
</div> | |
</div> | |
<div class="error404"> | |
<div class="page-header"> | |
<div class="page-title"> | |
<h1>404 Page Heading</h1> | |
</div> | |
</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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0) | |
// ---- | |
$sections: (search: '[search-icon]', error404: '[404-icon]') | |
.page-title | |
display: inline-block | |
margin: 0 | |
&:before | |
display: inline-block | |
vertical-align: middle | |
color: #222222 | |
-webkit-font-smoothing: antialiased | |
content: '[any-symbol]' // search | |
@each $class, $icon in $sections | |
.#{$class} & | |
content: $icon |
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
.page-title { | |
display: inline-block; | |
margin: 0; | |
} | |
.page-title:before { | |
display: inline-block; | |
vertical-align: middle; | |
color: #222222; | |
-webkit-font-smoothing: antialiased; | |
content: "[any-symbol]"; | |
} | |
.search .page-title:before { | |
content: "[search-icon]"; | |
} | |
.error404 .page-title:before { | |
content: "[404-icon]"; | |
} |
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="ordinary-page"> | |
<div class="page-header"> | |
<div class="page-title"> | |
<h1>Ordinary Page Heading</h1> | |
</div> | |
</div> | |
</div> | |
<div class="search"> | |
<div class="page-header"> | |
<div class="page-title"> | |
<h1>Search Page Heading</h1> | |
</div> | |
</div> | |
</div> | |
<div class="error404"> | |
<div class="page-header"> | |
<div class="page-title"> | |
<h1>404 Page Heading</h1> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment