From 660a4918b8fbd6f5131ba2b66c892698f7233956 Mon Sep 17 00:00:00 2001 From: frosty Date: Mon, 23 Mar 2026 03:09:00 -0400 Subject: [PATCH] style: changed how favicons appear on the result page --- static/main.css | 42 +++++++++++++++++++++++++++++++++++------- templates/results.html | 2 +- 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/static/main.css b/static/main.css index 8743248..fa4eeea 100644 --- a/static/main.css +++ b/static/main.css @@ -277,12 +277,38 @@ h1 span { align-items: center; gap: 8px; margin-bottom: 2px; + position: relative; } .result-favicon { width: 16px; height: 16px; flex-shrink: 0; - object-fit: contain; + background-size: cover; + background-position: center; + position: absolute; + left: -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; + left: -20px; + } +} + +@media (max-width: 480px) { + .result-favicon { + width: 12px; + height: 12px; + left: -16px; + } } .results-container { grid-column:2; @@ -320,12 +346,6 @@ h1 span { display:inline-block; margin-bottom:4px; } -.url { - color:var(--text-secondary); - font-size:0.85rem; - display:block; - margin-bottom:4px; -} .desc { color:var(--text-muted); line-height:1.6; @@ -438,6 +458,10 @@ h1 span { @media (max-width:1200px) { + body { + padding-left: 16px; + padding-right: 16px; + } .content-layout { grid-template-columns:1fr; padding:20px 30px; @@ -459,6 +483,10 @@ h1 span { } @media (max-width:768px) { + body { + padding-left: 16px; + padding-right: 16px; + } header { flex-direction:column; gap:12px; diff --git a/templates/results.html b/templates/results.html index c3ecdc2..d8e2601 100644 --- a/templates/results.html +++ b/templates/results.html @@ -57,7 +57,7 @@
+ style="background-image: url('https://{{result[4]}}/favicon.ico'), url('https://{{result[4]}}/favicon.png');">
{{result[1]}}