-
-
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 7 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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"> | ||
<div> | ||
<p> | ||
For any project, it's critical to know how the software is used, but tracking usage data is inherently difficult in open-source projects. | ||
Anonymous usage statistics address this need. | ||
When enabled, Jenkins periodically sends information to the Jenkins project. | ||
The Jenkins project uses this information to set development priorities. | ||
</div> | ||
</p> | ||
<j:invokeStatic className="jenkins.security.FIPS140" method="useCompliantAlgorithms" var="fips"/> | ||
<j:if test="${!fips}"> | ||
<h1>General usage statistics</h1> | ||
<h3>General usage statistics</h3> | ||
<div> | ||
<p>Jenkins reports the following general usage statistics:</p> | ||
<ul> | ||
|
@@ -24,7 +24,7 @@ | |
</p> | ||
</div> | ||
</j:if> | ||
<h1>Telemetry collection</h1> | ||
<h3>Telemetry collection</h3> | ||
<div> | ||
<p> | ||
<j:choose> | ||
|
@@ -38,24 +38,34 @@ | |
Each trial has a specific purpose and a defined end date, after which collection stops, independent of the installed versions of Jenkins or plugins. | ||
Once a trial is complete, the trial results may be aggregated and shared with the developer community. | ||
</p> | ||
<p> | ||
The following trials defined on this instance are active now or in the future: | ||
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. the help was ending with this as there's no trials currently (and an empty |
||
</p> | ||
|
||
<j:invokeStatic className="jenkins.telemetry.Telemetry" method="all" var="collectors"/> | ||
<j:invokeStatic className="jenkins.telemetry.Telemetry" method="isAnyTrialActive" var="anyTrialActive"/> | ||
<j:invokeStatic className="java.time.LocalDate" method="now" var="now"/> | ||
<dl> | ||
<j:forEach items="${collectors}" var="collector"> | ||
<j:if test="${not collector.end.isBefore(now)}"> | ||
<dt>${collector.displayName}</dt> | ||
<dd> | ||
<st:include it="${collector}" optional="true" page="description.jelly"/> | ||
<p> | ||
Start date: ${collector.start}<br/> | ||
End date: ${collector.end} | ||
</p> | ||
</dd> | ||
</j:if> | ||
</j:forEach> | ||
</dl> | ||
<j:choose> | ||
<j:when test="${!anyTrialActive}"> | ||
<p>${%There are currently no active trials.}</p> | ||
</j:when> | ||
<j:otherwise> | ||
<p> | ||
The following trials defined on this instance are active now or in the future: | ||
</p> | ||
<dl> | ||
<j:forEach items="${collectors}" var="collector"> | ||
<j:if test="${not collector.end.isBefore(now)}"> | ||
<dt>${collector.displayName}</dt> | ||
<dd> | ||
<st:include it="${collector}" optional="true" page="description.jelly"/> | ||
<p> | ||
Start date: ${collector.start} | ||
<br/> | ||
End date: ${collector.end} | ||
</p> | ||
</dd> | ||
</j:if> | ||
</j:forEach> | ||
</dl> | ||
</j:otherwise> | ||
</j:choose> | ||
</div> | ||
</j:jelly> |
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.
Didn't look great as it was touching the line
Before:
After: