Created
January 25, 2018 01:30
-
-
Save pathunstrom/4a69ab95cae9812d3bb85db18b74c79c to your computer and use it in GitHub Desktop.
This file contains 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 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