Skip to content

Commit 55205b6

Browse files
committed
Update text styles & add view transition
1 parent f329105 commit 55205b6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docs/src/assets/main.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@
9898
text-decoration-color: color-mix(in srgb, currentColor, transparent 65%);
9999
}
100100
}
101+
102+
@media (prefers-reduced-motion: no-preference) {
103+
@view-transition {
104+
navigation: auto;
105+
}
106+
107+
html {
108+
interpolate-size: allow-keywords;
109+
110+
&:focus-within {
111+
scroll-behavior: smooth;
112+
}
113+
}
114+
}
101115
}
102116

103117
@layer utilities {

docs/tailwind.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ const config = {
137137
fontWeight: 'inherit',
138138
color: 'inherit',
139139
},
140+
p: {
141+
textWrap: 'pretty',
142+
},
140143
code: {
141144
fontSize: '0.9375em',
142145
fontWeight: '500',

0 commit comments

Comments
 (0)