Merge branch 'indev' of https://git.bwaaa.monster/omnisearch
This commit is contained in:
850
static/main.css
850
static/main.css
@@ -1,44 +1,21 @@
|
||||
@import url("https://cdn.jsdelivr.net/npm/@catppuccin/palette/css/catppuccin.css");
|
||||
|
||||
:root {
|
||||
--bg-main: var(--ctp-latte-base);
|
||||
--bg-card: var(--ctp-latte-overlay0);
|
||||
--border: var(--ctp-latte-overlay2);
|
||||
--text-primary: var(--ctp-latte-text);
|
||||
--text-secondary: var(--ctp-latte-subtext0);
|
||||
--text-muted: var(--ctp-latte-overlay1);
|
||||
--accent: var(--ctp-latte-mauve);
|
||||
--accent-glow: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg-main: var(--ctp-mocha-base);
|
||||
--bg-card: var(--ctp-mocha-surface1);
|
||||
--border: var(--ctp-mocha-overlay2);
|
||||
--text-primary: var(--ctp-mocha-text);
|
||||
--text-secondary: var(--ctp-mocha-subtext0);
|
||||
--text-muted: var(--ctp-mocha-subtext1);
|
||||
--accent: var(--ctp-mocha-mauve);
|
||||
--accent-glow: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
html {
|
||||
height:100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-main);
|
||||
color: var(--text-primary);
|
||||
font-family:
|
||||
system-ui,
|
||||
-apple-system,
|
||||
sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
background-color:var(--bg-main);
|
||||
background-image:radial-gradient(circle at top end, var(--bg-card) 0%, var(--bg-main) 100%);
|
||||
background-attachment:fixed;
|
||||
color:var(--text-primary);
|
||||
margin:0;
|
||||
padding:0;
|
||||
min-height:100%;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
img[src=""] {
|
||||
@@ -51,25 +28,20 @@ img[src=""] {
|
||||
}
|
||||
|
||||
.view-home {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
padding: 20px;
|
||||
background: radial-gradient(
|
||||
circle at top right,
|
||||
var(--accent) 0%,
|
||||
var(--bg-main) 100%
|
||||
);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.view-home .container {
|
||||
width: 100%;
|
||||
max-width: 580px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 580px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.view-home .hero-logo {
|
||||
@@ -115,21 +87,85 @@ img[src=""] {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.view-home .btn-secondary {
|
||||
background: var(--bg-card);
|
||||
color: var(--text-primary);
|
||||
border-color: var(--border);
|
||||
background:var(--bg-card);
|
||||
color:var(--text-primary);
|
||||
border-color:var(--border);
|
||||
text-decoration:none;
|
||||
display:inline-flex;
|
||||
align-items:center;
|
||||
padding:10px 24px;
|
||||
border-radius:8px;
|
||||
font-weight:600;
|
||||
font-size:0.9rem;
|
||||
cursor:pointer;
|
||||
transition:all 0.2s;
|
||||
border:1px solid var(--border);
|
||||
}
|
||||
.view-home .btn-secondary:hover {
|
||||
background: var(--border);
|
||||
border-color: var(--text-secondary);
|
||||
}
|
||||
.home-settings-btn {
|
||||
position:fixed;
|
||||
top:27px;
|
||||
inset-inline-end:60px;
|
||||
width:24px;
|
||||
height:24px;
|
||||
background-color:var(--text-primary);
|
||||
-webkit-mask-image:url('/static/settings.svg');
|
||||
mask-image:url('/static/settings.svg');
|
||||
mask-size:contain;
|
||||
mask-repeat:no-repeat;
|
||||
mask-position:center;
|
||||
text-decoration:none;
|
||||
}
|
||||
.home-footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 8px 24px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
.version-link {
|
||||
color: var(--text-muted);
|
||||
text-decoration: underline;
|
||||
}
|
||||
.version-link:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.nav-settings-icon {
|
||||
width:24px;
|
||||
height:24px;
|
||||
flex-shrink:0;
|
||||
margin-inline-start:auto;
|
||||
margin-top:3px;
|
||||
background-color:var(--text-secondary);
|
||||
-webkit-mask-image:url('/static/settings.svg');
|
||||
mask-image:url('/static/settings.svg');
|
||||
mask-size:100% 100%;
|
||||
transition:background-color 0.2s;
|
||||
text-decoration:none;
|
||||
}
|
||||
.nav-settings-icon:hover,
|
||||
.nav-settings-icon.active {
|
||||
background-color:var(--text-primary);
|
||||
}
|
||||
.nav-settings-link {
|
||||
display:none;
|
||||
margin-inline-start:auto;
|
||||
}
|
||||
header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
padding: 15px 60px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--bg-main);
|
||||
display:flex;
|
||||
align-items:center;
|
||||
gap:20px;
|
||||
padding-block:15px;
|
||||
padding-inline:60px;
|
||||
border-bottom:1px solid var(--border);
|
||||
background:var(--bg-main);
|
||||
width:100%;
|
||||
}
|
||||
.search-form {
|
||||
flex-grow: 1;
|
||||
@@ -144,6 +180,16 @@ h1 {
|
||||
h1 span {
|
||||
color: var(--accent);
|
||||
}
|
||||
.logo-link {
|
||||
text-decoration:none;
|
||||
color:inherit;
|
||||
}
|
||||
header .logo-link {
|
||||
transition:transform 0.2s;
|
||||
}
|
||||
header .logo-link:hover {
|
||||
transform:scale(1.03);
|
||||
}
|
||||
.search-box {
|
||||
width: 100%;
|
||||
padding: 12px 24px;
|
||||
@@ -162,14 +208,14 @@ h1 span {
|
||||
box-shadow: 0 0 0 4px var(--accent-glow);
|
||||
}
|
||||
.nav-tabs {
|
||||
padding: 0 60px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--bg-main);
|
||||
padding-inline:60px;
|
||||
border-bottom:1px solid var(--border);
|
||||
background:var(--bg-main);
|
||||
width:100%;
|
||||
}
|
||||
.nav-container {
|
||||
display: flex;
|
||||
gap: 30px;
|
||||
max-width: 1200px;
|
||||
display:flex;
|
||||
gap:30px;
|
||||
}
|
||||
.nav-tabs a {
|
||||
padding: 14px 0;
|
||||
@@ -188,6 +234,9 @@ h1 span {
|
||||
color: var(--accent);
|
||||
border-bottom-color: var(--accent);
|
||||
}
|
||||
.nav-right {
|
||||
margin-inline-start:auto;
|
||||
}
|
||||
.image-results-container {
|
||||
padding: 30px 60px;
|
||||
}
|
||||
@@ -289,14 +338,75 @@ h1 span {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.content-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 140px minmax(0, 700px) 450px;
|
||||
gap: 60px;
|
||||
padding: 30px 60px;
|
||||
display:grid;
|
||||
grid-template-columns:140px minmax(0,700px) 450px;
|
||||
gap:60px;
|
||||
padding-block:30px;
|
||||
padding-inline:60px;
|
||||
}
|
||||
.result-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 2px;
|
||||
position: relative;
|
||||
}
|
||||
.result-favicon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
position: absolute;
|
||||
inset-inline-start: -24px;
|
||||
}
|
||||
.url {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.result-favicon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
inset-inline-start: -20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.result-favicon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
inset-inline-start: -16px;
|
||||
}
|
||||
}
|
||||
.results-container {
|
||||
grid-column: 2;
|
||||
}
|
||||
.engine-filter-list {
|
||||
display:flex;
|
||||
flex-wrap:wrap;
|
||||
gap:10px;
|
||||
margin-bottom:24px;
|
||||
}
|
||||
.engine-filter {
|
||||
background:var(--bg-card);
|
||||
color:var(--text-secondary);
|
||||
border:1px solid var(--border);
|
||||
border-radius:999px;
|
||||
padding:6px 12px;
|
||||
text-decoration:none;
|
||||
font-size:0.85rem;
|
||||
font-weight:600;
|
||||
}
|
||||
.engine-filter.active {
|
||||
background:var(--accent);
|
||||
border-color:var(--accent);
|
||||
color:var(--bg-main);
|
||||
}
|
||||
.engine-warning-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -335,12 +445,6 @@ h1 span {
|
||||
.result > a:hover {
|
||||
text-decoration-color: var(--accent);
|
||||
}
|
||||
.url {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.desc {
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
@@ -435,199 +539,419 @@ h1 span {
|
||||
}
|
||||
|
||||
.pagination-current {
|
||||
background: var(--bg-card);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid var(--border);
|
||||
padding: 4px 12px;
|
||||
border-radius: 8px;
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
transition: all 0.2s;
|
||||
touch-action: manipulation;
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: var(--bg-main);
|
||||
}
|
||||
|
||||
.pagination-current:hover {
|
||||
background: var(--border);
|
||||
border-color: var(--text-secondary);
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.content-layout {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 20px 30px;
|
||||
gap: 20px;
|
||||
}
|
||||
.results-container,
|
||||
.infobox-sidebar {
|
||||
grid-column: 1;
|
||||
max-width: 100%;
|
||||
}
|
||||
.infobox-sidebar {
|
||||
order: -1;
|
||||
}
|
||||
.nav-tabs,
|
||||
.image-results-container {
|
||||
padding: 0 30px;
|
||||
}
|
||||
header {
|
||||
padding: 15px 30px;
|
||||
}
|
||||
[dir="rtl"] .pagination-btn.prev {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
[dir="rtl"] .pagination-btn.next {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
|
||||
@media (max-width:1200px) {
|
||||
.content-layout {
|
||||
grid-template-columns:1fr;
|
||||
padding-block:20px;
|
||||
padding-inline:30px;
|
||||
gap:20px;
|
||||
}
|
||||
header {
|
||||
gap:20px;
|
||||
}
|
||||
.results-container,.infobox-sidebar {
|
||||
grid-column:1;
|
||||
max-width:100%;
|
||||
}
|
||||
.settings-layout {
|
||||
padding-block:20px;
|
||||
padding-inline:30px;
|
||||
display:flex;
|
||||
justify-content:center;
|
||||
}
|
||||
.infobox-sidebar {
|
||||
order:-1;
|
||||
}
|
||||
.nav-tabs,.image-results-container {
|
||||
padding-inline:30px;
|
||||
}
|
||||
header {
|
||||
padding-block:15px;
|
||||
padding-inline:30px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width:768px) {
|
||||
.nav-settings-icon {
|
||||
display:none;
|
||||
}
|
||||
.nav-settings-link {
|
||||
display:inline;
|
||||
}
|
||||
header {
|
||||
flex-direction:column;
|
||||
gap:12px;
|
||||
padding-block:12px;
|
||||
padding-inline:16px;
|
||||
text-align:center;
|
||||
}
|
||||
h1 {
|
||||
font-size:1.3rem;
|
||||
}
|
||||
.search-form {
|
||||
width:100%;
|
||||
max-width:100%;
|
||||
}
|
||||
.search-form .search-box {
|
||||
width:100%;
|
||||
}
|
||||
.nav-tabs {
|
||||
overflow-x:auto;
|
||||
-webkit-overflow-scrolling:touch;
|
||||
padding-inline:16px;
|
||||
}
|
||||
.nav-container {
|
||||
gap:24px;
|
||||
min-width:max-content;
|
||||
}
|
||||
.nav-tabs a {
|
||||
padding:12px 0;
|
||||
font-size:0.95rem;
|
||||
}
|
||||
.content-layout {
|
||||
padding-inline-start:40px;
|
||||
padding-inline-end:16px;
|
||||
padding-block:16px;
|
||||
gap:16px;
|
||||
}
|
||||
.result {
|
||||
margin-bottom:24px;
|
||||
}
|
||||
.engine-warning {
|
||||
padding:12px 14px;
|
||||
}
|
||||
.result > a {
|
||||
font-size:1.1rem;
|
||||
word-break:break-word;
|
||||
}
|
||||
.url {
|
||||
font-size:0.8rem;
|
||||
word-break:break-all;
|
||||
}
|
||||
.desc {
|
||||
font-size:0.9rem;
|
||||
}
|
||||
.cached {
|
||||
font-size:0.8rem;
|
||||
}
|
||||
.infobox {
|
||||
margin-bottom:16px;
|
||||
}
|
||||
.infobox-header {
|
||||
padding:16px;
|
||||
}
|
||||
.infobox-title {
|
||||
font-size:1.2rem;
|
||||
}
|
||||
.infobox-main {
|
||||
flex-direction:column;
|
||||
padding:16px;
|
||||
gap:12px;
|
||||
}
|
||||
.infobox-image {
|
||||
width:100%;
|
||||
height:auto;
|
||||
min-width:unset;
|
||||
max-width:200px;
|
||||
}
|
||||
.image-results-container {
|
||||
padding-inline:16px;
|
||||
}
|
||||
.pagination {
|
||||
flex-wrap:wrap;
|
||||
gap:8px;
|
||||
padding:0 8px;
|
||||
}
|
||||
.pagination-btn {
|
||||
padding:10px 14px;
|
||||
font-size:0.85rem;
|
||||
}
|
||||
.view-home {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding:20px 16px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.view-home .container {
|
||||
padding:0;
|
||||
width:100%;
|
||||
max-width:580px;
|
||||
}
|
||||
.view-home .hero-logo {
|
||||
font-size:3rem;
|
||||
margin-bottom:24px;
|
||||
}
|
||||
.view-home .search-input-wrapper {
|
||||
margin-bottom:16px;
|
||||
}
|
||||
.view-home .search-box {
|
||||
width:100%;
|
||||
font-size:1rem;
|
||||
padding:14px 20px;
|
||||
}
|
||||
.view-home .buttons {
|
||||
gap:10px;
|
||||
}
|
||||
.view-home button {
|
||||
padding:12px 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width:600px) {
|
||||
.content-layout {
|
||||
padding-inline-start:28px;
|
||||
padding-inline-end:16px;
|
||||
padding-block:16px;
|
||||
}
|
||||
.settings-layout {
|
||||
padding:0;
|
||||
}
|
||||
header {
|
||||
padding-inline:12px;
|
||||
padding-block:12px;
|
||||
}
|
||||
.search-box {
|
||||
font-size:0.95rem;
|
||||
}
|
||||
.view-home .search-box {
|
||||
width:100%;
|
||||
}
|
||||
.view-home {
|
||||
padding:20px 16px;
|
||||
}
|
||||
.image-grid {
|
||||
grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
|
||||
gap:10px;
|
||||
}
|
||||
.image-card {
|
||||
border-radius:8px;
|
||||
}
|
||||
.image-info {
|
||||
padding:8px 10px;
|
||||
}
|
||||
.image-caption {
|
||||
font-size:0.8rem;
|
||||
}
|
||||
.image-source {
|
||||
font-size:0.7rem;
|
||||
}
|
||||
.overlay-buttons {
|
||||
width:80%;
|
||||
}
|
||||
.overlay-btn {
|
||||
padding:6px 12px;
|
||||
font-size:0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.settings-layout {
|
||||
padding-block: 30px;
|
||||
padding-inline-start: 260px;
|
||||
padding-inline-end: 60px;
|
||||
}
|
||||
|
||||
.settings-container {
|
||||
max-width:700px;
|
||||
}
|
||||
|
||||
.settings-title {
|
||||
font-size:1.8rem;
|
||||
font-weight:700;
|
||||
margin:0 0 32px 0;
|
||||
letter-spacing:-0.5px;
|
||||
}
|
||||
|
||||
.settings-section {
|
||||
background:var(--bg-card);
|
||||
border:1px solid var(--border);
|
||||
border-radius:12px;
|
||||
padding:24px;
|
||||
margin-bottom:32px;
|
||||
}
|
||||
|
||||
.settings-section-title {
|
||||
font-size:1.1rem;
|
||||
font-weight:700;
|
||||
margin:0 0 4px 0;
|
||||
}
|
||||
|
||||
.settings-section-desc {
|
||||
color:var(--text-secondary);
|
||||
font-size:0.9rem;
|
||||
margin:0 0 20px 0;
|
||||
line-height:1.4;
|
||||
}
|
||||
|
||||
.settings-field {
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:space-between;
|
||||
padding:10px 0;
|
||||
}
|
||||
|
||||
.settings-field + .settings-field {
|
||||
border-top:1px solid var(--border);
|
||||
}
|
||||
|
||||
.settings-label {
|
||||
font-size:0.95rem;
|
||||
color:var(--text-primary);
|
||||
}
|
||||
|
||||
.settings-select {
|
||||
padding:8px 12px;
|
||||
border-radius:8px;
|
||||
border:1px solid var(--border);
|
||||
background:var(--bg-main);
|
||||
color:var(--text-primary);
|
||||
font-size:0.9rem;
|
||||
outline:none;
|
||||
cursor:pointer;
|
||||
transition:border-color 0.2s;
|
||||
}
|
||||
|
||||
.settings-select:focus {
|
||||
border-color:var(--accent);
|
||||
}
|
||||
|
||||
.settings-checkbox {
|
||||
width:18px;
|
||||
height:18px;
|
||||
accent-color:var(--accent);
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.settings-actions {
|
||||
display:flex;
|
||||
gap:12px;
|
||||
margin-top:8px;
|
||||
padding-bottom:40px;
|
||||
justify-content:flex-start;
|
||||
}
|
||||
|
||||
.settings-actions .btn-primary {
|
||||
background:var(--accent);
|
||||
color:var(--bg-main);
|
||||
border:1px solid transparent;
|
||||
padding:10px 24px;
|
||||
border-radius:8px;
|
||||
font-weight:600;
|
||||
font-size:0.9rem;
|
||||
cursor:pointer;
|
||||
transition:all 0.2s;
|
||||
touch-action:manipulation;
|
||||
}
|
||||
|
||||
.settings-actions .btn-primary:hover {
|
||||
filter:brightness(1.1);
|
||||
transform:translateY(-1px);
|
||||
}
|
||||
|
||||
.settings-actions .btn-secondary {
|
||||
background:var(--bg-card);
|
||||
color:var(--text-primary);
|
||||
border:1px solid var(--border);
|
||||
padding:10px 24px;
|
||||
border-radius:8px;
|
||||
font-weight:600;
|
||||
font-size:0.9rem;
|
||||
cursor:pointer;
|
||||
transition:all 0.2s;
|
||||
touch-action:manipulation;
|
||||
}
|
||||
|
||||
.settings-actions .btn-secondary:hover {
|
||||
background:var(--border);
|
||||
border-color:var(--text-secondary);
|
||||
}
|
||||
|
||||
@media (max-width:768px) {
|
||||
.settings-layout {
|
||||
padding:12px;
|
||||
display:block;
|
||||
}
|
||||
.settings-container {
|
||||
max-width:100%;
|
||||
}
|
||||
.settings-title {
|
||||
font-size:1.4rem;
|
||||
margin-bottom:24px;
|
||||
}
|
||||
.settings-section {
|
||||
padding:16px;
|
||||
}
|
||||
.settings-field {
|
||||
flex-direction:column;
|
||||
align-items:stretch;
|
||||
gap:8px;
|
||||
}
|
||||
.settings-actions {
|
||||
flex-direction:column;
|
||||
}
|
||||
.settings-actions .btn-primary,
|
||||
.settings-actions .btn-secondary {
|
||||
width:100%;
|
||||
text-align:center;
|
||||
}
|
||||
}
|
||||
|
||||
[dir="rtl"] {
|
||||
direction: rtl;
|
||||
unicode-bidi: embed;
|
||||
}
|
||||
|
||||
[dir="rtl"] header {
|
||||
flex-direction: row-reverse;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
[dir="rtl"] .nav-container {
|
||||
flex-direction: row-reverse;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
[dir="rtl"] .search-box {
|
||||
text-align: right;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
[dir="rtl"] .url {
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
[dir="rtl"] .nav-settings-icon {
|
||||
margin-inline-start: unset;
|
||||
margin-inline-end: auto;
|
||||
}
|
||||
|
||||
[dir="rtl"] .settings-actions .btn-primary {
|
||||
margin-inline-end: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
header {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
text-align: center;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
.search-form {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
.search-form .search-box {
|
||||
width: 100%;
|
||||
}
|
||||
.nav-tabs {
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding: 0 16px;
|
||||
}
|
||||
.nav-container {
|
||||
gap: 24px;
|
||||
min-width: max-content;
|
||||
}
|
||||
.nav-tabs a {
|
||||
padding: 12px 0;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.content-layout {
|
||||
padding: 16px;
|
||||
gap: 16px;
|
||||
}
|
||||
.result {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.engine-warning {
|
||||
padding: 12px 14px;
|
||||
}
|
||||
.result > a {
|
||||
font-size: 1.1rem;
|
||||
word-break: break-word;
|
||||
}
|
||||
.url {
|
||||
font-size: 0.8rem;
|
||||
word-break: break-all;
|
||||
}
|
||||
.desc {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.cached {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.infobox {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.infobox-header {
|
||||
padding: 16px;
|
||||
}
|
||||
.infobox-title {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.infobox-main {
|
||||
flex-direction: column;
|
||||
padding: 16px;
|
||||
gap: 12px;
|
||||
}
|
||||
.infobox-image {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
min-width: unset;
|
||||
max-width: 200px;
|
||||
}
|
||||
.image-results-container {
|
||||
padding: 16px;
|
||||
}
|
||||
.pagination {
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
.pagination-btn {
|
||||
padding: 10px 14px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.view-home {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transform: translateY(-5vh);
|
||||
padding: 20px 16px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.view-home .container {
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
max-width: 580px;
|
||||
}
|
||||
.view-home .hero-logo {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.view-home .search-input-wrapper {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.view-home .search-box {
|
||||
width: 100%;
|
||||
font-size: 1rem;
|
||||
padding: 14px 20px;
|
||||
}
|
||||
.view-home .buttons {
|
||||
gap: 10px;
|
||||
}
|
||||
.view-home button {
|
||||
padding: 12px 20px;
|
||||
}
|
||||
[dir="rtl"] header {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
header {
|
||||
padding: 12px 12px;
|
||||
}
|
||||
.search-box {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.view-home .search-box {
|
||||
width: 100%;
|
||||
}
|
||||
.view-home {
|
||||
padding: 20px 16px;
|
||||
}
|
||||
.image-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
.image-card {
|
||||
border-radius: 8px;
|
||||
}
|
||||
.image-info {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.image-caption {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.image-source {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
.overlay-buttons {
|
||||
width: 80%;
|
||||
}
|
||||
.overlay-btn {
|
||||
padding: 6px 12px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
4
static/settings.svg
Normal file
4
static/settings.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="12" r="3"/>
|
||||
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 829 B |
10
static/themes/catppuccin mocha.css
Normal file
10
static/themes/catppuccin mocha.css
Normal file
@@ -0,0 +1,10 @@
|
||||
:root {
|
||||
--bg-main: #181825;
|
||||
--bg-card: #1e1e2e;
|
||||
--border: #313244;
|
||||
--text-primary: #cdd6f4;
|
||||
--text-secondary: #a6adc8;
|
||||
--text-muted: #6c7086;
|
||||
--accent: #cba6f7;
|
||||
--accent-glow: rgba(255,255,255,0.1);
|
||||
}
|
||||
10
static/themes/dark.css
Normal file
10
static/themes/dark.css
Normal file
@@ -0,0 +1,10 @@
|
||||
:root {
|
||||
--bg-main: #121212;
|
||||
--bg-card: #1e1e1e;
|
||||
--border: #333333;
|
||||
--text-primary: #ffffff;
|
||||
--text-secondary: #a0a0a0;
|
||||
--text-muted: #d1d1d1;
|
||||
--accent: #e2e2e2;
|
||||
--accent-glow: rgba(255,255,255,0.1);
|
||||
}
|
||||
10
static/themes/light.css
Normal file
10
static/themes/light.css
Normal file
@@ -0,0 +1,10 @@
|
||||
:root {
|
||||
--bg-main: #ffffff;
|
||||
--bg-card: #f8f9fa;
|
||||
--border: #e0e0e0;
|
||||
--text-primary: #1a1a1a;
|
||||
--text-secondary: #5f6368;
|
||||
--text-muted: #757575;
|
||||
--accent: #202124;
|
||||
--accent-glow: rgba(0,0,0,0.05);
|
||||
}
|
||||
22
static/themes/system.css
Normal file
22
static/themes/system.css
Normal file
@@ -0,0 +1,22 @@
|
||||
:root {
|
||||
--bg-main: #ffffff;
|
||||
--bg-card: #f8f9fa;
|
||||
--border: #e0e0e0;
|
||||
--text-primary: #1a1a1a;
|
||||
--text-secondary: #5f6368;
|
||||
--text-muted: #757575;
|
||||
--accent: #202124;
|
||||
--accent-glow: rgba(0,0,0,0.05);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg-main: #121212;
|
||||
--bg-card: #1e1e1e;
|
||||
--border: #333333;
|
||||
--text-primary: #ffffff;
|
||||
--text-secondary: #a0a0a0;
|
||||
--text-muted: #d1d1d1;
|
||||
--accent: #e2e2e2;
|
||||
--accent-glow: rgba(255,255,255,0.1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user