Skip to content

Commit e20fd89

Browse files
SwastikTripathifelixxm
authored andcommitted
Refs #34095 -- Changed more properties to use rem units in admin CSS.
1 parent e8dcef1 commit e20fd89

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

django/contrib/admin/static/admin/css/base.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ li ul {
194194

195195
li, dt, dd {
196196
font-size: 0.8125rem;
197-
line-height: 20px;
197+
line-height: 1.25rem;
198198
}
199199

200200
dt {
@@ -308,7 +308,7 @@ table {
308308

309309
td, th {
310310
font-size: 0.8125rem;
311-
line-height: 16px;
311+
line-height: 1rem;
312312
border-bottom: 1px solid var(--hairline-color);
313313
vertical-align: top;
314314
padding: 8px;
@@ -501,7 +501,7 @@ textarea:focus, select:focus, .vTextField:focus {
501501
}
502502

503503
select {
504-
height: 30px;
504+
height: 1.875rem;
505505
}
506506

507507
select[multiple] {
@@ -761,7 +761,7 @@ a.deletelink:focus, a.deletelink:hover {
761761
display: block;
762762
float: left;
763763
margin-left: 5px;
764-
height: 16px;
764+
height: 1rem;
765765
}
766766

767767
.object-tools a {
@@ -1059,8 +1059,8 @@ a.deletelink:focus, a.deletelink:hover {
10591059
.delete-confirmation form .cancel-link {
10601060
display: inline-block;
10611061
vertical-align: middle;
1062-
height: 15px;
1063-
line-height: 15px;
1062+
height: 0.9375rem;
1063+
line-height: 0.9375rem;
10641064
border-radius: 4px;
10651065
padding: 10px 15px;
10661066
color: var(--button-fg);

django/contrib/admin/static/admin/css/forms.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ form ul.inline li {
8383
content: '';
8484
display: inline-block;
8585
vertical-align: middle;
86-
height: 26px;
86+
height: 1.625rem;
8787
}
8888

8989
.aligned label + p, .aligned .checkbox-row + div.help, .aligned label + div.readonly {
@@ -277,8 +277,8 @@ body.popup .submit-row {
277277
}
278278

279279
.submit-row input {
280-
height: 35px;
281-
line-height: 15px;
280+
height: 2.1875rem;
281+
line-height: 0.9375rem;
282282
}
283283

284284
.submit-row input, .submit-row a {
@@ -297,9 +297,9 @@ body.popup .submit-row {
297297
display: block;
298298
background: var(--delete-button-bg);
299299
border-radius: 4px;
300-
padding: 10px 15px;
301-
height: 15px;
302-
line-height: 15px;
300+
padding: 0.625rem 0.9375rem;
301+
height: 0.9375rem;
302+
line-height: 0.9375rem;
303303
color: var(--button-fg);
304304
}
305305

@@ -308,8 +308,8 @@ body.popup .submit-row {
308308
background: var(--close-button-bg);
309309
border-radius: 4px;
310310
padding: 10px 15px;
311-
height: 15px;
312-
line-height: 15px;
311+
height: 0.9375rem;
312+
line-height: 0.9375rem;
313313
color: var(--button-fg);
314314
}
315315

@@ -524,8 +524,8 @@ body.popup .submit-row {
524524
}
525525

526526
.related-lookup {
527-
width: 16px;
528-
height: 16px;
527+
width: 1rem;
528+
height: 1rem;
529529
background-image: url(../img/search.svg);
530530
}
531531

django/contrib/admin/static/admin/css/responsive.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ input[type="submit"], button {
104104
}
105105

106106
#changelist-search label {
107-
line-height: 22px;
107+
line-height: 1.375rem;
108108
}
109109

110110
#toolbar form #searchbar {
111111
flex: 1 0 auto;
112112
width: 0;
113-
height: 22px;
113+
height: 1.375rem;
114114
margin: 0 10px 0 6px;
115115
}
116116

@@ -186,12 +186,12 @@ input[type="submit"], button {
186186
box-sizing: border-box;
187187
margin: 0;
188188
padding: 6px 8px;
189-
min-height: 36px;
189+
min-height: 2.25rem;
190190
font-size: 0.875rem;
191191
}
192192

193193
.form-row select {
194-
height: 36px;
194+
height: 2.25rem;
195195
}
196196

197197
.form-row select[multiple] {
@@ -957,7 +957,7 @@ input[type="submit"], button {
957957
.calendar-shortcuts {
958958
padding: 10px 0;
959959
font-size: 0.75rem;
960-
line-height: 12px;
960+
line-height: 0.75rem;
961961
}
962962

963963
.calendar-shortcuts a {

django/contrib/admin/static/admin/css/widgets.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ a.active.selector-clearall:focus, a.active.selector-clearall:hover {
277277
.selector .search-label-icon {
278278
background: url(../img/search.svg) 0 0 no-repeat;
279279
display: inline-block;
280-
height: 18px;
281-
width: 18px;
280+
height: 1.125rem;
281+
width: 1.125rem;
282282
}
283283

284284
/* DATE AND TIME */
@@ -498,7 +498,7 @@ span.clearable-file-input label {
498498
background: var(--body-bg);
499499
color: var(--body-quiet-color);
500500
font-size: 0.6875rem;
501-
line-height: 11px;
501+
line-height: 0.6875rem;
502502
border-top: 1px solid var(--hairline-color);
503503
padding: 8px 0;
504504
}

0 commit comments

Comments
 (0)