Skip to content

Commit 327538f

Browse files
author
satoshinotdead
committed
lint-test
1 parent f8610c6 commit 327538f

File tree

6 files changed

+29
-19
lines changed

6 files changed

+29
-19
lines changed

scss/box-view.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@use "lib/viewport";
22

3-
@media screen and (width >= 1300px) {
3+
@media screen and (min-width: 1300px) {
44
#main-outlet {
55
border-top-right-radius: var(--d-border-radius-large);
66
border-top-left-radius: var(--d-border-radius-large);
@@ -47,7 +47,7 @@
4747
display: none;
4848
}
4949

50-
@media screen and (width <= 488px) {
50+
@media screen and (max-width: 488px) {
5151
display: none;
5252
}
5353

@@ -94,7 +94,7 @@
9494
bottom: var(--main-grid-gap);
9595
left: var(--left-distance);
9696

97-
@media screen and (width <= 768px) {
97+
@media screen and (max-width: 768px) {
9898
bottom: calc(var(--d-border-radius-large) * 2);
9999
}
100100
}
@@ -104,7 +104,7 @@
104104
bottom: var(--main-grid-gap);
105105
left: calc(var(--right-distance) - var(--d-border-radius-large));
106106

107-
@media screen and (width <= 768px) {
107+
@media screen and (max-width: 768px) {
108108
bottom: calc(var(--d-border-radius-large) * 2);
109109
}
110110
}
@@ -118,7 +118,7 @@
118118
left: var(--left-distance);
119119
height: var(--main-grid-gap);
120120

121-
@media screen and (width <= 768px) {
121+
@media screen and (max-width: 768px) {
122122
height: calc(var(--d-border-radius-large) * 2);
123123
}
124124

@@ -158,7 +158,7 @@
158158
}
159159
}
160160

161-
@media screen and (width >= 768px) {
161+
@media screen and (min-width: 768px) {
162162
.with-topic-progress {
163163
bottom: calc(
164164
env(safe-area-inset-bottom) + var(--composer-height, 0px) +
@@ -167,7 +167,7 @@
167167
}
168168
}
169169

170-
@media screen and (width <= 768px) {
170+
@media screen and (max-width: 768px) {
171171
.with-topic-progress {
172172
bottom: calc(
173173
env(safe-area-inset-bottom) + var(--composer-height, 0px) +
@@ -176,7 +176,7 @@
176176
}
177177
}
178178

179-
@media screen and (width <= 400px) {
179+
@media screen and (max-width: 400px) {
180180
.with-topic-progress {
181181
bottom: calc(env(safe-area-inset-bottom) + var(--composer-height, 0px));
182182
}

scss/composer-peek-mode.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: none;
33
}
44

5-
@media screen and (width >= 1300px) {
5+
@media screen and (min-width: 1300px) {
66
html:not(.fullscreen-composer) {
77
.peek-mode-toggle svg {
88
transform: scaleX(-1);

scss/desktop-full-width.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ $sidebar-width: 17em;
129129
// at narrower widths, when 1fr = 0
130130
// we can center without matching the sidebar's width
131131
// which allows the title to take up the remaining width
132-
@media screen and (width <= 1400px) {
132+
@media screen and (max-width: 1400px) {
133133
grid-template-columns:
134134
calc(var(--d-sidebar-width) - 11px)
135135
1fr
@@ -138,7 +138,7 @@ $sidebar-width: 17em;
138138
auto;
139139
}
140140

141-
@media screen and (width <= 1000px) {
141+
@media screen and (max-width: 1000px) {
142142
gap: 0.5em;
143143
}
144144

@@ -210,7 +210,7 @@ body.has-sidebar-page {
210210
padding: 0;
211211
}
212212

213-
@media screen and (width >= calc($reply-area-max-width + ($sidebar-width * 2))) {
213+
@media screen and (min-width: calc($reply-area-max-width + ($sidebar-width * 2))) {
214214
#reply-control.show-preview {
215215
margin-left: auto;
216216
margin-right: auto;
@@ -221,7 +221,7 @@ body.has-sidebar-page {
221221
}
222222
}
223223

224-
@media screen and (width <= calc($reply-area-max-width + ($sidebar-width * 2))) and (width >= calc($reply-area-max-width + calc($sidebar-width / 2))) {
224+
@media screen and (max-width: calc($reply-area-max-width + ($sidebar-width * 2))) and (min-width: calc($reply-area-max-width + calc($sidebar-width / 2))) {
225225
#reply-control.show-preview:not(.fullscreen) {
226226
margin-left: $sidebar-width;
227227
width: auto;
@@ -267,7 +267,7 @@ body.sidebar-animate {
267267
}
268268

269269
// provides some extra space for login buttons
270-
@media screen and (width >= 1400px) {
270+
@media screen and (min-width: 1400px) {
271271
.anon {
272272
.d-header .panel {
273273
grid-column-start: -4;

scss/desktop-horizon-fixes.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
grid-area: bulk-select;
1414
margin-left: -0.5em;
1515

16-
@media screen and (width <= 576px) {
16+
@media screen and (max-width: 576px) {
1717
margin-top: 0;
1818

1919
label {

scss/main.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ body:not(.has-full-page-chat, .wizard) {
7979
--main-grid-gap: 0;
8080
}
8181

82-
@media screen and (width >= 768px) {
82+
@media screen and (min-width: 768px) {
8383
gap: var(--main-grid-gap);
8484
}
8585

@@ -389,6 +389,7 @@ div.topic-post.comment .topic-body .who-read {
389389
.leaderboard .winner.-position3 .winner__rank {
390390
background-color: #c4c4c4;
391391
}
392+
392393
.leaderboard .winner {
393394
margin: 0.33rem;
394395
}
@@ -404,7 +405,16 @@ body.user-activity-page .user-navigation .user-navigation-secondary {
404405
}
405406

406407
// Workaround on MP messages for new User UI
407-
408408
body.user-messages-page .new-user-wrapper .user-navigation-secondary {
409409
display: unset;
410410
}
411+
412+
// Disable some AI Helper functions
413+
ul.ai-helper-optionsli[data-value="replace_dates"],
414+
ul.ai-helper-optionsli[data-value="markdown_table"],
415+
416+
// Hide redundant groups
417+
.groups-boxes .group-box [data-group-name="moderadores"],
418+
.groups-boxes .group-box [data-group-name="admins"] {
419+
display: none;
420+
}

scss/mobile-stuff.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,11 @@ body.f-nav-hidden:not(
274274
font-size: var(--font-0);
275275
min-width: 23%;
276276
}
277+
277278
.new-user-wrapper .user-navigation-secondary {
278279
height: 100%;
279280
}
281+
280282
.new-user-wrapper .user-navigation-secondary .nav-pills {
281283
flex-direction: column;
282284
}
@@ -299,10 +301,8 @@ body.f-nav-hidden:not(
299301
}
300302

301303
// Hide stuff on profile
302-
303304
.user-preferences .form-vertical .control-group .pref-title,
304305
.user-preferences .form-vertical .control-group .pref-flair,
305-
.user-preferences .form-vertical .control-group .pref-title,
306306
.user-preferences .form-vertical .control-group .pref-email-settings {
307307
display: none;
308308
}

0 commit comments

Comments
 (0)