mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 20:53:44 +08:00
4c25266cf7
Since https://github.com/discourse/discourse/pull/25501 this behavior was broken. This PR attempts to fix it by being more fine grain. Also note that this PR is moving `footer-nav-ipad` and `footer-nav-visible` to the `html` element and not the `body`. It makes more sense as we are already adding most of other global state class like `keyboard-visible` to the `html` element. Tested on: - chrome desktop - safari ios - iphone - PWA ios - iphone - PWA ios - ipad - DiscourseHub iphone
83 lines
1.6 KiB
SCSS
83 lines
1.6 KiB
SCSS
.full-page-chat {
|
|
#main-chat-outlet.chat-view {
|
|
grid-template-areas:
|
|
"list"
|
|
"footer";
|
|
}
|
|
|
|
.channels-list {
|
|
grid-area: list;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.c-footer {
|
|
grid-area: footer;
|
|
background: var(--secondary);
|
|
border-top: 1px solid var(--primary-low);
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-around;
|
|
position: sticky;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
|
|
html.footer-nav-ipad &,
|
|
html.footer-nav-visible & {
|
|
padding-bottom: calc(
|
|
env(safe-area-inset-bottom) + var(--footer-nav-height, 0px)
|
|
);
|
|
}
|
|
|
|
&__item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
flex-basis: 33%;
|
|
flex-shrink: 0;
|
|
padding-block: 0.75rem;
|
|
height: 100%;
|
|
position: relative;
|
|
|
|
&.--active {
|
|
.d-icon,
|
|
.d-button-label {
|
|
color: var(--quaternary);
|
|
}
|
|
}
|
|
|
|
.d-icon {
|
|
margin-right: 0;
|
|
font-size: var(--font-up-4);
|
|
color: var(--primary-medium);
|
|
|
|
&.d-icon-discourse-threads {
|
|
font-size: var(--font-up-3); //visual correction
|
|
}
|
|
}
|
|
|
|
.d-button-label {
|
|
font-size: var(--font-down-1-rem);
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
.chat-channel-unread-indicator,
|
|
.chat-channel-unread-indicator.-urgent {
|
|
top: 0.25rem;
|
|
right: unset;
|
|
left: 50%;
|
|
margin-left: 0.75rem;
|
|
}
|
|
|
|
.chat-channel-unread-indicator:not(.-urgent) {
|
|
width: 11px;
|
|
height: 11px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.has-full-page-chat div#reply-control {
|
|
display: none;
|
|
}
|