Files
Blink/src/routes/_api/settings.scss
T
1xDed 1c499f42ec feat: custom in-app titlebar with overlay window chrome
- macOS: titleBarStyle Overlay + hiddenTitle, traffic lights aligned with the header
- header itself is the titlebar: draggable regions, no native glass strip
- solid (not blurred) header surfaces once content scrolls
- keep traffic lights clear of controls on library/login/settings pages
2026-11-27 03:11:09 +03:00

172 lines
4.9 KiB
SCSS

@use "../../styles/variables.scss" as *;
.settings {
&-page {
&-container {
display: grid;
grid-template-columns: 16em 1fr;
padding: 0;
width: 100vw;
height: 100vh;
}
&-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;
}
}
}
}
}
}