diff options
| author | unwox <me@unwox.com> | 2024-11-14 23:47:47 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-11-14 23:54:25 +0600 |
| commit | 43e4bcb301ca469427e5022e510fb06e94225117 (patch) | |
| tree | 813da522b5eff1fc4695913348f66164c87ce4b8 | |
| parent | 5b13a916af68a8d7edb220b9b97911827b61d6e2 (diff) | |
improve semantics on listing pages
| -rw-r--r-- | bin/serve.fnl | 2 | ||||
| -rw-r--r-- | static/style.css | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl index 420100e..4c2253e 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -309,7 +309,7 @@ :alt product.title} ""]] (site-name-template product.site) [:a {:href link :style "text-decoration: none;" :rel "nofollow"} - [:NO-ESCAPE (.. "<h2>" (unescape product.title) "</h2>")]] + [:NO-ESCAPE (.. "<div class=\"title\">" (unescape product.title) "</div>")]] [:div {:class "price"} (if product.price (.. (str.format-price product.price) "₽") "") (if (< 0 product.weight) diff --git a/static/style.css b/static/style.css index a1e9c86..898d7bf 100644 --- a/static/style.css +++ b/static/style.css @@ -66,8 +66,9 @@ h1, h2, h3, h4, h5, h6 { width: 12.5rem; } -.tile h2 { +.tile .title { font-size: 1rem; + font-weight: 900; margin-bottom: 0.25rem; margin-top: 0; } |
