primevue-mirror/assets/styles/layout/_responsive.scss

174 lines
3.6 KiB
SCSS
Raw Normal View History

2023-02-28 08:29:30 +00:00
@media screen and (min-width: 1729px) {
2023-10-07 15:46:59 +00:00
.layout-content {
2023-02-28 08:29:30 +00:00
max-width: 1478px;
margin: 0 auto;
}
.layout-topbar-inner {
max-width: 1478px;
margin: 0 auto;
}
2023-10-07 14:52:00 +00:00
.layout-sidebar {
left: 200px;
}
2023-02-28 08:29:30 +00:00
}
@media screen and (max-width: 991px) {
.layout-wrapper {
2023-10-07 19:43:10 +00:00
.layout-topbar {
padding-left: 2rem;
padding-right: 2rem;
2023-02-28 08:29:30 +00:00
.menu-button {
2023-10-07 19:43:10 +00:00
display: block;
2023-10-07 15:46:59 +00:00
}
.layout-topbar-logo-container {
width: auto;
margin-right: 0;
2023-02-28 08:29:30 +00:00
}
2023-03-04 17:18:40 +00:00
#docsearch {
2023-02-28 08:29:30 +00:00
margin-left: auto;
2023-03-04 17:18:40 +00:00
margin-right: .5rem;
}
.DocSearch-Button {
2023-02-28 08:29:30 +00:00
width: 2rem;
height: 2rem;
overflow: hidden;
padding: 0;
justify-content: center;
align-items: center;
.DocSearch-Search-Icon {
width: 1rem;
height: 1rem;
}
.DocSearch-Button-Placeholder,
.DocSearch-Button-Keys {
display: none;
}
}
}
.layout-sidebar {
top: 0;
2023-10-07 15:46:59 +00:00
left: 0;
position: fixed;
2023-02-28 08:29:30 +00:00
z-index: 1102;
height: 100%;
transform: translateX(-100%);
2023-10-07 15:46:59 +00:00
background-color: var(--surface-overlay);
2023-10-07 19:43:10 +00:00
width: 300px;
opacity: 0;
nav {
padding: 1rem 1rem;
}
2023-02-28 08:29:30 +00:00
&.active {
2023-10-07 19:43:10 +00:00
opacity: 1;
2023-02-28 08:29:30 +00:00
transform: translateX(0);
}
}
2023-10-07 15:46:59 +00:00
2023-02-28 08:29:30 +00:00
.layout-mask {
background-color: rgba(0, 0, 0, 0.1);
&.layout-mask-active {
z-index: 1101;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.4);
transition: background-color .5s;
}
}
.doc-section-nav {
display: none;
}
.doc-tabmenu {
margin-right: 0;
}
.video-container {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
}
2023-10-07 19:43:10 +00:00
.layout-content {
padding-left: 2rem;
padding-right: 2rem;
}
2023-02-28 08:29:30 +00:00
.blocked-scroll {
overflow: hidden;
2023-09-25 10:05:27 +00:00
padding-right: var(--scrollbar-width);
2023-02-28 08:29:30 +00:00
}
}
@media screen and (max-width: 575px) {
.layout-wrapper {
2023-10-07 19:43:10 +00:00
.layout-topbar {
2023-02-28 08:29:30 +00:00
padding-left: 1rem;
padding-right: 1rem;
2023-10-07 19:43:10 +00:00
.layout-topbar-logo {
display: none;
}
.layout-topbar-icon {
display: block;
}
2023-02-28 08:29:30 +00:00
}
.layout-content {
2023-10-07 19:43:10 +00:00
padding-left: 1rem;
padding-right: 1rem;
2023-02-28 08:29:30 +00:00
}
.layout-footer {
padding-left: 1rem;
padding-right: 1rem;
}
.doc-tabmenu {
li {
flex: 1 1 0;
button {
width: 100%;
min-width: auto;
}
}
}
}
.layout-news {
padding-left: 1rem;
padding-right: 1rem;
font-size: 12px;
> i {
display: none;
}
}
}