Skip to content

Commit

Permalink
css: add reset, fixes box sizing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Apr 28, 2024
1 parent f4c871f commit fd18105
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<title>OCAMIX</title>
<link rel="stylesheet" href="./reset.css">
<link rel="stylesheet" href="./main.css">
<link rel="stylesheet" href="./theme.css">
<link rel="stylesheet" href="./app.css">
Expand Down
4 changes: 3 additions & 1 deletion web/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
body {
font-family: 'Bungee Spice', sans-serif;
color: #ffc334;
isolation: isolate;
}

.on {
Expand Down Expand Up @@ -84,6 +85,7 @@ body {
background-color: #3c4146;
overflow: hidden;
}

.lwdui-lazy-table>.row_spacer {
padding: 0;
}
Expand Down Expand Up @@ -113,4 +115,4 @@ body {
audio {

width: 100%;
}
}
61 changes: 61 additions & 0 deletions web/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/* CSS reset inspired by https://www.joshwcomeau.com/css/custom-css-reset /
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
box-sizing: border-box;
}

/*
2. Remove default margin
*/
* {
margin: 0;
}

/*
3. Add accessible line-height
4. Improve text rendering
*/
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}

/*
5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}

/*
6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
font: inherit;
}

/*
7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}

0 comments on commit fd18105

Please sign in to comment.