-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-69549] Margins for headers and paragraphs make descriptions … #7078
Changes from all commits
bd1e296
4ad77a9
f82328f
e9227a6
08264c1
bebc28a
55f970c
b890bed
07d8996
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -372,6 +372,8 @@ pre.console { | |
border-radius: 6px; | ||
z-index: 0; | ||
|
||
--section-padding: 0.8rem; | ||
|
||
&::before { | ||
content: ""; | ||
position: absolute; | ||
|
@@ -389,6 +391,24 @@ pre.console { | |
p:last-of-type { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried removing this as its the cause of the heading spacing issue but I couldn't find a way to make it work whilst keeping no spacing at the bottom of the help file (made worse in help from plugins that have |
||
margin-bottom: 0; | ||
} | ||
|
||
// add spacing above headings except for when its the first element in the help | ||
// the need for this is caused by p:last-of-type setting margin-bottom to 0 | ||
// unfortunately because of the varied markup I wasn't able to find a way to avoid this | ||
h1:not(:first-child), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @janfaracik what do you think about this approach and can you think of a simpler one? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I can't think of anything sadly, could use 'gap' on the parent container but due to how varied the contents are it probably would make things worse :/ |
||
.h1:not(:first-child), | ||
h2:not(:first-child), | ||
.h2:not(:first-child), | ||
h3:not(:first-child), | ||
.h3:not(:first-child), | ||
h4:not(:first-child), | ||
.h4:not(:first-child), | ||
h5:not(:first-child), | ||
.h5:not(:first-child), | ||
h6:not(:first-child), | ||
.h6:not(:first-child) { | ||
margin-top: var(--section-padding); | ||
} | ||
} | ||
|
||
.help .from-plugin { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the help was ending with this as there's no trials currently (and an empty
dl
)