Skip to content

Commit 768cb31

Browse files
authored
Merge pull request #200 from maykinmedia/issue/admin-help-text
💄 fix help-text icon for datetime field in the admin
2 parents 3d6b803 + 363cc02 commit 768cb31

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

src/openklant/scss/admin/_tooltip.scss

+31-2
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,41 @@ div.help {
6666

6767
background-color: #fffeaa;
6868
border: solid 1px #f7f071;
69-
7069
color: #000;
7170
}
7271
}
7372
}
74-
73+
74+
/**
75+
* Help text for datetime field is without inner div
76+
*/
77+
div.help:not(:has(div)) {
78+
cursor: help;
79+
width: 16px;
80+
height: 16px;
81+
background-image: url(../admin/img/icon-unknown.svg);
82+
display: inline-block;
83+
background-repeat: no-repeat;
84+
background-size: 14px;
85+
margin-left: 8px !important;
86+
margin-top: 6px !important;
87+
position: absolute;
88+
text-indent: -9999px;
89+
90+
&:hover {
91+
text-indent: inherit;
92+
width: auto;
93+
background-image: none;
94+
background-color: #fffeaa;
95+
border: solid 1px #f7f071;
96+
color: #000;
97+
padding: 5px 5px 3px 5px !important;
98+
max-width: 300px;
99+
height: auto !important;
100+
margin-top: 2px !important;
101+
z-index: 10;
102+
}
103+
}
75104
// Unsure why Django hides the overflow here :/
76105
.form-row:has(.help) {
77106
overflow: visible;

0 commit comments

Comments
 (0)