1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/layout/page-layout.scss
Alex Andreev 909032a535 Styling Proxy tab
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-01 14:44:25 +03:00

212 lines
3.8 KiB
SCSS

.PageLayout {
--width: 75%;
--nav-width: 180px;
--nav-column-width: 30vw;
position: relative;
width: 100%;
height: 100%;
display: grid !important;
grid-template-columns: 1fr;
@include media("<1000px") {
--width: 85%;
}
&.showNavigation {
grid-template-columns: var(--nav-column-width) 1fr;
> .content-wrapper {
> .content {
width: 100%;
max-width: 800px;
padding-left: 1px; // Fix visual content crop
padding-right: calc(var(--nav-column-width) - var(--nav-width));
}
}
}
// covers whole app view area
&.showOnTop {
position: fixed !important; // allow to cover ClustersMenu
z-index: 3;
left: 0;
top: 0;
right: 0;
bottom: 0;
height: unset;
background-color: var(--mainBackground);
}
> .sidebarRegion {
display: flex;
justify-content: flex-end;
overflow-y: auto;
background-color: var(--secondaryBackground);
.sidebar {
width: 218px;
padding: 60px 6px 60px 20px;
.Tabs {
.header {
padding: 6px 10px;
font-size: 13px;
font-weight: 800;
line-height: 16px;
text-transform: uppercase;
&:first-child {
padding-top: 0;
}
}
.Tab {
padding: 6px 10px;
margin-bottom: 2px;
border-radius: 4px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
font-weight: 500;
font-size: 15px;
line-height: 20px;
cursor: pointer;
color: var(--textColorSecondary);
&::after {
content: none;
}
&:hover {
background-color: #4f545c29;
color: #dcddde;
}
&.active {
background-color: #4f545c52;
}
}
}
}
}
> .contentRegion {
display: flex;
overflow: auto;
> .content {
width: var(--width);
padding: 60px 40px 80px;
}
> .toolsRegion {
.fixedTools {
position: fixed;
top: 60px;
.closeBtn {
width: 35px;
height: 35px;
display: grid;
place-items: center;
border: 2px solid var(--textColorDimmed);
border-radius: 50%;
cursor: pointer;
&:hover {
background-color: #72767d4d;
}
&:active {
transform: translateY(1px);
}
.Icon {
color: var(--textColorSecondary);
}
}
.esc {
text-align: center;
margin-top: 4px;
font-weight: 600;
font-size: 14px;
color: var(--textColorDimmed);
pointer-events: none;
}
}
}
}
a {
color: var(--colorInfo);
}
.Select {
&__control {
box-shadow: 0 0 0 1px #20222580;
background: #00000021;
}
:hover {
&.Select__control {
box-shadow: 0 0 0 1px #07080880;
}
}
:focus-within {
&.Select__control {
box-shadow: 0 0 0 1px $colorInfo;
}
}
}
section {
display: flex;
flex-direction: column;
&:not(:first-child) {
margin-top: 40px;
&.small {
margin-top: 20px;
}
}
h1, h2 {
color: var(--textColorAccent);
text-transform: uppercase;
}
h2 {
font-size: 16px;
line-height: 20px;
font-weight: 600;
margin-bottom: 20px;
}
.hint {
margin-top: 8px;
font-size: 14px;
}
.SubTitle {
margin-top: 0;
margin-bottom: 8px;
padding-bottom: 0;
font-size: 12px;
}
hr {
margin-top: 40px;
height: 1px;
border-top: thin solid #ffffff0f;
&.small {
margin-top: 20px;
}
}
}
}