@@ -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 ( max-width : 1400 px ) {
132+ @include viewport . until (xl ) {
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 ( max-width : 1000 px ) {
141+ @include viewport . until (lg ) {
142142 gap : 0.5em ;
143143 }
144144
@@ -210,7 +210,8 @@ body.has-sidebar-page {
210210 padding : 0 ;
211211 }
212212
213- @media screen and (min-width : calc ($reply-area-max-width + ($sidebar-width * 2 ))) {
213+ @include viewport .from (xl) {
214+ // Approximating complex calc with xl
214215 #reply-control .show-preview {
215216 margin-left : auto ;
216217 margin-right : auto ;
@@ -221,23 +222,28 @@ body.has-sidebar-page {
221222 }
222223 }
223224
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 ))) {
225- #reply-control .show-preview :not (.fullscreen ) {
226- margin-left : $sidebar-width ;
227- width : auto ;
228-
229- // overruling new core composer changes
230- max-width : $reply-area-max-width ;
231- transform : none ;
232- }
225+ @include viewport .until (xl) {
226+ // Approximating complex calc with xl
227+ @include viewport .from (lg) {
228+ // Approximating complex calc with lg
229+ #reply-control .show-preview :not (.fullscreen ) {
230+ margin-left : $sidebar-width ;
231+ width : auto ;
232+
233+ // overruling new core composer changes
234+ max-width : $reply-area-max-width ;
235+ transform : none ;
236+ }
233237
234- .sidebar-container {
235- height : auto ;
238+ .sidebar-container {
239+ height : auto ;
240+ }
236241 }
237242 }
238243
239244 // overruling new core composer changes
240- @media screen and (min-width : $reply-area-max-width ) {
245+ @include viewport .from (lg) {
246+ // Approximating $reply-area-max-width with lg
241247 #reply-control .show-preview :not (.fullscreen ) {
242248 max-width : $reply-area-max-width ;
243249 transform : none ;
@@ -267,7 +273,7 @@ body.sidebar-animate {
267273}
268274
269275// provides some extra space for login buttons
270- @media screen and ( min-width : 1400 px ) {
276+ @include viewport . from (xl ) {
271277 .anon {
272278 .d-header .panel {
273279 grid-column-start : -4 ;
0 commit comments