Skip to content

Commit

Permalink
Only add margin to system message container if it contains a joomla-a…
Browse files Browse the repository at this point in the history
…lert (#44222)
  • Loading branch information
coolcat-creations authored Oct 26, 2024
1 parent 30984e7 commit 2d4547e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@
transform: translateY(0);
}
}

/* Only apply margin when #system-message-container contains a visible joomla-alert */
#system-message-container:has(joomla-alert) {
margin-top: 1em;
}

/* Remove margin when no <joomla-alert> exists */
#system-message-container:not(:has(joomla-alert)) {
margin-top: 0;
}

0 comments on commit 2d4547e

Please sign in to comment.