Deprecate respond-to mixin, Zen uses css @media directly instead.

This commit is contained in:
Fredrik Jonsson 2025-03-27 09:03:04 +01:00
commit c97db934af
3 changed files with 20 additions and 18 deletions

View file

@ -99,7 +99,7 @@ textarea {
}
// For forms on mobile with single field add space between it and the submit button.
@include respond-to(s) {
@media (min-width: 666px) {
input:only-of-type {
&:has(+ [type='submit']) {
margin-inline-end: .5rem;

View file

@ -5,7 +5,7 @@ img {
&.image {
--image-padding: .75rem;
@include respond-to(s) {
@media (min-width: 666px) {
&.center {
margin-inline: auto;
}
@ -41,7 +41,7 @@ figure {
// Nicer text wrap, e.g. no lone word on last line.
text-wrap: pretty;
@include respond-to(s) {
@media (min-width: 666px) {
display: table-caption;
caption-side: bottom;
padding-block-start: 0;
@ -52,7 +52,7 @@ figure {
}
}
@include respond-to(s) {
@media (min-width: 666px) {
display: table;
&.left {

View file

@ -78,7 +78,7 @@ select {
}
[type='search'] {
@include respond-to(s) {
@media (min-width: 666px) {
// Correct the odd appearance in Safari on desktop.
-webkit-appearance: textfield;
}