Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 fix help-text icon for datetime field in the admin #200

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions src/openklant/scss/admin/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,41 @@ div.help {

background-color: #fffeaa;
border: solid 1px #f7f071;

color: #000;
}
}
}


/**
* Help text for datetime field is without inner div
*/
div.help:not(:has(div)) {
cursor: help;
width: 16px;
height: 16px;
background-image: url(../admin/img/icon-unknown.svg);
display: inline-block;
background-repeat: no-repeat;
background-size: 14px;
margin-left: 8px !important;
margin-top: 6px !important;
position: absolute;
text-indent: -9999px;

&:hover {
text-indent: inherit;
width: auto;
background-image: none;
background-color: #fffeaa;
border: solid 1px #f7f071;
color: #000;
padding: 5px 5px 3px 5px !important;
max-width: 300px;
height: auto !important;
margin-top: 2px !important;
z-index: 10;
}
}
// Unsure why Django hides the overflow here :/
.form-row:has(.help) {
overflow: visible;
Expand Down
Loading