mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Using theme-light global flag
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
b008d75e0f
commit
10bb420afa
@ -1,5 +1,5 @@
|
|||||||
.KubeConfigDialog {
|
.KubeConfigDialog {
|
||||||
&.light {
|
.theme-light & {
|
||||||
.AceEditor {
|
.AceEditor {
|
||||||
border: 1px solid gainsboro;
|
border: 1px solid gainsboro;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
|
|||||||
@ -13,7 +13,6 @@ import { Dialog, DialogProps } from "../dialog";
|
|||||||
import { Icon } from "../icon";
|
import { Icon } from "../icon";
|
||||||
import { Notifications } from "../notifications";
|
import { Notifications } from "../notifications";
|
||||||
import { Wizard, WizardStep } from "../wizard";
|
import { Wizard, WizardStep } from "../wizard";
|
||||||
import { themeStore } from "../../theme.store";
|
|
||||||
import { apiBase } from "../../api";
|
import { apiBase } from "../../api";
|
||||||
|
|
||||||
interface IKubeconfigDialogData {
|
interface IKubeconfigDialogData {
|
||||||
@ -92,7 +91,7 @@ export class KubeConfigDialog extends React.Component<Props> {
|
|||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
{...dialogProps}
|
{...dialogProps}
|
||||||
className={cssNames("KubeConfigDialog", themeStore.activeTheme.type)}
|
className={cssNames("KubeConfigDialog")}
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
onOpen={this.onOpen}
|
onOpen={this.onOpen}
|
||||||
close={this.close}
|
close={this.close}
|
||||||
|
|||||||
@ -8,13 +8,6 @@
|
|||||||
grid-template-columns: [sidebar] minmax(var(--main-layout-header), min-content) [main] 1fr;
|
grid-template-columns: [sidebar] minmax(var(--main-layout-header), min-content) [main] 1fr;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
&.light {
|
|
||||||
main {
|
|
||||||
@include custom-scrollbar(dark);
|
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> .Tabs {
|
> .Tabs {
|
||||||
grid-area: tabs;
|
grid-area: tabs;
|
||||||
background: $layoutTabsBackground;
|
background: $layoutTabsBackground;
|
||||||
@ -69,6 +62,10 @@
|
|||||||
@include custom-scrollbar;
|
@include custom-scrollbar;
|
||||||
$spacing: $margin * 2;
|
$spacing: $margin * 2;
|
||||||
|
|
||||||
|
.theme-light & {
|
||||||
|
@include custom-scrollbar(dark);
|
||||||
|
}
|
||||||
|
|
||||||
grid-area: main;
|
grid-area: main;
|
||||||
overflow-y: scroll; // always reserve space for scrollbar (17px)
|
overflow-y: scroll; // always reserve space for scrollbar (17px)
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import { ErrorBoundary } from "../error-boundary";
|
|||||||
import { Dock } from "../dock";
|
import { Dock } from "../dock";
|
||||||
import { navigate, navigation } from "../../navigation";
|
import { navigate, navigation } from "../../navigation";
|
||||||
import { getHostedCluster } from "../../../common/cluster-store";
|
import { getHostedCluster } from "../../../common/cluster-store";
|
||||||
import { themeStore } from "../../theme.store";
|
|
||||||
|
|
||||||
export interface TabRoute extends RouteProps {
|
export interface TabRoute extends RouteProps {
|
||||||
title: React.ReactNode;
|
title: React.ReactNode;
|
||||||
@ -50,7 +49,7 @@ export class MainLayout extends React.Component<Props> {
|
|||||||
const routePath = navigation.location.pathname;
|
const routePath = navigation.location.pathname;
|
||||||
const cluster = getHostedCluster();
|
const cluster = getHostedCluster();
|
||||||
return (
|
return (
|
||||||
<div className={cssNames("MainLayout", className, themeStore.activeTheme.type)}>
|
<div className={cssNames("MainLayout", className)}>
|
||||||
<header className={cssNames("flex gaps align-center", headerClass)}>
|
<header className={cssNames("flex gaps align-center", headerClass)}>
|
||||||
<span className="cluster">
|
<span className="cluster">
|
||||||
{cluster.preferences?.clusterName || cluster.contextName}
|
{cluster.preferences?.clusterName || cluster.contextName}
|
||||||
|
|||||||
@ -20,6 +20,10 @@
|
|||||||
&.pinned {
|
&.pinned {
|
||||||
.sidebar-nav {
|
.sidebar-nav {
|
||||||
@include custom-scrollbar;
|
@include custom-scrollbar;
|
||||||
|
|
||||||
|
.theme-light & {
|
||||||
|
@include custom-scrollbar(dark);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,14 +1,13 @@
|
|||||||
.VirtualList {
|
.VirtualList {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
&.light {
|
|
||||||
.list {
|
|
||||||
@include custom-scrollbar(dark);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> .list {
|
> .list {
|
||||||
@include custom-scrollbar;
|
@include custom-scrollbar;
|
||||||
|
|
||||||
|
.theme-light & {
|
||||||
|
@include custom-scrollbar(dark);
|
||||||
|
}
|
||||||
|
|
||||||
overflow-y: overlay !important;
|
overflow-y: overlay !important;
|
||||||
overflow-x: hidden !important;
|
overflow-x: hidden !important;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user