discourse/plugins/chat/assets/stylesheets/common/chat-navbar.scss
chapoi b063d92ad1
UX: chat header size and alignments (#25239)
This commit:

- increased the size of chat-header-offset from 46px to 56px on mobile
- tweaked navbar padding
- Increased the gap between back button and title; this means no more perfect alignment, but I think that's perfectly fine and a fair trade off for an easier click target for the back button without fear of hitting the title
2024-01-12 14:27:44 +01:00

71 lines
1.2 KiB
SCSS

.c-navbar {
display: flex;
align-items: center;
width: 100%;
gap: 0.25rem;
&-container {
border-bottom: 1px solid var(--primary-low);
background: var(--secondary);
height: var(--chat-header-offset);
min-height: var(--chat-header-offset);
box-sizing: border-box;
display: flex;
z-index: z("composer", "content") - 1;
padding-inline: 1rem;
&.-clickable {
cursor: pointer;
}
}
.single-select-header {
padding: 0.3675rem 0.584rem;
}
.c-navbar__channel-title {
@include ellipsis();
font-weight: 700;
}
.c-navbar__title {
@include ellipsis();
font-weight: 700;
.c-routes-channel-threads & {
padding-left: 0;
}
.chat-drawer & {
padding-left: 1rem;
}
}
.c-navbar__back-button ~ .c-navbar__title {
padding-left: 0;
}
.c-navbar__sub-title {
line-height: var(--line-height-small);
font-size: var(--font-down-1-rem);
font-weight: normal;
}
.c-navbar__threads-list-button {
gap: 0.25rem;
&.has-unreads {
.d-icon-discourse-threads {
color: var(--tertiary-med-or-tertiary);
}
}
}
}
.c-navbar__actions {
list-style: none;
margin-left: auto;
display: flex;
align-items: center;
}