Skip to content

Commit

Permalink
fix: sidebar and some responsive styling (#106)
Browse files Browse the repository at this point in the history
* sidebar and some responsive styling

* changed breakpoint and fixed toast behind mask

* fix: format the primevue stylesheet

---------

Co-authored-by: catherine meng <mcatherine1994@gmail.com>
  • Loading branch information
J0taFerreira and MCatherine1994 authored Oct 5, 2023
1 parent 6fdc220 commit 22dd132
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion style-sheets/primevue-components-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ label {
/* ------------------------------------ primevue toast --------------------------------- */

.#{variables.$primevue-prefix}-toast {
z-index: 99999;
z-index: 9999 !important;
}

.#{variables.$primevue-prefix}-toast
Expand Down Expand Up @@ -835,6 +835,50 @@ label {
map.get(lightTheme.$light-theme, 'support-success') !important;
}

/* ------------------------------------ Sidebar --------------------------------- */

.#{variables.$primevue-prefix}-sidebar-left
.#{variables.$primevue-prefix}-sidebar {
width: 66%;
}
.#{variables.$primevue-prefix}-sidebar-header {
align-items: flex-start !important;
justify-content: space-between !important;
padding: 1rem 1.25rem 1rem 0 !important;
}

.#{variables.$primevue-prefix}-sidebar-mask {
top: 3rem !important; //header height
}

.#{variables.$primevue-prefix}-sidebar-visible > div {
border: none;
border-right: 0.063rem solid
map.get(lightTheme.$light-theme, 'layer-selected-01');
}

@media (min-device-width: 768px) {
.#{variables.$primevue-prefix}-sidebar-left
.#{variables.$primevue-prefix}-sidebar {
width: 33.3% !important;
}
}

@media (min-device-width: 1024px) {
.#{variables.$primevue-prefix}-sidebar-mask,
.#{variables.$primevue-prefix}-sidebar-left
.#{variables.$primevue-prefix}-sidebar {
width: 16rem !important;
}
.#{variables.$primevue-prefix}-sidebar-close {
display: none !important;
}

.#{variables.$primevue-prefix}-sidebar-visible > div {
transition-duration: 0ms !important;
}
}

/* ------------------------------------ Tag --------------------------------- */

.#{variables.$primevue-prefix}-tag-success {
Expand Down

0 comments on commit 22dd132

Please sign in to comment.