added flake back etc
This commit is contained in:
46
flake.lock
generated
Normal file
46
flake.lock
generated
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"beaker-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1793900580,
|
||||||
|
"narHash": "sha256-TWJAVS60lHQO+4Gmt86qlT7RN25HrqCSl3n7EE+OP1o=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "aedf6c0c93acb2a8f57ef3f94498332b3ab6db89",
|
||||||
|
"revCount": 48,
|
||||||
|
"shallow": false,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.bwaaa.space/beaker"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"shallow": false,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.bwaaa.space/beaker"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1794386569,
|
||||||
|
"narHash": "sha256-x9sADJvoVG0L6RejZB+/BB4YiGZFBZrfTlhF4uBq1tQ=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "d4f25a3e562008648d45bcf2d70bcc7422cad84e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"beaker-src": "beaker-src",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
71
flake.nix
Normal file
71
flake.nix
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
beaker-src = {
|
||||||
|
url = "git+https://git.bwaaa.space/beaker?shallow=0";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
beaker-src,
|
||||||
|
}: let
|
||||||
|
supportedSystems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
|
in {
|
||||||
|
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt);
|
||||||
|
packages = forAllSystems (
|
||||||
|
system: let
|
||||||
|
pkgs = import nixpkgs {inherit system;};
|
||||||
|
|
||||||
|
beaker = pkgs.stdenv.mkDerivation {
|
||||||
|
pname = "beaker";
|
||||||
|
version = "git";
|
||||||
|
src = beaker-src;
|
||||||
|
makeFlags = [
|
||||||
|
"INSTALL_PREFIX=$(out)/"
|
||||||
|
"LDCONFIG=true"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
default = pkgs.stdenv.mkDerivation {
|
||||||
|
pname = "omnisearch";
|
||||||
|
version = "git";
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pkgs.libxml2.dev
|
||||||
|
pkgs.curl.dev
|
||||||
|
pkgs.openssl
|
||||||
|
beaker
|
||||||
|
];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
makeFlagsArray+=(
|
||||||
|
"PREFIX=$out"
|
||||||
|
"CFLAGS=-Wall -Wextra -O2 -Isrc -I${pkgs.libxml2.dev}/include/libxml2"
|
||||||
|
"LIBS=-lbeaker -lcurl -lxml2 -lpthread -lm -lssl -lcrypto"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin $out/share/omnisearch
|
||||||
|
install -Dm755 bin/omnisearch $out/bin/omnisearch
|
||||||
|
cp -r templates static locales -t $out/share/omnisearch/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Lightweight metasearch engine in C";
|
||||||
|
platforms = pkgs.lib.platforms.linux;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
nixosModules.default = import ./module.nix self;
|
||||||
|
};
|
||||||
|
}
|
||||||
500
static/main.css
500
static/main.css
@@ -1,20 +1,26 @@
|
|||||||
*, *::before, *::after {
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-family: sans-serif;
|
font-family: system-ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
height:100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color:var(--bg-main);
|
background-color: var(--bg-main);
|
||||||
background-image:radial-gradient(circle at top end, var(--bg-card) 0%, var(--bg-main) 100%);
|
background-image: radial-gradient(
|
||||||
background-attachment:fixed;
|
circle at top end,
|
||||||
color:var(--text-primary);
|
var(--bg-card) 0%,
|
||||||
margin:0;
|
var(--bg-main) 100%
|
||||||
padding:0;
|
);
|
||||||
min-height:100%;
|
background-attachment: fixed;
|
||||||
|
color: var(--text-primary);
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
min-height: 100%;
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,37 +93,37 @@ img[src=""] {
|
|||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
.view-home .btn-secondary {
|
.view-home .btn-secondary {
|
||||||
background:var(--bg-card);
|
background: var(--bg-card);
|
||||||
color:var(--text-primary);
|
color: var(--text-primary);
|
||||||
border-color:var(--border);
|
border-color: var(--border);
|
||||||
text-decoration:none;
|
text-decoration: none;
|
||||||
display:inline-flex;
|
display: inline-flex;
|
||||||
align-items:center;
|
align-items: center;
|
||||||
padding:10px 24px;
|
padding: 10px 24px;
|
||||||
border-radius:8px;
|
border-radius: 8px;
|
||||||
font-weight:600;
|
font-weight: 600;
|
||||||
font-size:0.9rem;
|
font-size: 0.9rem;
|
||||||
cursor:pointer;
|
cursor: pointer;
|
||||||
transition:all 0.2s;
|
transition: all 0.2s;
|
||||||
border:1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
}
|
}
|
||||||
.view-home .btn-secondary:hover {
|
.view-home .btn-secondary:hover {
|
||||||
background: var(--border);
|
background: var(--border);
|
||||||
border-color: var(--text-secondary);
|
border-color: var(--text-secondary);
|
||||||
}
|
}
|
||||||
.home-settings-btn {
|
.home-settings-btn {
|
||||||
position:fixed;
|
position: fixed;
|
||||||
top:27px;
|
top: 27px;
|
||||||
inset-inline-end:60px;
|
inset-inline-end: 60px;
|
||||||
width:24px;
|
width: 24px;
|
||||||
height:24px;
|
height: 24px;
|
||||||
background-color:var(--text-primary);
|
background-color: var(--text-primary);
|
||||||
-webkit-mask-image:url('/static/settings.svg');
|
-webkit-mask-image: url("/static/settings.svg");
|
||||||
mask-image:url('/static/settings.svg');
|
mask-image: url("/static/settings.svg");
|
||||||
mask-size:contain;
|
mask-size: contain;
|
||||||
mask-repeat:no-repeat;
|
mask-repeat: no-repeat;
|
||||||
mask-position:center;
|
mask-position: center;
|
||||||
text-decoration:none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.home-footer {
|
.home-footer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -137,35 +143,35 @@ img[src=""] {
|
|||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
.nav-settings-icon {
|
.nav-settings-icon {
|
||||||
width:24px;
|
width: 24px;
|
||||||
height:24px;
|
height: 24px;
|
||||||
flex-shrink:0;
|
flex-shrink: 0;
|
||||||
margin-inline-start:auto;
|
margin-inline-start: auto;
|
||||||
margin-top:3px;
|
margin-top: 3px;
|
||||||
background-color:var(--text-secondary);
|
background-color: var(--text-secondary);
|
||||||
-webkit-mask-image:url('/static/settings.svg');
|
-webkit-mask-image: url("/static/settings.svg");
|
||||||
mask-image:url('/static/settings.svg');
|
mask-image: url("/static/settings.svg");
|
||||||
mask-size:100% 100%;
|
mask-size: 100% 100%;
|
||||||
transition:background-color 0.2s;
|
transition: background-color 0.2s;
|
||||||
text-decoration:none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.nav-settings-icon:hover,
|
.nav-settings-icon:hover,
|
||||||
.nav-settings-icon.active {
|
.nav-settings-icon.active {
|
||||||
background-color:var(--text-primary);
|
background-color: var(--text-primary);
|
||||||
}
|
}
|
||||||
.nav-settings-link {
|
.nav-settings-link {
|
||||||
display:none;
|
display: none;
|
||||||
margin-inline-start:auto;
|
margin-inline-start: auto;
|
||||||
}
|
}
|
||||||
header {
|
header {
|
||||||
display:flex;
|
display: flex;
|
||||||
align-items:center;
|
align-items: center;
|
||||||
gap:20px;
|
gap: 20px;
|
||||||
padding-block:15px;
|
padding-block: 15px;
|
||||||
padding-inline:60px;
|
padding-inline: 60px;
|
||||||
border-bottom:1px solid var(--border);
|
border-bottom: 1px solid var(--border);
|
||||||
background:var(--bg-main);
|
background: var(--bg-main);
|
||||||
width:100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.search-form {
|
.search-form {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
@@ -181,14 +187,14 @@ h1 span {
|
|||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
}
|
}
|
||||||
.logo-link {
|
.logo-link {
|
||||||
text-decoration:none;
|
text-decoration: none;
|
||||||
color:inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
header .logo-link {
|
header .logo-link {
|
||||||
transition:transform 0.2s;
|
transition: transform 0.2s;
|
||||||
}
|
}
|
||||||
header .logo-link:hover {
|
header .logo-link:hover {
|
||||||
transform:scale(1.03);
|
transform: scale(1.03);
|
||||||
}
|
}
|
||||||
.search-box {
|
.search-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -208,14 +214,14 @@ header .logo-link:hover {
|
|||||||
box-shadow: 0 0 0 4px var(--accent-glow);
|
box-shadow: 0 0 0 4px var(--accent-glow);
|
||||||
}
|
}
|
||||||
.nav-tabs {
|
.nav-tabs {
|
||||||
padding-inline:60px;
|
padding-inline: 60px;
|
||||||
border-bottom:1px solid var(--border);
|
border-bottom: 1px solid var(--border);
|
||||||
background:var(--bg-main);
|
background: var(--bg-main);
|
||||||
width:100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.nav-container {
|
.nav-container {
|
||||||
display:flex;
|
display: flex;
|
||||||
gap:30px;
|
gap: 30px;
|
||||||
}
|
}
|
||||||
.nav-tabs a {
|
.nav-tabs a {
|
||||||
padding: 14px 0;
|
padding: 14px 0;
|
||||||
@@ -235,7 +241,7 @@ header .logo-link:hover {
|
|||||||
border-bottom-color: var(--accent);
|
border-bottom-color: var(--accent);
|
||||||
}
|
}
|
||||||
.nav-right {
|
.nav-right {
|
||||||
margin-inline-start:auto;
|
margin-inline-start: auto;
|
||||||
}
|
}
|
||||||
.image-results-container {
|
.image-results-container {
|
||||||
padding: 30px 60px;
|
padding: 30px 60px;
|
||||||
@@ -338,11 +344,11 @@ header .logo-link:hover {
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.content-layout {
|
.content-layout {
|
||||||
display:grid;
|
display: grid;
|
||||||
grid-template-columns:140px minmax(0,700px) 450px;
|
grid-template-columns: 140px minmax(0, 700px) 450px;
|
||||||
gap:60px;
|
gap: 60px;
|
||||||
padding-block:30px;
|
padding-block: 30px;
|
||||||
padding-inline:60px;
|
padding-inline: 60px;
|
||||||
}
|
}
|
||||||
.result-header {
|
.result-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -367,7 +373,6 @@ header .logo-link:hover {
|
|||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.result-favicon {
|
.result-favicon {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
@@ -387,25 +392,25 @@ header .logo-link:hover {
|
|||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
}
|
}
|
||||||
.engine-filter-list {
|
.engine-filter-list {
|
||||||
display:flex;
|
display: flex;
|
||||||
flex-wrap:wrap;
|
flex-wrap: wrap;
|
||||||
gap:10px;
|
gap: 10px;
|
||||||
margin-bottom:24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
.engine-filter {
|
.engine-filter {
|
||||||
background:var(--bg-card);
|
background: var(--bg-card);
|
||||||
color:var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
border:1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius:999px;
|
border-radius: 999px;
|
||||||
padding:6px 12px;
|
padding: 6px 12px;
|
||||||
text-decoration:none;
|
text-decoration: none;
|
||||||
font-size:0.85rem;
|
font-size: 0.85rem;
|
||||||
font-weight:600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.engine-filter.active {
|
.engine-filter.active {
|
||||||
background:var(--accent);
|
background: var(--accent);
|
||||||
border-color:var(--accent);
|
border-color: var(--accent);
|
||||||
color:var(--bg-main);
|
color: var(--bg-main);
|
||||||
}
|
}
|
||||||
.engine-warning-list {
|
.engine-warning-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -557,210 +562,211 @@ header .logo-link:hover {
|
|||||||
transform: scaleX(-1);
|
transform: scaleX(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1200px) {
|
||||||
@media (max-width:1200px) {
|
|
||||||
.content-layout {
|
.content-layout {
|
||||||
grid-template-columns:1fr;
|
grid-template-columns: 1fr;
|
||||||
padding-block:20px;
|
padding-block: 20px;
|
||||||
padding-inline:30px;
|
padding-inline: 30px;
|
||||||
gap:20px;
|
gap: 20px;
|
||||||
}
|
}
|
||||||
header {
|
header {
|
||||||
gap:20px;
|
gap: 20px;
|
||||||
}
|
}
|
||||||
.results-container,.infobox-sidebar {
|
.results-container,
|
||||||
grid-column:1;
|
.infobox-sidebar {
|
||||||
max-width:100%;
|
grid-column: 1;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
.settings-layout {
|
.settings-layout {
|
||||||
padding-block:20px;
|
padding-block: 20px;
|
||||||
padding-inline:30px;
|
padding-inline: 30px;
|
||||||
display:flex;
|
display: flex;
|
||||||
justify-content:center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.infobox-sidebar {
|
.infobox-sidebar {
|
||||||
order:-1;
|
order: -1;
|
||||||
}
|
}
|
||||||
.nav-tabs,.image-results-container {
|
.nav-tabs,
|
||||||
padding-inline:30px;
|
.image-results-container {
|
||||||
|
padding-inline: 30px;
|
||||||
}
|
}
|
||||||
header {
|
header {
|
||||||
padding-block:15px;
|
padding-block: 15px;
|
||||||
padding-inline:30px;
|
padding-inline: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width:768px) {
|
@media (max-width: 768px) {
|
||||||
.nav-settings-icon {
|
.nav-settings-icon {
|
||||||
display:none;
|
display: none;
|
||||||
}
|
}
|
||||||
.nav-settings-link {
|
.nav-settings-link {
|
||||||
display:inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
header {
|
header {
|
||||||
flex-direction:column;
|
flex-direction: column;
|
||||||
gap:12px;
|
gap: 12px;
|
||||||
padding-block:12px;
|
padding-block: 12px;
|
||||||
padding-inline:16px;
|
padding-inline: 16px;
|
||||||
text-align:center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
font-size:1.3rem;
|
font-size: 1.3rem;
|
||||||
}
|
}
|
||||||
.search-form {
|
.search-form {
|
||||||
width:100%;
|
width: 100%;
|
||||||
max-width:100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
.search-form .search-box {
|
.search-form .search-box {
|
||||||
width:100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.nav-tabs {
|
.nav-tabs {
|
||||||
overflow-x:auto;
|
overflow-x: auto;
|
||||||
-webkit-overflow-scrolling:touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
padding-inline:16px;
|
padding-inline: 16px;
|
||||||
}
|
}
|
||||||
.nav-container {
|
.nav-container {
|
||||||
gap:24px;
|
gap: 24px;
|
||||||
min-width:max-content;
|
min-width: max-content;
|
||||||
}
|
}
|
||||||
.nav-tabs a {
|
.nav-tabs a {
|
||||||
padding:12px 0;
|
padding: 12px 0;
|
||||||
font-size:0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
.content-layout {
|
.content-layout {
|
||||||
padding-inline-start:40px;
|
padding-inline-start: 40px;
|
||||||
padding-inline-end:16px;
|
padding-inline-end: 16px;
|
||||||
padding-block:16px;
|
padding-block: 16px;
|
||||||
gap:16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
.result {
|
.result {
|
||||||
margin-bottom:24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
.engine-warning {
|
.engine-warning {
|
||||||
padding:12px 14px;
|
padding: 12px 14px;
|
||||||
}
|
}
|
||||||
.result > a {
|
.result > a {
|
||||||
font-size:1.1rem;
|
font-size: 1.1rem;
|
||||||
word-break:break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
.url {
|
.url {
|
||||||
font-size:0.8rem;
|
font-size: 0.8rem;
|
||||||
word-break:break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
.desc {
|
.desc {
|
||||||
font-size:0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
.cached {
|
.cached {
|
||||||
font-size:0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
.infobox {
|
.infobox {
|
||||||
margin-bottom:16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
.infobox-header {
|
.infobox-header {
|
||||||
padding:16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
.infobox-title {
|
.infobox-title {
|
||||||
font-size:1.2rem;
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
.infobox-main {
|
.infobox-main {
|
||||||
flex-direction:column;
|
flex-direction: column;
|
||||||
padding:16px;
|
padding: 16px;
|
||||||
gap:12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
.infobox-image {
|
.infobox-image {
|
||||||
width:100%;
|
width: 100%;
|
||||||
height:auto;
|
height: auto;
|
||||||
min-width:unset;
|
min-width: unset;
|
||||||
max-width:200px;
|
max-width: 200px;
|
||||||
}
|
}
|
||||||
.image-results-container {
|
.image-results-container {
|
||||||
padding-inline:16px;
|
padding-inline: 16px;
|
||||||
}
|
}
|
||||||
.pagination {
|
.pagination {
|
||||||
flex-wrap:wrap;
|
flex-wrap: wrap;
|
||||||
gap:8px;
|
gap: 8px;
|
||||||
padding:0 8px;
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
.pagination-btn {
|
.pagination-btn {
|
||||||
padding:10px 14px;
|
padding: 10px 14px;
|
||||||
font-size:0.85rem;
|
font-size: 0.85rem;
|
||||||
}
|
}
|
||||||
.view-home {
|
.view-home {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding:20px 16px;
|
padding: 20px 16px;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
.view-home .container {
|
.view-home .container {
|
||||||
padding:0;
|
padding: 0;
|
||||||
width:100%;
|
width: 100%;
|
||||||
max-width:580px;
|
max-width: 580px;
|
||||||
}
|
}
|
||||||
.view-home .hero-logo {
|
.view-home .hero-logo {
|
||||||
font-size:3rem;
|
font-size: 3rem;
|
||||||
margin-bottom:24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
.view-home .search-input-wrapper {
|
.view-home .search-input-wrapper {
|
||||||
margin-bottom:16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
.view-home .search-box {
|
.view-home .search-box {
|
||||||
width:100%;
|
width: 100%;
|
||||||
font-size:1rem;
|
font-size: 1rem;
|
||||||
padding:14px 20px;
|
padding: 14px 20px;
|
||||||
}
|
}
|
||||||
.view-home .buttons {
|
.view-home .buttons {
|
||||||
gap:10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
.view-home button {
|
.view-home button {
|
||||||
padding:12px 20px;
|
padding: 12px 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width:600px) {
|
@media (max-width: 600px) {
|
||||||
.content-layout {
|
.content-layout {
|
||||||
padding-inline-start:28px;
|
padding-inline-start: 28px;
|
||||||
padding-inline-end:16px;
|
padding-inline-end: 16px;
|
||||||
padding-block:16px;
|
padding-block: 16px;
|
||||||
}
|
}
|
||||||
.settings-layout {
|
.settings-layout {
|
||||||
padding:0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
header {
|
header {
|
||||||
padding-inline:12px;
|
padding-inline: 12px;
|
||||||
padding-block:12px;
|
padding-block: 12px;
|
||||||
}
|
}
|
||||||
.search-box {
|
.search-box {
|
||||||
font-size:0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
.view-home .search-box {
|
.view-home .search-box {
|
||||||
width:100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.view-home {
|
.view-home {
|
||||||
padding:20px 16px;
|
padding: 20px 16px;
|
||||||
}
|
}
|
||||||
.image-grid {
|
.image-grid {
|
||||||
grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
|
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||||||
gap:10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
.image-card {
|
.image-card {
|
||||||
border-radius:8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
.image-info {
|
.image-info {
|
||||||
padding:8px 10px;
|
padding: 8px 10px;
|
||||||
}
|
}
|
||||||
.image-caption {
|
.image-caption {
|
||||||
font-size:0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
.image-source {
|
.image-source {
|
||||||
font-size:0.7rem;
|
font-size: 0.7rem;
|
||||||
}
|
}
|
||||||
.overlay-buttons {
|
.overlay-buttons {
|
||||||
width:80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
.overlay-btn {
|
.overlay-btn {
|
||||||
padding:6px 12px;
|
padding: 6px 12px;
|
||||||
font-size:0.75rem;
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -771,67 +777,67 @@ header .logo-link:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settings-container {
|
.settings-container {
|
||||||
max-width:700px;
|
max-width: 700px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-title {
|
.settings-title {
|
||||||
font-size:1.8rem;
|
font-size: 1.8rem;
|
||||||
font-weight:700;
|
font-weight: 700;
|
||||||
margin:0 0 32px 0;
|
margin: 0 0 32px 0;
|
||||||
letter-spacing:-0.5px;
|
letter-spacing: -0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-section {
|
.settings-section {
|
||||||
background:var(--bg-card);
|
background: var(--bg-card);
|
||||||
border:1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius:12px;
|
border-radius: 12px;
|
||||||
padding:24px;
|
padding: 24px;
|
||||||
margin-bottom:32px;
|
margin-bottom: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-section-title {
|
.settings-section-title {
|
||||||
font-size:1.1rem;
|
font-size: 1.1rem;
|
||||||
font-weight:700;
|
font-weight: 700;
|
||||||
margin:0 0 4px 0;
|
margin: 0 0 4px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-section-desc {
|
.settings-section-desc {
|
||||||
color:var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
font-size:0.9rem;
|
font-size: 0.9rem;
|
||||||
margin:0 0 20px 0;
|
margin: 0 0 20px 0;
|
||||||
line-height:1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-field {
|
.settings-field {
|
||||||
display:flex;
|
display: flex;
|
||||||
align-items:center;
|
align-items: center;
|
||||||
justify-content:space-between;
|
justify-content: space-between;
|
||||||
padding:10px 0;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-field + .settings-field {
|
.settings-field + .settings-field {
|
||||||
border-top:1px solid var(--border);
|
border-top: 1px solid var(--border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-label {
|
.settings-label {
|
||||||
font-size:0.95rem;
|
font-size: 0.95rem;
|
||||||
color:var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-select {
|
.settings-select {
|
||||||
padding:8px 12px;
|
padding: 8px 12px;
|
||||||
border-radius:8px;
|
border-radius: 8px;
|
||||||
border:1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
background:var(--bg-main);
|
background: var(--bg-main);
|
||||||
color:var(--text-primary);
|
color: var(--text-primary);
|
||||||
font-size:0.9rem;
|
font-size: 0.9rem;
|
||||||
outline:none;
|
outline: none;
|
||||||
cursor:pointer;
|
cursor: pointer;
|
||||||
transition:border-color 0.2s;
|
transition: border-color 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-select:focus {
|
.settings-select:focus {
|
||||||
border-color:var(--accent);
|
border-color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-checkbox {
|
.settings-checkbox {
|
||||||
@@ -874,42 +880,42 @@ header .logo-link:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settings-actions {
|
.settings-actions {
|
||||||
display:flex;
|
display: flex;
|
||||||
gap:12px;
|
gap: 12px;
|
||||||
margin-top:8px;
|
margin-top: 8px;
|
||||||
padding-bottom:40px;
|
padding-bottom: 40px;
|
||||||
justify-content:flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-actions .btn-primary {
|
.settings-actions .btn-primary {
|
||||||
background:var(--accent);
|
background: var(--accent);
|
||||||
color:var(--bg-main);
|
color: var(--bg-main);
|
||||||
border:1px solid transparent;
|
border: 1px solid transparent;
|
||||||
padding:10px 24px;
|
padding: 10px 24px;
|
||||||
border-radius:8px;
|
border-radius: 8px;
|
||||||
font-weight:600;
|
font-weight: 600;
|
||||||
font-size:0.9rem;
|
font-size: 0.9rem;
|
||||||
cursor:pointer;
|
cursor: pointer;
|
||||||
transition:all 0.2s;
|
transition: all 0.2s;
|
||||||
touch-action:manipulation;
|
touch-action: manipulation;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-actions .btn-primary:hover {
|
.settings-actions .btn-primary:hover {
|
||||||
filter:brightness(1.1);
|
filter: brightness(1.1);
|
||||||
transform:translateY(-1px);
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-actions .btn-secondary {
|
.settings-actions .btn-secondary {
|
||||||
background:var(--bg-card);
|
background: var(--bg-card);
|
||||||
color:var(--text-primary);
|
color: var(--text-primary);
|
||||||
border:1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
padding:10px 24px;
|
padding: 10px 24px;
|
||||||
border-radius:8px;
|
border-radius: 8px;
|
||||||
font-weight:600;
|
font-weight: 600;
|
||||||
font-size:0.9rem;
|
font-size: 0.9rem;
|
||||||
cursor:pointer;
|
cursor: pointer;
|
||||||
transition:all 0.2s;
|
transition: all 0.2s;
|
||||||
touch-action:manipulation;
|
touch-action: manipulation;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-actions .btn-secondary:hover {
|
.settings-actions .btn-secondary:hover {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
:root {
|
:root {
|
||||||
--bg-main: #181825;
|
--bg-main: #1e1e2e;
|
||||||
--bg-card: #1e1e2e;
|
--bg-card: #313244;
|
||||||
--border: #313244;
|
--border: #6c7086;
|
||||||
--text-primary: #cdd6f4;
|
--text-primary: #cdd6f4;
|
||||||
--text-secondary: #a6adc8;
|
--text-secondary: #a6adc8;
|
||||||
--text-muted: #6c7086;
|
--text-muted: #6c7086;
|
||||||
--accent: #cba6f7;
|
--accent: #cba6f7;
|
||||||
--accent-glow: rgba(255,255,255,0.1);
|
--accent-glow: rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<body class="results-view">
|
<body class="results-view">
|
||||||
<header>
|
<header>
|
||||||
<a href="/" class="logo-link"><h1>
|
<a href="/" class="logo-link"><h1>
|
||||||
Omni<span>Search</span>
|
VOID<span>ARC</span>
|
||||||
</h1></a>
|
</h1></a>
|
||||||
<form action="/search" method="GET" class="search-form">
|
<form action="/search" method="GET" class="search-form">
|
||||||
<input name="engine" type="hidden" value="{{selected_engine}}">
|
<input name="engine" type="hidden" value="{{selected_engine}}">
|
||||||
|
|||||||
Reference in New Issue
Block a user