mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
56 lines
1.1 KiB
SCSS
56 lines
1.1 KiB
SCSS
|
|
// Appearance
|
|
// --------------------------------------------------
|
|
|
|
@mixin appearance($val) {
|
|
-webkit-appearance: $val;
|
|
-moz-appearance: $val;
|
|
}
|
|
|
|
|
|
// Calc
|
|
// --------------------------------------------------
|
|
|
|
@mixin calc($property, $expression) {
|
|
#{$property}: -webkit-calc(#{$expression});
|
|
#{$property}: calc(#{$expression});
|
|
}
|
|
|
|
|
|
// Input Placeholder
|
|
// --------------------------------------------------
|
|
|
|
@mixin placeholder($color: #999, $text-indent: 0) {
|
|
&::-moz-placeholder { // Firefox 19+
|
|
color: $color;
|
|
}
|
|
&:-ms-input-placeholder {
|
|
color: $color;
|
|
}
|
|
&::-webkit-input-placeholder {
|
|
color: $color;
|
|
// Safari placeholder margin issue
|
|
text-indent: $text-indent;
|
|
}
|
|
}
|
|
|
|
|
|
// SVG Background Image Mixin
|
|
// --------------------------------------------------
|
|
|
|
@mixin svg-background-image($svg) {
|
|
$url: url-encode($svg);
|
|
background-image: url("data:image/svg+xml;charset=utf-8,#{$url}");
|
|
}
|
|
|
|
|
|
// User Select None
|
|
// --------------------------------------------------
|
|
|
|
@mixin user-select-none() {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|