Files
psp_panel/src/assets/layout/_responsive.scss
T

111 lines
2.7 KiB
SCSS
Raw Normal View History

2022-10-22 15:38:02 +03:00
@media screen and (min-width: 1960px) {
2024-12-27 16:00:31 +03:00
.layout-main,
.landing-wrapper {
2022-07-22 13:13:50 +03:00
width: 1504px;
margin-left: auto !important;
margin-right: auto !important;
2022-04-07 16:28:04 +03:00
}
}
2021-12-09 17:24:42 +03:00
@media (min-width: 992px) {
.layout-wrapper {
&.layout-overlay {
.layout-main-container {
margin-left: 0;
padding-left: 2rem;
}
.layout-sidebar {
transform: translateX(-100%);
left: 0;
top: 0;
height: 100vh;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
2024-12-27 16:00:31 +03:00
border-right: 1px solid var(--surface-border);
transition:
transform 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99),
left 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
box-shadow:
0px 3px 5px rgba(0, 0, 0, 0.02),
0px 0px 2px rgba(0, 0, 0, 0.05),
0px 1px 4px rgba(0, 0, 0, 0.08);
2021-12-09 17:24:42 +03:00
}
2022-07-22 13:13:50 +03:00
&.layout-overlay-active {
2021-12-09 17:24:42 +03:00
.layout-sidebar {
transform: translateX(0);
}
}
}
&.layout-static {
.layout-main-container {
2024-12-27 16:00:31 +03:00
margin-left: 22rem;
2021-12-09 17:24:42 +03:00
}
2022-07-22 13:13:50 +03:00
&.layout-static-inactive {
2021-12-09 17:24:42 +03:00
.layout-sidebar {
transform: translateX(-100%);
left: 0;
}
.layout-main-container {
margin-left: 0;
padding-left: 2rem;
}
}
}
.layout-mask {
display: none;
}
}
}
@media (max-width: 991px) {
2022-07-22 13:13:50 +03:00
.blocked-scroll {
overflow: hidden;
}
2021-12-09 17:24:42 +03:00
.layout-wrapper {
.layout-main-container {
margin-left: 0;
padding-left: 2rem;
}
.layout-sidebar {
transform: translateX(-100%);
left: 0;
top: 0;
height: 100vh;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
2024-12-27 16:00:31 +03:00
transition:
transform 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99),
left 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
2021-12-09 17:24:42 +03:00
}
2022-07-22 13:13:50 +03:00
.layout-mask {
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 998;
width: 100%;
height: 100%;
background-color: var(--maskbg);
}
&.layout-mobile-active {
2021-12-09 17:24:42 +03:00
.layout-sidebar {
transform: translateX(0);
}
.layout-mask {
display: block;
}
}
}
}