1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/wizard/wizard.scss
Alex Andreev c9bf212153 Make all dialogs rounded
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-08-26 12:24:29 -04:00

111 lines
2.8 KiB
SCSS
Executable File

/**
* Copyright (c) 2021 OpenLens Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
.Wizard {
--wizard-width: #{65 * $unit};
--wizard-content-height: auto;
--wizard-content-max-height: #{40 * $unit};
--wizard-spacing: #{$padding * 3};
--wizard-step-bgc: #{$dialogBackground};
width: var(--wizard-width);
color: $dialogTextColor;
&.small {
--wizard-width: #{45 * $unit};
--wizard-content-height: auto;
}
@mixin scrollableContent() {
overflow: auto;
padding: var(--wizard-spacing);
height: var(--wizard-content-height);
max-height: var(--wizard-content-max-height);
}
> .header {
text-align: center;
color: white;
background: $dialogHeaderBackground;
padding: var(--wizard-spacing);
border-top-left-radius: $radius;
border-top-right-radius: $radius;
b {
font-weight: $font-weight-normal;
}
> * {
text-overflow: ellipsis;
overflow: hidden;
}
}
.Stepper {
color: silver;
--stepper-color-point: black;
--stepper-color-text: currentColor;
margin-top: var(--wizard-spacing);
}
.Checkbox {
padding: 0;
}
.Select {
width: 100%;
}
.step-loading {
padding: var(--wizard-spacing);
}
.WizardStep {
background: var(--wizard-step-bgc);
border-bottom-left-radius: $radius;
border-bottom-right-radius: $radius;
> .step-content.scrollable {
@include scrollableContent();
> * {
flex-shrink: 0;
}
}
// buttons
> :last-child {
padding: var(--wizard-spacing);
background: $dialogFooterBackground;
border-bottom-left-radius: $radius;
border-bottom-right-radius: $radius;
.back-btn {
margin-left: auto;
}
.Button[type="submit"] {
min-width: 10 * $unit;
}
}
}
}