mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Replace placeholder mixin with pseudo-element
This commit is contained in:
parent
3b63997ad2
commit
220c0ada63
2
sass/base/skeleton.scss
vendored
2
sass/base/skeleton.scss
vendored
@ -65,7 +65,7 @@ input.#{iv.$class-prefix}is-skeleton,
|
||||
textarea.#{iv.$class-prefix}is-skeleton {
|
||||
resize: none;
|
||||
|
||||
@include mx.placeholder {
|
||||
&::placeholder {
|
||||
color: transparent !important;
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ $input-radius: cv.getVar("radius") !default;
|
||||
#{cv.getVar("input-color-l")}
|
||||
);
|
||||
|
||||
@include mx.placeholder {
|
||||
&::placeholder {
|
||||
color: cv.getVar("input-placeholder-color");
|
||||
}
|
||||
|
||||
@ -167,7 +167,7 @@ $input-radius: cv.getVar("radius") !default;
|
||||
box-shadow: none;
|
||||
color: cv.getVar("input-disabled-color");
|
||||
|
||||
@include mx.placeholder {
|
||||
&::placeholder {
|
||||
color: cv.getVar("input-disabled-placeholder-color");
|
||||
}
|
||||
}
|
||||
|
@ -222,16 +222,6 @@
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
@mixin placeholder {
|
||||
$placeholders: ":-moz" ":-webkit-input" "-moz" "-ms-input";
|
||||
|
||||
@each $placeholder in $placeholders {
|
||||
&:#{$placeholder}-placeholder {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin reset {
|
||||
appearance: none;
|
||||
background: none;
|
||||
|
Loading…
Reference in New Issue
Block a user