mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
refactor: extract redundant max-width into utility (#525)
* refactor: extract redundant max-width into utility Extract redundant max-width into a universal tailwind utility class. By doing so, the width of the layout in different pages can be customized easily. * docs: update docs for modifying `max-w-app` utility
This commit is contained in:
@@ -50,10 +50,14 @@ html[data-theme="dark"] {
|
||||
}
|
||||
section,
|
||||
footer {
|
||||
@apply mx-auto max-w-3xl px-4;
|
||||
@apply mx-auto max-w-app px-4;
|
||||
}
|
||||
}
|
||||
|
||||
@utility max-w-app {
|
||||
@apply max-w-3xl;
|
||||
}
|
||||
|
||||
.active-nav {
|
||||
@apply underline decoration-wavy decoration-2 underline-offset-4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user