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 <noreply@anthropic.com>
This commit is contained in:
1 parent
ff8068ea11
commit
18b511f443
2 files changed
+6
-7
No files matched your search
@@ -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;}
|
||||
|
||||
@@ -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) + "<div class=\"hw-row\"><span class=\"hw-disc\" style=\"width:150dp;height:150dp;\">" + notebook_crest(other.at("team"), 106) + "</span><div class=\"hw-row-text\">" + big(other.at("name").get<std::string>(), 50) + tag(venue, !home) + "</div></div>";
|
||||
if (flat) return kicker(competition) + "<div class=\"hw-row\"><span class=\"hw-disc\" style=\"width:150dp;height:150dp;\">" + notebook_crest(other.at("team"), 140) + "</span><div class=\"hw-row-text\">" + big(other.at("name").get<std::string>(), 50) + tag(venue, !home) + "</div></div>";
|
||||
if (!wide)
|
||||
return kicker(competition) + "<div class=\"hw-centre\"><span class=\"hw-disc\" style=\"width:230dp;height:230dp;\">" + notebook_crest(other.at("team"), 164) + "</span></div>" + big(other.at("name").get<std::string>(), 56) + tag(venue, !home) + foot(placed);
|
||||
return kicker(competition) + "<div class=\"hw-centre\"><span class=\"hw-disc\" style=\"width:230dp;height:230dp;\">" + notebook_crest(other.at("team"), 216) + "</span></div>" + big(other.at("name").get<std::string>(), 56) + tag(venue, !home) + foot(placed);
|
||||
const auto side = [&](const Json &team) {
|
||||
return "<div class=\"hw-match-side\"><div class=\"hw-match-crest\"><span class=\"hw-disc\" style=\"width:250dp;height:250dp;\">" + notebook_crest(team.at("team"), 178) + "</span></div><strong>" + esc(team.at("name").get<std::string>()) + "</strong></div>";
|
||||
return "<div class=\"hw-match-side\"><div class=\"hw-match-crest\"><span class=\"hw-disc\" style=\"width:250dp;height:250dp;\">" + notebook_crest(team.at("team"), 236) + "</span></div><strong>" + esc(team.at("name").get<std::string>()) + "</strong></div>";
|
||||
};
|
||||
return kicker("Nächstes Spiel · " + competition) + "<div class=\"hw-match\">" + side(fixture.at("home")) + "<div class=\"hw-match-mid\"><span class=\"hw-versus\">vs</span>" + tag(venue, !home) + "</div>" + side(fixture.at("away")) + "</div>" +
|
||||
foot(placed.empty() ? std::string() : "Gegner auf " + placed);
|
||||
|
||||
Reference in new issue
Block a user