From c6e16960f5b11ba8b4bbae1973e4e7a039110df8 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Mon, 18 Nov 2024 21:07:32 +0000 Subject: [PATCH] Fixes missing top margin for h3 elements in sidebar by removing the margin only for the first element (#41779). git-svn-id: https://svn.redmine.org/redmine/trunk@23292 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/assets/stylesheets/application.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 304f32284..ffcdf94a6 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -156,7 +156,8 @@ pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;} @media screen and (min-width: 1600px) and (max-width: 1919px) {#sidebar{width: 320px;}} @media screen and (min-width: 1920px) and (max-width: 2559px) {#sidebar{width: 360px;}} @media screen and (min-width: 2560px) {#sidebar{width: 380px;}} -#sidebar h3{ font-size: 0.875rem; color: #555; } +#sidebar h3{ font-size: 0.875rem; margin-top: 14px; color: #555; } +#sidebar h3:first-child{ margin-top: 0; } #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; } #sidebar .contextual { margin-right: 1em; } #sidebar ul, ul.flat {margin: 0; padding: 0;} -- 2.39.5