Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Theme
Commits
f68ba3a3
Commit
f68ba3a3
authored
2 years ago
by
alexisben
Browse files
Options
Downloads
Patches
Plain Diff
add old safari support
parent
77d7fa4a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/sass/_theme/_utils.sass
+9
-13
9 additions, 13 deletions
assets/sass/_theme/_utils.sass
assets/sass/_theme/blocks/gallery.sass
+2
-0
2 additions, 0 deletions
assets/sass/_theme/blocks/gallery.sass
assets/sass/_theme/blocks/video.sass
+3
-0
3 additions, 0 deletions
assets/sass/_theme/blocks/video.sass
with
14 additions
and
13 deletions
assets/sass/_theme/_utils.sass
+
9
−
13
View file @
f68ba3a3
...
...
@@ -163,18 +163,6 @@
aspect-ratio
:
#{
$ratio
}
display
:
block
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
)
position
:
relative
...
...
@@ -390,4 +378,12 @@
font-style
:
$style
font-weight
:
$weight
font-display
:
swap
src
:
$src
\ No newline at end of file
src
:
$src
// 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
This diff is collapsed.
Click to expand it.
assets/sass/_theme/blocks/gallery.sass
+
2
−
0
View file @
f68ba3a3
...
...
@@ -33,6 +33,8 @@
&
--grid
.gallery
align-items
:
baseline
@include
browser-under-safari-16
align-items
:
start
@include
in-page-with-sidebar
@include
grid
(
3
,
desktop
,
half
(
$grid-gutter
)
,
half
(
$grid-gutter
))
@include
in-page-without-sidebar
...
...
This diff is collapsed.
Click to expand it.
assets/sass/_theme/blocks/video.sass
+
3
−
0
View file @
f68ba3a3
.block-video
.video
@include
aspect-ratio
(
16
/
9
,
'iframe'
)
@supports
not
(
aspect-ratio
:
1
)
iframe
min-height
:
400px
iframe
background
:
black
@include
in-page-without-sidebar
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment