Skip to content

Instantly share code, notes, and snippets.

@juanmanunez
Created August 28, 2014 21:04
Show Gist options
  • Save juanmanunez/ac7e1b330e6aeb35e512 to your computer and use it in GitHub Desktop.
Save juanmanunez/ac7e1b330e6aeb35e512 to your computer and use it in GitHub Desktop.
A Pen by Joseph Martucci.
<header>
<div class="inset">
<h1>Page Title</h1>
<time>August 27, 2014</time>
<hr/>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<hr class="omega"/>
</div>
</header>
<main>
<div class="inset">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</main>
@import "bourbon";
@import url(http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900);
@import url(http://fonts.googleapis.com/css?family=Playfair+Display:400,700,900,400italic,700italic,900italic);
$lato: 'Lato', sans-serif;
$playfair: 'Playfair Display', serif;
*{
box-sizing: border-box;
}
body{
color: #222;
background: #222;
}
.inset{
max-width: 960px;
width: 80%;
margin: 0 auto;
padding: 42px 40px;
}
header{
@include transition(all .4s ease-in-out);
-webkit-filter: grayscale(80%);
@include background-image(linear-gradient(transparent 30%, #222), url("http://37.media.tumblr.com/abdefa4ca6ac4caf308c38b4e9ceae0f/tumblr_naj34jjHnM1st5lhmo1_1280.jpg"));
background-repeat: no-repeat;
background-size: cover;
padding-top: 84px;
font-family: $lato;
font-size: 24px;
font-weight: 300;
.inset{
background: hsla(0, 100%, 100%, .8);
height: 100%;
}
&:hover{
-webkit-filter: grayscale(0);
}
}
main{
font-size: 21px;
font-family: $playfair;
color: #444;
.inset{
background: hsla(0, 100%, 100%, .8);
border-bottom-right: 50%;
}
}
h1{
font-family: $playfair;
font-weight: 900;
font-style: italic;
font-size: 42px;
line-height: 1.5;
padding: 0;
text-align: center;
}
time{
font-size: 15px;
display: block;
font-family: $lato;
text-align: center;
text-transform: uppercase;
font-weight: 400;
margin-bottom: 42px;
&::before, &::after{
content: "\2014";
padding: 5px;
}
}
footer{
background: hsla(220, 20%, 20%, 1);
width: 90%;
margin: 0 auto;
max-width: 1000px;
h1{
text-align: left;
margin: 0;
padding: 0;
}
}
hr.omega{
text-align: center;
padding: 0;
border: none;
border-top: 5px double transparentize(#222, .5);
&::after{
background: lighten(#222, 50%);
color: #FFF;
padding: 5px 10px;
top: -20px;
content: "\03a9";
border-radius: 50%;
position: relative;
display: inline-block;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment