Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Compact headers and dialogs, two-column grids, responsive item heroes, player controls, settings tabs, login and server setup screens.
343 lines
7.7 KiB
SCSS
343 lines
7.7 KiB
SCSS
@use "../../styles/variables.scss" as *;
|
|
|
|
.settings {
|
|
&-page {
|
|
&-container {
|
|
display: grid;
|
|
grid-template-columns: 16em 1fr;
|
|
padding: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
|
|
// Frameless window on Windows/Linux: the floating window buttons
|
|
// sit in the top 44px, so the settings grid starts below that strip.
|
|
html.is-windows &,
|
|
html.is-linux & {
|
|
padding-top: 44px;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
&-scrollY {
|
|
padding: 2em;
|
|
overflow-x: hidden;
|
|
width: 100%;
|
|
}
|
|
}
|
|
&-form{
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
justify-content: flex-start;
|
|
gap: 1.5em;
|
|
width: 100%;
|
|
margin-top: 2em;
|
|
|
|
button[type="submit"] {
|
|
align-self: flex-end;
|
|
min-width: 10em;
|
|
}
|
|
}
|
|
&-option {
|
|
width: 100%;
|
|
margin: 0 !important;
|
|
justify-content: space-between;
|
|
padding: 1em 0;
|
|
|
|
/* Ensure the label text takes available space */
|
|
.MuiFormControlLabel-label {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
&-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25em;
|
|
padding-right: 1em;
|
|
|
|
&-caption {
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
|
|
}
|
|
&-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
justify-content: flex-start;
|
|
background: $clr-background-dark;
|
|
border-right: 1px solid rgba(255, 255, 255, 0.05);
|
|
padding: 1.5em 1em; // Reduced padding
|
|
gap: 1em; // Reduced gap
|
|
|
|
html.is-macos & {
|
|
// Overlay titlebar: leave room for the traffic lights.
|
|
padding-top: 2.9em;
|
|
}
|
|
|
|
&-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-bottom: 0.5em; // Reduced
|
|
|
|
// Adjust back button for this context
|
|
.MuiIconButton-root {
|
|
color: rgba(255,255,255,0.7);
|
|
&:hover {
|
|
color: white;
|
|
background: rgba(255,255,255,0.05);
|
|
}
|
|
}
|
|
}
|
|
|
|
&-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
gap: 0.75em;
|
|
padding: 1em; // Reduced padding
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-radius: 16px; // Slightly tighter radius
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
transition: all 0.3s ease;
|
|
|
|
&:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
&-image {
|
|
$size: 3.5em; // Reduced size slightly (was 4.5em)
|
|
width: $size;
|
|
height: $size;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 3px solid rgba(0,0,0,0.2);
|
|
box-shadow: 0 8px 16px rgba(0,0,0,0.3);
|
|
}
|
|
}
|
|
|
|
&-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25em;
|
|
|
|
// Section headers
|
|
.MuiTypography-overline {
|
|
color: rgba(255,255,255,0.4);
|
|
font-size: 0.7rem;
|
|
margin-top: 1em; // Reduced
|
|
margin-bottom: 0.25em; // Reduced
|
|
padding-left: 12px;
|
|
}
|
|
|
|
&-item {
|
|
.MuiButtonBase-root {
|
|
border-radius: 12px !important;
|
|
padding: 8px 12px !important; // Reduced padding
|
|
transition: all 0.2s ease;
|
|
color: rgba(255,255,255,0.6);
|
|
font-weight: 500;
|
|
|
|
&:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
color: rgba(255,255,255,0.9);
|
|
}
|
|
|
|
.material-symbols-rounded {
|
|
margin-right: 12px;
|
|
opacity: 0.7;
|
|
font-size: 20px; // Slightly smaller icons
|
|
}
|
|
}
|
|
|
|
&.active .MuiButtonBase-root {
|
|
background: rgba($clr-accent-default, 0.1) !important;
|
|
color: $clr-accent-default;
|
|
font-weight: 600;
|
|
|
|
.material-symbols-rounded {
|
|
opacity: 1;
|
|
font-variation-settings: 'FILL' 1;
|
|
}
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: 12px;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@media (max-width: 700px) {
|
|
.settings-page-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.settings-sidebar {
|
|
flex: 0 0 auto;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 0.25em;
|
|
width: 100%;
|
|
padding: 0.4rem 0.6rem;
|
|
border-right: 0;
|
|
border-bottom: 1px solid rgb(255 255 255 / 0.06);
|
|
overflow-x: auto;
|
|
box-sizing: border-box;
|
|
|
|
html.is-macos & {
|
|
padding-top: 0.4rem;
|
|
padding-left: 76px;
|
|
}
|
|
}
|
|
|
|
.settings-sidebar-header {
|
|
display: none;
|
|
}
|
|
|
|
.settings-sidebar-controls {
|
|
padding-bottom: 0;
|
|
gap: 0.15em;
|
|
}
|
|
|
|
.settings-sidebar-list {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 0.2em;
|
|
overflow-x: auto;
|
|
|
|
.MuiTypography-overline {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.settings-sidebar-list-item .MuiButtonBase-root {
|
|
white-space: nowrap;
|
|
padding: 0.5em 0.75em !important;
|
|
}
|
|
|
|
.settings-page-scrollY {
|
|
flex: 1 1 auto;
|
|
width: 100%;
|
|
padding: 1rem !important;
|
|
overflow-y: auto;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.settings-form {
|
|
margin-top: 1rem;
|
|
|
|
.MuiTextField-root {
|
|
width: 100% !important;
|
|
}
|
|
|
|
button[type="submit"] {
|
|
width: 100%;
|
|
align-self: stretch;
|
|
}
|
|
}
|
|
|
|
.settings-option {
|
|
align-items: flex-start !important;
|
|
|
|
.MuiFormControlLabel-label {
|
|
width: calc(100% - 60px);
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.settings-sidebar {
|
|
flex-wrap: wrap;
|
|
overflow: visible;
|
|
row-gap: 0.25em;
|
|
}
|
|
|
|
.settings-sidebar-list {
|
|
flex-wrap: nowrap;
|
|
overflow-x: auto;
|
|
width: auto;
|
|
}
|
|
|
|
.settings-sidebar-list-item {
|
|
width: auto !important;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.settings-sidebar-list-item .MuiButtonBase-root {
|
|
width: auto;
|
|
padding: 0.4em 0.6em !important;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.settings-sidebar-controls {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
|
|
[aria-label="Главная"] {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.settings-page-scrollY {
|
|
padding: 0.75rem 1rem 7.5rem !important;
|
|
}
|
|
|
|
.settings-form {
|
|
gap: 1.1em;
|
|
|
|
.MuiFormControlLabel-root:not(.settings-option) {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0.45em;
|
|
margin: 0;
|
|
}
|
|
|
|
.MuiFormControlLabel-label {
|
|
width: 100%;
|
|
}
|
|
|
|
.MuiTextField-root {
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
|
|
.settings-option {
|
|
align-items: flex-start !important;
|
|
gap: 0.75em;
|
|
|
|
.MuiFormControlLabel-label {
|
|
width: auto;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
.settings-form .settings-option:has(.MuiTextField-root) {
|
|
flex-direction: column;
|
|
align-items: stretch !important;
|
|
gap: 0.45em;
|
|
|
|
.MuiFormControlLabel-label {
|
|
width: 100%;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.MuiTextField-root {
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
}
|