2014-02-03 16:33:44 +01:00
|
|
|
@mixin media($size) {
|
2014-02-03 23:10:54 +01:00
|
|
|
@media screen and (max-width: $size) {
|
|
|
|
@content;
|
|
|
|
}
|
2014-01-30 12:20:51 +01:00
|
|
|
}
|
|
|
|
|
2014-02-03 23:10:54 +01:00
|
|
|
@mixin font-size($px) {
|
|
|
|
font-size: $px + px;
|
2014-05-08 12:24:17 +02:00
|
|
|
font-size: #{$px / $base-font-size}rem;
|
2014-05-09 11:00:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin background-size($size) {
|
2014-05-09 11:08:21 +02:00
|
|
|
-webkit-background-size: $size;
|
2014-05-09 13:19:28 +02:00
|
|
|
-moz-background-size: $size;
|
|
|
|
-o-background-size: $size;
|
|
|
|
background-size: $size;
|
2014-05-09 11:00:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin font-smoothing {
|
2014-05-09 11:08:21 +02:00
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2014-05-09 13:19:28 +02:00
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
font-smoothing: antialiased;
|
2014-05-09 11:08:21 +02:00
|
|
|
text-rendering: optimizeLegibility;
|
2014-05-09 11:00:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin placeholder {
|
2014-05-09 11:08:21 +02:00
|
|
|
::-webkit-input-placeholder {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
:-moz-placeholder {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
::-moz-placeholder {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
:-ms-input-placeholder {
|
|
|
|
@content;
|
|
|
|
}
|
2014-05-09 13:19:28 +02:00
|
|
|
}
|