Zelda64Recomp/assets/scss/styles/components/Config.scss

225 lines
4.6 KiB
SCSS
Raw Normal View History

2024-01-07 01:04:28 +01:00
2024-01-22 17:43:21 +01:00
.config__exit-button {
position: absolute;
top: space(8);
right: space(8);
}
2024-01-07 01:04:28 +01:00
.config__form {
2024-01-07 22:33:22 +01:00
@include border-top($color-border-soft);
2024-01-07 01:04:28 +01:00
display: flex;
2024-01-07 22:33:22 +01:00
flex-direction: column;
justify-content: space-between;
2024-01-07 01:04:28 +01:00
flex: 1 1 100%;
width: 100%;
height: 100%;
2024-01-07 22:33:22 +01:00
border-bottom-left-radius: $border-radius-modal;
border-bottom-right-radius: $border-radius-modal;
2024-01-07 01:04:28 +01:00
}
.config__wrapper {
border-radius: 0dp;
flex: 1 1 100%;
height: 100%;
2024-01-16 21:26:57 +01:00
padding: space(16);
2024-01-07 01:04:28 +01:00
text-align: left;
2024-01-07 22:33:22 +01:00
background-color: $color-bg-shadow;
p {
@extend %body;
padding: space(16);
white-space: pre-line;
line-height: space(28);
}
}
.config__hz-wrapper {
display: flex;
flex-direction: row;
border-radius: 0dp;
flex: 1 1 100%;
height: 100%;
text-align: left;
2024-01-07 22:33:22 +01:00
}
.config__header, .config__footer {
2024-01-07 22:33:22 +01:00
display: flex;
2024-01-22 17:43:21 +01:00
justify-content: space-between;
2024-01-07 22:33:22 +01:00
align-items: center;
width: 100%;
2024-01-08 01:23:05 +01:00
background-color: $color-bg-shadow;
}
.config__header {
@include border-bottom($color-border-soft);
padding: space(12) space(20);
}
.config__footer {
@include border-top($color-border-soft);
padding: space(20) space(20);
2024-01-07 22:33:22 +01:00
border-bottom-left-radius: $border-radius-modal;
border-bottom-right-radius: $border-radius-modal;
}
.config__header-left {
2024-01-22 17:43:21 +01:00
display: flex;
flex-direction: row;
flex: 1 1 auto;
> :not(:first-child) {
margin-left: space(8);
}
}
2024-01-07 22:33:22 +01:00
.config__row {
display: flex;
flex-direction: row;
2024-01-07 01:04:28 +01:00
}
.config-option {
display: flex;
flex-direction: column;
flex: 1;
align-items: flex-start;
2024-03-28 23:18:10 +01:00
justify-content: flex-start;
margin: space(16) space(0) space(24);
&:last-child {
margin-top: space(16);
}
2024-01-07 01:04:28 +01:00
}
.config-option__title {
@extend %label-md;
2024-01-16 21:26:57 +01:00
padding: 0 space(12);
2024-01-07 01:04:28 +01:00
}
.config-option__list {
display: flex;
padding: 0;
flex-direction: row;
width: 100%;
2024-03-28 23:18:10 +01:00
height: auto;
2024-01-07 01:04:28 +01:00
align-items: flex-start;
justify-content: flex-start;
input:first-of-type {
nav-left: none;
}
input:last-of-type {
nav-right: none;
}
2024-01-07 01:04:28 +01:00
.config-option__tab-label {
@extend %label-sm;
display: block;
padding: space(12) 0 space(8);
height: auto;
margin: 0 space(12);
2024-01-16 21:26:57 +01:00
margin-right: space(16);
2024-01-07 01:04:28 +01:00
color: $color-text-inactive;
tab-index: none;
transition: color $transition-quick;
&:hover {
cursor: pointer;
}
}
input.radio {
@extend %nav-all;
2024-03-30 16:36:23 +01:00
@include trans-colors-opa;
2024-01-08 09:34:06 +01:00
visibility: visible;
2024-01-07 01:04:28 +01:00
width: 0;
height: 0;
2024-03-30 16:36:23 +01:00
&:not(:disabled) {
&:checked + .config-option__tab-label {
border-bottom: 1dp;
border-color: $color-border-hard;
&:hover {
cursor: default;
}
}
&:focus + .config-option__tab-label,
&:hover + .config-option__tab-label {
color: $color-text;
}
}
&:disabled + .config-option__tab-label {
opacity: 0.5;
2024-01-07 01:04:28 +01:00
&:hover {
cursor: default;
}
}
}
input.range slidertrack {
@include trans-colors;
2024-01-07 01:04:28 +01:00
margin-top: 7dp;
height: 2dp;
background-color: $color-border;
}
input.range sliderbar {
@include trans-colors;
2024-01-07 01:04:28 +01:00
margin-left: -8dp;
margin-right: -6dp;
2024-01-16 21:26:57 +01:00
width: space(16);
height: space(16);
2024-01-07 01:04:28 +01:00
background-color: $color-text-dim;
border-radius: 8dp;
transition: background-color $transition-quick;
2024-03-27 18:40:43 +01:00
.rmlui-window:not([mouse-active]) &:focus {
@include border($color-a);
background-color: $color-secondary;
}
2024-01-07 01:04:28 +01:00
&:hover {
cursor: pointer;
background-color: $color-text;
}
}
input.range sliderbar:active,
input.range slidertrack:active + sliderbar {
background-color: $color-secondary;
}
input.range sliderarrowdec,
input.range sliderarrowinc {
display: none;
}
}
2024-03-28 23:18:10 +01:00
.config-option__details {
@extend %label-xs;
color: $color-secondary;
margin: space(14) space(12) 0;
2024-03-28 23:18:10 +01:00
height: space(18);
}
2024-01-07 22:33:22 +01:00
.config-option__range-wrapper {
margin-top: space(4);
max-width: space(360);
}
2024-01-07 01:04:28 +01:00
.config-option__range-label {
@extend %label-sm;
2024-01-16 21:26:57 +01:00
flex: 0 0 space(16);
2024-01-07 01:04:28 +01:00
display: block;
padding: 0;
margin: 0 12dp;
2024-01-16 21:26:57 +01:00
margin-right: space(16);
2024-01-07 01:04:28 +01:00
color: $color-text;
tab-index: none;
}