mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
The new channel form was looking a little long in the tooth, and updating it to formkit makes a lot of general improvements. Before: <img width="350" alt="image" src="https://github.com/user-attachments/assets/20836a59-86e8-4989-a2c5-9c104208b2b9" /> After: <img width="350" alt="image" src="https://github.com/user-attachments/assets/f3bdec2f-49b2-4dbc-ba54-c6e3f51288c6" /> Also updated some general chat styles... we were missing a lot of general shared styles here before/after <img width="450" alt="image" src="https://github.com/user-attachments/assets/58bd6e4e-584f-49c9-9b61-ac36dac13626" /> <img width="450" alt="image" src="https://github.com/user-attachments/assets/82b9da42-854c-4829-a09d-3f258e846fb1" /> before/after <img width="450" alt="image" src="https://github.com/user-attachments/assets/5885866d-7955-4b0c-92f7-dad8a29dd7ca" /> <img width="450" alt="image" src="https://github.com/user-attachments/assets/1d6b6a47-d47e-4005-912d-a6108e15d2b3" /> before/after <img width="400" alt="image" src="https://github.com/user-attachments/assets/c948521c-7571-4281-975f-f2f41fe8bad5" /> <img width="400" alt="image" src="https://github.com/user-attachments/assets/a87df09c-0574-4f2f-95c1-afd06ad6f6e4" />
321 lines
5.8 KiB
SCSS
Vendored
321 lines
5.8 KiB
SCSS
Vendored
.chat-message-creator {
|
|
&__section {
|
|
display: flex;
|
|
width: 100%;
|
|
padding-inline: 1rem 0.5rem;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
&__list-container {
|
|
margin-top: var(--space-4);
|
|
}
|
|
|
|
&__add-members {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-direction: column;
|
|
}
|
|
|
|
&__participants-count {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__group-icon {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
.chat-message-creator__member & {
|
|
height: 24px;
|
|
width: 24px;
|
|
|
|
.d-icon.d-icon-user-group {
|
|
color: var(--primary-high);
|
|
}
|
|
}
|
|
|
|
.-group & {
|
|
width: 26px;
|
|
height: 26px;
|
|
|
|
.d-icon-user-group {
|
|
padding: 5px 5px;
|
|
box-sizing: border-box;
|
|
color: var(--primary-high);
|
|
background: var(--primary-low);
|
|
border-radius: 100%;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__member {
|
|
padding: 0 0.25rem;
|
|
gap: var(--space-1);
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
animation: popIn 0.1s ease-out;
|
|
}
|
|
}
|
|
|
|
&__add-members__close-btn {
|
|
align-self: flex-start;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
&__add-members-header {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
|
|
&-container {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
&__new-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
padding-inline: 1rem;
|
|
|
|
&-container {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 1px solid var(--content-border-color);
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
&__input {
|
|
padding-inline: 0 !important;
|
|
width: 100% !important;
|
|
margin: 0 !important;
|
|
border: 0 !important;
|
|
outline: 0 !important;
|
|
}
|
|
}
|
|
|
|
&__new-group-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
flex-grow: 1;
|
|
gap: 1rem;
|
|
padding: 1rem 1rem 0;
|
|
|
|
&-container {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
border-top: 1px solid var(--content-border-color);
|
|
}
|
|
}
|
|
|
|
&__warning-max-members {
|
|
padding-inline: 1rem;
|
|
}
|
|
|
|
&__members {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
padding: 0 0.5rem;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
border: var(--d-input-border);
|
|
box-sizing: border-box;
|
|
border-radius: var(--d-input-border-radius);
|
|
|
|
&:focus-within {
|
|
@include default-focus;
|
|
}
|
|
|
|
.d-icon-magnifying-glass {
|
|
color: var(--primary-high);
|
|
}
|
|
|
|
&-container {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
&-input {
|
|
background: none !important;
|
|
margin: 0 !important;
|
|
border: 0 !important;
|
|
outline: 0 !important;
|
|
min-width: 200px;
|
|
flex-grow: 1;
|
|
padding-inline: 0 !important;
|
|
}
|
|
}
|
|
|
|
&__members-count {
|
|
white-space: nowrap;
|
|
color: var(--primary-medium);
|
|
|
|
&.-reached-limit {
|
|
color: var(--danger);
|
|
}
|
|
}
|
|
|
|
&__add-members-footer {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
justify-content: flex-end;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--content-border-color);
|
|
|
|
&-container {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
&__list {
|
|
list-style: none;
|
|
margin: 0;
|
|
gap: 0.25rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
[data-disabled] {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&-item {
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
padding: 0.5rem 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.d-icon-users {
|
|
padding: 4px 4px;
|
|
box-sizing: border-box;
|
|
color: var(--tertiary);
|
|
background: var(--primary-low);
|
|
border-radius: 100%;
|
|
width: 24px;
|
|
height: 22px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 0;
|
|
}
|
|
|
|
&.-highlighted {
|
|
background: var(--tertiary-very-low);
|
|
}
|
|
}
|
|
|
|
.user-status {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.fk-d-tooltip__trigger-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25em;
|
|
|
|
.emoji {
|
|
width: var(--font-down-2-rem);
|
|
height: var(--font-down-2-rem);
|
|
}
|
|
|
|
.user-status-message-description {
|
|
@include ellipsis;
|
|
font-size: var(--font-down-2-rem);
|
|
color: var(--primary-high);
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&__group-name {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
&__chatable {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5em;
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
|
|
span[class^="chat-user-display-name__"]:not(.-first) {
|
|
color: var(--primary-high);
|
|
font-size: var(--font-down-1-rem);
|
|
}
|
|
|
|
&.-category-channel .chat-channel-title__category-badge {
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 24px;
|
|
}
|
|
|
|
.unread-indicator {
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--tertiary);
|
|
border-radius: 100%;
|
|
flex-shrink: 0;
|
|
|
|
&.-urgent {
|
|
background: var(--success);
|
|
}
|
|
}
|
|
}
|
|
|
|
&__search-input {
|
|
display: flex;
|
|
align-items: center;
|
|
border: 1px solid var(--primary-400);
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
height: var(--d-control-height);
|
|
padding: 0 0.5rem;
|
|
border-radius: var(--d-input-border-radius);
|
|
|
|
&:focus,
|
|
&:focus-within {
|
|
@include default-focus;
|
|
}
|
|
|
|
&-container {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
&__search-icon {
|
|
background: none !important;
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
&__input {
|
|
width: 100% !important;
|
|
}
|
|
|
|
&__input,
|
|
&__input:focus {
|
|
margin: 0 !important;
|
|
border: 0 !important;
|
|
appearance: none !important;
|
|
outline: none !important;
|
|
background: none !important;
|
|
}
|
|
}
|
|
|
|
@keyframes popIn {
|
|
0% {
|
|
transform: scale(0.1);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|