Skip to content

Commit

Permalink
Move some props to CSS variables
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Oct 22, 2021
1 parent 3a1980e commit 26423de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions war/src/main/less/abstracts/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@
--form-item-max-width: 650px;
--form-item-max-width--small: 300px;
--form-item-max-width--medium: 450px;
--form-label-font-weight: bold;
--form-input-padding: 8px;

// Pop out menus
--menu-text-color: black;
Expand Down
4 changes: 2 additions & 2 deletions war/src/main/less/modules/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
.jenkins-form-label {
display: flex;
align-items: center;
font-weight: bold;
font-weight: var(--form-label-font-weight);
margin-top: 0;
margin-bottom: 0.75rem;
padding-inline-start: 0;
Expand All @@ -49,7 +49,7 @@
display: block;
background: var(--input-color);
border: 2px solid var(--input-border);
padding: 8px;
padding: var(--form-input-padding);
border-radius: 6px;
width: 100%;
box-shadow: 0 0 0 10px transparent;
Expand Down

0 comments on commit 26423de

Please sign in to comment.