We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9fd53e0 + 73daeaa commit 31c72cdCopy full SHA for 31c72cd
src/scss/02-tools/_m-hover-prevent-touch.scss
@@ -0,0 +1,11 @@
1
+/**
2
+ * The hover style will only work when the user is using a tool device like a mouse or a trackpad.
3
+ * https://defensivecss.dev/tip/hover-media/
4
+ */
5
+@mixin hover-prevent-touch() {
6
+ @media (hover: hover) {
7
+ &:hover {
8
+ @content;
9
+ }
10
11
+}
src/scss/02-tools/tools.scss
@@ -24,6 +24,7 @@
24
@import "./m-editor-only";
25
@import "./m-heading";
26
@import "./m-hover";
27
+@import "./m-hover-prevent-touch";
28
@import "./m-line-clamp";
29
@import "./m-placeholder-media";
30
@import "./m-radio-custom";
0 commit comments