-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: WP-65 dropdown-menu css component
- Loading branch information
1 parent
d20f4cb
commit 7f416ae
Showing
4 changed files
with
74 additions
and
75 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
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,54 @@ | ||
/* | ||
Dropdown | ||
A menu of navigation elements. | ||
Styleguide Components.Dropdown | ||
*/ | ||
|
||
/* Nested to prevent styles from affecting CMS header dropdown */ | ||
.workbench-wrapper { | ||
.dropdown-menu { | ||
border-color: var(--global-color-accent--normal); | ||
border-radius: 0; | ||
margin-top: 11px; | ||
padding: 0; | ||
width: 200px; | ||
vertical-align: top; | ||
} | ||
.dropdown-menu::before, | ||
.dropdown-menu::after { | ||
position: absolute; | ||
top: -10px; | ||
left: 65px; | ||
border-right: 10px solid transparent; | ||
border-bottom: 10px solid var(--global-color-accent--normal); | ||
border-left: 10px solid transparent; | ||
margin-left: 20px; | ||
content: ''; | ||
} | ||
.dropdown-menu::after { | ||
border-bottom-color: var(--global-color-primary--xx-light); | ||
} | ||
|
||
.dropdown-item { | ||
padding: 10px 6px; | ||
color: var(--global-color-primary--x-dark); | ||
font-size: 14px; | ||
& i { | ||
padding-right: 19px; | ||
font-size: 20px; | ||
vertical-align: middle; | ||
} | ||
&:hover { | ||
color: var(--global-color-primary--x-dark); | ||
} | ||
} | ||
.dropdown-item:focus, | ||
.dropdown-item:hover { | ||
/* FAQ: Before FP-1083, value was #E6E0FB, which matched Design | ||
and was `--global-color-accent` at 25% opacity on white… | ||
which is what `--global-color-accent--weak` is now */ | ||
background-color: var(--global-color-accent--weak); | ||
} | ||
} |