UX: add sidebar support, improve chat layout (#19)
This commit is contained in:
parent
3ac9148232
commit
1176af2954
@ -1,2 +1,3 @@
|
||||
@import "showcased-categories";
|
||||
@import "chat-desktop";
|
||||
@import "sidebar-desktop";
|
||||
|
@ -1,13 +1,29 @@
|
||||
html body.has-sidebar-page.has-full-page-chat {
|
||||
#main-outlet-wrapper {
|
||||
gap: 2em;
|
||||
}
|
||||
#main-outlet {
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.full-page-chat {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.has-full-page-chat #main-outlet.wrap {
|
||||
overflow: hidden;
|
||||
margin-bottom: 30px;
|
||||
padding-bottom: 0px !important;
|
||||
.full-page-chat {
|
||||
grid-template-rows: calc(var(--full-page-chat-height) - 30px);
|
||||
grid-template-rows: calc(var(--full-page-chat-height) - 50px);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1366px) {
|
||||
.has-full-page-chat #main-outlet {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.has-full-page-chat:not(.discourse-sidebar) #main-outlet.wrap {
|
||||
max-width: 100% !important;
|
||||
width: 100% !important;
|
||||
|
39
scss/sidebar-desktop.scss
Normal file
39
scss/sidebar-desktop.scss
Normal file
@ -0,0 +1,39 @@
|
||||
// sidebar
|
||||
|
||||
@mixin box-shadow($value: 0px) {
|
||||
box-shadow: 0 24px 40px rgba(0, 0, 0, 0.07),
|
||||
0 10.8529px 24.1177px rgba(0, 0, 0, 0.0456112),
|
||||
0 4.50776px 10.0172px rgba(0, 0, 0, 0.035),
|
||||
0 1.63037px 3.62304px rgba(0, 0, 0, 0.0243888);
|
||||
}
|
||||
|
||||
#main-outlet-wrapper {
|
||||
.sidebar-wrapper {
|
||||
margin: 30px 0 50px;
|
||||
background-color: var(--secondary);
|
||||
border-radius: 1em;
|
||||
top: calc(var(--header-offset) + 30px);
|
||||
height: calc(100vh - (var(--header-offset) + 80px));
|
||||
@include box-shadow;
|
||||
}
|
||||
.sidebar-footer-wrapper {
|
||||
background: var(--secondary);
|
||||
}
|
||||
}
|
||||
|
||||
body.has-sidebar-page {
|
||||
#main-outlet-wrapper {
|
||||
padding-left: 8px;
|
||||
}
|
||||
#main-outlet {
|
||||
max-width: unset;
|
||||
}
|
||||
}
|
||||
|
||||
.desktop-view .sidebar-footer-wrapper .sidebar-footer-container::before {
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
transparent,
|
||||
rgba(var(--secondary), 1)
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user