Skip to content

Commit

Permalink
Add form item width variable
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Oct 22, 2021
1 parent b8d574e commit 32fddac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions war/src/main/less/abstracts/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@
--input-border: #C3CCD1;
--input-border-hover: #5C7889;
--input-hidden-password-bg-color: #f9f9f9;
--form-item-max-width: 650px;
--form-item-max-width--small: 300px;
--form-item-max-width--medium: 450px;

// Pop out menus
--menu-text-color: black;
Expand Down
6 changes: 3 additions & 3 deletions war/src/main/less/modules/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
}

.jenkins-form-item {
max-width: 600px;
max-width: var(--form-item-max-width);
margin-bottom: 1.75rem;

&--small {
max-width: 300px;
max-width: var(--form-item-max-width--small);
}

&--medium {
max-width: 450px;
max-width: var(--form-item-max-width--medium);
}

&--full-width {
Expand Down

0 comments on commit 32fddac

Please sign in to comment.