Improve scss: [type="color"]

This commit is contained in:
Lucas Larroche 2021-10-23 16:27:45 +07:00
parent 6ffe09837b
commit 10ae20608a

View file

@ -7,23 +7,30 @@
[type="color"] {
// Wrapper
&::-webkit-color-swatch-wrapper {
@mixin color-wrapper {
padding: 0;
}
&::-webkit-color-swatch-wrapper {
@include color-wrapper;
}
&::-moz-focus-inner {
padding: 0;
@include color-wrapper;
}
// Swatch
&::-webkit-color-swatch {
@mixin color-swatch {
border: none;
border-radius: calc(var(--border-radius) * 0.5);
}
&::-webkit-color-swatch {
@include color-swatch;
}
&::-moz-color-swatch {
border: none;
border-radius: calc(var(--border-radius) * 0.5);
@include color-swatch;
}
}