Skip to content

Commit c63e4de

Browse files
author
satoshinotdead
committed
css
1 parent 87481d1 commit c63e4de

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

scss/desktop-full-width.scss

Lines changed: 6 additions & 6 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;
@@ -237,7 +237,7 @@ body.has-sidebar-page {
237237
}
238238

239239
// overruling new core composer changes
240-
@media screen and (width >= $reply-area-max-width) {
240+
@media screen and (min-width: $reply-area-max-width) {
241241
#reply-control.show-preview:not(.fullscreen) {
242242
max-width: $reply-area-max-width;
243243
transform: none;
@@ -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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,15 @@ img.emoji {
509509
box-sizing: border-box;
510510
padding: 0.5em 0.65em;
511511
border: var(--d-button-border);
512+
background-color: var(--accent-color);
513+
color: var(--accent-text-color);
514+
}
515+
516+
[data-wrap="button"] a:hover {
517+
background: light-dark(
518+
oklch(from var(--accent-color) 40% c h),
519+
oklch(from var(--accent-color) 50% c h)
520+
);
512521
}
513522

514523
// Centered videos

scss/topic.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
.container.posts {
5454
grid-template-columns: auto 8em;
5555

56-
@media screen and (width <= 924px) {
56+
@media screen and (max-width: 924px) {
5757
grid-template-columns: auto auto;
5858
}
5959

scss/welcome-banner.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
padding: 1.5em 0 2.5em;
1212
margin-bottom: 0;
1313

14-
@media screen and (width <= 768px) {
14+
@media screen and (max-width: 768px) {
1515
padding: 1em;
1616
}
1717

@@ -27,17 +27,17 @@
2727
width: 100%;
2828
align-self: center;
2929

30-
@media screen and (width <= 1028px) {
30+
@media screen and (max-width: 1028px) {
3131
grid-row: 2/-1;
3232
grid-column: 1/-1;
3333
}
3434

35-
@media screen and (width <= 768px) {
35+
@media screen and (max-width: 768px) {
3636
grid-column: 2/-1;
3737
grid-row: 1/-1;
3838
}
3939

40-
@media screen and (width <= 600px) {
40+
@media screen and (max-width: 600px) {
4141
grid-row: 2/-1;
4242
grid-column: 1/-1;
4343
}
@@ -88,22 +88,22 @@
8888
font-weight: 400;
8989
color: var(--search-color);
9090

91-
@media screen and (width <= 1028px) {
91+
@media screen and (max-width: 1028px) {
9292
font-size: var(--font-up-4);
9393
grid-column: 1/-1;
9494
grid-row: 1;
9595
text-align: center;
9696
margin-bottom: 0.5em;
9797
}
9898

99-
@media screen and (width <= 768px) {
99+
@media screen and (max-width: 768px) {
100100
text-align: left;
101101
grid-column: 1/2;
102102
grid-row: 1/-1;
103103
font-size: var(--font-up-3);
104104
}
105105

106-
@media screen and (width <= 600px) {
106+
@media screen and (max-width: 600px) {
107107
grid-column: 1/-1;
108108
grid-row: 1;
109109
text-align: center;

0 commit comments

Comments
 (0)