Settings page mods

- Made the settings page look more moderns
- Removed home page layout settings from settings menu
This commit is contained in:
2025-09-08 12:41:46 +12:00
parent 37c1f98261
commit 5fac652b27
2 changed files with 325 additions and 329 deletions
+323 -28
View File
@@ -5,6 +5,11 @@
--primary: #7B2EFF; --primary: #7B2EFF;
--accent: #00C6FF; --accent: #00C6FF;
--text: #E0E0E0; --text: #E0E0E0;
--surface-1: rgba(255, 255, 255, 0.04);
--surface-2: rgba(255, 255, 255, 0.06);
--card-border: rgba(255, 255, 255, 0.10);
--ring: 0 0 0 3px rgba(123, 46, 255, 0.35);
--glow: 0 8px 30px rgba(123, 46, 255, 0.25), 0 2px 10px rgba(0, 198, 255, 0.15);
} }
/* Load InterVariable */ /* Load InterVariable */
@@ -16,40 +21,68 @@
} }
body { body {
background: linear-gradient(145deg, var(--bg) 0%, var(--dark-purple) 100%); /* Nebula gradient background with subtle radial glow */
background:
radial-gradient(1200px 600px at 10% -10%, rgba(0, 198, 255, 0.15), transparent 60%),
radial-gradient(1000px 500px at 110% 10%, rgba(123, 46, 255, 0.2), transparent 60%),
linear-gradient(145deg, var(--bg) 0%, var(--dark-purple) 100%);
color: var(--text); color: var(--text);
font-family: 'InterVariable', sans-serif; font-family: 'InterVariable', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
margin: 0; margin: 0;
padding: 2rem; padding: 2rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: flex-start; align-items: flex-start;
min-height: 100vh; min-height: 100vh;
overflow: auto;
} }
.container { .container {
background-color: var(--dark-purple); position: relative;
background: linear-gradient(180deg, rgba(20, 14, 40, 0.6), rgba(16, 10, 28, 0.6));
backdrop-filter: blur(14px) saturate(120%);
-webkit-backdrop-filter: blur(14px) saturate(120%);
padding: 0; padding: 0;
border-radius: 16px; border-radius: 18px;
box-shadow: 0 0 10px rgba(0,0,0,0.5); border: 1px solid var(--card-border);
max-width: 1100px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
max-width: 1200px;
width: 100%; width: 100%;
display: flex; display: flex;
overflow: hidden; overflow: hidden;
max-height: calc(100vh - 4rem);
}
/* Subtle animated sheen around the container */
.container::before {
content: '';
position: absolute;
inset: -1px;
border-radius: inherit;
background: linear-gradient(135deg, rgba(123,46,255,0.25), rgba(0,198,255,0.15) 40%, transparent 60%);
filter: blur(20px);
z-index: 0;
pointer-events: none;
} }
/* Sidebar + content layout */ /* Sidebar + content layout */
.sidebar { .sidebar {
width: 260px; width: 280px;
background: rgba(0,0,0,0.2); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
border-right: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.08);
padding: 1.25rem 1rem; padding: 1.25rem 1rem;
position: relative;
z-index: 1;
} }
.sidebar h1 { .sidebar h1 {
font-size: 1.2rem; font-size: 1.1rem;
margin: 0 0 1rem 0; margin: 0 0 1rem 0;
color: var(--primary); color: var(--primary);
letter-spacing: 0.4px;
display: flex;
align-items: center;
gap: 8px;
} }
.tabs { .tabs {
@@ -60,13 +93,13 @@ body {
.tab-link { .tab-link {
text-align: left; text-align: left;
background: transparent; background: linear-gradient(180deg, transparent, transparent);
color: var(--text); color: var(--text);
border: none; border: 1px solid transparent;
border-radius: 8px; border-radius: 10px;
padding: 10px 12px; padding: 10px 12px 10px 14px;
cursor: pointer; cursor: pointer;
transition: background 0.15s ease, color 0.15s ease; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
font-size: 14px; font-size: 14px;
font-family: inherit; font-family: inherit;
width: 100%; width: 100%;
@@ -76,18 +109,37 @@ body {
.tab-link:hover { .tab-link:hover {
background: rgba(255,255,255,0.06); background: rgba(255,255,255,0.06);
border-color: rgba(255,255,255,0.08);
} }
.tab-link.active { .tab-link.active {
background: rgba(123, 46, 255, 0.18); background: linear-gradient(180deg, rgba(123, 46, 255, 0.18), rgba(0, 198, 255, 0.10));
color: #fff; color: #fff;
border: 1px solid rgba(123,46,255,0.35); border: 1px solid rgba(123,46,255,0.35);
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
/* Left accent bar */
.tab-link.active::before {
content: '';
position: absolute;
left: -1px;
top: 8px;
bottom: 8px;
width: 3px;
border-radius: 2px;
background: linear-gradient(180deg, var(--accent), var(--primary));
} }
.content { .content {
flex: 1; flex: 1;
padding: 1.25rem 1.5rem 2rem 1.5rem; padding: 1.25rem 1.5rem 2rem 1.5rem;
overflow: auto; overflow: auto;
position: relative;
z-index: 1;
background:
radial-gradient(800px 300px at 60% -10%, rgba(0, 198, 255, 0.10), transparent 50%),
radial-gradient(700px 260px at 20% -20%, rgba(123, 46, 255, 0.18), transparent 50%);
} }
.tab-panel { .tab-panel {
@@ -107,6 +159,7 @@ h1 {
.setting-group { .setting-group {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.6rem;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@@ -118,26 +171,36 @@ label {
input { input {
padding: 0.6rem; padding: 0.6rem;
font-size: 1rem; font-size: 1rem;
border: none; border: 1px solid rgba(255,255,255,0.12);
border-radius: 8px; border-radius: 10px;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
background-color: var(--dark-blue); background-color: rgba(11, 28, 43, 0.6);
color: var(--text); color: var(--text);
outline: none;
}
input:focus {
box-shadow: var(--ring);
border-color: rgba(123,46,255,0.5);
} }
button { button {
padding: 0.6rem; padding: 0.65rem 0.9rem;
font-size: 1rem; font-size: 0.95rem;
background-color: var(--primary); background: linear-gradient(180deg, rgba(123,46,255,0.95), rgba(90, 20, 220, 0.95));
color: var(--text); color: #fff;
border: none; border: 1px solid rgba(255,255,255,0.08);
border-radius: 8px; border-radius: 10px;
cursor: pointer; cursor: pointer;
transition: background 0.2s ease-in-out; transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
} }
button:hover { button:hover {
background-color: var(--accent); filter: brightness(1.03) saturate(1.05);
box-shadow: var(--glow);
}
button:active {
transform: translateY(1px);
} }
.note { .note {
@@ -157,8 +220,9 @@ button:hover {
background-color: rgba(18,20,24,0.8); background-color: rgba(18,20,24,0.8);
color: white; color: white;
padding: 0.8rem 1.2rem; padding: 0.8rem 1.2rem;
border-radius: 8px; border-radius: 12px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255,255,255,0.08);
box-shadow: 0 8px 30px rgba(0,0,0,0.5);
font-size: 1rem; font-size: 1rem;
z-index: 1000; z-index: 1000;
} }
@@ -191,6 +255,237 @@ button:hover {
box-sizing: border-box; box-sizing: border-box;
} }
/* Cards (customization groups) */
.customization-group {
background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
border: 1px solid var(--card-border);
border-radius: 14px;
padding: 14px 16px 16px 16px;
box-shadow: 0 6px 24px rgba(0,0,0,0.25);
margin-bottom: 20px;
}
.customization-group > h3 {
margin: 0 0 10px 0;
position: relative;
padding-left: 10px;
}
.customization-group > h3::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 18px;
border-radius: 2px;
background: linear-gradient(180deg, var(--accent), var(--primary));
}
/* Section titles */
h2 {
display: inline-flex;
align-items: center;
gap: 10px;
font-size: 1.2rem;
margin: 0 0 12px 0;
}
h2::after {
content: '';
flex: 1 1 auto;
height: 1px;
background: linear-gradient(90deg, rgba(255,255,255,0.15), transparent);
}
/* Theming: theme selector buttons override */
.theme-selector {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 16px;
padding: 10px 0;
}
.theme-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 12px 8px;
border: 1px solid rgba(255,255,255,0.10) !important;
border-radius: 12px !important;
background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)) !important;
color: var(--text);
text-align: center;
font-size: 0.85rem;
min-height: 90px;
}
.theme-btn:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.theme-btn.active {
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), var(--glow);
}
.theme-preview {
width: 60px;
height: 40px;
border-radius: 6px !important;
border: 1px solid rgba(255, 255, 255, 0.2);
position: relative;
overflow: hidden;
}
.theme-preview::after {
content: '';
position: absolute;
inset: 0;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 6px;
pointer-events: none;
}
.custom-theme-btn { border-style: dashed !important; opacity: 0.95; }
.custom-theme-btn:hover { opacity: 1; }
/* Range sliders */
input[type="range"] {
-webkit-appearance: none;
appearance: none;
height: 6px;
background: linear-gradient(90deg, rgba(123,46,255,0.6), rgba(0,198,255,0.6));
border-radius: 999px;
outline: none;
border: 1px solid rgba(255,255,255,0.15);
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
border: 2px solid rgba(123,46,255,0.9);
box-shadow: 0 2px 10px rgba(123,46,255,0.35);
}
input[type="range"]::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
border: 2px solid rgba(123,46,255,0.9);
box-shadow: 0 2px 10px rgba(123,46,255,0.35);
}
/* Checkboxes/radios */
input[type="checkbox"], input[type="radio"] {
accent-color: #8a4dff;
}
/* Layout & logo options */
.layout-options { display: flex; flex-direction: column; gap: 10px; }
.layout-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px; border-radius: 6px; transition: background 0.2s ease; }
.layout-options label:hover { background: rgba(255,255,255,0.05); }
.logo-options { display: flex; flex-direction: column; gap: 12px; }
.logo-options label { display: flex; align-items: center; gap: 8px; }
.logo-options input[type="text"] { flex: 1; }
/* Color customization controls */
.color-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.color-group { display: flex; flex-direction: column; gap: 5px; }
.color-group label { font-size: 0.9rem; color: var(--text); opacity: 0.9; }
input[type="color"] {
width: 100%;
height: 40px;
padding: 0;
border: 1px solid rgba(255,255,255,0.2);
border-radius: 8px;
background: transparent;
cursor: pointer;
}
/* Preview area */
.preview-container {
background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.03)) !important;
border-radius: 14px !important;
border: 1px solid var(--card-border) !important;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.preview-home {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
padding: 20px;
background: var(--bg);
border-radius: 8px;
min-height: 200px;
border: 1px dashed rgba(255,255,255,0.12);
}
.preview-text { letter-spacing: 0.3px; }
.preview-logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.preview-search { width: 60%; height: 40px; background: rgba(255,255,255,0.1); border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); }
.preview-bookmarks { display: flex; gap: 10px; }
.preview-bookmark { width: 50px; height: 50px; background: var(--accent); border-radius: 8px; }
/* History lists */
#search-history-list, #site-history-list {
padding: 0;
margin: 6px 0 0 0;
display: grid;
gap: 6px;
}
#search-history-list li, #site-history-list li {
list-style: none;
padding: 8px 10px;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 10px;
}
#site-history-list a {
color: var(--accent);
text-decoration: none;
}
#site-history-list a:hover { text-decoration: underline; }
/* About buttons */
.github-btn, .help-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: linear-gradient(180deg, rgba(123,46,255,0.95), rgba(90, 20, 220, 0.95));
color: #fff;
border: 1px solid rgba(255,255,255,0.08) !important;
border-radius: 10px !important;
text-decoration: none;
cursor: pointer;
transition: transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.github-btn:hover, .help-btn:hover { filter: brightness(1.03) saturate(1.05); box-shadow: var(--glow); }
.github-btn:active, .help-btn:active { transform: translateY(1px); }
.about-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Debug info */
.debug-info {
background: rgba(0,0,0,0.35) !important;
border: 1px solid rgba(255,255,255,0.1);
border-radius: 10px;
}
/* General lists inside cards */
.customization-group ul { list-style: none; padding: 0; margin: 0; }
.customization-group ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.customization-group ul li:last-child { border-bottom: none; }
/* Theme management buttons */
.theme-management { display: flex; flex-wrap: wrap; gap: 10px; }
#reset-to-default { background: linear-gradient(180deg, #e53e3e, #c53030); }
/* Scrollbar styling (Chromium) */
*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 999px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(123,46,255,0.7), rgba(0,198,255,0.7)); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(123,46,255,0.9), rgba(0,198,255,0.9)); }
/* small-screen adjustments */ /* small-screen adjustments */
@media (max-width: 480px) { @media (max-width: 480px) {
.container { .container {
+2 -301
View File
@@ -5,269 +5,7 @@
<title>Settings</title> <title>Settings</title>
<link rel="stylesheet" href="settings.css" /> <link rel="stylesheet" href="settings.css" />
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚙️</text></svg>"> <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚙️</text></svg>">
<style> <!-- Inline styles removed; styles now live in settings.css for a cleaner, modern look. -->
body { font-family: sans-serif; padding: 20px; }
section { margin-bottom: 30px; }
h2 { border-bottom: 1px solid #ccc; padding-bottom: 5px; }
h3 { margin: 15px 0 10px 0; color: var(--accent); font-size: 1.1rem; }
ul { list-style: none; padding-left: 0; }
li { padding: 5px 0; border-bottom: 1px solid #eee; }
.debug-info { background: #f0f0f0; padding: 10px; margin: 10px 0; font-family: monospace; font-size: 12px; }
/* Customization Styles */
.customization-group {
margin-bottom: 25px;
padding: 15px;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
}
.theme-selector {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 15px;
padding: 10px 0;
}
.theme-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 12px 8px;
background: transparent;
border: 2px solid transparent;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
color: var(--text);
text-align: center;
font-size: 0.85rem;
min-height: 90px;
}
.theme-btn:hover {
border-color: var(--accent);
}
.theme-btn.active {
border-color: var(--primary);
background: rgba(123, 46, 255, 0.1);
}
.custom-theme-btn {
border: 2px dashed rgba(255, 255, 255, 0.3) !important;
opacity: 0.9;
}
.custom-theme-btn:hover {
border-color: var(--accent) !important;
opacity: 1;
}
.custom-theme-btn.active {
border-color: var(--primary) !important;
background: rgba(123, 46, 255, 0.15) !important;
opacity: 1;
}
.theme-preview {
width: 60px;
height: 40px;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.2);
position: relative;
overflow: hidden;
}
.theme-preview::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 4px;
pointer-events: none;
}
.color-controls {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
}
.color-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.color-group label {
font-size: 0.9rem;
color: var(--text);
}
.color-group input[type="color"] {
width: 100%;
height: 40px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 4px;
background: transparent;
cursor: pointer;
}
.layout-options {
display: flex;
flex-direction: column;
gap: 10px;
}
.layout-options label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
padding: 8px;
border-radius: 4px;
transition: background 0.2s ease;
}
.layout-options label:hover {
background: rgba(255, 255, 255, 0.05);
}
.logo-options {
display: flex;
flex-direction: column;
gap: 12px;
}
.logo-options label {
display: flex;
align-items: center;
gap: 8px;
}
.logo-options input[type="text"] {
flex: 1;
padding: 8px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 4px;
color: var(--text);
}
.theme-management {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.theme-management button {
padding: 8px 16px;
background: var(--primary);
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.2s ease;
}
.theme-management button:hover {
background: var(--accent);
}
.theme-management button:last-child {
background: #e53e3e;
}
.theme-management button:last-child:hover {
background: #c53030;
}
.preview-container {
background: var(--dark-blue);
border-radius: 8px;
padding: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.preview-home {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
padding: 20px;
background: var(--bg);
border-radius: 8px;
min-height: 200px;
}
.preview-logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary);
}
.preview-text {
font-size: 1.2rem;
font-weight: 600;
color: var(--primary);
margin-top: 5px;
}
.preview-search {
width: 60%;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.preview-bookmarks {
display: flex;
gap: 10px;
}
.preview-bookmark {
width: 50px;
height: 50px;
background: var(--accent);
border-radius: 8px;
}
/* About actions */
.about-actions {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.github-btn, .help-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: var(--primary);
color: #fff;
border: none;
border-radius: 6px;
text-decoration: none;
cursor: pointer;
transition: background 0.2s ease;
}
.github-btn:hover, .help-btn:hover {
background: var(--accent);
}
.github-btn svg, .help-btn svg {
width: 18px;
height: 18px;
fill: currentColor;
display: block;
}
</style>
</head> </head>
<body> <body>
<div class="container" role="application"> <div class="container" role="application">
@@ -393,44 +131,7 @@
</div> </div>
</div> </div>
<!-- Home Page Layout -->
<div class="customization-group">
<h3>Home Page Layout</h3>
<div class="layout-options">
<label>
<input type="radio" name="layout" value="centered" checked>
<span>Centered (Default)</span>
</label>
<label>
<input type="radio" name="layout" value="sidebar">
<span>Sidebar Navigation</span>
</label>
<label>
<input type="radio" name="layout" value="compact">
<span>Compact View</span>
</label>
<hr style="opacity:.2; margin:10px 0;">
<div style="display:grid; grid-template-columns: 1fr; gap:10px;">
<label style="display:flex; align-items:center; gap:10px;">
<span style="min-width:160px;">Search Y position</span>
<input type="range" id="home-search-y" min="5" max="85" step="1" value="22">
<span id="home-search-y-val" style="opacity:.8; width:48px; text-align:right;">22vh</span>
</label>
<label style="display:flex; align-items:center; gap:10px;">
<span style="min-width:160px;">Top Sites Y position</span>
<input type="range" id="home-bookmarks-y" min="10" max="90" step="1" value="40">
<span id="home-bookmarks-y-val" style="opacity:.8; width:48px; text-align:right;">40vh</span>
</label>
</div>
<div style="margin-top:8px;">
<div style="margin-bottom:6px;">At a glance corner</div>
<label style="margin-right:12px;"><input type="radio" name="home-glance-corner" value="br" checked> BottomRight</label>
<label style="margin-right:12px;"><input type="radio" name="home-glance-corner" value="bl"> BottomLeft</label>
<label style="margin-right:12px;"><input type="radio" name="home-glance-corner" value="tr"> TopRight</label>
<label style="margin-right:12px;"><input type="radio" name="home-glance-corner" value="tl"> TopLeft</label>
</div>
</div>
</div>
<!-- Logo Customization --> <!-- Logo Customization -->
<div class="customization-group"> <div class="customization-group">