mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
4151b754ad
commit
4130c3ce91
@ -23,11 +23,9 @@
|
|||||||
|
|
||||||
.CRDDetails {
|
.CRDDetails {
|
||||||
.conditions {
|
.conditions {
|
||||||
.Badge {
|
@include crd-condition-bgc;
|
||||||
@include crd-condition-bgc;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.Table {
|
.Table {
|
||||||
margin-left: -$margin * 2;
|
margin-left: -$margin * 2;
|
||||||
margin-right: -$margin * 2;
|
margin-right: -$margin * 2;
|
||||||
@ -41,21 +39,8 @@
|
|||||||
flex: 0.5;
|
flex: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
|
||||||
flex: 1.5;
|
|
||||||
|
|
||||||
.Badge {
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.json-path {
|
.json-path {
|
||||||
flex: 3;
|
flex: 3;
|
||||||
|
|
||||||
.Badge {
|
|
||||||
white-space: pre-line;
|
|
||||||
text-overflow: initial;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,7 +25,6 @@ import React from "react";
|
|||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import type { CustomResourceDefinition } from "../../api/endpoints/crd.api";
|
import type { CustomResourceDefinition } from "../../api/endpoints/crd.api";
|
||||||
import { cssNames } from "../../utils";
|
|
||||||
import { AceEditor } from "../ace-editor";
|
import { AceEditor } from "../ace-editor";
|
||||||
import { Badge } from "../badge";
|
import { Badge } from "../badge";
|
||||||
import { DrawerItem, DrawerTitle } from "../drawer";
|
import { DrawerItem, DrawerTitle } from "../drawer";
|
||||||
@ -86,7 +85,8 @@ export class CRDDetails extends React.Component<Props> {
|
|||||||
<Badge
|
<Badge
|
||||||
key={type}
|
key={type}
|
||||||
label={type}
|
label={type}
|
||||||
className={cssNames({ disabled: status === "False" }, type)}
|
disabled={status === "False"}
|
||||||
|
className={type}
|
||||||
tooltip={(
|
tooltip={(
|
||||||
<>
|
<>
|
||||||
<p>{message}</p>
|
<p>{message}</p>
|
||||||
|
|||||||
@ -21,13 +21,9 @@
|
|||||||
|
|
||||||
.CrdResourceDetails {
|
.CrdResourceDetails {
|
||||||
.status {
|
.status {
|
||||||
.value {
|
.ready {
|
||||||
.Badge {
|
color: white;
|
||||||
&.ready {
|
background-color: $colorOk;
|
||||||
color: white;
|
|
||||||
background-color: $colorOk;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -90,7 +90,8 @@ export class CrdResourceDetails extends React.Component<Props> {
|
|||||||
.map(({ kind, message, status }, index) => (
|
.map(({ kind, message, status }, index) => (
|
||||||
<Badge
|
<Badge
|
||||||
key={kind + index} label={kind}
|
key={kind + index} label={kind}
|
||||||
className={cssNames({ disabled: status === "False" }, kind.toLowerCase())}
|
disabled={status === "False"}
|
||||||
|
className={kind.toLowerCase()}
|
||||||
tooltip={message}
|
tooltip={message}
|
||||||
/>
|
/>
|
||||||
));
|
));
|
||||||
|
|||||||
@ -30,7 +30,7 @@ $crd-condition-colors: (
|
|||||||
|
|
||||||
@mixin crd-condition-bgc {
|
@mixin crd-condition-bgc {
|
||||||
@each $status, $color in $crd-condition-colors {
|
@each $status, $color in $crd-condition-colors {
|
||||||
&.#{$status} {
|
.#{$status} {
|
||||||
background: $color;
|
background: $color;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,9 +24,6 @@
|
|||||||
--status-default-bg: #{$colorError};
|
--status-default-bg: #{$colorError};
|
||||||
|
|
||||||
.conditions {
|
.conditions {
|
||||||
.Badge {
|
@include node-status-bgs;
|
||||||
cursor: default;
|
|
||||||
@include node-status-bgs;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -33,7 +33,7 @@ $node-status-color-list: (
|
|||||||
|
|
||||||
@mixin node-status-bgs {
|
@mixin node-status-bgs {
|
||||||
@each $status, $color in $node-status-color-list {
|
@each $status, $color in $node-status-color-list {
|
||||||
&.#{$status} {
|
.#{$status} {
|
||||||
background: $color;
|
background: $color;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,8 +33,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.conditions {
|
.conditions {
|
||||||
.Badge {
|
@include job-condition-bgs;
|
||||||
@include job-condition-bgs;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
.JobDetails {
|
.JobDetails {
|
||||||
.conditions {
|
.conditions {
|
||||||
.Badge {
|
@include job-condition-bgs;
|
||||||
@include job-condition-bgs;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -58,8 +58,4 @@
|
|||||||
|
|
||||||
@include pod-status-colors;
|
@include pod-status-colors;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Badge {
|
|
||||||
white-space: normal;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ $cronjob-condition-color-list: (
|
|||||||
|
|
||||||
@mixin job-condition-bgs {
|
@mixin job-condition-bgs {
|
||||||
@each $condition, $color in $job-condition-color-list {
|
@each $condition, $color in $job-condition-color-list {
|
||||||
&.#{$condition} {
|
.#{$condition} {
|
||||||
color: white;
|
color: white;
|
||||||
background: $color;
|
background: $color;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
&.Badge:hover {
|
&.LegendBadge:hover {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -30,10 +30,6 @@
|
|||||||
margin-right: var(--padding);
|
margin-right: var(--padding);
|
||||||
}
|
}
|
||||||
|
|
||||||
.Badge {
|
|
||||||
background-color: var(--dockBadgeBackground);
|
|
||||||
}
|
|
||||||
|
|
||||||
> .controls {
|
> .controls {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
flex: 1 1;
|
flex: 1 1;
|
||||||
|
|||||||
@ -70,7 +70,7 @@ export class PageFiltersList extends React.Component<Props> {
|
|||||||
<Badge
|
<Badge
|
||||||
key={`${type}-${value}`}
|
key={`${type}-${value}`}
|
||||||
title={type}
|
title={type}
|
||||||
className={cssNames("flex gaps filter align-center", type)}
|
className={cssNames("Badge flex gaps filter align-center", type)}
|
||||||
label={(
|
label={(
|
||||||
<>
|
<>
|
||||||
<FilterIcon type={type}/>
|
<FilterIcon type={type}/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user