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 characters
- var n = 1 | |
while n <= 6 | |
.item | |
img(src="images/screenshot-" + n++ + ".png") |
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 characters
img { | |
filter: drop-shadow(0 0 20px #222);} | |
} |
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 characters
li { | |
position: relative; | |
&::before { | |
@include triangle(12px, #fff, right); | |
content: ''; | |
display: block; | |
width: 6px; | |
height: 10px; | |
position: absolute; |
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 characters
a { | |
color: #fff; | |
position: relative; | |
text-decoration: none; | |
&:hover { | |
&::after { | |
border: 1px solid #fff; | |
bottom: -5px; | |
content: ''; |
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 characters
// Clearfix. | |
// Works in IE6 and up. | |
// http://zerosixthree.se/8-sass-mixins-you-must-have-in-your-toolbox/ | |
// | |
// Usage: @extend %clearfix; | |
%clearfix { | |
*zoom: 1; | |
&:before, &:after { | |
content: " "; | |
display: table; |
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 characters
// Font size calculation. | |
@mixin font-size($size, $compute-line-height: false) { | |
font-size: #{strip-unit($size)}px; | |
font-size: rem($size); | |
@if $compute-line-height == true { | |
line-height: #{floor($line-height-base * $size)}px; | |
} | |
} |
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 characters
// Iconic font mapping. | |
// | |
// Usage: | |
// @include icon(a); | |
// @include icon(b); | |
@mixin icon($letter) { | |
.icon { | |
&.icon-#{$letter}::before { | |
content: '#{$letter}'; | |
} |
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 characters
// Image circle. | |
// | |
// Usage: | |
// @include image-circle(125px) | |
// @include image-circle(125px, 5px, #bebebe) | |
@mixin image-circle($width, $border-width: null, $border-color: null) { | |
margin: 0 auto; | |
width: $width; | |
img { |
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 characters
// Center element. | |
// https://css-tricks.com/snippets/sass/centering-mixin/ | |
// | |
// Usage: | |
// Arguments: horizontal, vertical | |
// Note: parent div should be in relative position. | |
// | |
// @include centered(); | |
// @include centered(true, false); | |
// @include centered(false, true); |