A platform for community discussion. Free, open, simple.
@use "lib/viewport";
.peek-mode-toggle {
display: none;
}
@include viewport.from(xl) {
html:not(.fullscreen-composer) {
.peek-mode-toggle svg {
transform: scaleX(-1);
}
&.composer-open {
.full-width-enabled .peek-mode-toggle {
display: flex;
}
.full-width-enabled.peek-mode-active {
#reply-control.hide-preview {
transition: none;
box-shadow: none;
border-radius: var(--d-border-radius-large);
.grippie {
display: none;
}
.reply-area {
height: 100%;
}
}
.sidebar-wrapper .sidebar-container {
height: unset;
}
&:not(:where(.uc-enable-main-outlet-grid-layout-change)) {
#reply-control:not(.fullscreen).hide-preview {
width: 100%;
right: var(--main-grid-gap);
top: var(--header-offset);
bottom: var(--main-grid-gap);
left: unset;
max-width: 36.5vw;
}
&.has-sidebar-page {
#main-outlet-wrapper {
grid-template-columns:
var(--d-sidebar-width)
calc(100vw - 38vw - var(--d-sidebar-width))
1fr;
}
}
&:not(.has-sidebar-page) {
#main-outlet-wrapper {
grid-template-columns: 0 calc(100vw - 52vw) 1fr;
}
#reply-control:not(.fullscreen).hide-preview {
max-width: 46vw;
}
}
&:not(.keyboard-visible) {
#reply-control:not(.fullscreen).hide-preview {
height: unset;
}
}
}
&:where(.uc-enable-main-outlet-grid-layout-change) {
--composer-peek-min-width: 30em;
#reply-control:not(.fullscreen).hide-preview {
position: sticky;
grid-column: 3;
grid-row: 1;
align-self: start;
top: var(--header-offset);
height: calc(100dvh - var(--header-offset) - var(--main-grid-gap));
width: auto;
min-width: 0;
max-width: none;
margin: 0;
}
&.has-sidebar-page #main-outlet-wrapper {
grid-template-columns:
var(--d-sidebar-width)
minmax(0, 1fr)
minmax(var(--composer-peek-min-width), 1fr);
}
&:not(.has-sidebar-page) #main-outlet-wrapper {
grid-template-columns:
0
minmax(0, 1fr)
minmax(var(--composer-peek-min-width), 1fr);
}
}
}
}
}
}