Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Nov 6, 2021
1 parent 7fb61fb commit ac1b096
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import jenkins.model.Jenkins
def f = namespace(lib.FormTagLib)

f.entry(title: _('Unprotected URLs')) {
p(_('blurb'))
p(class: "jenkins-form-description") {
_('blurb')
}
ul {
for (def action : Jenkins.get().getActions().sort { x, y -> x.getUrlName() <=> y.getUrlName() }) {
if (action instanceof UnprotectedRootAction) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function closestTR(node) {

function fromConfigTable(configTable) {
var $ = getJQuery();
var sectionHeaders = $('.jenkins-section__header', configTable);
var sectionHeaders = $('.jenkins-section__title', configTable);
var configForm = markConfigTableParentForm(configTable);

// Mark the ancestor <tr>s of the section headers and add a title
Expand Down
2 changes: 1 addition & 1 deletion war/src/main/less/modules/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
&::after {
content: "";
position: absolute;
top: 14px;
top: 13px;
right: 15px;
width: 8px;
height: 8px;
Expand Down
23 changes: 8 additions & 15 deletions war/src/main/less/modules/section.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
:root {
--section-padding: 2rem;
}

.jenkins-section {
border-top: 2px solid var(--panel-border-color);
padding: calc(2rem) 0;
padding: var(--section-padding) 0;
max-width: 1800px;

&:first-of-type {
Expand All @@ -17,27 +21,16 @@
}
}

.jenkins-section__header {
font-weight: 600;
font-size: 1.25rem;
line-height: 1.2;
border-bottom: 1px solid #e0e0e0;
margin-bottom: 0.75rem;
margin-top: 1.5rem;
padding-bottom: 3px;
max-width: var(--form-item-max-width);
}

.jenkins-section__title {
margin: 0 0 calc(2rem) 0;
margin: 0 0 var(--section-padding) 0;
font-size: 1rem;
font-weight: 700;
}

.jenkins-section__items {
display: grid;
grid-template-columns: 1fr;
grid-gap: 2rem;
grid-gap: var(--section-padding);

@media screen and (min-width: 800px) {
grid-template-columns: 1fr 1fr;
Expand All @@ -59,7 +52,7 @@
text-decoration: none;

// IE11 doesn't support grid-gap, so apply margin, remove it for modern browsers
margin: 0 2rem 2rem 0;
margin: 0 var(--section-padding) var(--section-padding) 0;
@supports (grid-gap: 2rem) {
margin: 0;
}
Expand Down

0 comments on commit ac1b096

Please sign in to comment.