Skip to content

Commit 9827547

Browse files
authored
Merge pull request #478 from BeAPI/fix/display
fix the display utility (not import in style)
2 parents 5acae56 + ab417cc commit 9827547

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@use "../02-tools/m-breakpoint" as *;
2-
@use "../02-tools/m-style-only" as *;
32

43
/**
54
* Display utilities
@@ -11,17 +10,13 @@
1110
// Visible only on mobile (below mobile-to-desktop-nav breakpoint)
1211
.is-mobile-only {
1312
@include breakpoints(mobile-to-desktop-nav) {
14-
@include style-only {
15-
display: none !important;
16-
}
13+
display: none !important;
1714
}
1815
}
1916

2017
// Visible only on desktop (at or above mobile-to-desktop-nav breakpoint)
2118
.is-desktop-only {
2219
@include breakpoints(mobile-to-desktop-nav, max) {
23-
@include style-only {
24-
display: none !important;
25-
}
20+
display: none !important;
2621
}
2722
}

src/scss/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ variables.$entry-file-name: "style";
3030
*/
3131

3232
@use "04-utilities/wp-admin-bar";
33+
@use "04-utilities/display";
3334
@use "04-utilities/focus";
3435
@use "04-utilities/lazyload";
3536
@use "04-utilities/seo";

0 commit comments

Comments
 (0)