1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

<Menu/> styles fine-tuning (#4279)

This commit is contained in:
Alex Andreev 2021-11-16 19:14:28 +03:00 committed by GitHub
parent c3bf05a263
commit df230d2bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 20 deletions

View File

@ -58,13 +58,8 @@
} }
.ItemListLayoutVisibilityMenu { .ItemListLayoutVisibilityMenu {
.MenuItem {
padding: 0;
}
.Checkbox { .Checkbox {
width: 100%; --checkbox-color: inherit;
padding: var(--spacing); color: var(--checkbox-color);
cursor: pointer;
} }
} }

View File

@ -29,7 +29,7 @@
list-style: none; list-style: none;
border: 1px solid var(--borderColor); border: 1px solid var(--borderColor);
z-index: 101; 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; border-radius: 4px;
&.portal { &.portal {
@ -64,19 +64,28 @@
.MenuItem { .MenuItem {
--color: var(--textColorPrimary); --color: var(--textColorPrimary);
--color-active: var(--textColorAccent); --color-active: white;
--bgc-active: var(--menuActiveBackground); --bgc-active: var(--menuActiveBackground);
--spacing: #{$padding};
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
color: var(--color); color: var(--color);
padding: var(--spacing); padding: 6px var(--padding);
margin-bottom: -3px;
white-space: nowrap; white-space: nowrap;
transition: 250ms background;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
border-radius: 6px;
border: 3px solid var(--bgc);
&:last-of-type {
margin-bottom: 0;
}
&:not(.disabled) {
cursor: pointer;
}
&:hover:not(.disabled) { &:hover:not(.disabled) {
color: var(--color-active); color: var(--color-active);
@ -84,14 +93,9 @@
cursor: pointer; cursor: pointer;
} }
&:focus { &.active, &:focus {
outline: 2px solid var(--colorInfo);
}
&.active {
color: var(--color-active); color: var(--color-active);
background-color: var(--bgc-active); background-color: var(--bgc-active);
cursor: default;
} }
&.disabled { &.disabled {
@ -114,3 +118,9 @@
} }
} }
} }
.theme-light {
.Menu {
border: 1px solid var(--borderColor);
}
}

View File

@ -125,7 +125,7 @@
"inputControlHoverBorder": "#474a4f", "inputControlHoverBorder": "#474a4f",
"lineProgressBackground": "#414448", "lineProgressBackground": "#414448",
"radioActiveBackground": "#36393e", "radioActiveBackground": "#36393e",
"menuActiveBackground": "#36393e", "menuActiveBackground": "#3d90ce",
"menuSelectedOptionBgc": "#36393e", "menuSelectedOptionBgc": "#36393e",
"canvasBackground": "#24292e", "canvasBackground": "#24292e",
"scrollBarColor": "#5f6064", "scrollBarColor": "#5f6064",

View File

@ -125,7 +125,7 @@
"inputControlHoverBorder": "#b9bbbe", "inputControlHoverBorder": "#b9bbbe",
"lineProgressBackground": "#e8e8e8", "lineProgressBackground": "#e8e8e8",
"radioActiveBackground": "#f1f1f1", "radioActiveBackground": "#f1f1f1",
"menuActiveBackground": "#e8e8e8", "menuActiveBackground": "#3d90ce",
"menuSelectedOptionBgc": "#e8e8e8", "menuSelectedOptionBgc": "#e8e8e8",
"canvasBackground": "#24292e", "canvasBackground": "#24292e",
"scrollBarColor": "#bbbbbb", "scrollBarColor": "#bbbbbb",