Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 924f9cd

Browse files
committed
DEV: lint
1 parent 3f5c176 commit 924f9cd

File tree

1 file changed

+32
-6
lines changed
  • assets/stylesheets/modules/ai-bot-conversations

1 file changed

+32
-6
lines changed

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

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ body.has-ai-conversations-sidebar {
1616
width: 100%;
1717
}
1818
}
19+
1920
.sidebar-container {
2021
border: none;
2122
}
@@ -95,6 +96,7 @@ body.has-ai-conversations-sidebar {
9596

9697
.container.posts {
9798
margin-bottom: 0;
99+
98100
.topic-navigation.with-timeline {
99101
top: calc(var(--header-offset, 60px) + 5.5em);
100102
}
@@ -125,19 +127,24 @@ body.has-ai-conversations-sidebar {
125127
#topic-footer-buttons {
126128
width: calc(100% - 6.5em);
127129
margin-top: 0;
130+
128131
@media screen and (max-width: 924px) {
129132
max-width: unset;
130133
width: 100%;
131134
}
135+
132136
@media screen and (min-width: 1300px) {
133137
width: 100%;
134138
max-width: 51em;
135139
}
140+
136141
.topic-footer-main-buttons {
137142
justify-content: flex-end;
143+
138144
@media screen and (min-width: 1180px) {
139145
margin-right: 0.6em;
140146
}
147+
141148
@media screen and (max-width: 924px) {
142149
margin-right: 0.6em;
143150
}
@@ -156,6 +163,7 @@ body.has-ai-conversations-sidebar {
156163

157164
nav.post-controls .actions button {
158165
padding: 0.5em 0.65em;
166+
159167
&.reply {
160168
.d-icon {
161169
margin-right: 0.45em;
@@ -168,7 +176,6 @@ body.has-ai-conversations-sidebar {
168176
}
169177

170178
// custom header notification button
171-
172179
.user-menu.revamped .menu-tabs-container {
173180
display: none;
174181
}
@@ -183,6 +190,7 @@ body.has-ai-conversations-sidebar {
183190
#main-outlet {
184191
padding-top: 0;
185192
}
193+
186194
#main-outlet-wrapper #main-outlet {
187195
max-width: 95vw;
188196
overflow-x: hidden;
@@ -238,6 +246,7 @@ body.has-ai-conversations-sidebar {
238246
align-items: center;
239247
justify-content: center;
240248
height: calc(100dvh - var(--header-offset) - 1.25em);
249+
241250
@media screen and (min-width: 675px) {
242251
border: 1px solid var(--primary-low);
243252
padding: 2em 2em 3em;
@@ -253,6 +262,7 @@ body.has-ai-conversations-sidebar {
253262
width: 100%;
254263
max-width: 90dvw;
255264
margin-top: 2em;
265+
256266
@media screen and (min-width: 600px) {
257267
width: 80%;
258268
max-width: 46em;
@@ -269,6 +279,7 @@ body.has-ai-conversations-sidebar {
269279
resize: none;
270280
border-radius: var(--d-button-border-radius);
271281
max-height: 30vh;
282+
272283
&:focus {
273284
outline: none;
274285
border-color: var(--primary-high);
@@ -280,6 +291,7 @@ body.has-ai-conversations-sidebar {
280291
margin-bottom: 1em;
281292
display: flex;
282293
gap: 1em;
294+
283295
@media screen and (max-width: 600px) {
284296
padding-right: 2em;
285297
box-sizing: border-box;
@@ -289,7 +301,8 @@ body.has-ai-conversations-sidebar {
289301
font-size: var(--font-down-1);
290302
padding-bottom: 0.5em;
291303
margin-bottom: 0.5em;
292-
&:after {
304+
305+
&::after {
293306
position: absolute;
294307
content: "";
295308
width: 4em;
@@ -305,6 +318,7 @@ body.has-ai-conversations-sidebar {
305318

306319
button {
307320
display: flex;
321+
308322
.d-button-label {
309323
white-space: nowrap;
310324
}
@@ -318,12 +332,15 @@ body.has-ai-conversations-sidebar {
318332
text-align: center;
319333
font-size: var(--font-up-6);
320334
line-height: var(--line-height-medium);
335+
321336
@media screen and (min-height: 300px) {
322337
margin-top: -1em;
323338
}
339+
324340
@media screen and (min-height: 600px) {
325341
margin-top: -3em;
326342
}
343+
327344
@media screen and (min-height: 900px) {
328345
margin-top: -6em;
329346
}
@@ -333,9 +350,11 @@ body.has-ai-conversations-sidebar {
333350
border-radius: var(--border-radius);
334351
border: 1px solid var(--primary-low);
335352
line-height: var(--line-height-medium);
353+
336354
.d-button-label {
337355
color: var(--primary-high);
338356
}
357+
339358
.discourse-no-touch & {
340359
&:hover {
341360
background: var(--primary-low);
@@ -347,6 +366,7 @@ body.has-ai-conversations-sidebar {
347366
text-align: center;
348367
font-size: var(--font-down-1);
349368
color: var(--primary-700);
369+
350370
@media screen and (min-width: 600px) {
351371
width: 80%;
352372
max-width: 46em;
@@ -355,9 +375,11 @@ body.has-ai-conversations-sidebar {
355375

356376
.sidebar-footer-wrapper {
357377
display: flex;
378+
358379
.powered-by-discourse {
359380
display: block;
360381
}
382+
361383
button {
362384
display: none;
363385
}
@@ -388,8 +410,10 @@ body.has-ai-conversations-sidebar {
388410
// custom header menus
389411
.custom-admin-menu-trigger {
390412
position: relative;
413+
background: transparent;
414+
391415
&.-has-messages {
392-
&:after {
416+
&::after {
393417
position: absolute;
394418
content: "";
395419
background: var(--danger);
@@ -401,9 +425,6 @@ body.has-ai-conversations-sidebar {
401425
}
402426
}
403427

404-
.custom-admin-menu-trigger {
405-
background: transparent;
406-
}
407428
.custom-menu {
408429
.mod-message-badge {
409430
padding: 0.25em;
@@ -442,6 +463,7 @@ body.has-ai-conversations-sidebar {
442463
.d-icon {
443464
color: var(--primary-high);
444465
}
466+
445467
span {
446468
display: flex;
447469
gap: 0.5em;
@@ -456,6 +478,7 @@ body.has-ai-conversations-sidebar {
456478
.d-icon {
457479
margin: 0;
458480
}
481+
459482
.d-button-label {
460483
display: none;
461484
}
@@ -466,9 +489,11 @@ body.has-ai-conversations-sidebar {
466489
nav.post-controls .actions button.reply .d-icon {
467490
margin: 0;
468491
}
492+
469493
.search-dropdown {
470494
display: none;
471495
}
496+
472497
.sidebar-custom-sections {
473498
display: none;
474499
}
@@ -478,6 +503,7 @@ body.has-ai-conversations-sidebar {
478503
.user-card-meta__profile-link {
479504
display: block;
480505
padding: 0.5em 0 0.25em;
506+
481507
.d-icon {
482508
font-size: var(--font-down-1);
483509
margin-right: 0.15em;

0 commit comments

Comments
 (0)