Deprecate respond-to mixin, Zen uses css @media directly instead.
This commit is contained in:
parent
e1718aff96
commit
c97db934af
12 changed files with 20 additions and 18 deletions
|
|
@ -6,6 +6,7 @@ rules:
|
||||||
declaration-block-no-redundant-longhand-properties: null
|
declaration-block-no-redundant-longhand-properties: null
|
||||||
declaration-empty-line-before: null
|
declaration-empty-line-before: null
|
||||||
hue-degree-notation: number
|
hue-degree-notation: number
|
||||||
|
media-feature-range-notation: prefix
|
||||||
no-descending-specificity: null
|
no-descending-specificity: null
|
||||||
selector-class-pattern:
|
selector-class-pattern:
|
||||||
- "^[a-z0-9\\-]+$"
|
- "^[a-z0-9\\-]+$"
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ Quickstart a new site with the Zen theme by using the [Zen demo repo as a templa
|
||||||
* Colours are now set directly as css variables. You no longer need to override `_colors.scss`, instead override select colours in `_custom.scss`. This simplification was the main motivation for v5.
|
* Colours are now set directly as css variables. You no longer need to override `_colors.scss`, instead override select colours in `_custom.scss`. This simplification was the main motivation for v5.
|
||||||
* Converted most sass settings in to pure css variables.
|
* Converted most sass settings in to pure css variables.
|
||||||
* Split sass and css settings it to separate files.
|
* Split sass and css settings it to separate files.
|
||||||
|
* The "respond-to" mixin is deprecated in v5, use css @media directly instead.
|
||||||
* No other significant changes.
|
* No other significant changes.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ $font-size-fluid: (
|
||||||
// $font-size: $font-size-fluid;
|
// $font-size: $font-size-fluid;
|
||||||
$font-size: $font-size-fixed;
|
$font-size: $font-size-fixed;
|
||||||
|
|
||||||
// Breakpoints
|
// Breakpoints (Deprecated in v5, use css @media directly instead.)
|
||||||
// Use the `respond-to(s)` mixin to use named breakpoints.
|
// Use the `respond-to(s)` mixin to use named breakpoints.
|
||||||
$breakpoints: (
|
$breakpoints: (
|
||||||
'xxxl': 1222px,
|
'xxxl': 1222px,
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ aside {
|
||||||
article {
|
article {
|
||||||
.submitted,
|
.submitted,
|
||||||
.tags {
|
.tags {
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-inline-end: 1rem;
|
padding-inline-end: 1rem;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ textarea {
|
||||||
}
|
}
|
||||||
|
|
||||||
// For forms on mobile with single field add space between it and the submit button.
|
// 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 {
|
input:only-of-type {
|
||||||
&:has(+ [type='submit']) {
|
&:has(+ [type='submit']) {
|
||||||
margin-inline-end: .5rem;
|
margin-inline-end: .5rem;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ img {
|
||||||
&.image {
|
&.image {
|
||||||
--image-padding: .75rem;
|
--image-padding: .75rem;
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
&.center {
|
&.center {
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
}
|
}
|
||||||
|
|
@ -41,7 +41,7 @@ figure {
|
||||||
// Nicer text wrap, e.g. no lone word on last line.
|
// Nicer text wrap, e.g. no lone word on last line.
|
||||||
text-wrap: pretty;
|
text-wrap: pretty;
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
display: table-caption;
|
display: table-caption;
|
||||||
caption-side: bottom;
|
caption-side: bottom;
|
||||||
padding-block-start: 0;
|
padding-block-start: 0;
|
||||||
|
|
@ -52,7 +52,7 @@ figure {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
display: table;
|
display: table;
|
||||||
|
|
||||||
&.left {
|
&.left {
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ select {
|
||||||
}
|
}
|
||||||
|
|
||||||
[type='search'] {
|
[type='search'] {
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
// Correct the odd appearance in Safari on desktop.
|
// Correct the odd appearance in Safari on desktop.
|
||||||
-webkit-appearance: textfield;
|
-webkit-appearance: textfield;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
&--2 > * {
|
&--2 > * {
|
||||||
@include flex(2, $gap);
|
@include flex(2, $gap);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
gap: var(--gutters);
|
gap: var(--gutters);
|
||||||
background-color: var(--color-header-bg);
|
background-color: var(--color-header-bg);
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
// Wrapper for any blocks placed in the header region.
|
// Wrapper for any blocks placed in the header region.
|
||||||
&__region {
|
&__region {
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
margin-inline-start: auto;
|
margin-inline-start: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
%zebra-table {
|
%zebra-table {
|
||||||
--table-cell-padding: .5rem;
|
--table-cell-padding: .5rem;
|
||||||
|
|
||||||
@include respond-to-max(s) {
|
@media (max-width: 666px) {
|
||||||
--table-cell-padding: .3rem;
|
--table-cell-padding: .3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
%responsive-table {
|
%responsive-table {
|
||||||
--table-gap: .5rem;
|
--table-gap: .5rem;
|
||||||
|
|
||||||
@include respond-to-max(s) {
|
@media (max-width: 666px) {
|
||||||
th {
|
th {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
&__page {
|
&__page {
|
||||||
max-width: var(--max-page-width);
|
max-width: var(--max-page-width);
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
min-height: 100svh;
|
min-height: 100svh;
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
&__navigation > * {
|
&__navigation > * {
|
||||||
max-width: var(--max-content-width);
|
max-width: var(--max-content-width);
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -95,7 +95,7 @@
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include respond-to(xl) {
|
@media (min-width: 999px) {
|
||||||
&__page {
|
&__page {
|
||||||
grid-template-rows: auto
|
grid-template-rows: auto
|
||||||
auto
|
auto
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
.header__region { // stylelint-disable selector-class-pattern
|
.header__region { // stylelint-disable selector-class-pattern
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
} // stylelint-enable selector-class-pattern
|
} // stylelint-enable selector-class-pattern
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
z-index: 22;
|
z-index: 22;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
|
|
||||||
@include respond-to(s) {
|
@media (min-width: 666px) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue