Created
December 9, 2018 07:08
-
-
Save zempo/a9f64b5751542f2989ad8f9872e09fe9 to your computer and use it in GitHub Desktop.
Text contrast drill created by zempo1 - https://repl.it/@zempo1/Text-contrast-drill
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
Empty file |
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
* { | |
color: white; | |
font-family: 'Lato'; | |
} | |
.main { | |
padding: 60px; | |
height: 300px; | |
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://tf-assets-prod.s3.amazonaws.com/tf-curric/FEWD-001/light-background.jpg'); | |
background-repeat: no-repeat; | |
background-size: contain; | |
} | |
.opacity-layer { | |
padding: 60px; | |
} | |
.inner { | |
background-color: black; | |
height: 100% | |
} | |
hr { | |
width: 150px; | |
margin-left: 0; | |
color: white; | |
} |
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"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Text contrast drill</title> | |
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'> | |
<link href="index.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<div class="main"> | |
<header role="banner"> | |
<h1>Hero text...</h1> | |
<h2>Oh how I engage you!</h2> | |
</header> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment