Settings page mods
- Made the settings page look more moderns - Removed home page layout settings from settings menu
This commit is contained in:
+2
-301
@@ -5,269 +5,7 @@
|
||||
<title>Settings</title>
|
||||
<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>">
|
||||
<style>
|
||||
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>
|
||||
<!-- Inline styles removed; styles now live in settings.css for a cleaner, modern look. -->
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" role="application">
|
||||
@@ -393,44 +131,7 @@
|
||||
</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> Bottom‑Right</label>
|
||||
<label style="margin-right:12px;"><input type="radio" name="home-glance-corner" value="bl"> Bottom‑Left</label>
|
||||
<label style="margin-right:12px;"><input type="radio" name="home-glance-corner" value="tr"> Top‑Right</label>
|
||||
<label style="margin-right:12px;"><input type="radio" name="home-glance-corner" value="tl"> Top‑Left</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Logo Customization -->
|
||||
<div class="customization-group">
|
||||
|
||||
Reference in New Issue
Block a user