Skip to content

Commit

Permalink
Merge pull request #1240 from danskernesdigitalebibliotek/fix-admin-h…
Browse files Browse the repository at this point in the history
…eader

Fix broken header, when logged into admin interface.
  • Loading branch information
rasben authored Jun 11, 2024
2 parents ce506f1 + 29d8dfe commit 6a78ab4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions web/modules/custom/dpl_admin/assets/dpl_frontend.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@
mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M5 13q-.425 0-.712-.288T4 12t.288-.712T5 11h6.6l5-5H15q-.425 0-.712-.288T14 5t.288-.712T15 4h4q.425 0 .713.288T20 5v4q0 .425-.288.713T19 10t-.712-.288T18 9V7.4l-5.025 5.025q-.275.275-.637.425t-.763.15zm10 7q-.425 0-.712-.288T14 19t.288-.712T15 18h1.6l-2.475-2.45q-.3-.3-.3-.712t.3-.713t.725-.3t.725.3L18 16.6V15q0-.425.288-.712T19 14t.713.288T20 15v4q0 .425-.288.713T19 20z"/></svg>') !important;
}

/*
The DPL header gets confused when the admin toolbar exists, and keeps being
placed in a wrong position.
We'll just completely disable the dynamic movement, when the toolbar is
visible.
*/
.toolbar-fixed {
.header,
.header[style] {
top: 0 !important;
}
}

/* Gin wants to hide the text of the secondary toolbar items way too early. */
@media (min-width: 61em) {
.toolbar-horizontal .gin-secondary-toolbar .toolbar-secondary .toolbar-bar .toolbar-tab .toolbar-item {
Expand Down

0 comments on commit 6a78ab4

Please sign in to comment.