diff options
author | Ben Burwell <ben@benburwell.com> | 2015-08-11 22:59:47 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2015-08-11 22:59:47 -0400 |
commit | d5560f3dd006cbb21c2ce2da9bbbe723b7fc2a2d (patch) | |
tree | 9989d0c958937611595666f0bafb8a1cdfef1bef /_sass/tiny/_mixins.scss | |
parent | 6b0fad5657d802603cb6f64f51b5387bbfbc2059 (diff) | |
parent | af51b0ef270746181e4d43626074f5b08bcaf9c3 (diff) |
Merge pull request #6 from benburwell/use-primer-css
Use Tiny CSS
Diffstat (limited to '_sass/tiny/_mixins.scss')
-rw-r--r-- | _sass/tiny/_mixins.scss | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/_sass/tiny/_mixins.scss b/_sass/tiny/_mixins.scss new file mode 100644 index 0000000..3afa7e9 --- /dev/null +++ b/_sass/tiny/_mixins.scss @@ -0,0 +1,36 @@ +// Clearfix +// +// Clears floats via mixin (avoid using as a class). + +@mixin clearfix { + &:before { + display: table; + content: ""; + } + + &:after { + display: table; + clear: both; + content: ""; + } +} + +// Text hiding for image based text replacement. +// Higher performance than -9999px because it only renders +// the size of the actual text, not a full 9999px box. + +@mixin hide-text() { + overflow: hidden; + text-indent: 100%; + white-space: nowrap; +} + +@mixin gradient($start: #fafafa, $end: #eaeaea) { + background-color: $end; + // FF 3.6+ + background-image: -moz-linear-gradient($start, $end); + // Safari 5.1+, Chrome 10+ + background-image: -webkit-linear-gradient($start, $end); + background-image: linear-gradient($start, $end); + background-repeat: repeat-x; +} |