2024-07-25 09:47:18 -04:00
|
|
|
.topic-map {
|
|
|
|
// Hide the Top Replies label if summarization is enabled
|
|
|
|
&:has(.topic-map__additional-contents .ai-summarization-button) {
|
|
|
|
.top-replies {
|
|
|
|
.d-icon {
|
|
|
|
margin: 0;
|
|
|
|
height: 1.2em;
|
|
|
|
}
|
|
|
|
.d-button-label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2024-07-22 21:21:23 -04:00
|
|
|
}
|
|
|
|
|
2024-07-25 15:10:53 -04:00
|
|
|
// Hide the Summarize label when there are many stats
|
2024-07-25 09:47:18 -04:00
|
|
|
&:has(.--many-stats):has(.top-replies) .topic-map__additional-contents {
|
2024-07-25 15:10:53 -04:00
|
|
|
button {
|
|
|
|
.d-icon {
|
|
|
|
margin: 0;
|
|
|
|
height: 1.2em;
|
|
|
|
}
|
|
|
|
.d-button-label {
|
|
|
|
display: none;
|
2024-07-25 09:47:18 -04:00
|
|
|
}
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
}
|
|
|
|
|
2024-07-25 09:47:18 -04:00
|
|
|
.topic-map__additional-contents {
|
|
|
|
.ai-summarization-button {
|
|
|
|
padding-block: 0.5em;
|
2024-07-02 11:51:59 -04:00
|
|
|
display: flex;
|
2024-07-25 09:47:18 -04:00
|
|
|
gap: 0.5em;
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-07-25 09:47:18 -04:00
|
|
|
button span {
|
|
|
|
white-space: nowrap;
|
2024-07-02 11:51:59 -04:00
|
|
|
}
|
2024-07-25 09:47:18 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-07-25 09:47:18 -04:00
|
|
|
.topic-map__ai-summary-content {
|
2024-08-26 11:32:39 -04:00
|
|
|
.ai-summary-container {
|
2024-08-29 19:32:05 -04:00
|
|
|
width: 100vw;
|
2024-08-26 11:32:39 -04:00
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
.ai-summary {
|
|
|
|
&__list {
|
|
|
|
list-style: none;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
&__list-item {
|
|
|
|
background: var(--primary-300);
|
|
|
|
border-radius: var(--d-border-radius);
|
|
|
|
margin-right: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
height: 1em;
|
|
|
|
opacity: 0;
|
|
|
|
display: block;
|
|
|
|
&:nth-child(1) {
|
|
|
|
width: 10%;
|
2024-07-25 09:47:18 -04:00
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(2) {
|
|
|
|
width: 12%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(3) {
|
|
|
|
width: 18%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(4) {
|
|
|
|
width: 14%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(5) {
|
|
|
|
width: 18%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(6) {
|
|
|
|
width: 14%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(7) {
|
|
|
|
width: 22%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(8) {
|
|
|
|
width: 05%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(9) {
|
|
|
|
width: 25%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(10) {
|
|
|
|
width: 14%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(11) {
|
|
|
|
width: 18%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(12) {
|
|
|
|
width: 12%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(13) {
|
|
|
|
width: 22%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(14) {
|
|
|
|
width: 18%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(15) {
|
|
|
|
width: 13%;
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(16) {
|
|
|
|
width: 22%;
|
|
|
|
}
|
2024-07-25 09:47:18 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(17) {
|
|
|
|
width: 19%;
|
|
|
|
}
|
2024-07-25 09:47:18 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(18) {
|
|
|
|
width: 13%;
|
|
|
|
}
|
2024-07-25 09:47:18 -04:00
|
|
|
|
2024-08-26 11:32:39 -04:00
|
|
|
&:nth-child(19) {
|
|
|
|
width: 22%;
|
2024-07-02 11:51:59 -04:00
|
|
|
}
|
2024-08-26 11:32:39 -04:00
|
|
|
|
|
|
|
&:nth-child(20) {
|
|
|
|
width: 25%;
|
2024-07-02 11:51:59 -04:00
|
|
|
}
|
2024-08-26 11:32:39 -04:00
|
|
|
&.is-shown {
|
|
|
|
opacity: 1;
|
2024-07-02 11:51:59 -04:00
|
|
|
}
|
2024-08-26 11:32:39 -04:00
|
|
|
&.show {
|
|
|
|
animation: appear 0.5s cubic-bezier(0.445, 0.05, 0.55, 0.95) 0s forwards;
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
animation-duration: 0s;
|
2024-07-25 09:47:18 -04:00
|
|
|
}
|
2024-08-26 11:32:39 -04:00
|
|
|
}
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
&.blink {
|
|
|
|
animation: blink 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
|
2024-07-25 09:47:18 -04:00
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
}
|
|
|
|
}
|
2024-08-26 11:32:39 -04:00
|
|
|
&__generating-text {
|
2024-07-25 09:47:18 -04:00
|
|
|
display: inline-block;
|
2024-08-26 11:32:39 -04:00
|
|
|
margin-left: 3px;
|
2024-07-25 09:47:18 -04:00
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
}
|
2024-08-26 11:32:39 -04:00
|
|
|
|
|
|
|
.placeholder-summary {
|
|
|
|
padding-top: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.placeholder-summary-text {
|
|
|
|
display: inline-block;
|
|
|
|
height: 1em;
|
|
|
|
margin-top: 0.6em;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.generated-summary p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.summarized-on p {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
gap: 0.25em;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.outdated-summary {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-end;
|
|
|
|
button {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
2024-07-02 11:51:59 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes appear {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes blink {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|