diff --git a/core/src/main/resources/lib/form/form.jelly b/core/src/main/resources/lib/form/form.jelly index 39f30b49842d..208177abb77d 100644 --- a/core/src/main/resources/lib/form/form.jelly +++ b/core/src/main/resources/lib/form/form.jelly @@ -45,7 +45,7 @@ THE SOFTWARE. @enctype of the <form> HTML element. - ID of the HTML element. + ID of the form. @target of the <form> HTML element. Works like <a target="..."> diff --git a/core/src/main/resources/lib/hudson/newFromList/form.jelly b/core/src/main/resources/lib/hudson/newFromList/form.jelly index 0c1daf0f104f..7996750ecac0 100644 --- a/core/src/main/resources/lib/hudson/newFromList/form.jelly +++ b/core/src/main/resources/lib/hudson/newFromList/form.jelly @@ -108,9 +108,7 @@ THE SOFTWARE. --> - + diff --git a/war/src/main/less/modules/form.less b/war/src/main/less/modules/form.less index 485d65727f70..a72c3baa94dd 100644 --- a/war/src/main/less/modules/form.less +++ b/war/src/main/less/modules/form.less @@ -5,6 +5,16 @@ max-width: var(--form-item-max-width); margin-bottom: 1.75rem; + // Workaround for float:right button controls + // (eg Global Credentials' Verify Configuration button being hidden by the floating submit bar) + &::after { + content: " "; /* Older browser do not support empty content */ + visibility: hidden; + display: block; + height: 0; + clear: both; + } + &--small { max-width: var(--form-item-max-width--small); } @@ -537,81 +547,6 @@ } } -.jenkins-button { - position: relative; - display: inline-flex; - justify-content: center; - align-items: center; - min-height: 37px; - background: var(--btn-secondary-bg); - color: var(--btn-secondary-color); - padding: 10px 15px; - border-radius: 10px; - cursor: pointer; - text-shadow: 0 1px 0 var(--background-color); - box-shadow: var(--form-input-glow); - text-decoration: none; - outline: none; - font-weight: 500; - transition: var(--standard-transition); - border: 2px solid var(--btn-secondary-border); - - &::after { - content: ""; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - border-radius: inherit; - color: inherit; - border-bottom: 2px solid var(--button-foreground-color); - opacity: 0.05; - } - - &:hover { - background: var(--btn-secondary-bg--hover); - color: var(--btn-secondary-color--hover); - } - - &:active { - background: var(--btn-secondary-bg--focus); - color: var(--btn-secondary-color--focus); - box-shadow: var(--form-input-glow--focus); - } - - &--large { - font-size: 0.9rem; - padding: 12px 20px; - } - - &--primary { - background: var(--btn-primary-bg); - color: white; - border: none; - - &:hover { - background: var(--btn-primary-bg-hover); - color: white; - } - - &:active { - background: var(--btn-primary-bg-active); - color: white; - } - - &::after { - border-bottom: 2px solid var(--btn-primary-bg); - opacity: 0.1; - } - } - - &:disabled { - opacity: 0.5; - pointer-events: none; - } -} - .jenkins-help-button { position: relative; width: 18px; diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index acaae479e0ed..0a2f0cb403b7 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -1491,7 +1491,7 @@ function rowvgStartEachRow(recursive,f) { function findSettingName(formGroup) { for (var i=0; i