discourse-signatures/assets/stylesheets/common/signatures.scss
Rafael dos Santos Silva 3af3307708
FEATURE: Add group, category, and display restrictions for signatures (#105)
* FEATURE: Add group, category, and display restrictions for signatures

Adds five new site settings to control signature behavior:

- signatures_allowed_groups: restrict signatures to specific groups
  (server-side enforced in both serializers and user update hook)
- signatures_show_in_categories: limit signature display to specific categories
- signatures_first_post_only: only show signatures on the OP
- signatures_max_length: cap advanced mode signature length
- signatures_max_image_height: constrain signature image height

Also hardens URL validation (HTTP/HTTPS only) and reduces
signature_url max_length from 32KB to 2048.

All defaults are backward-compatible (empty/false = no change).
2026-03-12 15:52:35 -04:00

31 lines
476 B
SCSS

.user-signature img {
max-width: calc(100% - 5px);
}
.signature-img {
max-width: calc(100% - 5px);
}
.signature-preferences .d-editor {
width: 100%;
.d-editor-preview-wrapper {
display: none;
}
.d-editor-textarea-wrapper {
flex: 1;
}
}
.signature-char-count {
display: block;
margin-top: 0.25em;
font-size: var(--font-down-1);
color: var(--primary-medium);
}
.signature-not-allowed {
color: var(--primary-medium);
font-style: italic;
}