mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 10:43:41 +08:00
332 lines
6.0 KiB
SCSS
332 lines
6.0 KiB
SCSS
.chat-message-creator {
|
|
&__section {
|
|
display: flex;
|
|
width: 100%;
|
|
padding-inline: 1rem 0.5rem;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
&__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 {
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
animation: popIn 0.1s ease-out;
|
|
}
|
|
padding: 0 0.25rem;
|
|
border-radius: var(--border-radius);
|
|
background: var(--primary-very-low);
|
|
gap: 0.25rem;
|
|
|
|
&:hover {
|
|
.discourse-no-touch & {
|
|
background: var(--primary-very-low);
|
|
color: var(--primary);
|
|
border-color: var(--tertiary);
|
|
|
|
.d-icon-xmark {
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.d-icon-xmark {
|
|
margin-left: 0.25rem;
|
|
}
|
|
}
|
|
|
|
&__add-members__close-btn {
|
|
align-self: flex-start;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
&__add-members-header {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
gap: 0.5rem;
|
|
|
|
&-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(--primary-low);
|
|
}
|
|
|
|
&__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(--primary-low);
|
|
}
|
|
}
|
|
|
|
&__participants-count {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__warning-max-members {
|
|
padding-inline: 1rem;
|
|
}
|
|
|
|
&__members {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
padding: 0.5rem;
|
|
background: var(--primary-low);
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
border-radius: var(--border-radius);
|
|
min-height: 50px;
|
|
box-sizing: border-box;
|
|
|
|
.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(--primary-low);
|
|
|
|
&-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: 42px;
|
|
padding: 0 0.5rem;
|
|
|
|
&: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;
|
|
}
|
|
}
|
|
}
|