Skip to content

Instantly share code, notes, and snippets.

@to4iki
Created June 5, 2013 16:53
Show Gist options
  • Save to4iki/5715427 to your computer and use it in GitHub Desktop.
Save to4iki/5715427 to your computer and use it in GitHub Desktop.
Pure: template(http://purecss.io/)
body {
margin: 0 auto;
line-height: 1.7em;
}
.l-box {
padding: 1em;
}
.header {
margin: 0 0;
}
.header .pure-menu {
padding: 0.5em;
}
.header .pure-menu li a:hover {
background: none;
border: none;
color: #aaa;
}
body .primary-button {
background: #02a6eb;
color: #fff;
}
.splash {
margin: 2em auto 0;
padding: 3em 0.5em;
background: #eee;
}
.splash .splash-head {
font-size: 300%;
margin: 0em 0;
line-height: 1.2em;
}
.splash .splash-subhead {
color: #999;
font-weight: 300;
line-height: 1.4em;
}
.splash .primary-button {
font-size: 150%;
}
.content .content-subhead {
color: #999;
padding-bottom: 0.3em;
text-transform: uppercase;
margin: 0;
border-bottom: 2px solid #eee;
display: inline-block;
}
.content .content-ribbon {
margin: 3em;
border-bottom: 1px solid #eee;
}
.ribbon {
background: #eee;
text-align: center;
padding: 2em;
color: #999;
}
.ribbon h2 {
display: inline;
font-weight: normal;
}
.footer {
background: #111;
color: #666;
text-align: center;
padding: 1em;
font-size: 80%;
}
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>pure</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.1.0/pure-min.css">
</head>
<body>
<!-- container -->
<div class="content pure-g-r">
<div class="splash pure-u-1">
<div class="pure-g-r">
<div class="pure-u-2-3">
<div class="l-box splash-text">
<h1 class="splash-head">Some big bold text.</h1>
<h2 class="splash-subhead">
The HTML and CSS for this layout show how you can make a modern, responsive landing page for your next product. Browse through the source to see how we use menus and responsive grids to create this layout. Shrink your browser width and watch the layout transform and play nice with small screens.
</h2>
<p><a href="#" class="pure-button primary-button">Get Started</a></p>
</div>
</div>
</div>
</div>
</div>
<!-- /container -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment