-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Hidden - Remove padding at Menubar is shown #460
- Loading branch information
Showing
7 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@use "true" as *; | ||
@use "example" as *; | ||
@use "../src/utils/has" as *; | ||
|
||
@include test-module("`:has()` selector test [mix]") { | ||
@include test("exist `:has()`") { | ||
@include assert { | ||
@include output { | ||
@include Has { | ||
@include example; | ||
} | ||
} | ||
@include expect { | ||
@supports selector(:has(a)) { | ||
@include example; | ||
} | ||
} | ||
} | ||
} | ||
@include test("don't exist `:has()`") { | ||
@include assert { | ||
@include output { | ||
@include NotHas { | ||
@include example; | ||
} | ||
} | ||
@include expect { | ||
@supports not selector(:has(a)) { | ||
@include example; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Need `:has selector` | ||
|
||
@mixin Has() { | ||
@supports selector(:has(a)) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin NotHas() { | ||
@supports not selector(:has(a)) { | ||
@content; | ||
} | ||
} |