Skip to content

Commit 8543fc2

Browse files
committed
[chores] CSS fixes for Django 5.2
1 parent cdc749f commit 8543fc2

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

openwisp_utils/admin_theme/static/admin/css/openwisp.css

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,7 @@ a:visited {
301301
text-decoration: none;
302302
}
303303
table thead th.sorted .sortoptions a.sortremove:focus:after,
304-
table thead th.sorted .sortoptions a.sortremove:hover:after,
305-
a:hover,
306-
a:focus {
304+
table thead th.sorted .sortoptions a.sortremove:hover:after {
307305
color: var(--ow-link-hover);
308306
text-decoration: underline;
309307
}
@@ -352,6 +350,9 @@ fieldset.module h2,
352350
.selector .selector-chosen-title {
353351
background: var(--ow-module-bg);
354352
color: var(--ow-module-text);
353+
border: 1px solid var(--hairline-color);
354+
/* avoid double top border due to form-row */
355+
margin-top: -1px;
355356
padding: 15px;
356357
}
357358
#content-main fieldset.module summary {
@@ -401,7 +402,9 @@ fieldset.module h2 {
401402
}
402403
#content fieldset .fieldset-heading,
403404
#content fieldset .inline-heading {
404-
border: 0px;
405+
border-left: 0 none;
406+
border-right: 0 none;
407+
border-top: 1px solid var(--hairline-color);
405408
}
406409
#main .inline-related h3 {
407410
padding: 15px;
@@ -551,17 +554,26 @@ The following CSS reverts those changes*/
551554
display: block;
552555
}
553556
#main .submit-row input {
554-
margin: 0 0 5px 5px;
557+
margin: 0 0 0 5px;
555558
}
556559
#main .submit-row input.default {
557-
margin: 0 0 5px 8px;
560+
margin: 0 0 0 8px;
558561
float: right;
559562
}
560563
.submit-row p.deletelink-box {
561564
float: left;
562565
margin: 0;
563566
}
564567

568+
/* icon fixes for Django >= 5.2 */
569+
.related-widget-wrapper-link {
570+
line-height: 30px;
571+
}
572+
.related-widget-wrapper-link img {
573+
width: 20px;
574+
height: 20px;
575+
}
576+
565577
/* temporary frontend fix */
566578
a.button.secondaryAction {
567579
background: transparent;
@@ -874,6 +886,9 @@ input[type="button"]:hover,
874886
text-align: center;
875887
margin: 20px 0 40px;
876888
}
889+
.inline-related .inline-deletelink {
890+
margin-top: -3px;
891+
}
877892

878893
/*
879894
NOTE:
@@ -1052,7 +1067,9 @@ input[type="button"]:hover,
10521067
text-decoration: underline;
10531068
}
10541069
#content-main .form-row a:link:hover,
1055-
#content-main a:link:focus {
1070+
#content-main a:link:focus,
1071+
#main .object-tools a:hover,
1072+
#main .object-tools a:focus {
10561073
text-decoration: none;
10571074
}
10581075
.title-wrapper h1,
@@ -1139,9 +1156,6 @@ div#toolbar #searchbar {
11391156
color: var(--ow-option-hover-text);
11401157
outline: 0 none;
11411158
}
1142-
#content p {
1143-
margin: 10px 0;
1144-
}
11451159

11461160
/* Calender style */
11471161
div.calendar caption,

0 commit comments

Comments
 (0)