Last active
April 8, 2019 20:07
-
-
Save elnygren/95329d3971a5fa174b1308a08d387615 to your computer and use it in GitHub Desktop.
Good enough CSS (minimalist)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
/* https://gist.github.com/davidgilbertson/6d0313bc3c6ecb5757e822620e9ebaa4#file-good-enough-css */ | |
color: #333; | |
font-family: "Helvetica", "Calibri Light", Roboto, sans-serif; | |
text-rendering: optimizeLegibility; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
letter-spacing: 0.02em; | |
background-color: rgba(250, 245, 245, 0.3); | |
line-height: 1.3; | |
} | |
/* we can also have some nice things */ | |
::selection { | |
background: #f45c51a3; | |
} | |
/* "58 bytes of css to look great nearly everywhere" https://jrl.ninja/etc/1/ */ | |
main { | |
max-width: 42rem; | |
padding: 2rem; | |
margin: auto; | |
} | |
hr { | |
margin: 1.5em 0 1.5em 0; | |
} | |
/* https://jgthms.com/web-design-in-4-minutes/ */ | |
h1,h2,h3, | |
strong,b { | |
color: #212121; | |
} | |
h1,h2,h3 { | |
margin-top: 1em; | |
padding-top: 1em; | |
} | |
code, | |
pre { | |
padding: .7rem; | |
background: #f5f7f9; | |
border-bottom: 1px solid #d8dee9; | |
} | |
pre { | |
border-left: 2px solid #f45c51a3; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Good enough site</title> | |
<meta name="description" content="This HTML is good enough."> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
<!-- styles here --> | |
</style> | |
</head> | |
<body> | |
<!--[if IE]> | |
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p> | |
<![endif]--> | |
<h1>Good enough HTML</h1> | |
<p>Hello world! This HTML is good enough.</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment