Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Happy CSSer custom cover
<html>
<head>
<style id="webmakerstyle">
.cover {
position: relative;
width: 1000px;
height: 524px;
margin: 0 auto;
color: #fff;
font-size: 100px;
font-weight: 900;
padding: 50px;
line-height: 1.25;
font-family: 'monaco', monospace; }
.cover::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
opacity: .5;
filter: opacity(0.3) sepia(1) brightness(0.95) grayscale(0.8);
background-image: url(http://127.0.0.1:8080/20031587_1461354800610165_7905010913075332147_n.jpg);
background-size: cover; }
.cover::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: linear-gradient(-45deg, #BF9A41 10%, #951142);
mix-blend-mode: color-burn; }
.cover .logo {
position: absolute;
right: .75em;
bottom: .75em; }
.happy-csser {
position: relative;
overflow: hidden;
width: 1em;
height: 1em;
font-size: 64px;
border-radius: 50%;
background: linear-gradient(to bottom right, #ff126d, #ffc11f); }
.happy-csser::before {
content: '';
position: absolute;
top: 25%;
left: 30%;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: white; }
.happy-csser::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 40px;
height: 40px;
border-radius: 10%;
background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0));
transform-origin: left top;
transform: rotateZ(-45deg); }
*,
*::before,
*::after {
box-sizing: border-box; }
</style>
</head>
<body>
<div class="cover">Happy CSSer<br/>#16<div class="logo happy-csser"></div></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment