Spaces:
Runtime error
Runtime error
@import "../../css/colors.css"; | |
@import "../../css/filters.css"; | |
@import "../../css/filters.css"; | |
.icon { | |
width: 1.5rem; | |
} | |
.theme-label { | |
flex: 1; | |
} | |
.option { | |
display: flex; | |
align-items: center; | |
gap: .5rem; | |
} | |
.check { | |
margin: 0 .25rem 0 0; | |
visibility: hidden; | |
} | |
[dir="rtl"] .check { | |
margin: 0 0 0 .25rem; | |
} | |
.selected { | |
visibility: visible; | |
} | |
.submenu-label { | |
flex: 1; | |
} | |
.dropdown-label { | |
margin: 0 0.5rem 0 0.25rem; | |
} | |
[dir="rtl"] .dropdown-label { | |
margin: 0 0.25rem 0 0.5rem; | |
} | |
.expand-caret { | |
transform: rotate(-90deg); | |
} | |
[dir="rtl"] .expand-caret { | |
transform: rotate(90deg); | |
} | |
/* Extra padding to deal with scrollbar overlapping options in Firefox */ | |
[dir="ltr"] .language-menu-item { | |
padding-right: 1rem; | |
} | |
[dir="rtl"] .language-menu-item { | |
padding-left: 1rem; | |
} | |
.language-submenu > ul { | |
max-height: calc(100vh - 5rem); /* Fallback if dvh not supported */ | |
max-height: calc(100dvh - 5rem); | |
} | |
@media only screen and (max-width: 1124px) { | |
.dropdown-label { | |
display: none; | |
} | |
} | |
.accent-icon-outer { | |
width: 24px; | |
height: 24px; | |
border: 3px solid $menu-bar-foreground; | |
border-radius: 100%; | |
box-sizing: border-box; | |
transform-origin: center; | |
transform: scale(90%); | |
} | |
.disabled { | |
opacity: 0.5; | |
} | |
.disabled img { | |
filter: grayscale(100%); | |
} | |
.open-link { | |
margin-left: 0.5rem; | |
} | |
/* Wallpaper menu styles */ | |
.wallpaper-form { | |
padding: 0.75rem; | |
border-bottom: 1px solid $ui-black-transparent; | |
margin-bottom: 0.25rem; | |
} | |
.wallpaper-form form { | |
display: flex; | |
gap: 0.5rem; | |
margin-bottom: 0.75rem; | |
} | |
.wallpaper-input { | |
flex: 1; | |
padding: 0.5rem; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 4px; | |
background-color: $input-background; | |
color: $text-primary; | |
font-size: 0.875rem; | |
} | |
.wallpaper-button { | |
padding: 0.5rem 1rem; | |
background-color: $looks-secondary; | |
color: white; | |
border: none; | |
border-radius: 4px; | |
cursor: pointer; | |
font-size: 0.875rem; | |
} | |
.wallpaper-button:hover:not(:disabled) { | |
opacity: 0.9; | |
} | |
.wallpaper-button:disabled { | |
opacity: 0.5; | |
cursor: not-allowed; | |
} | |
.opacity-control { | |
display: flex; | |
align-items: center; | |
gap: 0.5rem; | |
font-size: 0.875rem; | |
} | |
.opacity-control label { | |
color: $text-primary; | |
font-weight: 500; | |
} | |
.opacity-slider { | |
flex: 1; | |
height: 4px; | |
background: $ui-black-transparent; | |
border-radius: 2px; | |
outline: none; | |
-webkit-appearance: none; | |
appearance: none; | |
} | |
.opacity-slider::-webkit-slider-thumb { | |
-webkit-appearance: none; | |
appearance: none; | |
width: 16px; | |
height: 16px; | |
border-radius: 50%; | |
background: $looks-secondary; | |
cursor: pointer; | |
} | |
.opacity-slider::-moz-range-thumb { | |
width: 16px; | |
height: 16px; | |
border-radius: 50%; | |
background: $looks-secondary; | |
cursor: pointer; | |
border: none; | |
} | |
.opacity-value { | |
color: $text-primary; | |
font-weight: 500; | |
min-width: 2.5rem; | |
text-align: right; | |
} | |
.grid-toggle { | |
width: 18px; | |
height: 18px; | |
accent-color: $looks-secondary; | |
cursor: pointer; | |
} | |
.wallpaper-preview { | |
width: 24px; | |
height: 24px; | |
border: 2px solid $ui-black-transparent; | |
border-radius: 4px; | |
overflow: hidden; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
background: $ui-tertiary; | |
} | |
.wallpaper-thumbnail { | |
width: 100%; | |
height: 100%; | |
object-fit: cover; | |
} | |
.no-wallpaper { | |
font-size: 0.75rem; | |
color: $text-primary-transparent; | |
text-align: center; | |
} | |
.wallpaper-url { | |
flex: 1; | |
font-size: 0.875rem; | |
color: $text-primary; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
.menu-separator { | |
height: 1px; | |
background: $ui-black-transparent; | |
margin: 0.25rem 0; | |
} | |
/* Accent submenu grid layout */ | |
.accent-submenu { | |
padding: 0.5rem; | |
} | |
.accent-submenu > ul { | |
display: grid; | |
grid-template-columns: repeat(5, 1fr); | |
gap: 0.5rem; | |
padding: 0.5rem; | |
margin: 0; | |
min-width: 200px; | |
max-width: auto; | |
} | |
.accent-submenu li { | |
margin: 0; | |
padding: 0.5rem; | |
min-height: auto; | |
border-radius: 4px; | |
} | |
.accent-submenu .menu-item { | |
position: relative; | |
padding: 0.375rem; | |
min-height: auto; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
border-radius: 4px; | |
transition: background-color 0.1s ease; | |
} | |
.accent-submenu .menu-item:hover { | |
background-color: hsla(0, 0%, 0%, 0.15); | |
} | |
.accent-submenu .option { | |
gap: 0.25rem; | |
flex-direction: column; | |
text-align: center; | |
font-size: 0.75rem; | |
} | |
.accent-submenu .check { | |
position: absolute; | |
top: 0.125rem; | |
right: 0.125rem; | |
margin: 0; | |
width: 0.75rem; | |
height: 0.75rem; | |
background-color: rgba(0, 0, 0, 0.8); | |
border-radius: 50%; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
font-size: 0.5rem; | |
color: white; | |
} | |
.accent-submenu .accent-icon-outer { | |
margin: 0 auto 0.125rem auto; | |
transform: scale(125%); | |
} | |
/* Responsive adjustments for smaller screens */ | |
@media only screen and (max-width: 768px) { | |
.accent-submenu > ul { | |
grid-template-columns: repeat(3, 1fr); | |
min-width: 160px; | |
max-width: 220px; | |
} | |
} | |
@media only screen and (max-width: 480px) { | |
.accent-submenu > ul { | |
grid-template-columns: repeat(2, 1fr); | |
min-width: 120px; | |
max-width: 160px; | |
} | |
} | |
/* Fonts menu styles */ | |
.fonts-submenu { | |
min-width: 320px; | |
max-width: 400px; | |
} | |
.fonts-container { | |
padding: 0.5rem; | |
max-height: 400px; | |
overflow-y: auto; | |
} | |
.font-section { | |
margin-bottom: 1rem; | |
} | |
.font-section:last-child { | |
margin-bottom: 0; | |
} | |
.font-section-title { | |
font-weight: bold; | |
font-size: 0.875rem; | |
margin-bottom: 0.5rem; | |
color: $text-primary; | |
border-bottom: 1px solid $ui-black-transparent; | |
padding-bottom: 0.25rem; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
} | |
.reset-button { | |
padding: 0.25rem 0.5rem; | |
background-color: $motion-primary; | |
color: white; | |
border: none; | |
border-radius: 0.25rem; | |
font-size: 0.75rem; | |
cursor: pointer; | |
transition: background-color 0.2s; | |
white-space: nowrap; | |
} | |
.reset-button:hover { | |
opacity: 0.8; | |
} | |
.font-input-container { | |
display: flex; | |
gap: 0.5rem; | |
margin-bottom: 0.5rem; | |
align-items: center; | |
} | |
.font-input { | |
flex: 1; | |
padding: 0.5rem; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 0.25rem; | |
font-size: 0.875rem; | |
background-color: $input-background; | |
color: $text-primary; | |
} | |
.font-input:focus { | |
outline: none; | |
border-color: $looks-secondary; | |
} | |
.add-button { | |
padding: 0.5rem 0.75rem; | |
background-color: $looks-secondary; | |
color: white; | |
border: none; | |
border-radius: 0.25rem; | |
font-size: 0.875rem; | |
cursor: pointer; | |
transition: background-color 0.2s; | |
} | |
.add-button:hover:not(:disabled) { | |
background-color: $looks-secondary-dark; | |
} | |
.add-button:disabled { | |
opacity: 0.5; | |
cursor: not-allowed; | |
} | |
.font-list { | |
display: flex; | |
flex-direction: column; | |
gap: 0.25rem; | |
max-height: 150px; | |
overflow-y: auto; | |
} | |
.font-item { | |
padding: 0.5rem; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 0.25rem; | |
cursor: pointer; | |
font-size: 0.875rem; | |
transition: background-color 0.2s; | |
background-color: $input-background; | |
} | |
.font-item:hover { | |
background-color: $looks-transparent; | |
color: white; | |
} | |
.selected-fonts-list { | |
display: flex; | |
flex-direction: column; | |
gap: 0.25rem; | |
} | |
.selected-font { | |
display: flex; | |
align-items: center; | |
padding: 0.5rem; | |
background-color: $looks-light-transparent; | |
border-radius: 0.25rem; | |
font-size: 0.875rem; | |
gap: 0.5rem; | |
} | |
.font-type { | |
font-size: 0.75rem; | |
color: $text-primary; | |
opacity: 0.7; | |
} | |
.remove-button { | |
margin-left: auto; | |
background: none; | |
border: none; | |
color: $text-primary; | |
font-size: 1.25rem; | |
cursor: pointer; | |
padding: 0.25rem; | |
border-radius: 50%; | |
width: 1.5rem; | |
height: 1.5rem; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
transition: background-color 0.2s; | |
} | |
.remove-button:hover { | |
background-color: rgba(255, 0, 0, 0.2); | |
} | |
.loading { | |
font-size: 0.75rem; | |
color: $text-primary; | |
opacity: 0.7; | |
text-align: center; | |
padding: 0.25rem; | |
} | |
/* Custom theme menu styles */ | |
.customThemeSubmenu { | |
min-width: 280px; | |
max-width: 320px; | |
} | |
.customThemeAction { | |
transition: background-color 0.1s ease; | |
} | |
.customThemeAction:hover { | |
background-color: $ui-black-transparent; | |
} | |
.customThemeAction.disabled { | |
opacity: 0.5; | |
cursor: not-allowed; | |
} | |
.customThemeAction.disabled:hover { | |
background-color: transparent; | |
} | |
.customThemeActionIcon { | |
width: 16px; | |
height: 16px; | |
margin-right: 8px; | |
flex-shrink: 0; | |
filter: $filter-icon-black; | |
} | |
.customThemeItem { | |
position: relative; | |
transition: background-color 0.1s ease; | |
} | |
.customThemeItem:hover { | |
background-color: $ui-black-transparent; | |
} | |
.customThemeItem.selected { | |
background-color: $looks-transparent; | |
} | |
.customThemeItemInfo { | |
flex: 1; | |
min-width: 0; | |
margin-left: 8px; | |
} | |
.customThemeActions { | |
display: flex; | |
align-items: center; | |
gap: 4px; | |
margin-left: 8px; | |
} | |
.customThemeActionButton { | |
background: none; | |
border: none; | |
padding: 4px; | |
cursor: pointer; | |
border-radius: 4px; | |
opacity: 0.6; | |
transition: all 0.2s; | |
flex-shrink: 0; | |
width: 20px; | |
height: 20px; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
.customThemeActionButton:hover { | |
opacity: 1; | |
background-color: rgba(0, 100, 200, 0.15); | |
} | |
.customThemeEditButton { | |
background: none; | |
border: none; | |
padding: 4px; | |
cursor: pointer; | |
border-radius: 4px; | |
opacity: 0.6; | |
transition: all 0.2s; | |
flex-shrink: 0; | |
width: 20px; | |
height: 20px; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
.customThemeEditButton:hover { | |
opacity: 1; | |
background-color: rgba(0, 100, 200, 0.15); | |
} | |
.customThemeActionButton img { | |
width: 12px; | |
height: 12px; | |
filter: $filter-icon-black; | |
} | |
.customThemeEditButton img { | |
width: 12px; | |
height: 12px; | |
/* No filter applied - uses currentColor from SVG */ | |
} | |
.customThemeItemName { | |
font-weight: 500; | |
font-size: 0.75rem; | |
color: $text-primary; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
line-height: 1.2; | |
} | |
.customThemeItemDescription { | |
font-size: 0.625rem; | |
color: $text-primary; | |
opacity: 0.7; | |
margin-top: 2px; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
line-height: 1.2; | |
} | |
.customThemeDeleteButton { | |
background: none; | |
border: none; | |
padding: 4px; | |
cursor: pointer; | |
border-radius: 4px; | |
opacity: 0.6; | |
transition: all 0.2s; | |
flex-shrink: 0; | |
width: 20px; | |
height: 20px; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
.customThemeDeleteButton:hover { | |
opacity: 1; | |
background-color: rgba(255, 0, 0, 0.15); | |
} | |
.customThemeDeleteButton img { | |
width: 12px; | |
height: 12px; | |
} | |
.customThemeEmpty { | |
padding: 12px; | |
text-align: center; | |
font-style: italic; | |
opacity: 0.6; | |
font-size: 0.75rem; | |
color: $text-primary; | |
} | |
.menuSeparator { | |
height: 1px; | |
background: $ui-black-transparent; | |
margin: 0.25rem 0; | |
} | |
/* Create theme dialog */ | |
.customThemeDialog { | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
background-color: rgba(0, 0, 0, 0.5); | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
z-index: 1000; | |
} | |
.customThemeDialogContent { | |
background: $ui-modal-background; | |
border-radius: 8px; | |
padding: 24px; | |
width: 400px; | |
max-width: 90vw; | |
max-height: 90vh; | |
overflow-y: auto; | |
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); | |
} | |
.customThemeDialogContent h3 { | |
margin: 0 0 20px 0; | |
font-size: 18px; | |
color: $text-primary; | |
} | |
.customThemeDialogField { | |
margin-bottom: 16px; | |
} | |
.customThemeDialogField label { | |
display: block; | |
margin-bottom: 6px; | |
font-weight: 500; | |
font-size: 14px; | |
color: $text-primary; | |
} | |
.customThemeDialogField input, | |
.customThemeDialogField textarea { | |
width: 100%; | |
padding: 8px 12px; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 4px; | |
background: $input-background; | |
color: $text-primary; | |
font-size: 14px; | |
font-family: inherit; | |
box-sizing: border-box; | |
} | |
.customThemeDialogField input:focus, | |
.customThemeDialogField textarea:focus { | |
outline: none; | |
border-color: $looks-secondary; | |
box-shadow: 0 0 0 2px $looks-transparent; | |
} | |
.customThemeDialogField textarea { | |
resize: vertical; | |
min-height: 60px; | |
} | |
.customThemeDialogButtons { | |
display: flex; | |
justify-content: flex-end; | |
gap: 12px; | |
margin-top: 24px; | |
} | |
.customThemeDialogButton { | |
padding: 8px 16px; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 4px; | |
background: $ui-tertiary; | |
color: $text-primary; | |
font-size: 14px; | |
cursor: pointer; | |
transition: all 0.2s; | |
} | |
.customThemeDialogButton:hover { | |
background: $ui-secondary; | |
} | |
.customThemeDialogButton:disabled { | |
opacity: 0.5; | |
cursor: not-allowed; | |
} | |
.customThemeDialogButton.primary { | |
background: $looks-secondary; | |
color: white; | |
border-color: $looks-secondary; | |
} | |
.customThemeDialogButton.primary:hover { | |
background: $looks-secondary-dark; | |
border-color: $looks-secondary-dark; | |
} | |
.selectedIcon { | |
width: 16px; | |
height: 16px; | |
margin-right: 8px; | |
flex-shrink: 0; | |
} | |
/* Gradient Creator Styles */ | |
.gradientPreview { | |
width: 100%; | |
height: 60px; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 4px; | |
margin-top: 4px; | |
} | |
.colorStops { | |
display: flex; | |
flex-direction: column; | |
gap: 8px; | |
max-height: 200px; | |
overflow-y: auto; | |
padding: 4px; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 4px; | |
background: $ui-white; | |
} | |
.colorStop { | |
display: flex; | |
align-items: center; | |
gap: 8px; | |
padding: 4px; | |
border: 1px solid transparent; | |
border-radius: 4px; | |
background: $ui-secondary; | |
} | |
.colorStop:hover { | |
border-color: $ui-black-transparent; | |
} | |
.colorPicker { | |
width: 40px; | |
height: 30px; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 4px; | |
cursor: pointer; | |
padding: 0; | |
background: none; | |
} | |
.colorPicker::-webkit-color-swatch-wrapper { | |
padding: 2px; | |
} | |
.colorPicker::-webkit-color-swatch { | |
border: none; | |
border-radius: 2px; | |
} | |
.positionInput { | |
width: 60px; | |
padding: 4px 6px; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 4px; | |
font-size: 12px; | |
text-align: center; | |
} | |
.positionInput:focus { | |
outline: none; | |
border-color: $looks-secondary; | |
} | |
.removeColorButton { | |
padding: 4px 8px; | |
background: $ui-white; | |
border: 1px solid $ui-black-transparent; | |
border-radius: 4px; | |
font-size: 11px; | |
cursor: pointer; | |
color: $text-primary; | |
} | |
.removeColorButton:hover { | |
background: #ff4444; | |
color: white; | |
border-color: #ff4444; | |
} | |
.addColorButton { | |
padding: 6px 12px; | |
background: $ui-white; | |
border: 1px solid $looks-secondary; | |
border-radius: 4px; | |
font-size: 12px; | |
cursor: pointer; | |
color: $looks-secondary; | |
align-self: flex-start; | |
} | |
.addColorButton:hover { | |
background: $looks-secondary; | |
color: white; | |
} | |
.directionSlider { | |
width: 100%; | |
margin: 8px 0; | |
} | |
.directionSlider::-webkit-slider-track { | |
background: $ui-black-transparent; | |
height: 4px; | |
border-radius: 2px; | |
} | |
.directionSlider::-webkit-slider-thumb { | |
background: $looks-secondary; | |
height: 16px; | |
width: 16px; | |
border-radius: 50%; | |
cursor: pointer; | |
-webkit-appearance: none; | |
} | |
.directionSlider::-moz-range-track { | |
background: $ui-black-transparent; | |
height: 4px; | |
border-radius: 2px; | |
border: none; | |
} | |
.directionSlider::-moz-range-thumb { | |
background: $looks-secondary; | |
height: 16px; | |
width: 16px; | |
border-radius: 50%; | |
cursor: pointer; | |
border: none; | |
} | |