mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 14:48:44 +08:00
A follow-up to #31343. ``` WARNING: Sass's behavior for declarations that appear after nested rules will be changing to match the behavior specified by CSS in an upcoming version. To keep the existing behavior, move the declaration above the nested rule. To opt into the new behavior, wrap the declaration in `& {}`. More info: https://sass-lang.com/d/mixed-decls ```
96 lines
1.5 KiB
SCSS
Vendored
96 lines
1.5 KiB
SCSS
Vendored
.chat-composer-button {
|
|
box-sizing: border-box;
|
|
border: 0;
|
|
height: 50px;
|
|
background: none;
|
|
padding-inline: 0.75rem;
|
|
|
|
@include breakpoint(mobile-large) {
|
|
width: 50px;
|
|
}
|
|
|
|
.is-disabled & {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&__wrapper {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
|
|
&:hover {
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
.is-focused & {
|
|
color: var(--primary-high);
|
|
}
|
|
|
|
.is-disabled & {
|
|
color: var(--primary-low-mid);
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
&.-send {
|
|
will-change: scale;
|
|
|
|
@keyframes sendingScales {
|
|
0% {
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
50% {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(0.9);
|
|
}
|
|
}
|
|
|
|
.is-send-disabled & {
|
|
cursor: default;
|
|
}
|
|
|
|
.chat-composer.is-sending & {
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
animation: sendingScales 1s infinite linear;
|
|
}
|
|
}
|
|
|
|
.d-icon {
|
|
.is-send-enabled.is-focused & {
|
|
color: var(--tertiary);
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.d-icon {
|
|
.is-send-enabled & {
|
|
transform: scale(1.2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.-emoji {
|
|
transition: transform 0.1s ease-in-out;
|
|
|
|
&:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.d-icon {
|
|
.is-focused & {
|
|
color: var(--tertiary);
|
|
}
|
|
}
|
|
}
|
|
}
|