From 04e30709f9d5bef18b2056c1da94483438029467 Mon Sep 17 00:00:00 2001 From: jpanda Date: Fri, 22 Apr 2022 13:02:12 +0800 Subject: [PATCH] Fix hyperlink to CNCF on https://k8s.io/docs/home/ (#33038) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [bugfix/fix-cncf-hyperlink-on-home] fix🐛: Explicitly set the margin-top property * [bugfix/fix-cncf-hyperlink-on-home] fix🐛: remove important * [bugfix/fix-cncf-hyperlink-on-home] format🥚: Add comments to indicate the role of css --- static/css/gridpage.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static/css/gridpage.css b/static/css/gridpage.css index 7da7f1973d..4069185e0e 100644 --- a/static/css/gridpage.css +++ b/static/css/gridpage.css @@ -21,6 +21,15 @@ padding: 0 30px 0 0; margin-bottom: 50px; min-height: 152px; + +} +/* + * Remove the height of the H2 element pseudo-class and set the appropriate spacing + * to avoid mistakenly overriding the styles of other elements + */ +.launch-card h2::before { + margin-top: 1rem ; + height: 0 ; } .gridPage p {