1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/app.scss
Alex Andreev 0f11b03692
Switching color theme globally (#728)
* Adding cluster menu colors

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

* Adding theme class name flag into #app

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

* Cleaning up mixins

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

* Tuning up Wizard Layout styles

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

* Using theme-light global flag

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

* Minor style fixes

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

* Using .theme-light flag across components

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

* Set theme as @computed value

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

* Preventing Drawer slide-in scroll flickering

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

* Setting background for settings views

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

* Minor layout fixes

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

* Switching AceEditor theme reactively

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

* Cleaning up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-24 10:24:05 +03:00

216 lines
2.8 KiB
SCSS
Executable File

@import "~flex.box";
@import "fonts";
*, *:before, *:after {
box-sizing: border-box;
padding: 0;
margin: 0;
border: 0;
outline: none;
-webkit-font-smoothing: antialiased;
}
:root {
--mainBackground: #1e2124;
--main-layout-header: 40px;
}
::selection {
background: $primary;
color: white;
}
html {
font-size: 62.5%; // 1 rem == 10px
color: $textColorPrimary;
background-color: $mainBackground;
--flex-gap: #{$padding};
}
html, body {
height: 100%;
overflow: hidden;
}
#app {
height: 100%;
min-height: 100%;
> * {
height: inherit;
}
}
#draggable-top {
@include set-draggable;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: var(--main-layout-header);
z-index: 1000;
pointer-events: none;
}
body {
font: $font-size $font-main;
}
fieldset {
border: 0;
padding: 0;
margin: 0;
}
label {
color: $textColorSecondary;
}
ol, ul {
margin: 0;
list-style: none;
}
hr {
margin: $margin 0 !important;
height: 1px;
background: $grey-800;
}
h1 {
color: $textColorPrimary;
font-size: 28px;
font-weight: normal;
letter-spacing: -.010em;
margin: 0;
}
h2 {
@extend h1;
font-size: 24px;
}
h3 {
@extend h2;
font-size: 20px;
}
h4 {
@extend h3;
font-size: 18px;
}
h5 {
@extend h4;
padding: $padding / 2 0;
font-size: 16px;
}
h6 {
@extend h5;
font-size: 12px;
}
small {
font-size: $font-size-small;
}
code {
display: inline-block;
padding: 0.2em;
vertical-align: middle;
border-radius: $radius;
font-family: $font-monospace;
font-size: $font-size * .9;
color: #b4b5b4;
&.block {
@include hidden-scrollbar;
background: #1a1919;
display: block;
white-space: pre;
padding: $padding * 2;
}
}
a {
color: inherit;
cursor: pointer;
[href] {
text-decoration: underline;
}
&:not([href]) {
border-bottom: 1px dotted;
text-decoration: none;
}
}
// colors
.success {
color: $colorSuccess;
}
.info {
color: $colorInfo;
}
.error {
color: $colorError;
}
.contrast {
color: $textColorAccent;
}
.text-secondary {
color: $textColorSecondary;
}
.nobr {
white-space: nowrap;
}
.flow {
--flow-space: #{$margin * 1.5};
&:not(.column) {
> * + * {
margin-left: var(--flow-space);
}
}
&.column {
> * + * {
margin-top: var(--flow-space);
}
}
}
// app's common loading indicator, displaying on the route transitions
#loading {
position: absolute;
left: 50%;
top: 50%;
margin: -15px;
z-index: 1000;
&.hidden {
display: none;
}
}
// hack-fix: remove crappy yellow background from auto-filled inputs in chrome
@keyframes autofill-remove-bgc {
to {
color: inherit;
background: inherit;
}
}
input:-webkit-autofill {
-webkit-animation-name: autofill-remove-bgc;
-webkit-animation-fill-mode: both;
}