Skip to content

Commit

Permalink
add global styles
Browse files Browse the repository at this point in the history
  • Loading branch information
yinkakun committed Oct 23, 2022
1 parent 7aa2aa9 commit ca9ded9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
21 changes: 21 additions & 0 deletions storefront/styles/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,24 @@
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Hamlin';
src: local('Hamlin Regular'), local('Hamlin-Regular'),
url('/fonts/Hamlin-Regular.woff2') format('woff2'),
url('/fonts/Hamlin-Regular.woff') format('woff'),
url('/fonts/Hamlin-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

// hamlin 300
@font-face {
font-family: 'Hamlin';
src: local('Hamlin Light'), local('Hamlin-Light'),
url('/fonts/Hamlin-Light.woff2') format('woff2'),
url('/fonts/Hamlin-Light.woff') format('woff'),
url('/fonts/Hamlin-Light.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}
20 changes: 12 additions & 8 deletions storefront/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
html,
body,
#__next {
@apply font-sans;
width: 100%;
min-height: 100%;
min-height: 100vh;
scroll-behavior: initial;
}

::-webkit-scrollbar {
background: transparent;
width: 0;
body,
#__next {
@apply bg-noir font-sans text-lotion;
}

body {
-ms-overflow-style: none;
scrollbar-width: none;
scroll-behavior: initial;
/* hide scrollbar */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* hide scrollbar */
body::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera*/
}

0 comments on commit ca9ded9

Please sign in to comment.