/** * A single feature request: its vote button, status, categories and Follow * button above the description, and the official response below it. */ @use "../shared/base"; @use "../shared/request"; .mwtfrs-single { @include base.tokens; } .mwtfrs-single__back { margin: 0 0 var(--mwtfrs-gap); font-size: 0.875em; } .mwtfrs-single__row { display: flex; align-items: center; gap: var(--mwtfrs-gap); .mwtfrs-request__vote { flex: none; width: 3.5rem; } } .mwtfrs-single__info { display: grid; gap: 0.375rem; min-width: 0; } /* Follow button, for logged-in users */ .mwtfrs-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.75rem; margin: 0; font-size: 0.875em; } .mwtfrs-follow__text { color: var(--mwtfrs-muted); } // The repeated class outranks themes that style every button, as for the // vote button. .mwtfrs-follow .mwtfrs-follow__button.mwtfrs-follow__button.mwtfrs-follow__button { min-height: 2rem; margin: 0; padding: 0.125rem 0.75rem; border: 1px solid var(--mwtfrs-field-line); border-radius: 4px; box-shadow: none; background: transparent; color: inherit; font: inherit; line-height: 1.2; text-decoration: none; text-transform: none; cursor: pointer; &:hover { border-color: currentcolor; background: transparent; color: inherit; } &:focus-visible { outline: 2px solid currentcolor; outline-offset: 2px; } &:disabled { cursor: progress; opacity: 0.7; } } /* Official response, pinned below the description */ .mwtfrs-official-response { @include base.tokens; display: grid; gap: 0.5rem; margin-block: var(--mwtfrs-gap); padding: var(--mwtfrs-gap); border: 1px solid var(--mwtfrs-line); border-left: 4px solid var(--mwtfrs-accent); border-radius: var(--mwtfrs-radius); } // Two classes, because block themes style headings with a selector as // strong as one class, and theirs loads later. .mwtfrs-official-response .mwtfrs-official-response__title { margin: 0; font-family: inherit; font-size: 1em; font-weight: 700; line-height: 1.3; letter-spacing: normal; } .mwtfrs-official-response__text { > :first-child { margin-top: 0; } > :last-child { margin-bottom: 0; } } .mwtfrs-official-response__meta { margin: 0; color: var(--mwtfrs-muted); font-size: 0.875em; } /* The same response in the comments, marked with a label */ .mwtfrs-official-label { display: inline-block; margin: 0 0 0.5em; padding: 0.125em 0.5em; border: 1px solid currentcolor; border-radius: 4px; font-size: 0.8125em; line-height: 1.5; } // For moderators only: the link that marks a team comment or removes its // mark, next to the comment's Reply link. .mwtfrs-official-toggle { margin-inline-start: 0.75em; } // The same link below the text of a comment that has no Reply link. .mwtfrs-official-action { margin: 0.5em 0 0; font-size: 0.8125em; }