Files
fizzy/app/assets/stylesheets/web/comments.css
T
Adrien Maston 7a5a3c91f8 Merge branch 'main' into mobile-app/scoped-stylesheets
* main: (82 commits)
  We can remove ad-hoc handling now that we rely on page refreshes in the card perma
  Only broadcast when the preview changes, use the _later variant for the broadcast, add tests
  Update pinned cards when the title changes
  Rename to be more consistent
  Beautify board watchers list (#1946)
  Add missing data-attr on public board
  Fix hotkey text size on tiny viewports
  Use buil-in support for :self in Stimulus
  Save a bunch of invocations on morph events from children elements
  Fix: memoization was showing stale values when morphing
  GitHub actions: limit GITHUB_TOKEN permissions (#1933)
  Validate Identity email address
  Drop defunct user creation script
  Golden cards should be placed at the top
  Animate the column height with a stimulus controller so that it does not depend to the server to update when you D&D
  mise: respect .ruby-version
  Support custom validation messages
  Move css bit to the new blank slates CSS
  Prevent board names with only spaces and show validation message
  Keep the column color when D&D cards
  ...
2025-12-05 12:20:05 +01:00

135 lines
2.8 KiB
CSS

@layer components {
.comments {
--avatar-size: 2.33em;
--comment-padding-block: var(--block-space-half);
--comment-padding-inline: var(--inline-space-double);
--comment-max: 70ch;
--reaction-size: 1.6875rem;
display: flex;
flex-direction: column;
padding-inline: var(--inline-space);
place-items: center;
text-align: center;
@media (min-width: 160ch) {
padding-inline: var(--tray-size);
}
}
.comments__subscribers {
max-inline-size: var(--comment-max);
padding-inline: calc(var(--comment-padding-block) + var(--inline-space-double));
}
.comment {
margin-inline: auto;
max-inline-size: var(--comment-max);
position: relative;
house-md-toolbar {
margin-block-start: calc(var(--comment-padding-block) * -0.5);
}
.house-md-content {
padding: var(--comment-padding-block) 0 0;
}
}
.comment__author {
.btn {
font-weight: inherit;
}
}
.comment__avatar {
margin: calc(var(--comment-padding-block) * 0.75) calc(var(--comment-padding-inline) * -0.75);
z-index: 0;
}
.comment__body {
padding-inline-end: var(--reaction-size);
text-align: start;
.action-text-content {
> action-text-attachment:first-child figure {
margin-block-start: 0.5ch;
}
> :last-child {
margin-block-end: 0;
}
}
}
.comment__content {
--btn-icon-size: 1.2rem;
--btn-size: var(--reaction-size);
--comment-bg-color: var(--color-ink-lightest);
--lexxy-bg-color: var(--comment-bg-color);
background-color: var(--comment-bg-color);
border-radius: 0.2em;
padding:
var(--comment-padding-block)
calc(var(--comment-padding-inline) / 2)
calc(var(--comment-padding-block) * 1.5)
var(--comment-padding-inline);
word-wrap: break-word;
}
.comment__edit {
background-color: var(--color-ink-lightest);
}
.comment--system {
--comment-padding-block: var(--block-space-half);
max-inline-size: var(--comment-max);
text-align: center;
&::before {
/* Make up space for lack of avatar */
content: "";
display: flex;
inline-size: calc(var(--comment-padding-inline) * 0.75);
}
.comment__avatar {
display: none;
}
.comment__author {
a {
margin: 0 auto;
}
h3 {
margin-inline: auto;
}
strong {
display: none;
}
}
.comment__body {
padding: 0;
text-align: center;
}
.comment__content {
background-image: repeating-linear-gradient(
45deg in srgb,
var(--color-canvas) 0 1px,
var(--color-ink-lightest) 1px 10px
);
padding-inline: var(--comment-padding-inline);
}
.reactions {
display: none !important;
}
}
}