This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nested context menus are created by adding the class v-context__sub to a menu element. Inside the v-context__sub a new container (eg. a UL element) with the class v-context must be created. The v-context container will be opened if the v-context__sub is hovered or the menu element is expanded by keyboard right click.
- Loading branch information
Showing
6 changed files
with
250 additions
and
53 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,47 +1,65 @@ | ||
@import "config"; | ||
|
||
.v-context { | ||
background-color: $menu-bg; | ||
background-clip: padding-box; | ||
border-radius: .25rem; | ||
border: 1px solid $menu-border; | ||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12); | ||
display: block; | ||
margin: 0; | ||
padding: 10px 0; | ||
min-width: 10rem; | ||
z-index: 1500; | ||
position: fixed; | ||
list-style: none; | ||
box-sizing: border-box; | ||
|
||
> li { | ||
|
||
&, & ul { | ||
background-color: $menu-bg; | ||
background-clip: padding-box; | ||
border-radius: .25rem; | ||
border: 1px solid $menu-border; | ||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12); | ||
display: block; | ||
margin: 0; | ||
padding: 10px 0; | ||
min-width: 10rem; | ||
z-index: 1500; | ||
position: fixed; | ||
list-style: none; | ||
box-sizing: border-box; | ||
max-height: calc(100% - 50px); | ||
overflow-y: auto; | ||
|
||
> li { | ||
margin: 0; | ||
position: relative; | ||
|
||
> a { | ||
display: block; | ||
padding: .5rem 1.5rem; | ||
font-weight: 400; | ||
color: $item-color; | ||
text-decoration: none; | ||
white-space: nowrap; | ||
background-color: transparent; | ||
border: 0; | ||
|
||
&:hover, | ||
&:focus { | ||
> a { | ||
display: block; | ||
padding: .5rem 1.5rem; | ||
font-weight: 400; | ||
color: $item-color; | ||
text-decoration: none; | ||
color: $item-hover-color; | ||
background-color: $item-hover-bg; | ||
} | ||
white-space: nowrap; | ||
background-color: transparent; | ||
border: 0; | ||
|
||
&:focus { | ||
outline: 0; | ||
&:hover, | ||
&:focus { | ||
text-decoration: none; | ||
color: $item-hover-color; | ||
background-color: $item-hover-bg; | ||
} | ||
|
||
&:focus { | ||
outline: 0; | ||
} | ||
} | ||
} | ||
|
||
&:focus { | ||
outline: 0; | ||
} | ||
} | ||
|
||
&:focus { | ||
outline: 0; | ||
&__sub { | ||
> a:after { | ||
content: "\2bc8"; | ||
float: right; | ||
padding-left: 1rem; | ||
} | ||
|
||
> ul { | ||
display: none; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.