fluxer/fluxer_app/src/components/channel/textarea/TextareaButton.module.css
2026-01-01 21:05:54 +00:00

66 lines
1.6 KiB
CSS

/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.button {
display: flex;
align-items: center;
justify-content: center;
align-self: flex-start;
min-width: var(--textarea-button-height);
height: var(--textarea-button-height);
padding: 0;
color: var(--text-primary-muted);
transition: color var(--transition-normal);
cursor: pointer;
background: transparent;
border: none;
outline: none;
flex-shrink: 0;
}
.button:hover:not(:disabled) {
color: var(--text-primary);
}
.button:disabled {
cursor: not-allowed;
opacity: 0.7;
}
.button.selected {
color: var(--text-primary);
}
.icon {
width: var(--textarea-button-icon-size);
height: var(--textarea-button-icon-size);
flex-shrink: 0;
}
.buttonCompact {
composes: button;
height: var(--textarea-button-compact-height);
min-width: var(--textarea-button-compact-height);
}
.buttonCompact .icon {
width: var(--textarea-button-compact-icon-size);
height: var(--textarea-button-compact-icon-size);
}