diff --git a/src/fellchensammlung/static/fellchensammlung/css/styles.css b/src/fellchensammlung/static/fellchensammlung/css/styles.css index 3eaaf47..88f6722 100644 --- a/src/fellchensammlung/static/fellchensammlung/css/styles.css +++ b/src/fellchensammlung/static/fellchensammlung/css/styles.css @@ -144,7 +144,7 @@ select, .button { height: 40px; } - a:hover, .button_darken:hover { + .button_darken:hover { background-color: var(--highlight-one); color: var(--highlight-one-text); } @@ -415,6 +415,25 @@ select, .button { max-height: 250px; } +.btn-notification { + display: inline-block; + position: relative; + padding: 0; +} +/* Make the badge float in the top right corner of the button */ +.button__badge { + background-color: #fa3e3e; + border-radius: 2px; + color: white; + + padding: 1px 3px; + font-size: 10px; + + position: absolute; /* Position the badge within the relatively positioned button */ + top: 0; + right: 0; +} + .adoption-card-report-link, .notification-card-mark-read { margin-left: auto; font-size: 2rem; diff --git a/src/fellchensammlung/templates/fellchensammlung/header.html b/src/fellchensammlung/templates/fellchensammlung/header.html index 06682f7..1149101 100644 --- a/src/fellchensammlung/templates/fellchensammlung/header.html +++ b/src/fellchensammlung/templates/fellchensammlung/header.html @@ -18,7 +18,15 @@
{% include "fellchensammlung/forms/change_language.html" %} {% if user.is_authenticated %} - + +
+ + + + 4 + +
+
{% csrf_token %}