Style the blog

This commit is contained in:
Tyler Hallada 2014-07-13 19:18:26 -04:00
parent e030713d82
commit 47c05887f5
6 changed files with 164 additions and 199 deletions

View File

@ -1,3 +1,3 @@
name: Your New Jekyll Site name: Tyler Hallada - Blog
markdown: redcarpet markdown: redcarpet
pygments: true pygments: true

View File

@ -1,10 +1,18 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html style="background: whitesmoke">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ page.title }}</title> <title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width, initial-scale=1, max-scale=1">
<!-- 3rd party CSS -->
<link rel="stylesheet" href="/css/normalize.css">
<!-- Fix IE -->
<!--[if lt IE 9]>
<script src="http://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
<![endif]-->
<!-- syntax highlighting CSS --> <!-- syntax highlighting CSS -->
<link rel="stylesheet" href="/css/syntax.css"> <link rel="stylesheet" href="/css/syntax.css">
@ -12,33 +20,24 @@
<!-- Custom CSS --> <!-- Custom CSS -->
<link rel="stylesheet" href="/css/main.css"> <link rel="stylesheet" href="/css/main.css">
<!-- Web Fonts -->
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700' rel='stylesheet' type='text/css'>
</head> </head>
<body> <body>
<div class="container">
<div class="site"> <div class="row clearfix header">
<div class="header"> <h1 class="title"><a href="/blog">{{ site.name }}</a></h1>
<h1 class="title"><a href="/">{{ site.name }}</a></h1>
<a class="extra" href="/">home</a> <a class="extra" href="/">home</a>
</div> </div>
{{ content }} {{ content }}
<div class="row clearfix footer">
<div class="footer"> <div class="column full contact">
<div class="contact"> <p class="contact-info">
<p> <a href="mailto:tyler@hallada.net">tyler@hallada.net</a>
Tyler Hallada<br />
Programmer and writer<br />
tyler@hallada.net
</p>
</div>
<div class="contact">
<p>
<a href="https://github.com/yourusername">github.com/thallada</a><br />
<a href="https://twitter.com/yourusername">twitter.com/tyhallada</a><br />
</p> </p>
</div> </div>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,9 +1,18 @@
--- ---
layout: default layout: default
--- ---
<h2>{{ page.title }}</h2> <div class="card">
<p class="meta">{{ page.date | date_to_string }}</p> <div class="row clearfix post-header">
<div class="column three-fourths">
<div class="post"> <a href="{{ post.url }}"><h2 class="post-title">{{ page.title }}</h2></a>
{{ content }} </div>
<div class="column fourth">
<span class="timestamp">{{ page.date | date_to_string }}</span>
</div>
</div>
<div class="row clearfix">
<div class="column full post">
{{ content }}
</div>
</div>
</div> </div>

View File

@ -1,13 +1,27 @@
--- ---
layout: default layout: default
title: Tyler Hallada title: Tyler Hallada - Blog
--- ---
<div id="home"> {% for post in site.posts %}
<h1>Blog Posts</h1> <div class="card">
<ul class="posts"> <div class="row clearfix post-header">
{% for post in site.posts %} <div class="column three-fourths">
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li> <a href="{{ post.url }}"><h2 class="post-title">{{ post.title }}</h2></a>
{% endfor %} </div>
</ul> <div class="column fourth">
</div> <span class="timestamp">{{ post.date | date_to_string }}</span>
</div>
</div>
<div class="row clearfix">
<div class="column full post">
{{ post.excerpt }}
</div>
</div>
<div class="row clearfix more-row">
<div class="column full">
<a href="{{ post.url }}" class="read-more">Read More &raquo;</a>
</div>
</div>
</div>
{% endfor %}

View File

@ -12,31 +12,61 @@
box-sizing: border-box; box-sizing: border-box;
} }
/* Global Reset */ html {
/** {*/ width: 100%;
/*margin: 0;*/ height: 100%;
/*padding: 0;*/ }
/*}*/
/*makes the page overflow, so commenting out for now*/ body {
/*html, body { height: 100%; }*/ font-family: 'Open Sans', Arial, sans-serif;
font-style: normal;
font-weight: 400;
color: #444;
}
/*body {*/ strong {
/*background-color: #FFF;*/ font-weight: 400;
/*font: 13.34px Helvetica, Arial, sans-serif;*/ color: FireBrick;
/*font-size: small;*/ }
/*text-align: center;*/
/*}*/
/*h1, h2, h3, h4, h5, h6 {*/ h2 {
/*font-size: 100%; }*/ font-weight: 300;
}
/*h1 { margin-bottom: 1em; }*/ hr {
/*p { margin: 1em 0; }*/ width: 75%;
}
/*a { color: #00a; }*/ a {
/*a:hover { color: #000; }*/ color:FireBrick;
/*a:visited { color: #a0a; }*/ text-decoration: none;
}
a:visited {
color:#855C85;
}
a:hover {
color:FireBrick;
text-decoration: underline;
}
canvas {
position: fixed;
top: 0;
left: 0;
}
blockquote {
margin-left: 20px;
margin-right: 20px;
padding-left: 1rem;
border-left: solid 3px #aaa;
}
blockquote p {
margin-bottom: 6px;
}
/*****************************************************************************/ /*****************************************************************************/
/* /*
@ -106,94 +136,59 @@ img { width: auto; max-width: 100%; height: auto; }
/*****************************************************************************/ /*****************************************************************************/
/* /*
/* Home /* Blog
/*
/*****************************************************************************/
.posts {
list-style-type: none;
margin-bottom: 2em;
}
.posts li {
line-height: 1.75em;
}
.posts span {
color: #aaa;
font-family: Monaco, "Courier New", monospace;
font-size: 80%;
}
/*****************************************************************************/
/*
/* Site
/* /*
/*****************************************************************************/ /*****************************************************************************/
.site { h1.title {
font-size: 115%;
text-align: justify;
width: 42em;
margin: 3em auto 2em;
line-height: 1.5em;
}
.header a {
font-weight: bold;
text-decoration: none;
}
.title {
display: inline-block; display: inline-block;
margin-bottom: 2em; padding-right: 10px;
font-size: 2rem;
font-weight: 200;
} }
.title a { div.header a {
color: #a00; color: FireBrick;
} }
.title a:hover { span.timestamp {
color: #000; font-size: 0.85rem;
} }
.header a.extra { @media (min-width: 40rem) {
color: #aaa; span.timestamp {
margin-left: 1em;
}
.header a.extra:hover {
color: #000;
}
.meta {
color: #aaa;
}
.footer {
font-size: 80%;
color: #666;
border-top: 4px solid #eee;
margin-top: 2em;
overflow: hidden;
}
.footer .contact {
float: left;
margin-right: 3em;
}
.footer .contact a {
color: #8085C1;
}
.footer .rss {
margin-top: 1.1em;
margin-right: -.2em;
float: right; float: right;
font-size: 0.85rem;
}
} }
.footer .rss img { .post-header {
border: 0; padding-bottom: 10px;
}
a.read-more {
float: right;
font-size: 0.85rem;
}
h2.post-title {
margin-top: 0;
margin-bottom: 10px;
}
@media (min-width: 40rem) {
p.contact-links {
float: right;
}
}
.contact {
text-align: center;
padding-bottom: 10px;
}
div.more-row {
padding-top: 5px;
} }
/*****************************************************************************/ /*****************************************************************************/
@ -241,8 +236,6 @@ img { width: auto; max-width: 100%; height: auto; }
/*****************************************************************************/ /*****************************************************************************/
#home { #home {
font-family: 'Open Sans', Arial, sans-serif;
color: #444;
display: block; display: block;
position: relative; position: relative;
padding-top: 1.5rem; padding-top: 1.5rem;
@ -261,65 +254,13 @@ img { width: auto; max-width: 100%; height: auto; }
user-select: none; user-select: none;
} }
html { h1.big-name {
width: 100%;
height: 100%;
}
h1 {
font-size: 2rem; font-size: 2rem;
font-weight: 200; font-weight: 200;
margin-top: 0; margin-top: 0;
text-align: center; text-align: center;
} }
strong {
font-weight: 400;
color: FireBrick;
}
h2 {
font-size: .9rem;
line-height: 2.5;
color: gray;
font-weight: 400;
}
hr {
width: 75%;
}
a {
color:FireBrick;
text-decoration: none;
}
a:visited {
color:#663366;
}
a:hover {
color:FireBrick;
text-decoration: underline;
}
canvas {
position: fixed;
top: 0;
left: 0;
}
blockquote {
margin-left: 20px;
margin-right: 20px;
padding-left: 1rem;
border-left: solid 3px #aaa;
}
blockquote p {
margin-bottom: 6px;
}
#front-quote , #front-quote, p { #front-quote , #front-quote, p {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
@ -377,9 +318,11 @@ blockquote p {
a.no-decoration { a.no-decoration {
color: #444; color: #444;
} }
a.no-decoration:visited { a.no-decoration:visited {
color: #444; color: #444;
} }
a.no-decoration:hover { a.no-decoration:hover {
color: #444; color: #444;
text-decoration: none; text-decoration: none;

View File

@ -7,7 +7,7 @@ title: Tyler Hallada
<div class="card profile-card"> <div class="card profile-card">
<div class="row clearfix"> <div class="row clearfix">
<div class="column full"> <div class="column full">
<h1>Tyler Hallada</h1> <h1 class="big-name">Tyler Hallada</h1>
</div> </div>
</div> </div>
<div class="row clearfix"> <div class="row clearfix">