Skip to content

Commit

Permalink
refactor(NotificationsOverview): convert to rem for a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-bitfly committed Oct 24, 2024
1 parent 21d9cde commit 5af248b
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions frontend/components/notifications/NotificationsOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,25 +159,25 @@ const emit = defineEmits<{
.container {
@include main.container;
padding: 17px 20px;
padding: 1.0625rem 1.25rem;
position: relative;
}
.info-section, .action-section {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
gap: .625rem;
}
.icon {
font-size: 24px;
font-size: 1.5rem;
}
.text {
font-size: 18px;
font-size: 1.125rem;
font-weight: 500;
}
.list-item {
display: flex;
gap: 10px;
gap: .625rem;
.list-text {
@include utils.truncate-text;
}
Expand All @@ -201,12 +201,12 @@ const emit = defineEmits<{
.box-item {
display: flex;
flex-direction: column;
gap: 10px;
gap: .625rem;
}
.inline-items {
display: flex;
align-items: center;
gap: 10px;
gap: .625rem;
}
a:hover {
color: var(--light-blue);
Expand All @@ -221,15 +221,14 @@ a:hover {
}
.icon-list {
min-width: 0;
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 10px;
gap: .625rem;
}
.icon {
font-size: 16px;
font-size: 1rem;
}
.inline-link,
.gem {
Expand All @@ -238,21 +237,21 @@ a:hover {
.premium-invitation {
display: flex;
align-items: center;
gap: 5px; /* Adjust the gap as needed */
gap: .3125rem;
}
.push-invitation {
display: flex;
align-items: center;
gap: 5px; /* Adjust the gap as needed */
gap: .3125rem;
flex-wrap: wrap;
}
@media (max-width: 600px) {
.box {
flex-direction: row;
gap: 20px;
gap: 1.25rem;
}
.box-item {
min-width: 250px; /* Adjust based on content width */
min-width: 15.625rem;
}
}
</style>

0 comments on commit 5af248b

Please sign in to comment.