Skip to content

Commit d836319

Browse files
authored
Use a variable for bold font weight (jenkinsci#10176)
2 parents 9b1fb7d + bc1125b commit d836319

31 files changed

+50
-49
lines changed

core/src/main/resources/jenkins/management/AdministrativeMonitorsDecorator/resources.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
color: #fff;
3131
background-color: var(--warning-color);
32-
font-weight: 500;
32+
font-weight: var(--font-bold-weight);
3333
font-size: var(--font-size-xs);
3434

3535
border-radius: 16px;

src/main/js/widgets/add/addform.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
.input-validation-message {
3737
color: var(--error-color);
3838
padding-top: 2px;
39-
font-weight: 500;
39+
font-weight: var(--font-bold-weight);
4040
}
4141

4242
.input-message-disabled {
@@ -201,7 +201,7 @@
201201
label {
202202
display: block;
203203
font-size: var(--font-size-sm);
204-
font-weight: 500;
204+
font-weight: var(--font-bold-weight);
205205
color: var(--text-color);
206206
cursor: pointer;
207207

src/main/scss/abstracts/_theme.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ $semantics: (
4040
--font-size-sm: 0.875rem; // 14px
4141
--font-size-xs: 0.75rem; // 12px
4242
--font-size-monospace: 1em;
43+
--font-bold-weight: 450;
4344

4445
// Line height
4546
--line-height-base: 1.5;
@@ -152,7 +153,7 @@ $semantics: (
152153
--link-text-decoration: none;
153154
--link-text-decoration--hover: underline;
154155
--link-text-decoration--active: underline;
155-
--link-font-weight: 450;
156+
--link-font-weight: var(--font-bold-weight);
156157

157158
// Command Palette
158159
--command-palette-results-backdrop-filter: contrast(0.7) brightness(1.5)
@@ -194,7 +195,7 @@ $semantics: (
194195
--link-dark-text-decoration: none;
195196
--link-dark-text-decoration--hover: underline;
196197
--link-dark-text-decoration--active: underline;
197-
--link-dark-font-weight: 500;
198+
--link-dark-font-weight: var(--font-bold-weight);
198199

199200
// Pane
200201
--pane-border-width: 1px;
@@ -266,7 +267,7 @@ $semantics: (
266267
--form-item-max-width--small: 100%;
267268
}
268269

269-
--form-label-font-weight: 450;
270+
--form-label-font-weight: var(--font-bold-weight);
270271
--form-input-padding: 0.625rem;
271272
--form-input-border-radius: 0.625rem;
272273
--form-input-glow: 0 0 0 10px transparent;

src/main/scss/base/_style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ pre.console {
188188
}
189189

190190
.setting-name {
191-
font-weight: 500;
191+
font-weight: var(--font-bold-weight);
192192
margin-bottom: 0.5rem;
193193
white-space: nowrap;
194194
}
@@ -400,7 +400,7 @@ img.icon-help {
400400
position: relative;
401401
padding: 0.5rem 0.8rem;
402402
cursor: pointer;
403-
font-weight: 500;
403+
font-weight: var(--font-bold-weight);
404404

405405
&::before {
406406
content: "";

src/main/scss/components/_alert.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
border-radius: 10px;
88

99
strong {
10-
font-weight: 500;
10+
font-weight: var(--font-bold-weight);
1111
}
1212

1313
a {

src/main/scss/components/_breadcrumbs.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
align-items: center;
2626
justify-content: center;
2727
color: var(--text-color);
28-
font-weight: 500;
28+
font-weight: normal;
2929
font-size: 0.875rem;
3030
padding: 0.2rem 0.4rem;
3131

src/main/scss/components/_buttons.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
margin: 0;
1717
padding: 0.5rem 0.9rem;
1818
font-size: 0.875rem;
19+
font-weight: normal;
1920
text-decoration: none !important;
2021
background: transparent;
2122
color: var(--text-color) !important;

src/main/scss/components/_cards.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $card-padding: 1rem;
1313
padding: 0 $card-padding;
1414
height: 50px;
1515
font-size: var(--font-size-sm) !important;
16-
font-weight: 500;
16+
font-weight: var(--font-bold-weight);
1717
width: 100%;
1818
z-index: 1;
1919
}

src/main/scss/components/_command-palette.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
padding: 0.5rem;
121121

122122
&__heading {
123-
font-weight: 500;
123+
font-weight: var(--font-bold-weight);
124124
font-size: 0.875rem;
125125
margin: 0;
126126
padding: 0.75rem 0.75rem 0.625rem;

src/main/scss/components/_content-blocks.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
align-items: center;
99
padding: 0.75rem 1.1rem;
1010
color: var(--text-color) !important;
11-
font-weight: 500;
11+
font-weight: var(--font-bold-weight);
1212
text-decoration: none !important;
1313

1414
&::before {

0 commit comments

Comments
 (0)