-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2024 Theme: add My Courses to local nav
Temporary styling solution until we add support for a secondary section in the mu-plugins local navigation block. Closes #2481
- Loading branch information
1 parent
bfb44be
commit e74485b
Showing
3 changed files
with
22 additions
and
0 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
15 changes: 15 additions & 0 deletions
15
wp-content/themes/pub/wporg-learn-2024/src/style/_local-nav.scss
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,15 @@ | ||
.wp-block-wporg-local-navigation-bar { | ||
&:not(.wporg-show-collapsed-nav) { | ||
[href*="my-courses"] { | ||
padding-left: var(--wp--style--block-gap); | ||
|
||
&::before { | ||
content: "\2022"; | ||
inset-inline-start: -5px; | ||
opacity: 0.4; | ||
position: absolute; | ||
} | ||
|
||
} | ||
} | ||
} |
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