discourse/plugins/chat/assets/stylesheets/common/chat-composer-dropdown.scss
chapoi f29f131387
UX: composer use BEM + small tweaks to enabled/disabled styling (#21246)
- using BEM notation
- making animation linear instead of default ease
- small tweaks to composer state (disabled/send-disabled/send-enabled)
- fixing bug with disabled composer on mobile
2023-04-28 10:24:49 +02:00

55 lines
915 B
SCSS

[data-theme="chat-composer-drodown"] {
margin-left: 0.2rem;
.tippy-content {
padding: 0;
}
}
.chat-composer-dropdown__trigger-btn {
padding: 5px !important; // overwrite ios rule
border-radius: 100%;
background: var(--primary-med-or-secondary-high);
border: 1px solid transparent;
display: flex;
.d-icon {
color: var(--secondary-very-high);
}
&:focus {
border-color: var(--tertiary);
}
.discourse-no-touch &:hover {
background: var(--primary-high);
.d-icon {
color: var(--primary-low);
}
}
.chat-composer.is-disabled & {
background: var(--primary-400);
&:hover {
cursor: not-allowed;
}
}
}
.chat-composer-dropdown__list {
margin: 0;
list-style: none;
padding: 0.5rem;
}
.chat-composer-dropdown__action-btn {
background: none;
width: 100%;
justify-content: flex-start;
.d-icon {
color: var(--primary);
}
}