From 1d3a03dce409f2b6447a0c0df5968a5f6845dc10 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Fri, 8 Oct 2021 13:03:15 +0100 Subject: [PATCH] More --- .../jenkins/model/Jenkins/configure.jelly | 6 +++--- .../mvn/GlobalMavenConfig/config.groovy | 8 ++++++-- .../GlobalToolConfiguration/index.groovy | 11 ++++++---- .../main/resources/lib/form/description.jelly | 8 ++------ core/src/main/resources/lib/form/entry.jelly | 12 +++++------ core/src/main/resources/lib/form/section_.css | 12 +++++------ war/src/main/less/modules/form.less | 20 ++++++++++++++++++- war/src/main/less/modules/section.less | 4 ++++ 8 files changed, 52 insertions(+), 29 deletions(-) diff --git a/core/src/main/resources/jenkins/model/Jenkins/configure.jelly b/core/src/main/resources/jenkins/model/Jenkins/configure.jelly index fb961fd258a3..f2b98bcdeb97 100644 --- a/core/src/main/resources/jenkins/model/Jenkins/configure.jelly +++ b/core/src/main/resources/jenkins/model/Jenkins/configure.jelly @@ -41,10 +41,10 @@ THE SOFTWARE. - - ${it.rootDir} + +
${it.rootDir}
- + diff --git a/core/src/main/resources/jenkins/mvn/GlobalMavenConfig/config.groovy b/core/src/main/resources/jenkins/mvn/GlobalMavenConfig/config.groovy index ca998385e069..53a41b6b1922 100644 --- a/core/src/main/resources/jenkins/mvn/GlobalMavenConfig/config.groovy +++ b/core/src/main/resources/jenkins/mvn/GlobalMavenConfig/config.groovy @@ -3,6 +3,10 @@ package jenkins.mvn.GlobalMavenConfig def f = namespace(lib.FormTagLib) f.section(title:_("Maven Configuration")) { - f.dropdownDescriptorSelector(title:_("Default settings provider"), field:"settingsProvider") - f.dropdownDescriptorSelector(title:_("Default global settings provider"), field:"globalSettingsProvider") + div(class: "jenkins-form-item") { + f.dropdownDescriptorSelector(title:_("Default settings provider"), field:"settingsProvider") + } + div(class: "jenkins-form-item") { + f.dropdownDescriptorSelector(title:_("Default global settings provider"), field:"globalSettingsProvider") + } } diff --git a/core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy b/core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy index ab82331bdacb..cf8010dc14b0 100644 --- a/core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy +++ b/core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy @@ -16,10 +16,12 @@ l.layout(permission:app.SYSTEM_READ, title:my.displayName) { } set("readOnlyMode", !app.hasPermission(app.ADMINISTER)) l.main_panel { - h1 { - l.icon(class: 'icon-setting icon-xlg') - // TODO more appropriate icon - text(my.displayName) + div(class:"jenkins-app-bar") { + div(class: "jenkins-app-bar__content") { + h1 { + text(my.displayName) + } + } } p() @@ -29,6 +31,7 @@ l.layout(permission:app.SYSTEM_READ, title:my.displayName) { Functions.getSortedDescriptorsForGlobalConfigByDescriptor(my.FILTER).each { Descriptor descriptor -> set("descriptor",descriptor) set("instance",descriptor) + f.rowSet(name:descriptor.jsonSafeClassName) { st.include(from:descriptor, page:descriptor.globalConfigPage) } diff --git a/core/src/main/resources/lib/form/description.jelly b/core/src/main/resources/lib/form/description.jelly index 12bc8ab80575..a11363de8a09 100644 --- a/core/src/main/resources/lib/form/description.jelly +++ b/core/src/main/resources/lib/form/description.jelly @@ -27,11 +27,7 @@ THE SOFTWARE. Renders a row that shows description text below an input field. -
-
-
- -
-
+
+
diff --git a/core/src/main/resources/lib/form/entry.jelly b/core/src/main/resources/lib/form/entry.jelly index c89086875bd1..09c03c24e416 100644 --- a/core/src/main/resources/lib/form/entry.jelly +++ b/core/src/main/resources/lib/form/entry.jelly @@ -69,13 +69,18 @@ THE SOFTWARE. -
+
+ + + + +
@@ -86,11 +91,6 @@ THE SOFTWARE. - - - - -
diff --git a/core/src/main/resources/lib/form/section_.css b/core/src/main/resources/lib/form/section_.css index 77d5f76211ed..16d609d16073 100644 --- a/core/src/main/resources/lib/form/section_.css +++ b/core/src/main/resources/lib/form/section_.css @@ -1,9 +1,7 @@ .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; + font-weight: 700; + font-size: 1rem; + border-top: 2px solid var(--panel-border-color); + padding-top: 2rem; + margin: 2rem 0; } diff --git a/war/src/main/less/modules/form.less b/war/src/main/less/modules/form.less index adfd9e6a6b0f..3d7074079bf9 100644 --- a/war/src/main/less/modules/form.less +++ b/war/src/main/less/modules/form.less @@ -23,12 +23,30 @@ .jenkins-form-description { display: block; - opacity: 0.5; margin-top: 0; margin-bottom: 0.75rem; color: var(--text-color-secondary); } +.jenkins-quote { + position: relative; + display: flex; + line-height: 38px; + + &::before { + content: ""; + position: relative; + width: 2px; + background: var(--input-border); + margin-right: 1rem; + border-radius: 2px; + } + + &--monospace { + font-family: monospace; + } +} + .jenkins-input { display: block; background: var(--input-color); diff --git a/war/src/main/less/modules/section.less b/war/src/main/less/modules/section.less index 048190cdac2e..08a2337b3a33 100644 --- a/war/src/main/less/modules/section.less +++ b/war/src/main/less/modules/section.less @@ -11,6 +11,10 @@ &:last-child { padding-bottom: 0; } + + .jenkins-form-item:last-of-type { + margin-bottom: 0; + } } .jenkins-section__title {