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
// Dotted underline border. | |
// https://jsfiddle.net/xandeadx/n16294kk/1/ | |
// | |
// Usage: | |
// @include dotted-border; | |
// @include dotted-border(#bebebe, 3px); | |
// @include dotted-border(#bebebe, 1px, 3px); | |
@mixin dotted-border($color: #000, $dot-width: 1px, $separator-width: 1px) { | |
background-image: linear-gradient(to right, $color $dot-width, transparent $dot-width); | |
background-position: 0 bottom; |
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); |
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
// 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
// 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
// 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
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
li { | |
position: relative; | |
&::before { | |
@include triangle(12px, #fff, right); | |
content: ''; | |
display: block; | |
width: 6px; | |
height: 10px; | |
position: absolute; |
OlderNewer