Skip to content

Commit d4501f2

Browse files
committed
stylelint fix
1 parent 78283bd commit d4501f2

File tree

8 files changed

+24
-18
lines changed

8 files changed

+24
-18
lines changed

assets/stylesheets/modules/ai-bot-conversations/common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ body.has-ai-conversations-sidebar {
210210
line-height: var(--line-height-medium);
211211

212212
// optical centering for layout balance
213-
@media screen and (min-height: 600px) {
213+
@media screen and (height >= 600px) {
214214
margin-top: -6em;
215215
}
216216
}

assets/stylesheets/modules/ai-bot/common/ai-discobot-discoveries.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
content: "";
3131
position: absolute;
3232
display: block;
33-
background: linear-gradient(rgba(255, 255, 255, 0), var(--secondary));
33+
background: linear-gradient(rgb(255, 255, 255, 0), var(--secondary));
3434
height: 50%;
3535
width: 100%;
3636
bottom: 0;
@@ -118,7 +118,7 @@
118118
padding-top: 0.5em;
119119
}
120120

121-
@include breakpoint("medium", min-width) {
121+
@include viewport.from(lg) {
122122
.search-menu .menu-panel:has(.ai-search-discoveries__discoveries-title) {
123123
width: 80vw;
124124
max-width: 900px;

assets/stylesheets/modules/ai-helper/common/ai-helper.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@
651651

652652
.desktop-view & {
653653
// a little extra space for extra narrow desktop view
654-
@media screen and (max-width: 675px) {
654+
@media screen and (width <= 675px) {
655655
span {
656656
display: none;
657657
}

assets/stylesheets/modules/ai-helper/mobile/ai-helper.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
padding: 0.5em;
3636
border-radius: var(--d-border-radius);
3737
border: 1px solid var(--primary-low);
38-
box-shadow: 0 0 4px rgba(0, 0, 0, 0.125);
38+
box-shadow: 0 0 4px rgb(0, 0, 0, 0.125);
3939
overflow: auto;
4040
overscroll-behavior: contain;
4141
}

assets/stylesheets/modules/llms/common/ai-llms-editor.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "lib/viewport";
2+
13
.ai-llms-list-editor {
24
&__header {
35
display: flex;
@@ -52,7 +54,7 @@
5254
background: inherit;
5355
}
5456

55-
@include breakpoint("tablet", min-width) {
57+
@include viewport.from(md) {
5658
th,
5759
td {
5860
&:first-child {
@@ -84,7 +86,7 @@
8486
gap: 0;
8587
margin-bottom: 2em;
8688

87-
@include breakpoint("mobile-extra-large", min-width) {
89+
@include viewport.from(sm) {
8890
margin-bottom: 3em;
8991
}
9092
}
@@ -95,7 +97,7 @@
9597
line-height: var(--line-height-large);
9698
align-self: start;
9799

98-
@include breakpoint("mobile-extra-large", min-width) {
100+
@include viewport.from(sm) {
99101
max-width: 17em;
100102
}
101103
}
@@ -135,7 +137,7 @@
135137
font-size: var(--font-down-1);
136138
}
137139

138-
@include breakpoint("tablet") {
140+
@include viewport.until(md) {
139141
.ai-llm-list__description {
140142
max-width: 80%;
141143
}

assets/stylesheets/modules/llms/common/usage.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.ai-usage {
2-
--chart-response-color: rgba(75, 192, 192, 0.8);
3-
--chart-request-color: rgba(153, 102, 255, 0.8);
4-
--chart-cached-color: rgba(153, 102, 255, 0.4);
2+
--chart-response-color: rgb(75, 192, 192, 0.8);
3+
--chart-request-color: rgb(153, 102, 255, 0.8);
4+
--chart-cached-color: rgb(153, 102, 255, 0.4);
55
padding: 1em;
66

77
&__filters-dates {
@@ -89,7 +89,7 @@
8989
gap: 2em;
9090
margin-top: 2em;
9191

92-
@media (max-width: 768px) {
92+
@media (width <= 768px) {
9393
grid-template-columns: none;
9494
display: flex;
9595
flex-direction: column;

assets/stylesheets/modules/sentiment/common/dashboard.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "lib/viewport";
2+
13
.dashboard.dashboard-sentiment {
24
.charts {
35
display: grid;
@@ -152,7 +154,7 @@
152154
border-bottom: 1px solid var(--primary-low);
153155
margin-bottom: 1rem;
154156

155-
@include breakpoint("mobile-extra-large") {
157+
@include viewport.until(sm) {
156158
.d-button-label {
157159
display: none;
158160
}
@@ -194,17 +196,17 @@
194196

195197
&[data-sentiment-score="positive"] {
196198
color: rgb(var(--d-sentiment-report-positive-rgb));
197-
background: rgba(var(--d-sentiment-report-positive-rgb), 0.1);
199+
background: rgb(var(--d-sentiment-report-positive-rgb), 0.1);
198200
}
199201

200202
&[data-sentiment-score="neutral"] {
201203
color: rgb(var(--d-sentiment-report-neutral-rgb));
202-
background: rgba(var(--d-sentiment-report-neutral-rgb), 0.1);
204+
background: rgb(var(--d-sentiment-report-neutral-rgb), 0.1);
203205
}
204206

205207
&[data-sentiment-score="negative"] {
206208
color: rgb(var(--d-sentiment-report-negative-rgb));
207-
background: rgba(var(--d-sentiment-report-negative-rgb), 0.1);
209+
background: rgb(var(--d-sentiment-report-negative-rgb), 0.1);
208210
}
209211
}
210212

assets/stylesheets/modules/summarization/common/ai-summary.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "lib/viewport";
2+
13
.topic-map {
24
// Hide the Top Replies label if summarization is enabled
35
&:has(.topic-map__additional-contents .ai-summarization-button) {
@@ -71,7 +73,7 @@
7173
grid-template-areas: "summarized regenerate" " outdated regenerate";
7274
grid-template-columns: 1fr auto;
7375

74-
@include breakpoint(mobile-large) {
76+
@include viewport.until(sm) {
7577
gap: 0.25em 0.5em;
7678
grid-template-areas: "summarized summarized" "regenerate outdated";
7779
}

0 commit comments

Comments
 (0)