Skip to content

Commit

Permalink
Merge pull request #21 from binhtran432k/fix/reset-styles
Browse files Browse the repository at this point in the history
fix(styles): enhance reset styles
  • Loading branch information
binhtran432k authored Mar 24, 2024
2 parents e1f0864 + e9d19fc commit 6759f78
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 19 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"dev": "perseus serve -w",
"preview": "perseus export -w",
"check": "perseus check",
"sass": "sass --no-source-map src/sass:static/styles",
"sass:watch": "sass --no-source-map --watch src/sass:static/styles",
"sass": "sass static/sass:static/styles",
"sass:watch": "sass --watch static/sass:static/styles",
"build": "perseus export --release && perseus export-error-page -c 404 -o dist/exported/404.html"
},
"devDependencies": {
Expand Down
17 changes: 0 additions & 17 deletions src/sass/base.scss

This file was deleted.

52 changes: 52 additions & 0 deletions static/sass/base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
* {
margin: 0;

&,
&::before,
&::after {
box-sizing: border-box;
}
}

html,
body {
overflow-x: hidden;
}

body {
font-family: "Poppins", sans-serif;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}

img,
video,
canvas,
svg {
max-width: 100%;
}

.test {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 95vh;
}

0 comments on commit 6759f78

Please sign in to comment.