mirror of
https://github.com/discourse/discourse.git
synced 2026-08-15 17:24:47 +08:00
This introduces some new CSS variables that I would have found useful while building some themes recently: for /categories — this helps control the category box width `--category-boxes-min-width` `--category-boxes-max-width` rather than a mixin, just a couple simple variables for quotes `--d-post-aside-background` `--d-post-aside-border-left` nice to be able to control the heading font-weight in one place with `--heading-font-weight` managing the button colors in the header `--d-header-icon-color` `--d-header-icon-color--hover` `--d-header-icon-color--active` `--d-header-icon-background--hover` `--d-header-icon-background--active` we have some calculations in the welcome banner for the search dropdown height, these help there and make it easier to adjust styles generally: `--d-welcome-banner-text-alignment` `--d-welcome-banner-header-size` `--d-welcome-banner-padding-top` `--d-welcome-banner-padding-right` `--d-welcome-banner-padding-bottom` `--d-welcome-banner-padding-left` `--d-welcome-banner-title-margin-bottom` for links, if you'd like to change the decoration `--d-link-text-decoration`
142 lines
2.4 KiB
SCSS
Vendored
142 lines
2.4 KiB
SCSS
Vendored
.chat-transcript {
|
|
@extend .chat-message-container;
|
|
box-sizing: border-box;
|
|
min-height: 50px;
|
|
padding: 12px;
|
|
margin: 1rem 0;
|
|
background: var(--d-post-aside-background);
|
|
border-left: var(--d-post-aside-border-left);
|
|
|
|
.chat-messages-container & {
|
|
display: block;
|
|
}
|
|
|
|
&.chat-transcript-chained {
|
|
margin: 0;
|
|
border-top: 0;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
details > .chat-transcript-chained:first-of-type {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.chat-transcript-meta {
|
|
color: var(--primary-high);
|
|
font-size: var(--font-down-2-rem);
|
|
border-bottom: 1px solid var(--content-border-color);
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.5rem;
|
|
|
|
img.emoji {
|
|
height: 1.1em;
|
|
width: 1.1em;
|
|
}
|
|
}
|
|
|
|
.chat-transcript-separator {
|
|
font-size: var(--font-down-3-rem);
|
|
color: var(--primary-high);
|
|
padding: 0 0.5rem;
|
|
}
|
|
|
|
.chat-transcript-username {
|
|
color: var(--primary-high-or-secondary-low);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.chat-transcript-datetime {
|
|
color: var(--primary-high);
|
|
font-size: var(--font-down-2-rem);
|
|
padding: 0 0.5rem;
|
|
|
|
a {
|
|
color: var(--primary-high);
|
|
}
|
|
}
|
|
|
|
.chat-transcript-messages {
|
|
p {
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
p:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.lazy-video-container {
|
|
height: 150px;
|
|
max-width: calc(150px / 9 * 16);
|
|
margin: 1em 0 0.5em 0;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.topic-body .cooked & {
|
|
> details {
|
|
padding: 0.5rem;
|
|
|
|
> summary {
|
|
display: flex;
|
|
|
|
&::before {
|
|
line-height: 1;
|
|
}
|
|
|
|
.chat-transcript-thread {
|
|
min-width: 0;
|
|
|
|
&-header {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-transcript-user-avatar .avatar {
|
|
aspect-ratio: 20 / 20;
|
|
}
|
|
|
|
.chat-transcript-user {
|
|
display: flex;
|
|
flex-wrap: wrap-reverse;
|
|
gap: 0.25rem 0;
|
|
align-items: baseline;
|
|
|
|
.chat-transcript-user-avatar {
|
|
padding-right: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.chat-transcript-reactions {
|
|
margin-top: 0.5em;
|
|
|
|
.chat-transcript-reaction {
|
|
@include chat-reaction;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.chat-transcript-images.onebox {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
img {
|
|
width: auto;
|
|
max-height: 150px;
|
|
margin-right: 0.5rem;
|
|
margin-top: 0.5em;
|
|
}
|
|
}
|
|
|
|
pre code {
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
.ProseMirror {
|
|
.chat-transcript {
|
|
white-space: normal;
|
|
}
|
|
}
|