mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Menu styles fine-tuning
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
2e54587086
commit
adf5e66a8a
@ -58,13 +58,8 @@
|
||||
}
|
||||
|
||||
.ItemListLayoutVisibilityMenu {
|
||||
.MenuItem {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.Checkbox {
|
||||
width: 100%;
|
||||
padding: var(--spacing);
|
||||
cursor: pointer;
|
||||
--checkbox-color: inherit;
|
||||
color: var(--checkbox-color);
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,10 +27,11 @@
|
||||
flex-direction: column;
|
||||
background: var(--bgc);
|
||||
list-style: none;
|
||||
border: 1px solid $borderColor;
|
||||
border: 1px solid var(--colorVague);
|
||||
z-index: 101;
|
||||
box-shadow: rgba(0,0,0,0.24) 0px 8px 16px 0px;
|
||||
box-shadow: rgb(0 0 0 / 17%) 0px 6px 9px 0px;
|
||||
border-radius: 4px;
|
||||
padding: 4px;
|
||||
|
||||
&.portal {
|
||||
left: -1000px;
|
||||
@ -64,19 +65,27 @@
|
||||
|
||||
.MenuItem {
|
||||
--color: #{$textColorPrimary};
|
||||
--color-active: #{$textColorAccent};
|
||||
--bgc-active: #{$menuActiveBackground};
|
||||
--spacing: #{$padding};
|
||||
--color-active: white;
|
||||
--bgc-active: var(--menuActiveBackground);
|
||||
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--color);
|
||||
padding: var(--spacing);
|
||||
padding: 6px var(--padding);
|
||||
margin-bottom: 2px;
|
||||
white-space: nowrap;
|
||||
transition: 250ms background;
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
border-radius: 3px;
|
||||
|
||||
&:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&:not(.disabled) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:hover:not(.disabled) {
|
||||
color: var(--color-active);
|
||||
@ -84,14 +93,9 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 2px solid $colorInfo;
|
||||
}
|
||||
|
||||
&.active {
|
||||
&.active, &:focus {
|
||||
color: var(--color-active);
|
||||
background-color: var(--bgc-active);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
@ -114,3 +118,9 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.theme-light {
|
||||
.Menu {
|
||||
border: 1px solid var(--borderColor);
|
||||
}
|
||||
}
|
||||
@ -124,7 +124,7 @@
|
||||
"inputControlHoverBorder": "#474a4f",
|
||||
"lineProgressBackground": "#414448",
|
||||
"radioActiveBackground": "#36393e",
|
||||
"menuActiveBackground": "#36393e",
|
||||
"menuActiveBackground": "#3d90ce",
|
||||
"menuSelectedOptionBgc": "#36393e",
|
||||
"scrollBarColor": "#5f6064",
|
||||
"settingsBackground": "#262b2e",
|
||||
|
||||
@ -125,7 +125,7 @@
|
||||
"inputControlHoverBorder": "#b9bbbe",
|
||||
"lineProgressBackground": "#e8e8e8",
|
||||
"radioActiveBackground": "#f1f1f1",
|
||||
"menuActiveBackground": "#e8e8e8",
|
||||
"menuActiveBackground": "#3d90ce",
|
||||
"menuSelectedOptionBgc": "#e8e8e8",
|
||||
"scrollBarColor": "#bbbbbb",
|
||||
"canvasBackground": "#24292e",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user