Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Extract styles for notification bells into a mixin

Henriette Dargecb9febe54d2b
diff --git a/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.sass b/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.sass
index e167bb244fb..41bcbd7d54d 100644
--- a/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.sass
+++ b/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.sass
@@ -4,15 +4,8 @@
position: relative
&--indicator
+ @include indicator-bubble
position: absolute
top: 10px
right: 5px
- display: flex
- justify-content: center
- align-items: center
- height: 16px
- width: 16px
- border-radius: 0.5rem
- font-size: 0.7rem
background: darkred
- font-weight: bold
\ No newline at end of file
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
index b22e84ef4b9..bf0baa5388a 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
@@ -76,10 +76,7 @@ $subject-font-size: 14px
&--reason-count
background: #7f7f7f
color: white
- border-radius: 10px
- font-size: 10px
- padding: 2px 5px
- font-weight: bold
+ @include indicator-bubble
&--title
grid-area: title
diff --git a/frontend/src/global_styles/openproject/_mixins.sass b/frontend/src/global_styles/openproject/_mixins.sass
index 8cca31b5bb1..635fd2cbd38 100644
--- a/frontend/src/global_styles/openproject/_mixins.sass
+++ b/frontend/src/global_styles/openproject/_mixins.sass
@@ -246,3 +246,14 @@ $scrollbar-size: 10px
&.-show
display: block
+
+@mixin indicator-bubble
+ display: inline-flex
+ justify-content: center
+ align-items: center
+ height: 16px
+ line-height: 16px
+ width: 16px
+ border-radius: 0.5rem
+ font-size: 0.7rem
+ font-weight: bold