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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0) | |
// ---- | |
@mixin alert-variant($background, $border, $text-color) { | |
background-color: $background; | |
border-color: $border; | |
color: $text-color; |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
//From:http://codepen.io/qiu8310/pen/EGyei | |
// 在 list 中第 index 个字符串后加上 value 字符串 | |
// list: (a b c d) index: 3, value: _hack => (a b c_hack d) | |
@function list-nth-append($list, $index, $value) { |
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
$grid-prefix: span !default; | |
$grid-width: 60px !default; | |
$grid-gutter: 20px !default; | |
%grid { |
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
//去掉一个值的单位,如12px => 12 | |
@function strip-units($number){ | |
@return $number / ($number * 0 + 1); | |
} |
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
@charset "UTF-8"; | |
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) |
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
%clearfix { | |
zoom: 1; | |
&:before, | |
&:after { |
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
// ---- | |
// Sass (v3.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
@charset "UTF-8"; | |
//From super-gradient (https://github.com/mibgs/super-gradient/blob/master/_super-gradient.scss) | |
//contains返回的值是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
// ---- | |
// Sass (v3.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
@charset "UTF-8"; | |
//From super-gradient (https://github.com/mibgs/super-gradient/blob/master/_super-gradient.scss) | |
//contains返回的值是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
// ---- | |
// Sass (v3.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
$time: "?t="; | |
$bg-path: "../images/"; | |
body{ | |
background: url(#{$bg-path}icon.png#{$time}1234) no-repeat; | |
} |
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
// ---- | |
// Sass (v3.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin folded-corner($background, $size, $angle: 30deg) { | |
position: relative; | |
background: $background; /* Fallback */ | |
background: linear-gradient($angle - 180deg, transparent $size, $background 0); |