mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
fix: theme transition error on ios
This commit is contained in:
parent
45385fd84a
commit
93eca1fa7a
6 changed files with 23 additions and 20 deletions
|
@ -5,9 +5,7 @@
|
|||
}
|
||||
|
||||
html {
|
||||
--at-apply: 'bg-background c-secondary text-62.5% antialiased scroll-smooth';
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
--at-apply: 'bg-background c-secondary text-62.5% antialiased scroll-smooth scrollbar-hidden';
|
||||
}
|
||||
|
||||
html::-webkit-scrollbar {
|
||||
|
@ -15,10 +13,7 @@ html::-webkit-scrollbar {
|
|||
}
|
||||
|
||||
body {
|
||||
--at-apply: 'text-1.6rem';
|
||||
/* Fix for iOS browser flash issue */
|
||||
backface-visibility: hidden;
|
||||
-webkit-backface-visibility: hidden;
|
||||
--at-apply: 'text-1.6rem ios-flash-fix';
|
||||
}
|
||||
|
||||
h1 {
|
||||
|
@ -46,10 +41,8 @@ h6 {
|
|||
}
|
||||
|
||||
article img {
|
||||
--at-apply: 'cursor-zoom-in';
|
||||
/* Optimize animation performance of Scrollbar */
|
||||
transform: translateZ(0);
|
||||
-webkit-transform: translateZ(0);
|
||||
--at-apply: 'cursor-zoom-in ios-flash-fix';
|
||||
}
|
||||
|
||||
/* Horizontal reveal animation on theme toggle */
|
||||
|
@ -84,7 +77,7 @@ html[data-theme-transition] [data-disable-transition-on-theme] {
|
|||
|
||||
@supports not (view-transition-name: none) {
|
||||
html:not([data-restore-theme]) {
|
||||
--at-apply: 'transition-colors duration-500 ease-in-out';
|
||||
--at-apply: 'transition-colors duration-300 ease-in-out';
|
||||
}
|
||||
|
||||
html:not([data-restore-theme]) [data-disable-transition-on-theme] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue