Files
NebulaBrowser/renderer/settings.css
T
andrew 8deeccb32e Refactor history and settings UI; improve tab rendering
Moved site and search history management from the main process to the renderer for better performance and reliability. Updated settings UI to use a sidebar tab layout with improved accessibility and responsive design. Refactored tab rendering in the browser to use efficient scheduling and added a robust tab label function. Cleaned up context menu code and improved async file operations for bookmarks and history.
2025-08-09 21:51:31 +12:00

215 lines
3.6 KiB
CSS

:root {
--bg: #121418;
--dark-blue: #0B1C2B;
--dark-purple: #1B1035;
--primary: #7B2EFF;
--accent: #00C6FF;
--text: #E0E0E0;
}
/* Load InterVariable */
@font-face {
font-family: 'InterVariable';
src: url('../assets/images/fonts/InterVariable.ttf') format('truetype');
font-weight: 100 900;
font-display: swap;
}
body {
background: linear-gradient(145deg, var(--bg) 0%, var(--dark-purple) 100%);
color: var(--text);
font-family: 'InterVariable', sans-serif;
margin: 0;
padding: 2rem;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
}
.container {
background-color: var(--dark-purple);
padding: 0;
border-radius: 16px;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
max-width: 1100px;
width: 100%;
display: flex;
overflow: hidden;
}
/* Sidebar + content layout */
.sidebar {
width: 260px;
background: rgba(0,0,0,0.2);
border-right: 1px solid rgba(255,255,255,0.08);
padding: 1.25rem 1rem;
}
.sidebar h1 {
font-size: 1.2rem;
margin: 0 0 1rem 0;
color: var(--primary);
}
.tabs {
display: flex;
flex-direction: column;
gap: 4px;
}
.tab-link {
text-align: left;
background: transparent;
color: var(--text);
border: none;
border-radius: 8px;
padding: 10px 12px;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
font-size: 14px;
font-family: inherit;
width: 100%;
position: relative;
z-index: 1;
}
.tab-link:hover {
background: rgba(255,255,255,0.06);
}
.tab-link.active {
background: rgba(123, 46, 255, 0.18);
color: #fff;
border: 1px solid rgba(123,46,255,0.35);
}
.content {
flex: 1;
padding: 1.25rem 1.5rem 2rem 1.5rem;
overflow: auto;
}
.tab-panel {
display: none;
}
.tab-panel.active {
display: block;
}
h1 {
font-size: 1.5rem;
margin-bottom: 1.5rem;
color: var(--primary);
}
.setting-group {
display: flex;
flex-direction: column;
margin-bottom: 1rem;
}
label {
font-weight: bold;
margin-bottom: 0.5rem;
}
input {
padding: 0.6rem;
font-size: 1rem;
border: none;
border-radius: 8px;
margin-bottom: 0.75rem;
background-color: var(--dark-blue);
color: var(--text);
}
button {
padding: 0.6rem;
font-size: 1rem;
background-color: var(--primary);
color: var(--text);
border: none;
border-radius: 8px;
cursor: pointer;
transition: background 0.2s ease-in-out;
}
button:hover {
background-color: var(--accent);
}
.note {
font-size: 0.8rem;
color: #aaa;
margin-top: 1rem;
}
.status {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 0.5rem;
background-color: rgba(18,20,24,0.8);
color: white;
padding: 0.8rem 1.2rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
font-size: 1rem;
z-index: 1000;
}
.status.hidden {
display: none;
}
.spinner {
width: 16px;
height: 16px;
border: 2px solid transparent;
border-top: 2px solid white;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.setting-group input,
.setting-group button {
width: 100%;
box-sizing: border-box;
}
/* small-screen adjustments */
@media (max-width: 480px) {
.container {
padding: 0;
border-radius: 12px;
box-shadow: 0 0 8px rgba(0,0,0,0.35);
flex-direction: column;
max-width: 100%;
}
.sidebar {
width: 100%;
border-right: none;
border-bottom: 1px solid rgba(255,255,255,0.08);
padding-bottom: 0.5rem;
}
.tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.tab-link { flex: 1 1 auto; }
h1 {
font-size: 1.25rem;
}
}