From 18b511f44314024eb24dcce33a832c98a71c083c Mon Sep 17 00:00:00 2001 From: Weyoune Date: Tue, 17 Nov 2026 20:11:43 +0100 Subject: [PATCH] Crests on the home page stand free, crest photographs are white The next-match widgets drop the cream disc behind the crests and draw them larger; the photograph of a crest is plain white paper. Co-Authored-By: Claude Fable 5.2 --- assets/modern/notebook.rcss | 7 +++---- src/modern/ui/notebook_home.inc | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/assets/modern/notebook.rcss b/assets/modern/notebook.rcss index c645d65..9aa7eed 100644 --- a/assets/modern/notebook.rcss +++ b/assets/modern/notebook.rcss @@ -176,7 +176,7 @@ body.midnight .hw-item,body.matchday .hw-item {background-color:#ffffff14;} body .hw.hero .hw-kicker {color:#f6a06b;} .hw.hero .hw-foot,.hw.hero .hw-big span {color:#d9c9b4;} .hw.hero .hw-empty {color:#d9c9b4;} -.hw-disc {display:flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:200dp;background-color:#f9f4ed;border:6dp #f6a06b66;} +.hw-disc {display:flex;flex-shrink:0;align-items:center;justify-content:center;} .hw-versus {display:block;width:124dp;height:124dp;line-height:118dp;margin:0 auto 18dp auto;border-radius:62dp;background-color:#c67139;color:#f9f4ed;font-family:Display;font-size:52dp;text-align:center;} .hw-match-mid .hw-tag {display:block;align-self:center;margin:0;} .hw.hero .hw-match-side strong {color:#f9f4ed;font-size:40dp;line-height:46dp;} @@ -230,11 +230,11 @@ body.midnight .hw-item,body.matchday .hw-item {background-color:#ffffff14;} body .hw-duel.won strong {color:#56633f;} .hw-duel.lost strong {color:#8c491a;} .hw-duel small {display:block;font-size:26dp;color:#474238;} /* photographs */ -.hw.photo,.hw.photo.link:hover {padding:24dp 18dp 8dp 18dp;align-items:center;border:2dp #e2d8c4;border-bottom:5dp #d3c7b0;border-radius:10dp;background-color:#fdfaf3;} +.hw.photo,.hw.photo.link:hover {padding:24dp 18dp 8dp 18dp;align-items:center;border:2dp #e2d8c4;border-bottom:5dp #d3c7b0;border-radius:10dp;background-color:#ffffff;} .hw.photo.turn-a {transform:rotate(-2.2deg);} .hw.photo.turn-b {transform:rotate(1.6deg);} .hw.photo.turn-c {transform:rotate(-1.2deg);} .hw-tape {display:block;position:absolute;left:50%;top:-6dp;width:140dp;height:36dp;margin-left:-70dp;background-color:#e6d49ab8;transform:rotate(-3deg);} .hw-photo-frame {display:flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;background-color:#eee7db;} -.hw-photo-frame.crest {background-color:#f4efe4;} +.hw-photo-frame.crest {background-color:transparent;} .hw-photo-caption {display:block;width:100%;height:44dp;line-height:44dp;margin-top:auto;text-align:center;font-family:Chalk;font-weight:bold;font-size:30dp;color:#474238;white-space:nowrap;overflow:hidden;} /* the grid while a card moves or a menu is open */ .hw-cells {display:none;} @@ -276,7 +276,6 @@ body.midnight .hw-item,body.matchday .hw-item {background-color:#ffffff14;} body .hw.hero .hw-kicker {color:#8c491a;} .hw.hero .hw-foot,.hw.hero .hw-big span,.hw.hero .hw-empty {color:#474238;} .hw.hero .hw-match-side strong {color:#201e1d;font-size:46dp;line-height:52dp;} -.hw-disc {border:6dp #f9f4ed;background-color:#f9f4ed;} .hw-dash {padding:0;border-radius:0dp;background-color:transparent;} .hw-dash .hw-lamp {height:86dp;} .hw-dash.row .hw-lamp {height:76dp;} diff --git a/src/modern/ui/notebook_home.inc b/src/modern/ui/notebook_home.inc index 5e9a9e0..753b7a4 100644 --- a/src/modern/ui/notebook_home.inc +++ b/src/modern/ui/notebook_home.inc @@ -196,11 +196,11 @@ std::string App::notebook_card(const std::string &type, int cols, int rows, cons const bool home = venue == "Heimspiel"; const auto &other = fixture.at(home ? "away" : "home"); const std::string placed = opponent.is_object() ? "Platz " + opponent.value("rank", std::string("—")) + " · Stärke " + opponent.value("strength", std::string("—")) : std::string(); - if (flat) return kicker(competition) + "
" + notebook_crest(other.at("team"), 106) + "
" + big(other.at("name").get(), 50) + tag(venue, !home) + "
"; + if (flat) return kicker(competition) + "
" + notebook_crest(other.at("team"), 140) + "
" + big(other.at("name").get(), 50) + tag(venue, !home) + "
"; if (!wide) - return kicker(competition) + "
" + notebook_crest(other.at("team"), 164) + "
" + big(other.at("name").get(), 56) + tag(venue, !home) + foot(placed); + return kicker(competition) + "
" + notebook_crest(other.at("team"), 216) + "
" + big(other.at("name").get(), 56) + tag(venue, !home) + foot(placed); const auto side = [&](const Json &team) { - return "
" + notebook_crest(team.at("team"), 178) + "
" + esc(team.at("name").get()) + "
"; + return "
" + notebook_crest(team.at("team"), 236) + "
" + esc(team.at("name").get()) + "
"; }; return kicker("Nächstes Spiel · " + competition) + "
" + side(fixture.at("home")) + "
vs" + tag(venue, !home) + "
" + side(fixture.at("away")) + "
" + foot(placed.empty() ? std::string() : "Gegner auf " + placed);