1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/input/input.scss
Alex Andreev 84cc0cdf55
Preferences page redesign (#2446)
* Removing header part

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

* Restyling PageLayout

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

* Restyling .round-black Input

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

* Adding Tab navigation to Preferences

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

* Styling Application tab

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

* Add esc button

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

* Add media queries

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

* Introducting Switcher component

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

* Styling Proxy tab

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

* Moving start-up switcher to Other tab

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

* Styling Kubernetes tab

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

* Styling Extensions tab

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

* Styling inputs and selects

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

* Styling helm chart section

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

* Create a telemetry tab with extensions

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

* Adding lens Select theme

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

* Remove Other tab

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

* Fix mainBackground color

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

* Simplifying Tabs boilerplate

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

* Replacing button font

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

* Fixing one-column settings layout

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

* Fixing integration tests

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

* Fixin tests harder

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

* Showing bottom bar in workspaces

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-06 15:45:23 +03:00

125 lines
2.0 KiB
SCSS

.Input {
position: relative;
text-align: left;
&.invalid.dirty:not(.validating) {
label:after {
width: 100%;
background: $colorError;
}
}
&.focused:not(.validating) {
label:after {
width: 100%;
}
}
&.validatingLine {
label:after {
width: 100%;
@include stripeLinesAnimation;
}
}
label {
--flex-gap: #{$padding / 1.5};
position: relative;
padding: $padding /4 * 3 0;
border-bottom: 1px solid $halfGray;
&:after {
content: "";
position: absolute;
top: calc(100% - 1px);
left: 50%;
transform: translateX(-50%);
width: 0;
height: 2px;
background: $primary;
transition: width 250ms;
}
}
input, textarea {
background: none;
color: inherit;
font: inherit;
text-align: inherit;
text-transform: inherit;
&:invalid {
box-shadow: none;
}
&::placeholder {
color: inherit;
opacity: .75;
}
}
textarea {
@include hidden-scrollbar;
line-height: 1.2;
resize: none;
}
fieldset:disabled &,
&.disabled {
opacity: .5;
pointer-events: none;
}
.input-info {
.errors {
color: var(--colorError);
font-size: $font-size-small;
}
.maxLengthIndicator {
text-align: right;
font-size: 80%;
padding: $padding / 3;
}
}
//- Themes
&.theme {
&.round-black {
&.invalid.dirty {
label {
border-color: $colorSoftError;
}
}
label {
background: var(--inputControlBackground);
border: 1px solid var(--inputControlBorder);
border-radius: 4px;
padding: $padding;
&:hover {
border-color: var(--inputControlHoverBorder);
}
&:focus-within {
border-color: $colorInfo;
}
&:after {
display: none;
}
}
}
}
}
.Tooltip.InputTooltipError {
--bgc: #{$colorError};
--border: none;
--color: white;
}