Skip to content

Commit

Permalink
fix(style): clear excessive and redundant styles
Browse files Browse the repository at this point in the history
- move from separate file to component

Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Dec 23, 2024
1 parent 588783b commit fc2ddd0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 36 deletions.
2 changes: 0 additions & 2 deletions src/Components/Notification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,6 @@ export default {

<style lang="scss" scoped>
.notification {
background-color: var(--color-main-background);

:deep(img.notification-icon) {
display: flex;
width: 32px;
Expand Down
26 changes: 18 additions & 8 deletions src/NotificationsApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -481,18 +481,28 @@ export default {
.notification-container {
/* Prevent slide animation to go out of the div */
overflow: hidden;
}

.notification-wrapper {
max-height: calc(100vh - 50px * 4);
overflow: auto;
}
&,
& :deep(*),
& :deep(*::before),
& :deep(*::after) {
box-sizing: border-box;
}

::v-deep .empty-content {
margin: 12vh 10px;
.notification-wrapper {
display: flex;
flex-direction: column;
max-height: calc(100vh - 50px * 4);
overflow: auto;
}

p {
.dismiss-all {
display: flex;
justify-content: center;
color: var(--color-text-maxcontrast);
border-top: 1px solid var(--color-border);
padding: 10px;
background-color: var(--color-main-background);
}
}

Expand Down
26 changes: 0 additions & 26 deletions src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
opacity: 1;
}
}

* {
cursor: pointer;
}
}

svg {
Expand All @@ -45,28 +41,6 @@ svg {
}
}

.notification-container {
.notification-wrapper {
display: flex;
flex-direction: column;
}

.dismiss-all {
display: flex;
justify-content: center;
color: var(--color-text-maxcontrast);
border-top: 1px solid var(--color-border);
padding: 10px;
background-color: var(--color-main-background);
}

/* Menu arrow */
&:after {
right: 101px;
}
}


.notification {
padding-bottom: 12px;

Expand Down

0 comments on commit fc2ddd0

Please sign in to comment.