0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/discourse-rewind/assets/stylesheets/common/ai-usage.scss
Kris f0cb5f91ad
UX: various visual fixes to rewind plugin (#36535)
* Fixes ordering of reactions so it's in descending order

<img width="300" alt="image"
src="https://github.com/user-attachments/assets/6e4b4590-e751-4f32-aa20-679506219537"
/>

<img width="300" alt="image"
src="https://github.com/user-attachments/assets/6f4d091d-3df7-419c-a7e9-6372e8d40f49"
/>

* Puts avatar notification badges above the avatar shimmer
gif/notification

* Fixes an issue in dark mode where the banner in notifications had an
incorrect hover color

* Fixes an overflow issue with posts containing images on mobile
(removed a max-height)

* Disables animations for people with `prefers-reduced-motion` turned on

* Removes unused gif variant
2025-12-08 11:15:00 -05:00

116 lines
2.1 KiB
SCSS
Vendored

.--ai-usage {
.rewind-report-title {
display: none;
}
.matrix-container {
position: relative;
min-height: 600px;
background: var(--rewind-black);
overflow: hidden;
border-radius: 0;
outline: inset 1px solid var(--rewind-green);
outline-offset: 5px;
border: 2px solid var(--rewind-green);
box-shadow: 0 0 20px 10px rgb(0 255 0 / 0.2);
}
.matrix-rain {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.3;
@media (prefers-reduced-motion: reduce) {
display: none;
}
}
.matrix-content {
position: relative;
z-index: 1;
padding: 3em 1em 1em;
color: var(--rewind-green);
font-family: "Courier New", monospace;
}
.matrix-title {
font-size: 32px;
font-weight: bold;
text-align: center;
margin-bottom: 2em;
letter-spacing: 4px;
text-shadow: 0 0 5px var(--rewind-green);
.matrix-subhead {
font-size: var(--font-down-5);
font-weight: normal;
}
}
.matrix-stats {
display: flex;
justify-content: space-around;
margin-bottom: 3em;
flex-wrap: wrap;
gap: 2em;
}
.matrix-stat {
text-align: center;
flex: 1;
min-width: 150px;
}
.matrix-stat__label {
font-size: 12px;
letter-spacing: 2px;
margin-bottom: 0.5em;
opacity: 0.8;
}
.matrix-stat__value {
font-size: 36px;
font-weight: bold;
text-shadow: 0 0 5px var(--rewind-green);
}
.matrix-section {
margin-bottom: 2em;
}
.matrix-section__title {
font-size: 18px;
font-weight: bold;
margin-bottom: 1em;
letter-spacing: 2px;
text-shadow: 0 0 5px var(--rewind-green);
}
.matrix-list {
display: flex;
flex-direction: column;
gap: 0.75em;
}
.matrix-list__item {
display: flex;
justify-content: space-between;
padding: 0.75em 1em;
background: rgb(0, 255, 0, 0.05);
border: 1px solid rgb(0, 255, 0, 0.3);
border-radius: 4px;
}
.matrix-list__name {
text-transform: uppercase;
letter-spacing: 1px;
}
.matrix-list__count {
font-weight: bold;
text-shadow: 0 0 5px var(--rewind-green);
}
}