Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tracy-e committed Dec 23, 2013
1 parent 32c3975 commit 2ee0767
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 44 deletions.
1 change: 0 additions & 1 deletion layout/_partial/archive.ejs
Expand Up @@ -21,7 +21,6 @@ if (page.archive){
<article class="<%= item.layout %>">
<div class="post-content">
<header>
<div class="icon"></div>
<% if (item.link){ %>
<% if (item.title){ %>
<h1 class="title link"><a href="<%- item.link %>" target="_blank"><%= item.title %></a></h1>
Expand Down
1 change: 0 additions & 1 deletion layout/_partial/article.ejs
Expand Up @@ -8,7 +8,6 @@
<div class="post-content">
<header>
<% if (item.layout != 'page'){ %>
<div class="icon"></div>
<%- partial('post/title') %>
<time datetime="<%= item.date.toDate().toISOString() %>"><a href="<%- config.root %><%- item.path %>"><%= item.date.format(config.date_format) %></a></time>
<% } %>
Expand Down
3 changes: 2 additions & 1 deletion layout/_partial/head.ejs
Expand Up @@ -28,6 +28,7 @@
<% if (page.keywords){ %><meta name="keywords" content="<%= page.keywords %>"><% } %>
<% if (page.title){ %><meta property="og:title" content="<%= page.title %>"/><% } %>
<meta property="og:site_name" content="<%= config.title %>"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<% if(page.cover) { %>
<meta property="og:image" content="<%= page.cover %>" />
Expand All @@ -36,7 +37,7 @@
<% } %>
<link rel="apple-touch-icon" href="/icon.png" />
<link rel="shortcut icon" href="<%- config.root %>favicon.png" >
<link rel="alternate" href="<% if (theme.rss){ %><%- theme.rss %><% } else { %><%- config.root %>atom.xml<% } %>" title="<%= config.title %>" type="application/atom+xml">
<link rel="alternate" href="<% if (theme.rss){ %><%- theme.rss %><% } else { %><%- config.root %>atom.xml<% } %>" title="<%= config.title %>" type="application/atom+xml">
<link rel="stylesheet" href="<%- config.root %>css/style.css" media="screen" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
Expand Down
6 changes: 6 additions & 0 deletions layout/_partial/tabbar.ejs
@@ -0,0 +1,6 @@
<div class="tabbar" onload="divideTabBar()">
<% for (var i in theme.menu){ %>
<div class="tabbaritem"><a class="next" href="<%- theme.menu[i] %>"><%= i %></a></div>
<% } %>
</div>

12 changes: 9 additions & 3 deletions layout/layout.ejs
Expand Up @@ -3,16 +3,22 @@
<body>
<div id="content" class="inner">
<aside id="sidebar" class="alignleft">
<div class="navigationBar">
<a href="<%- config.root %>"><%= config.title %></a>
</div>
<div class="navigationBar">
<a href="<%- config.root %>"><%= config.title %></a>
</div>
<%- partial('_partial/sidebar') %>
<footer id="footer" class="inner"><%- partial('_partial/footer') %></footer>
</aside>


<div id="hidden-navigationBar" class="navigationBar">
<a href="<%- config.root %>"><%= config.title %></a>
</div>
<div id="main-col" class="alignright">
<div id="wrapper">
<%- body %></div>
</div>
<%- partial('_partial/tabbar') %>
</div>
</body>
</html>
32 changes: 30 additions & 2 deletions source/css/_base/layout.styl
Expand Up @@ -8,6 +8,8 @@ body
font-family font-default
margin 0
font-size 14px
@media screen and (max-width: 900px)
font-size 12px

h1, h2, h3, h4, h5, h6
font-family font-title
Expand Down Expand Up @@ -48,6 +50,23 @@ a
&:hover
text-decoration underline

.navigationBar
text-align center
width 280px
height 44px
line-height 44px
background rgba(255, 255, 255, 0.9)
border-bottom 1px solid color-border
margin-bottom 30px
a
font-family Cuprum
font-size 22px
font-weight bold
color black
&:hover
color color-link
text-decoration none

.alignleft
float left

Expand All @@ -59,7 +78,6 @@ a

.inner
width page-width
margin 0 auto
@media screen and (max-width: 1260px)
width 100%

Expand All @@ -69,8 +87,18 @@ a
width 100%
margin-left -280px

#hidden-navigationBar
display none
@media screen and (max-width: 900px)
display block
width 100%
margin-bottom 0

#wrapper
background color-background
padding 25px
@media screen and (max-width: 1260px)
margin-left 280px
margin-left 280px
@media screen and (max-width: 900px)
margin 0 0 60px 0
padding 20px 0
26 changes: 7 additions & 19 deletions source/css/_partial/article.styl
Expand Up @@ -2,20 +2,8 @@ icon-size = 32px
icon-gap = 25px

article
&.page
.icon
display none

&.post
background color-background
.icon
&:before
content '\f016'

&.photo
.icon
&:before
content '\f030'

&.link
.icon
Expand All @@ -33,10 +21,12 @@ article

.post-content
background-color white
padding 20px 20px 15px (icon-size + icon-gap + 20)
padding 20px 20px 15px 20px
border 1px solid color-border
margin-bottom 30px
position relative
@media screen and (max-width: 900px)
padding 10px

.gallery
overflow hidden
Expand Down Expand Up @@ -255,6 +245,9 @@ article
position relative
min-height 16px
.addthis
margin-top 15px
iframe
margin-top 0
a
color color-font
&:hover
Expand Down Expand Up @@ -300,9 +293,4 @@ article
&:before
content '\f02b'
top 3px
left 2px

.addthis
margin-top 15px
iframe
margin-top 0
left 2px
2 changes: 1 addition & 1 deletion source/css/_partial/index.styl
Expand Up @@ -7,7 +7,7 @@
text-shadow 0 0 1px #fff
margin-bottom 50px
&:hover
color #fff
color color-font
text-decoration none
text-shadow none

Expand Down
18 changes: 2 additions & 16 deletions source/css/_partial/sidebar.styl
@@ -1,4 +1,6 @@
#sidebar
@media screen and (max-width: 900px)
display none
display block
background color-background
border-right 1px solid rgb(200, 200, 200)
Expand All @@ -7,22 +9,6 @@
line-height 1.8em
position fixed
margin 0
.navigationBar
text-align center
width side-width
height 44px
line-height 44px
background white
border-bottom 1px solid color-border
margin-bottom 30px
a
font-family Cuprum
font-size 22px
font-weight bold
color black
&:hover
color color-link
text-decoration none

#menu
border-bottom-style none
Expand Down
27 changes: 27 additions & 0 deletions source/css/_partial/tabbar.styl
@@ -0,0 +1,27 @@
.tabbar
display none
@media screen and (max-width: 900px)
display block
position fixed
bottom 0
width 100%
height 44px
line-height 44px
background-color rgba(255, 255, 255, 0.9)
border-top 1px solid color-border
padding 0
.tabbaritem
margin 0
padding 0
float left
height 100%
width 25%
text-align center
font-size 18px
a
color color-font
&:hover
color color-meta
text-decoration none


1 change: 1 addition & 0 deletions source/css/style.styl
Expand Up @@ -10,5 +10,6 @@
@import '_partial/index'
@import '_partial/archive'
@import '_partial/sidebar'
@import '_partial/tabbar'
@import '_partial/footer'
@import '_partial/syntax'

0 comments on commit 2ee0767

Please sign in to comment.