Skip to content

Instantly share code, notes, and snippets.

@rad-hombre
Created August 13, 2018 10:10
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 rad-hombre/3e77ffb3b79ba0027d3583608b9a6de1 to your computer and use it in GitHub Desktop.
Save rad-hombre/3e77ffb3b79ba0027d3583608b9a6de1 to your computer and use it in GitHub Desktop.
Pug + SCSS simple
h1 horsin' around
-var n = 0
-var things = ["🐧", "🌈","🎯", "🐴"]
ul
while n < 8
li
a(href="http://www.google.com")= - (n > 3) ? things[n-(n-3)] : things[n]
-n++
$green: #bada55;
html,body {
height: 100%;
background-image: linear-gradient(to right, #92fe9d 0%, #00c9ff 100%);
}
h1 {
text-align: center;
text-decoration: underline;
color: #eee;
text-transform: uppercase;
text-shadow: black 2px 5px;
}
li {
width: 100px;
height: 100px;
//background-color: $green;
background: rgba(255, 255, 255, 0.2);
box-shadow: 0 0 5px rgba(0, 2, 0, 0.3);
list-style: none;
font-family: "Helvetica Neue";
font-size: 4rem;
//text-align: center;
display: flex;
justify-content: center;
align-items: center;
border: 0px solid;
border-radius: 50%;
padding: 5px;
margin: 5px;
}
li a {
text-decoration: none;
}
ul {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
height: 50%;
align-items: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment