Skip to content

Commit

Permalink
feat: enable view transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
filzrev committed May 9, 2024
1 parent e9736e8 commit ee5501f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/.stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"ignoreFontFamilies": [
"bootstrap-icons"
]
}],
"property-no-unknown": [ true, {
"ignoreProperties": [ "navigation" ]
}],
"scss/at-rule-no-unknown": [ true, {
"ignoreAtRules": [ "view-transition" ]
}]
}
}
10 changes: 10 additions & 0 deletions templates/modern/src/docfx.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,13 @@ article {
}
}
}

@view-transition {
navigation: auto;
}

@media (prefers-reduced-motion) {
@view-transition {
navigation: none;
}
}

0 comments on commit ee5501f

Please sign in to comment.