Skip to content

Instantly share code, notes, and snippets.

@pathunstrom
Created January 25, 2018 01:30
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 pathunstrom/4a69ab95cae9812d3bb85db18b74c79c to your computer and use it in GitHub Desktop.
Save pathunstrom/4a69ab95cae9812d3bb85db18b74c79c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<header><h1>Look at me, I'm a header!</h1></header>
<div class="board">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
</body>
<style>
body {
padding: 0;
margin: 0;
filter: invert(50%);
}
header {
height: 5vh;
}
.board {
display: grid;
grid-template: repeat(3, 1fr) / repeat(3, 1fr);
grid-gap: 1px;
height: 100vw;
width: 100vw;
}
.box {
height: 100%;
width: 100%;
background-color: blue;
}
.color-inversion {
filter: invert();
}
@media all and (orientation: landscape) {
.board {
width: 95vh;
height: 95vh;
}
}
</style>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment