0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-15 17:24:47 +08:00
discourse/plugins/chat/assets/stylesheets/common/chat-footer.scss
Joffrey JAFFEUX 6a9967764a
UX: moves chat search to its own tab (#36787)
This commit moves chat search as the last tab in search footer, instead
of a navbar button in the channels/dms/starred channels and threads
screens.

<img width="426" height="536" alt="Screenshot 2025-12-18 at 21 39 46"
src="https://github.com/user-attachments/assets/8262cc2a-0bee-40f3-a9d3-9a69af606ff3"
/>

This will also resize and hide the text of the footer in smallest sizes.

<img width="256" height="472" alt="Screenshot 2025-12-18 at 21 39 51"
src="https://github.com/user-attachments/assets/5aecd7c9-1460-40e1-9c64-baae9dde74cd"
/>
2025-12-19 15:18:34 +01:00

106 lines
1.9 KiB
SCSS
Vendored

.c-footer {
grid-area: footer;
background: var(--secondary);
border-top: 1px solid var(--content-border-color);
display: flex;
align-items: flex-end;
justify-content: space-between;
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: auto;
flex-shrink: 1;
flex-grow: 1;
padding-block: 0.75rem;
height: 100%;
position: relative;
color: var(--primary-medium);
&.--active {
.d-icon,
.d-button-label {
color: var(--d-nav-color--active);
}
}
&:hover,
&:focus {
.discourse-no-touch &,
.discourse-touch & {
.d-icon,
.d-button-label {
color: var(--d-nav-color--active);
}
}
}
.d-icon {
margin-right: 0;
font-size: var(--font-up-2);
color: inherit;
&.d-icon-discourse-threads {
font-size: var(--font-up-1); // visual correction
}
}
.d-button-label {
font-size: var(--font-down-1-rem);
color: var(--primary-medium);
}
.c-unread-indicator {
position: absolute;
top: 0.35rem;
right: unset;
left: 50%;
margin-left: 0.75rem;
&.-urgent {
height: 1em;
width: min-content;
min-width: 0.6em;
padding: 0.21em 0.42em;
}
&:not(.-urgent) {
width: 11px;
height: 11px;
}
}
}
}
@container (max-width: 450px) {
.c-footer {
&__item {
.d-button-label {
font-size: var(--font-down-2-rem);
}
}
}
}
// iphone se is 375
@container (max-width: 374px) {
.c-footer {
&__item {
.d-button-label {
display: none;
}
}
}
}