Skip to content

Commit 133012b

Browse files
Minor design improvement (#283)
* Minor design improvement * Fix config
1 parent f8e0278 commit 133012b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/elements/components/scroll-to-top.module.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
bottom: 0.5rem;
66
right: 0.5rem;
77

8-
@media screen and (min-width: 1500px) {
8+
@media screen and (min-width: 1600px) {
99
right: auto;
1010
left: calc(50vw + var(--max-page-width) / 2);
1111
bottom: 1rem;
@@ -20,7 +20,7 @@
2020
opacity: 0.3;
2121
transition: opacity 0.5s ease-in-out;
2222

23-
@media screen and (max-width: 1500px) {
23+
@media screen and (max-width: 1600px) {
2424
opacity: 0.5;
2525
}
2626

src/elements/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export function PageContainer({ children, scrollToTop, wrapper }: PageContainerP
1313
<div className={style.container}>
1414
<Header />
1515
{wrapper ? (
16-
<main className={`${style.main} p-0 lg:p-4`}>
17-
<div className={`${style.wrapper} mb-6 bg-fade-100 p-4 dark:bg-fade-800 lg:rounded-lg`}>
16+
<main className={`${style.main} p-0 xl:p-4`}>
17+
<div className={`${style.wrapper} mb-6 bg-fade-100 p-4 dark:bg-fade-800 xl:rounded-lg`}>
1818
{children}
1919
</div>
2020
</main>

tailwind.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ module.exports = {
2727
'accent-900': '#000c60',
2828
},
2929
},
30+
screens: {
31+
sm: '640px',
32+
md: '768px',
33+
lg: '1024px',
34+
xl: '1400px',
35+
},
3036
},
3137
darkMode: ['class', '[data-theme="dark"]'],
3238
plugins: [require('@tailwindcss/line-clamp'), require('@headlessui/tailwindcss')],

0 commit comments

Comments
 (0)