Skip to content

Instantly share code, notes, and snippets.

@zempo
Created December 9, 2018 07:08
Show Gist options
  • Save zempo/a9f64b5751542f2989ad8f9872e09fe9 to your computer and use it in GitHub Desktop.
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
* {
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;
}
<!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