This commit is contained in:
jxxghp
2023-09-14 17:22:23 +08:00
parent 7cce57496d
commit 948e65d383
3 changed files with 24 additions and 25 deletions

View File

@@ -17,18 +17,16 @@
// This mixin is inspired from vuetify for adding hover styles via before pseudo element
@mixin before-pseudo() {
position: relative;
@media (hover) {
&::before {
position: absolute;
background: currentcolor;
block-size: 100%;
border-radius: inherit;
content: "";
inline-size: 100%;
inset: 0;
opacity: 0;
pointer-events: none;
}
&::before {
position: absolute;
background: currentcolor;
block-size: 100%;
border-radius: inherit;
content: "";
inline-size: 100%;
inset: 0;
opacity: 0;
pointer-events: none;
}
}

View File

@@ -8,18 +8,16 @@
// This mixin is inspired from vuetify for adding hover styles via before pseudo element
@mixin before-pseudo() {
position: relative;
@media (hover) {
&::before {
position: absolute;
border-radius: inherit;
background: currentcolor;
block-size: 100%;
content: "";
inline-size: 100%;
inset: 0;
opacity: 0;
pointer-events: none;
}
&::before {
position: absolute;
border-radius: inherit;
background: currentcolor;
block-size: 100%;
content: "";
inline-size: 100%;
inset: 0;
opacity: 0;
pointer-events: none;
}
}