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

Polishing settings styles (#2534)

* Polishing settings css

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fixing inputs border-radius

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing Box component

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing unused import

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove content region style fixes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Revert theme colors

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Set new colors in theme files

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Change Cluster extectedText

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-04-19 15:19:09 +03:00 committed by GitHub
parent 400a348c0d
commit d5bc7425f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 18 deletions

View File

@ -91,7 +91,7 @@ describe("Lens cluster pages", () => {
name: "Cluster", name: "Cluster",
href: "cluster", href: "cluster",
expectedSelector: "div.ClusterOverview div.label", expectedSelector: "div.ClusterOverview div.label",
expectedText: "Master" expectedText: "CPU"
}] }]
}, },
{ {

View File

@ -125,9 +125,9 @@ export class Preferences extends React.Component {
/> />
</section> </section>
<hr className="small"/> <hr/>
<section id="shell" className="small"> <section id="shell">
<SubTitle title="Terminal Shell Path"/> <SubTitle title="Terminal Shell Path"/>
<Input <Input
theme="round-black" theme="round-black"

View File

@ -4,7 +4,6 @@
overflow: hidden; // required for transition effect on hover overflow: hidden; // required for transition effect on hover
color: white; color: white;
font-family: var(--font-main); font-family: var(--font-main);
font-weight: var(--font-weight-bold);
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;

View File

@ -98,8 +98,9 @@
label { label {
background: var(--inputControlBackground); background: var(--inputControlBackground);
border: 1px solid var(--inputControlBorder); border: 1px solid var(--inputControlBorder);
border-radius: 4px; border-radius: 5px;
padding: $padding; padding: $padding;
color: var(--textColorTertiary);
&:hover { &:hover {
border-color: var(--inputControlHoverBorder); border-color: var(--inputControlHoverBorder);

View File

@ -7,6 +7,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
display: grid !important; display: grid !important;
color: var(--settingsColor);
@include media("<1000px") { @include media("<1000px") {
--width: 85%; --width: 85%;
@ -40,7 +41,7 @@
.sidebar { .sidebar {
width: 218px; width: 218px;
padding: 60px 10px 60px 20px; padding: 60px 0 60px 20px;
.Tabs { .Tabs {
.header { .header {
@ -62,18 +63,18 @@
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
font-weight: 500;
font-size: 15px; font-size: 15px;
line-height: 20px; line-height: 20px;
cursor: pointer; cursor: pointer;
color: var(--textColorSecondary); border-top-right-radius: 0;
border-bottom-right-radius: 0;
&::after { &::after {
content: none; content: none;
} }
&:hover { &:hover {
background-color: var(--navHoverBackground); background-color: var(--navSelectedBackground);
color: var(--navHoverColor); color: var(--navHoverColor);
} }
@ -194,5 +195,9 @@
display: none; display: none;
} }
} }
.Checkbox .label {
color: var(--textColorTertiary);
}
} }
} }

View File

@ -206,6 +206,11 @@ html {
&__control { &__control {
box-shadow: 0 0 0 1px var(--inputControlBorder); box-shadow: 0 0 0 1px var(--inputControlBorder);
background: var(--inputControlBackground); background: var(--inputControlBackground);
border-radius: 5px;
}
&__single-value {
color: var(--textColorTertiary);
} }
&__menu { &__menu {

View File

@ -11,12 +11,13 @@
"primary": "#3d90ce", "primary": "#3d90ce",
"textColorPrimary": "#8e9297", "textColorPrimary": "#8e9297",
"textColorSecondary": "#a0a0a0", "textColorSecondary": "#a0a0a0",
"textColorTertiary": "#909ba6",
"textColorAccent": "#ffffff", "textColorAccent": "#ffffff",
"textColorDimmed": "#8e92978c", "textColorDimmed": "#8e92978c",
"borderColor": "#4c5053", "borderColor": "#4c5053",
"borderFaintColor": "#373a3e", "borderFaintColor": "#373a3e",
"mainBackground": "#1e2124", "mainBackground": "#1e2124",
"secondaryBackground": "#212427", "secondaryBackground": "#1e2125",
"contentColor": "#262b2f", "contentColor": "#262b2f",
"layoutBackground": "#2e3136", "layoutBackground": "#2e3136",
"layoutTabsBackground": "#252729", "layoutTabsBackground": "#252729",
@ -115,17 +116,17 @@
"chartCapacityColor": "#4c545f", "chartCapacityColor": "#4c545f",
"pieChartDefaultColor": "#30353a", "pieChartDefaultColor": "#30353a",
"inputOptionHoverColor": "#87909c", "inputOptionHoverColor": "#87909c",
"inputControlBackground": "#00000021", "inputControlBackground": "#1e2125",
"inputControlBorder": "#202225bf", "inputControlBorder": "#414448",
"inputControlHoverBorder": "#07080880", "inputControlHoverBorder": "#474a4f",
"lineProgressBackground": "#414448", "lineProgressBackground": "#414448",
"radioActiveBackground": "#36393e", "radioActiveBackground": "#36393e",
"menuActiveBackground": "#36393e", "menuActiveBackground": "#36393e",
"menuSelectedOptionBgc": "#36393e", "menuSelectedOptionBgc": "#36393e",
"scrollBarColor": "#5f6064", "scrollBarColor": "#5f6064",
"settingsBackground": "#2b3035", "settingsBackground": "#262b2e",
"navSelectedBackground": "#4f545c52", "settingsColor": "#909ba6",
"navHoverBackground": "#4f545c29", "navSelectedBackground": "#262b2e",
"navHoverColor": "#dcddde", "navHoverColor": "#dcddde",
"hrColor": "#ffffff0f" "hrColor": "#ffffff0f"
} }

View File

@ -11,6 +11,7 @@
"primary": "#3d90ce", "primary": "#3d90ce",
"textColorPrimary": "#555555", "textColorPrimary": "#555555",
"textColorSecondary": "#51575d", "textColorSecondary": "#51575d",
"textColorTertiary": "#555555",
"textColorAccent": "#333333", "textColorAccent": "#333333",
"textColorDimmed": "#5557598c", "textColorDimmed": "#5557598c",
"borderColor": "#c9cfd3", "borderColor": "#c9cfd3",
@ -126,8 +127,8 @@
"scrollBarColor": "#bbbbbb", "scrollBarColor": "#bbbbbb",
"canvasBackground": "#24292e", "canvasBackground": "#24292e",
"settingsBackground": "#ffffff", "settingsBackground": "#ffffff",
"navSelectedBackground": "#747f8d3d", "settingsColor": "#555555",
"navHoverBackground": "#747f8d14", "navSelectedBackground": "#ffffff",
"navHoverColor": "#2e3135", "navHoverColor": "#2e3135",
"hrColor": "#06060714" "hrColor": "#06060714"
} }