mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-30 03:22:17 +00:00
stylelint fix
This commit is contained in:
parent
78283bd98a
commit
d4501f2928
@ -210,7 +210,7 @@ body.has-ai-conversations-sidebar {
|
|||||||
line-height: var(--line-height-medium);
|
line-height: var(--line-height-medium);
|
||||||
|
|
||||||
// optical centering for layout balance
|
// optical centering for layout balance
|
||||||
@media screen and (min-height: 600px) {
|
@media screen and (height >= 600px) {
|
||||||
margin-top: -6em;
|
margin-top: -6em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
background: linear-gradient(rgba(255, 255, 255, 0), var(--secondary));
|
background: linear-gradient(rgb(255, 255, 255, 0), var(--secondary));
|
||||||
height: 50%;
|
height: 50%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@ -118,7 +118,7 @@
|
|||||||
padding-top: 0.5em;
|
padding-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include breakpoint("medium", min-width) {
|
@include viewport.from(lg) {
|
||||||
.search-menu .menu-panel:has(.ai-search-discoveries__discoveries-title) {
|
.search-menu .menu-panel:has(.ai-search-discoveries__discoveries-title) {
|
||||||
width: 80vw;
|
width: 80vw;
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
|
@ -651,7 +651,7 @@
|
|||||||
|
|
||||||
.desktop-view & {
|
.desktop-view & {
|
||||||
// a little extra space for extra narrow desktop view
|
// a little extra space for extra narrow desktop view
|
||||||
@media screen and (max-width: 675px) {
|
@media screen and (width <= 675px) {
|
||||||
span {
|
span {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
border-radius: var(--d-border-radius);
|
border-radius: var(--d-border-radius);
|
||||||
border: 1px solid var(--primary-low);
|
border: 1px solid var(--primary-low);
|
||||||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.125);
|
box-shadow: 0 0 4px rgb(0, 0, 0, 0.125);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@use "lib/viewport";
|
||||||
|
|
||||||
.ai-llms-list-editor {
|
.ai-llms-list-editor {
|
||||||
&__header {
|
&__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -52,7 +54,7 @@
|
|||||||
background: inherit;
|
background: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include breakpoint("tablet", min-width) {
|
@include viewport.from(md) {
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
&:first-child {
|
&:first-child {
|
||||||
@ -84,7 +86,7 @@
|
|||||||
gap: 0;
|
gap: 0;
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
|
|
||||||
@include breakpoint("mobile-extra-large", min-width) {
|
@include viewport.from(sm) {
|
||||||
margin-bottom: 3em;
|
margin-bottom: 3em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -95,7 +97,7 @@
|
|||||||
line-height: var(--line-height-large);
|
line-height: var(--line-height-large);
|
||||||
align-self: start;
|
align-self: start;
|
||||||
|
|
||||||
@include breakpoint("mobile-extra-large", min-width) {
|
@include viewport.from(sm) {
|
||||||
max-width: 17em;
|
max-width: 17em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -135,7 +137,7 @@
|
|||||||
font-size: var(--font-down-1);
|
font-size: var(--font-down-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@include breakpoint("tablet") {
|
@include viewport.until(md) {
|
||||||
.ai-llm-list__description {
|
.ai-llm-list__description {
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.ai-usage {
|
.ai-usage {
|
||||||
--chart-response-color: rgba(75, 192, 192, 0.8);
|
--chart-response-color: rgb(75, 192, 192, 0.8);
|
||||||
--chart-request-color: rgba(153, 102, 255, 0.8);
|
--chart-request-color: rgb(153, 102, 255, 0.8);
|
||||||
--chart-cached-color: rgba(153, 102, 255, 0.4);
|
--chart-cached-color: rgb(153, 102, 255, 0.4);
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
|
||||||
&__filters-dates {
|
&__filters-dates {
|
||||||
@ -89,7 +89,7 @@
|
|||||||
gap: 2em;
|
gap: 2em;
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (width <= 768px) {
|
||||||
grid-template-columns: none;
|
grid-template-columns: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@use "lib/viewport";
|
||||||
|
|
||||||
.dashboard.dashboard-sentiment {
|
.dashboard.dashboard-sentiment {
|
||||||
.charts {
|
.charts {
|
||||||
display: grid;
|
display: grid;
|
||||||
@ -152,7 +154,7 @@
|
|||||||
border-bottom: 1px solid var(--primary-low);
|
border-bottom: 1px solid var(--primary-low);
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
@include breakpoint("mobile-extra-large") {
|
@include viewport.until(sm) {
|
||||||
.d-button-label {
|
.d-button-label {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -194,17 +196,17 @@
|
|||||||
|
|
||||||
&[data-sentiment-score="positive"] {
|
&[data-sentiment-score="positive"] {
|
||||||
color: rgb(var(--d-sentiment-report-positive-rgb));
|
color: rgb(var(--d-sentiment-report-positive-rgb));
|
||||||
background: rgba(var(--d-sentiment-report-positive-rgb), 0.1);
|
background: rgb(var(--d-sentiment-report-positive-rgb), 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
&[data-sentiment-score="neutral"] {
|
&[data-sentiment-score="neutral"] {
|
||||||
color: rgb(var(--d-sentiment-report-neutral-rgb));
|
color: rgb(var(--d-sentiment-report-neutral-rgb));
|
||||||
background: rgba(var(--d-sentiment-report-neutral-rgb), 0.1);
|
background: rgb(var(--d-sentiment-report-neutral-rgb), 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
&[data-sentiment-score="negative"] {
|
&[data-sentiment-score="negative"] {
|
||||||
color: rgb(var(--d-sentiment-report-negative-rgb));
|
color: rgb(var(--d-sentiment-report-negative-rgb));
|
||||||
background: rgba(var(--d-sentiment-report-negative-rgb), 0.1);
|
background: rgb(var(--d-sentiment-report-negative-rgb), 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@use "lib/viewport";
|
||||||
|
|
||||||
.topic-map {
|
.topic-map {
|
||||||
// Hide the Top Replies label if summarization is enabled
|
// Hide the Top Replies label if summarization is enabled
|
||||||
&:has(.topic-map__additional-contents .ai-summarization-button) {
|
&:has(.topic-map__additional-contents .ai-summarization-button) {
|
||||||
@ -71,7 +73,7 @@
|
|||||||
grid-template-areas: "summarized regenerate" " outdated regenerate";
|
grid-template-areas: "summarized regenerate" " outdated regenerate";
|
||||||
grid-template-columns: 1fr auto;
|
grid-template-columns: 1fr auto;
|
||||||
|
|
||||||
@include breakpoint(mobile-large) {
|
@include viewport.until(sm) {
|
||||||
gap: 0.25em 0.5em;
|
gap: 0.25em 0.5em;
|
||||||
grid-template-areas: "summarized summarized" "regenerate outdated";
|
grid-template-areas: "summarized summarized" "regenerate outdated";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user