mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Removing parental element styles that affect extensions (#1331)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
89f575701d
commit
6432b3bb9e
@ -19,10 +19,10 @@ export default class SupportPageRendererExtension extends LensRendererExtension
|
|||||||
{
|
{
|
||||||
item: (
|
item: (
|
||||||
<div
|
<div
|
||||||
className="flex align-center gaps hover-highlight"
|
className="SupportPageIcon flex align-center"
|
||||||
onClick={() => Navigation.navigate(supportPageURL())}
|
onClick={() => Navigation.navigate(supportPageURL())}
|
||||||
>
|
>
|
||||||
<Component.Icon material="help" smallest />
|
<Component.Icon interactive material="help" smallest />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,3 +11,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.SupportPageIcon {
|
||||||
|
color: white;
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
padding-right: calc(var(--padding) / 2);
|
||||||
|
}
|
||||||
@ -2,27 +2,19 @@
|
|||||||
$spacing: $padding / 2;
|
$spacing: $padding / 2;
|
||||||
--flex-gap: #{$spacing};
|
--flex-gap: #{$spacing};
|
||||||
|
|
||||||
font-size: $font-size-small;
|
background-color: var(--blue);
|
||||||
background-color: #3d90ce;
|
|
||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
color: white;
|
|
||||||
height: 22px;
|
height: 22px;
|
||||||
|
|
||||||
#current-workspace {
|
#current-workspace {
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
color: white;
|
||||||
padding: $padding / 4 $padding / 2;
|
padding: $padding / 4 $padding / 2;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
|
||||||
|
|
||||||
.hover-highlight {
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #ffffff33;
|
background-color: #ffffff33;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.extensions {
|
|
||||||
> * {
|
|
||||||
padding: $padding / 4 $padding / 2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export class BottomBar extends React.Component {
|
|||||||
const { currentWorkspace } = workspaceStore;
|
const { currentWorkspace } = workspaceStore;
|
||||||
return (
|
return (
|
||||||
<div className="BottomBar flex gaps">
|
<div className="BottomBar flex gaps">
|
||||||
<div id="current-workspace" className="flex gaps align-center hover-highlight">
|
<div id="current-workspace" className="flex gaps align-center">
|
||||||
<Icon smallest material="layers"/>
|
<Icon smallest material="layers"/>
|
||||||
<span className="workspace-name">{currentWorkspace.name}</span>
|
<span className="workspace-name">{currentWorkspace.name}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -9,20 +9,6 @@
|
|||||||
grid-area: main;
|
grid-area: main;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
> * {
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
display: flex;
|
|
||||||
background-color: $mainBackground;
|
|
||||||
|
|
||||||
> * {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ClustersMenu {
|
.ClustersMenu {
|
||||||
@ -32,4 +18,18 @@
|
|||||||
.BottomBar {
|
.BottomBar {
|
||||||
grid-area: bottom-bar;
|
grid-area: bottom-bar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#lens-views {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
display: flex;
|
||||||
|
background-color: $mainBackground;
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -1,4 +1,6 @@
|
|||||||
.ClusterView {
|
.ClusterView {
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
&:empty {
|
&:empty {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,7 +34,7 @@ export class ClusterView extends React.Component<Props> {
|
|||||||
const { cluster } = this;
|
const { cluster } = this;
|
||||||
const showStatus = cluster && (!cluster.available || !hasLoadedView(cluster.id) || !cluster.ready)
|
const showStatus = cluster && (!cluster.available || !hasLoadedView(cluster.id) || !cluster.ready)
|
||||||
return (
|
return (
|
||||||
<div className="ClusterView">
|
<div className="ClusterView flex align-center">
|
||||||
{showStatus && (
|
{showStatus && (
|
||||||
<ClusterStatus key={cluster.id} clusterId={cluster.id} className="box center"/>
|
<ClusterStatus key={cluster.id} clusterId={cluster.id} className="box center"/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
--min-width: 570px;
|
--min-width: 570px;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: grid !important;
|
display: grid !important;
|
||||||
grid-template-rows: min-content 1fr;
|
grid-template-rows: min-content 1fr;
|
||||||
@ -13,6 +14,11 @@
|
|||||||
&.top {
|
&.top {
|
||||||
position: fixed !important; // allow to cover ClustersMenu
|
position: fixed !important; // allow to cover ClustersMenu
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: $mainBackground;
|
||||||
|
|
||||||
// adds extra space for traffic-light top buttons (mac only)
|
// adds extra space for traffic-light top buttons (mac only)
|
||||||
.is-mac & > .header {
|
.is-mac & > .header {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user