You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
219 lines
7.0 KiB
219 lines
7.0 KiB
#state_SettingsState {
|
|
$colorCategoryButton: #eeeff5;
|
|
$colorCategoryButtonSelected: $colorBlueBright;
|
|
|
|
$layoutBreak: 1000px;
|
|
|
|
.container .content {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
@include S(grid-gap, 10px);
|
|
|
|
@include StyleBelowWidth($layoutBreak) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.sidebar {
|
|
display: grid;
|
|
@include S(min-width, 210px);
|
|
@include S(max-width, 320px);
|
|
@include S(grid-gap, 3px);
|
|
grid-template-rows: auto auto auto auto auto 1fr;
|
|
|
|
@include StyleBelowWidth($layoutBreak) {
|
|
grid-template-rows: 1fr 1fr;
|
|
grid-template-columns: auto auto;
|
|
max-width: unset !important;
|
|
}
|
|
|
|
button {
|
|
text-align: left;
|
|
&::after {
|
|
content: unset;
|
|
}
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
|
|
@include StyleBelowWidth($layoutBreak) {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.other {
|
|
@include S(margin-top, 10px);
|
|
align-self: end;
|
|
|
|
@include StyleBelowWidth($layoutBreak) {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
button.categoryButton,
|
|
button.about {
|
|
background-color: $colorCategoryButton;
|
|
color: #777a7f;
|
|
|
|
&.active {
|
|
background-color: $colorCategoryButtonSelected;
|
|
color: #fff;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&.pressed {
|
|
transform: none !important;
|
|
}
|
|
}
|
|
|
|
.versionbar {
|
|
@include S(margin-top, 10px);
|
|
|
|
@include StyleBelowWidth($layoutBreak) {
|
|
display: none;
|
|
}
|
|
|
|
@include SuperSmallText;
|
|
display: grid;
|
|
align-items: center;
|
|
grid-template-columns: 1fr auto;
|
|
.buildVersion {
|
|
display: flex;
|
|
flex-direction: column;
|
|
color: #aaadaf;
|
|
}
|
|
}
|
|
}
|
|
|
|
.categoryContainer {
|
|
overflow-y: scroll;
|
|
pointer-events: all;
|
|
@include S(padding-right, 10px);
|
|
|
|
.category {
|
|
display: none;
|
|
|
|
&.active {
|
|
display: block;
|
|
}
|
|
|
|
.setting {
|
|
@include S(padding, 10px);
|
|
background: #eeeff5;
|
|
@include S(border-radius, $globalBorderRadius);
|
|
@include S(margin-bottom, 5px);
|
|
|
|
.desc {
|
|
@include S(margin-top, 5px);
|
|
@include SuperSmallText;
|
|
color: #aaadb2;
|
|
}
|
|
|
|
> .row {
|
|
display: grid;
|
|
align-items: center;
|
|
grid-template-columns: 1fr auto;
|
|
|
|
> label {
|
|
text-transform: uppercase;
|
|
@include Text;
|
|
}
|
|
}
|
|
|
|
&.disabled {
|
|
// opacity: 0.3;
|
|
pointer-events: none;
|
|
* {
|
|
pointer-events: none !important;
|
|
cursor: default !important;
|
|
}
|
|
position: relative;
|
|
.standaloneOnlyHint {
|
|
@include PlainText;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
pointer-events: all;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(#fff, 0.5);
|
|
text-transform: uppercase;
|
|
color: $colorRedBright;
|
|
}
|
|
}
|
|
|
|
.value.enum {
|
|
background: #fff;
|
|
@include PlainText;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
pointer-events: all;
|
|
cursor: pointer;
|
|
justify-content: center;
|
|
@include S(min-width, 100px);
|
|
@include S(border-radius, $globalBorderRadius);
|
|
@include S(padding, 4px);
|
|
@include S(padding-right, 15px);
|
|
|
|
background: #fff uiResource("icons/enum_selector.png") calc(100% - #{D(5px)})
|
|
calc(50% + #{D(1px)}) / #{D(15px)} no-repeat;
|
|
|
|
transition: background-color 0.12s ease-in-out;
|
|
&:hover {
|
|
background-color: #fafafa;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@include DarkThemeOverride {
|
|
.container .content {
|
|
.sidebar {
|
|
button.categoryButton,
|
|
button.about {
|
|
color: #ccc;
|
|
background-color: darken($darkModeControlsBackground, 5);
|
|
|
|
&.active {
|
|
color: #fff;
|
|
background-color: $colorCategoryButtonSelected;
|
|
}
|
|
}
|
|
}
|
|
|
|
.categoryContainer {
|
|
.category {
|
|
.setting {
|
|
background: darken($darkModeGameBackground, 10);
|
|
|
|
.value.enum {
|
|
// dirty but works
|
|
// color: #222;
|
|
background-color: $darkModeControlsBackground;
|
|
background-image: uiResource("icons/enum_selector_white.png");
|
|
color: #ddd;
|
|
&:hover {
|
|
background-color: darken($darkModeControlsBackground, 2);
|
|
}
|
|
}
|
|
|
|
.value.checkbox {
|
|
background-color: #74767b;
|
|
|
|
&.checked {
|
|
background-color: $colorBlueBright;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|