Skip to content

Instantly share code, notes, and snippets.

@unframework
Created November 17, 2018 20:27
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 unframework/a531e20daaa2ea005df025b334a37674 to your computer and use it in GitHub Desktop.
Save unframework/a531e20daaa2ea005df025b334a37674 to your computer and use it in GitHub Desktop.
Logo sketch
.logo <var>Beam</var>works
@fgColor: #2980B9;
//@fgColor: #2C3E50;
//@fgColor: #E74C3C;
@bgColor: #ECF0F1;
html {
height: 100%;
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 0;
background: @bgColor;
text-align: center;
height: 100%;
&::before {
content: '';
display: inline-block;
vertical-align: middle;
width: 0;
height: 95%;
}
}
.logo {
@stripe: 1px;
@stripeOff: 3px;
display: inline-block;
vertical-align: middle;
line-height: 1;
font-family: 'Days One', sans-serif;
font-size: 50px;
letter-spacing: -4px;
color: @fgColor;
white-space: nowrap;
> var {
font-style: normal;
display: inline-block;
position: relative;
&::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: -1px;
bottom: -4px;
background: repeating-linear-gradient(
0,
@bgColor,
@bgColor @stripe,
rgba(255, 255, 255, 0) @stripe,
rgba(255, 255, 255, 0) @stripe+@stripeOff
);
}
}
}
<link href="https://fonts.googleapis.com/css?family=Days+One" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment