Skip to content

Commit 5fe72bc

Browse files
committed
steal some css from the blog
1 parent e5063cc commit 5fe72bc

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

content/changes/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
title: GitHub API Changes
33
---
44

5+
# API Changes
6+
57
<% sorted_articles.each do |article| %>
6-
<div class="article" id="article<%= article.path %>">
8+
<div class="change" id="<%= article.path %>">
79
<%= render '_meta', :item => article, :level => :h2 %>
810
<%= article.compiled_content %>
911
</div>

layouts/_meta.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<<%= @level %>>
1+
<<%= @level %> class="title">
22
<a href="<%= @item.path %>"><%= @item[:title] %></a>
33
</<%= @level %>>
44

static/shared/css/documentation.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ h2 {
4040
body.api .content h2 {
4141
background: transparent url(../images/crud-sprite.png) left 2px no-repeat;
4242
padding-left: 22px;
43+
margin-bottom: 0.5em;
44+
margin-top: 1em;
45+
}
46+
47+
body.api .change h2.title {
48+
background: none;
49+
padding-left: 0;
50+
font-size:24px;
4351
}
4452

4553
h2 span.step {
@@ -541,6 +549,23 @@ p code {
541549
.content .intro {
542550
color: #868686;
543551
}
552+
553+
.change {
554+
padding-bottom: 1em;
555+
}
556+
557+
.change .meta {
558+
font-size: 16px;
559+
}
560+
561+
.change .who_when .author {
562+
color: #eee;
563+
}
564+
565+
.change .who_when .published {
566+
color: #ccc;
567+
}
568+
544569
/* @end */
545570

546571
/*------------------------------------------------------------------------------

0 commit comments

Comments
 (0)