Skip to content

Commit

Permalink
Baseline w/ reset
Browse files Browse the repository at this point in the history
  • Loading branch information
DeboAtWinterlight committed Aug 25, 2024
1 parent ee515a3 commit 26b67b7
Showing 1 changed file with 61 additions and 85 deletions.
146 changes: 61 additions & 85 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,86 +1,62 @@
html, body {
background-color: black;
color: white;
font-family: helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.5;
margin: 0;
padding: 0;
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
/*
2. Remove default margin
*/
* {
margin: 0;
}
/*
Typographic tweaks!
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;
}
/*
8. Create a root stacking context
*/
#root,
#__next {
isolation: isolate;
}

.container {
margin: 0 auto;
max-width: 768px;
padding: 20px 5%;
}

section {
background-color: #171717;
}

h1, h2 {
line-height: 1;
text-transform: uppercase;
}

h2 {
margin-top: 40px;
}

h2:first-of-type {
margin-top: 20px;
}

.logo {
display: block;
}

img {
height: auto;
max-width: 100%;
}

.logo img {
width: 500px;
}

@media all and (max-width: 768px) {
.logo img {
width: 450px;
}
}

@media all and (max-width: 479px) {
.logo img {
width: 350px;
}
}

.icon.heart {
color: lightcoral;
}

a {
color: aquamarine;
font-weight: bold;
}

a:hover, a:active {
color: mediumaquamarine;
}

a code {
color: black;
}

code {
background-color: aquamarine;
color: black;
font-family: monospace;
padding: 1px;
user-select: all;
}

code.image {
background-color: lightyellow;
}

0 comments on commit 26b67b7

Please # to comment.