mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 12:33:50 +08:00
c74fa300e7
This commit ensures the browse page can be loaded in the drawer and doesn’t force full page mode. Other notable changes of this commit: - be consistent about wrapping each full page route with "c-routes.--route-name" and each drawer container with "c-drawer-routes.--route-name" - move browse channels into its own component, it was before in the template of the channels browse
94 lines
1.6 KiB
SCSS
94 lines
1.6 KiB
SCSS
.chat-browse-view {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
padding: 1rem 1rem env(safe-area-inset-bottom) 1rem;
|
|
|
|
&__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
&__title {
|
|
box-sizing: border-box;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&__content_wrapper {
|
|
box-sizing: border-box;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
&__cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-gap: 1.25rem;
|
|
|
|
@include breakpoint(tablet) {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
grid-gap: 1rem;
|
|
}
|
|
}
|
|
|
|
&__actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: end;
|
|
|
|
.c-drawer-routes.--browse & {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
align-items: flex-start;
|
|
|
|
.filter-input {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@include breakpoint(tablet) {
|
|
flex-direction: column;
|
|
|
|
.dc-filter-input-container {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.dc-filter-input-container,
|
|
nav {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__filters {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0;
|
|
&:before {
|
|
content: none; //there is a strange thing applied on nav-pills and this resets it
|
|
}
|
|
}
|
|
|
|
&__filter {
|
|
display: inline;
|
|
|
|
&:last-of-type {
|
|
margin-right: 0;
|
|
}
|
|
|
|
@include breakpoint(mobile-large) {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
&__filter-link,
|
|
&__filter-link:visited {
|
|
color: var(--primary);
|
|
font-size: var(--font-up-1);
|
|
padding: 0 0.25rem;
|
|
|
|
@include breakpoint(tablet) {
|
|
font-size: var(--font-up-1);
|
|
}
|
|
}
|
|
}
|