Skip to content

Commit

Permalink
article style guide (shaky)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Moody committed Feb 2, 2014
1 parent cdb43ef commit 8997109
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 33 deletions.
2 changes: 1 addition & 1 deletion _drafts/moodboard-for-this-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: "Moodboard for This Site"
layout: post
category: blogging_about
tags:
---
---
12 changes: 6 additions & 6 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
---
{% assign author = site.authors[page.author] %}
<div id="content" class="site">
<article itemscope itemtype=http://schema.org/BlogPosting>
<article itemscope itemtype=http://schema.org/BlogPosting class="default">
<meta itemprop="description" content="{{ page.excerpt | strip_html}}">
<header>
<h3 itemprop="name">{{ page.title }}</h3>
<header class="article-header">
<h1 itemprop="name">{{ page.title }}</h1>
<p>Published on <time itemprop="datePublished" datetime="{{page.date | date: "%Y-%m-%d" }}">{{page.date | date: "%b %e, %Y" }}</time></p>
</header>
<div>
Published on <time itemprop="datePublished" datetime="{{page.date | date: "%Y-%m-%d" }}">{{page.date | date: "%b %e, %Y" }}</time>
</div>
<section itemprop="articleBody">
<section itemprop="articleBody" class="article-body">
{{ content }}
</section>
<footer>
<footer class="article-footer">
<div class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="{{author.web}}"><img itemprop="image" src="http://www.gravatar.com/avatar/{{author.gravatar}}" alt="{{author.display_name}}" width="30" height="30"></a>
<h3>About the author: <a href="{{site.authors[page.author].web}}" itemprop="url"><span itemprop="name">{{author.display_name}}</span></a></h3>
Expand Down
7 changes: 5 additions & 2 deletions blogging_about/_posts/2013-12-06-the-roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags: design, design update
author: garthdb
date: '2013-12-06 10:15:00'
---
Someone in the IRC[^1] asked how they could contribute and what our roadmap is. I thought I would lay out a few places where anyone could jump in if they wanted to help out.
Someone in the IRC[^1] asked how they could[^2] contribute and what our[^3] roadmap is. I thought I[^4] would lay out a few places where anyone could jump in if they wanted to help out.

<!--more-->

Expand Down Expand Up @@ -73,4 +73,7 @@ The idea is each post should be unique, so there is no style guide to follow; ma

Sorry, resource seeker sounds lame, but I couldn't think of a more elegant want to put it. We have a running list of resources and examples of open source design. Feel free to tweet [@designopen](http://www.twitter.com/designopen) if you have anything you'd like to add.

[^1]: Our IRC channel is #opensourcedesign on Freenode
[^1]: Our IRC channel is #opensourcedesign on Freenode
[^2]: Our IRC channel is #opensourcedesign on Freenode
[^3]: Our IRC channel is #opensourcedesign on Freenode
[^4]: Our IRC channel is #opensourcedesign on Freenode
207 changes: 183 additions & 24 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
body {
font: normal normal normal 1em/1.5 'source_sans_pro', sans;
margin: 0;
background: rgb(248,248,248);
font-weight: 300;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
/*Media Queries for Text Size Changes*/
@media only screen and (max-width: 500px) {
:root {
font-size: 90%;
}
}
@media only screen and (min-width: 500px) and (max-width: 800px) {
:root {
font-size: 100%;
}
}
@media only screen and (min-width: 800px) {
:root {
font-size: 120%;
}
}

a{
color: rgb(49,107,158);
text-decoration: inherit;
}
a:hover {
text-decoration: underline;
}

.site {
max-width: 36em;
margin: 0 auto;
padding: 0 1em;
}
Expand All @@ -30,7 +39,6 @@ nav li {
article img {
max-width: 100%;
height: auto;

}
section{
padding: 1px 0;
Expand All @@ -46,6 +54,7 @@ section>.title{
padding-bottom: 56.25%;
height: 0;
width: 100%;
margin: 1em 0;
}
.videoContainer iframe {
position: absolute;
Expand Down Expand Up @@ -81,23 +90,173 @@ section>.title{
padding: 0;
}

/*Media Queries for Text Size Changes*/
@media only screen and (max-width: 500px) {
:root {
font-size: 90%;
}
/* Article*/
article{
font-size: 1.375em;
line-height: 1.5;
font-weight: 400;
padding: 1px 0;
color: rgba(0,0,0,.75);
}
@media only screen and (min-width: 500px) and (max-width: 800px) {
:root {
font-size: 100%;
}
article .article-header{
margin: 0 10% 0 20%;
}
@media only screen and (min-width: 800px) {
:root {
font-size: 120%;
}
article .article-body{
margin: 0 20%;
}
article .article-footer{
margin: 0 20%;
}
article h1{
font-size: 3.375em;
font-weight: 200;
line-height: 1;
margin: 0 0 .25em;
}
article h2{
font-size: 1.5em;
line-height: 1;
font-weight: 400;
margin: 2em 0 .5em;
}
article h3{
font-size: 1em;
text-transform: uppercase;
margin: 1.5em 0 0;
letter-spacing: .1em;
font-weight: 600;
}
article h4{
font-size: 1em;
margin: 1.5em 0 0;
font-weight: 600;
}
article h5{
font-size: 1em;
margin: 1.5em 0 0;
font-weight: 600;
}
article h6{
font-size: 1em;
margin: 1.5em 0 0;
font-weight: 600;
}
article p{
font-size: 1em;
margin: 0 0 1em;
}
article a{
color: inherit;
text-decoration: none;
position: relative;
}
article p>a::before{
content: '';
position: absolute;
top: 0;
left: 0;
display: inline-block;
height: .8em;
width: 100%;
margin: .2em 0 0;
background: yellow;
z-index: -1;
}
article p>a:hover::before{
border-bottom: 1px solid;
}
article code{
font-size: 80%;
}
article blockquote{
font-style: italic;
padding: .5em 1em .75em;
margin: 1em 0 1em;
font-size: 1.5em;
line-height: 1.2;
font-weight: 300;
border-top: 1px solid;
border-bottom: 1px solid;
}
article blockquote p{
margin: 0;
}
article ul{
list-style: none;
padding: 0 0 0 1em;
counter-reset: ul;
}
article ul li{
margin: 0 0 .5em;
}
article ul li::before{
content: "\25ca";
display: inline-block;
width: 1em;
margin: 0 0 0 -1em;
color: rgb(49,107,158);
}
article ol{
padding: 0;
list-style: none;
padding: 0 0 0 1em;
counter-reset: o;
}
article ol li{
counter-increment: o;
margin: 0 0 .5em;
}
article ol li::before{
display: inline-block;
content: counter(o) ".";
width: 1em;
margin: 0 0 0 -1em;
color: rgb(49,107,158);
}
.footnotes ol{
padding: 0;
list-style: none;
padding: 0 0 0 1em;
counter-reset: o;
}
.footnotes ol li{
counter-increment: o;
margin: 0 0 .5em;
}
.footnotes ol li::before{
display: inline-block;
content: counter(o) ".";
width: 1em;
margin: 0 0 0 -1em;
color: rgb(49,107,158);
}
.footnotes p{
display: inline-block;
margin: 0;
}

sup:nth-of-type(4n+1){
color: green;
}
sup:nth-of-type(4n+2){
color: blue;
}
sup:nth-of-type(4n+3){
color: cyan;
}
sup:nth-of-type(4n+0){
color: red;
}



.footnotes li:nth-of-type(4n+1){
border-left: 4px solid green;
}
.footnotes li:nth-of-type(4n+2){
border-left: 4px solid blue;
}
.footnotes li:nth-of-type(4n+3){
border-left: 4px solid cyan;
}
.footnotes li:nth-of-type(4n+0){
border-left: 4px solid red;
}

0 comments on commit 8997109

Please sign in to comment.