Skip to content

Commit

Permalink
feat: Enable view transitions feature (dotnet#9909)
Browse files Browse the repository at this point in the history
feat: enable view transitions
  • Loading branch information
filzrev authored and p-kostov committed Jun 28, 2024
1 parent 3fe642c commit 2fd735f
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 2fd735f

Please sign in to comment.