62bef018ea
* main: Don't choke when rendering commands where the card was deleted Update tests Rework system events test: add missing assertions dep: bump active_record-tenanted to fix URI support Remove hyphen from "Un-do" Prevent default when handling keyboard shortcuts dep: update AR::Tenanted to support database URIs Detect platform and label the correct hotkey shortcut Things got too tight Don't require TLS for Beamer at the moment dep: update dependencies # Conflicts: # Gemfile # Gemfile.lock # app/assets/stylesheets/comments.css
139 lines
2.7 KiB
CSS
139 lines
2.7 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: 2rem;
|
|
|
|
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 {
|
|
.comment--system & strong {
|
|
display: none;
|
|
}
|
|
|
|
.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--mine_ & {
|
|
margin-inline: calc(var(--comment-padding-inline) * -0.75);
|
|
}
|
|
|
|
.comment--system & {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.comment__body {
|
|
.comment--system & {
|
|
text-align: center;
|
|
}
|
|
|
|
* {
|
|
&:first-child {
|
|
margin-block-start: 0;
|
|
}
|
|
|
|
&:last-child {
|
|
margin-block-end: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.comment__content {
|
|
--btn-icon-size: 1.2rem;
|
|
--btn-size: var(--reaction-size);
|
|
|
|
background-color: var(--color-ink-lightest);
|
|
border-radius: 0.2em;
|
|
padding:
|
|
var(--comment-padding-block)
|
|
var(--comment-padding-inline)
|
|
calc(var(--comment-padding-block) * 1.5)
|
|
var(--comment-padding-inline);
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.comment__edit {
|
|
.comment:not(.comment--mine) & {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.comment__reaction {
|
|
opacity: 0.66;
|
|
|
|
@media (any-hover: hover) {
|
|
.comment:not(:hover) & {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.comment--mine & {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.comment--system {
|
|
--comment-padding-block: calc(var(--block-space) * 0.66);
|
|
|
|
line-height: 1.2;
|
|
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__author {
|
|
a {
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
.comment__body {
|
|
margin-block-start: calc(var(--block-space-half) * -0.33);
|
|
text-align: center !important;
|
|
}
|
|
}
|
|
}
|