Skip to content

Instantly share code, notes, and snippets.

@pbuzdin
Created April 11, 2019 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbuzdin/c9f0b4227823a9111c6939f86d7a1495 to your computer and use it in GitHub Desktop.
Save pbuzdin/c9f0b4227823a9111c6939f86d7a1495 to your computer and use it in GitHub Desktop.
minimal css setup // source https://jsbin.com/mavenep
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>minimal css setup</title>
<style>
html {
font-size: 18px
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #222;
padding: 2ch;
margin: auto;
background: #fafafa;
}
img {
max-width: 100%
}
a {
color: inherit;
text-decoration: none;
position: relative
}
a:before {
content: '';
position: absolute;
top: 0;
left: -2%;
width: 105%;
height: 110%;
background-color: rgba(204, 238, 255, 1);
z-index: -1;
transition: background-color .3s
}
a:hover:before {
background-color: rgba(204, 238, 255, .4)
}
h1, h2, strong {
color: #111
}
main {
max-width: 70ch;
padding: 2ch;
margin: auto;
}
</style>
</head>
<body style="border: 1px solid">
<main style="border: 1px solid">
сраный хуй <a href="#">ЙЁДурфФyandex</a>
<p>main element</p>
</main>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment