mirror of
https://github.com/dergigi/boris.git
synced 2026-01-28 11:14:22 +01:00
164 lines
5.0 KiB
CSS
164 lines
5.0 KiB
CSS
/* Settings view containers */
|
|
.settings-view { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0.75rem 1rem; text-align: left; }
|
|
.settings-header { display: flex; align-items: center; justify-content: space-between; padding: 0; max-width: 900px; margin: 0 auto 1.5rem auto; width: 100%; }
|
|
.settings-header h2 { margin: 0; font-size: 1.5rem; font-weight: 600; text-align: left; }
|
|
.settings-header-actions { display: flex; gap: 0.5rem; align-items: center; }
|
|
.settings-content { overflow-y: auto; flex: 1; text-align: left; padding: 0 0.25rem 2rem 0.25rem; max-width: 900px; margin: 0 auto 1rem auto; width: 100%; }
|
|
.settings-section { margin-bottom: 2.5rem; }
|
|
.settings-section:last-child { margin-bottom: 0; }
|
|
.section-title { font-size: 1rem; font-weight: 600; color: var(--color-text); margin: 0 0 1rem 0; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); text-transform: uppercase; letter-spacing: 0.05em; }
|
|
.settings-footer { display: flex; justify-content: flex-start; padding: 1rem 0 0.5rem 0; flex-shrink: 0; }
|
|
.settings-footer .btn-primary { background: var(--color-primary); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: background-color 0.2s; display: flex; align-items: center; gap: 0.5rem; }
|
|
.settings-footer .btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); }
|
|
.settings-footer .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
|
|
|
|
/* Setting groups */
|
|
.setting-group { margin-bottom: 1.5rem; }
|
|
.setting-label { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; font-weight: 500; color: var(--color-text); }
|
|
|
|
/* Zap splits preset buttons */
|
|
.zap-preset-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
|
|
.zap-preset-btn {
|
|
padding: 0.625rem 1.25rem;
|
|
background: var(--color-bg-elevated);
|
|
border: 1px solid var(--color-border-subtle);
|
|
border-radius: 6px;
|
|
color: var(--color-text);
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-weight: 500;
|
|
}
|
|
.zap-preset-btn:hover {
|
|
background: var(--color-border);
|
|
border-color: var(--color-primary);
|
|
color: var(--color-text);
|
|
}
|
|
.zap-preset-btn.active {
|
|
background: var(--color-primary);
|
|
border-color: var(--color-primary);
|
|
color: rgb(255 255 255); /* white */
|
|
}
|
|
|
|
/* Zap split sliders */
|
|
.zap-split-container { width: 100%; }
|
|
.zap-split-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.85rem;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
.zap-split-label { font-weight: 500; }
|
|
.zap-split-slider {
|
|
width: 100%;
|
|
height: 8px;
|
|
border-radius: 4px;
|
|
background: linear-gradient(
|
|
to right,
|
|
var(--highlight-color) 0%,
|
|
var(--highlight-color) 50%,
|
|
var(--color-bg-elevated) 50%,
|
|
var(--color-bg-elevated) 100%
|
|
);
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
position: relative;
|
|
}
|
|
.zap-split-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
background-color: var(--color-primary);
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M13 2L3 14h8l-1 8 10-12h-8l1-8z'/%3E%3C/svg%3E");
|
|
background-size: 16px 16px;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
.zap-split-slider::-webkit-slider-thumb:hover {
|
|
background-color: var(--color-primary-hover);
|
|
transform: scale(1.1);
|
|
}
|
|
.zap-split-slider::-moz-range-thumb {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
background-color: var(--color-primary);
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M13 2L3 14h8l-1 8 10-12h-8l1-8z'/%3E%3C/svg%3E");
|
|
background-size: 16px 16px;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
cursor: pointer;
|
|
border: none;
|
|
transition: all 0.2s ease;
|
|
}
|
|
.zap-split-slider::-moz-range-thumb:hover {
|
|
background-color: var(--color-primary-hover);
|
|
transform: scale(1.1);
|
|
}
|
|
.zap-split-description {
|
|
margin-top: 1.5rem;
|
|
padding: 1rem;
|
|
background: var(--color-bg-elevated);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 6px;
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
/* Relay items */
|
|
.relay-item {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.relay-url {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Mobile responsive styles */
|
|
@media (max-width: 768px) {
|
|
.settings-view {
|
|
padding: 0.5rem;
|
|
max-width: 100vw;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.settings-content {
|
|
padding: 0 0.25rem 2rem 0.25rem;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.settings-section {
|
|
max-width: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.zap-preset-buttons {
|
|
width: 100%;
|
|
}
|
|
|
|
.zap-preset-btn {
|
|
flex: 1 1 auto;
|
|
min-width: 70px;
|
|
}
|
|
|
|
.relay-item {
|
|
max-width: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.relay-url {
|
|
white-space: normal !important;
|
|
word-break: break-all !important;
|
|
overflow: visible !important;
|
|
text-overflow: unset !important;
|
|
line-height: 1.4;
|
|
}
|
|
}
|
|
|