Skip to content
Snippets Groups Projects
Commit f68ba3a3 authored by alexisben's avatar alexisben
Browse files

add old safari support

parent 77d7fa4a
No related branches found
No related tags found
No related merge requests found
...@@ -163,18 +163,6 @@ ...@@ -163,18 +163,6 @@
aspect-ratio: #{$ratio} aspect-ratio: #{$ratio}
display: block display: block
width: 100% width: 100%
@supports not (aspect-ratio: 1)
position: relative
&::before
content: ''
padding-top: (1 / $ratio) * 100%
width: 100%
#{$selector}
bottom: 0
left: 0
position: absolute
right: 0
top: 0
@mixin article($background: null) @mixin article($background: null)
position: relative position: relative
...@@ -390,4 +378,12 @@ ...@@ -390,4 +378,12 @@
font-style: $style font-style: $style
font-weight: $weight font-weight: $weight
font-display: swap font-display: swap
src: $src src: $src
\ No newline at end of file
// Old browsers support
@mixin browser-under-safari-16
@media not all and (min-resolution:.001dpcm)
@supports (-webkit-appearance:none) and (display:flow-root)
@content
\ No newline at end of file
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
&--grid &--grid
.gallery .gallery
align-items: baseline align-items: baseline
@include browser-under-safari-16
align-items: start
@include in-page-with-sidebar @include in-page-with-sidebar
@include grid(3, desktop, half($grid-gutter), half($grid-gutter)) @include grid(3, desktop, half($grid-gutter), half($grid-gutter))
@include in-page-without-sidebar @include in-page-without-sidebar
......
.block-video .block-video
.video .video
@include aspect-ratio(16/9, 'iframe') @include aspect-ratio(16/9, 'iframe')
@supports not (aspect-ratio: 1)
iframe
min-height: 400px
iframe iframe
background: black background: black
@include in-page-without-sidebar @include in-page-without-sidebar
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment