From 1461ee534dd2d306e46ba90f0f39b030ff71c0cf Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Sun, 13 Jul 2025 22:07:36 +0800 Subject: [PATCH] refactor: consolidate background properties in CSS --- assets/css/main.css | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index a01866af..c1e6e7de 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -162,39 +162,32 @@ pre { text-align: left; } -.thumbnail { - min-width: 300px; - height: 180px; +.thumbnail, +.thumbnail_card, +.thumbnail_card_related, +.thumbnail_card_term, +.single_hero_basic, +.single_hero_background { background-repeat: no-repeat; background-size: cover; background-position: center; } +.thumbnail { + min-width: 300px; + height: 180px; +} + .thumbnail_card { height: 200px; - background-repeat: no-repeat; - background-size: cover; - background-position: center; } .thumbnail_card_related { height: 150px; - background-repeat: no-repeat; - background-size: cover; - background-position: center; } .thumbnail_card_term { height: 150px; - background-repeat: no-repeat; - background-size: cover; - background-position: center; -} - -.single_hero_basic { - background-repeat: no-repeat; - background-size: cover; - background-position: center; } .single_hero_round { @@ -203,9 +196,6 @@ pre { } .single_hero_background { - background-repeat: no-repeat; - background-size: cover; - background-position: center; z-index: -10; }