Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
New header style.
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Dec 30, 2013
1 parent fdf8aca commit 3defefb
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 18 deletions.
19 changes: 15 additions & 4 deletions _assets/stylesheets/_style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,29 @@ pre code
text-align: right
opacity: 0.5

h2.tagline
+simple_emboss(#fff)
font-size: 0.9em
text-align: center

#top
text-align: center
margin-bottom: $top_margin-bottom
background-color: $clr_blue_green

#banner
width: 100%
height: $banner_height
margin: 0.2 * $banner_height auto
margin-bottom: $banner_margin-bottom
padding-top: 0.3 * $banner_height
background-color: $clr_blue_green

#title
margin-bottom: $title_margin-bottom
color: $site_title_clr
font-family: $site_title_font
font-weight: $site_title_font_weight
text-transform: lowercase
+simple_emboss
&:before
content: "{"
&:after
Expand All @@ -56,7 +62,9 @@ pre code
content: "|"

#personal_links
+simple_emboss
display: inline-block
color: $site_title_clr
a.icon
line-height: normal
font-size: 1.3em
Expand All @@ -77,10 +85,13 @@ section.posts
li
text-transform: lowercase
list-style-type: none
$local_margin: rem-calc(5)
&:before
content: "« "
margin-right: $local-margin
content: "«"
&:after
content: " »"
margin-left: $local-margin
content: "»"

article.post.single
header
Expand Down
7 changes: 5 additions & 2 deletions _assets/stylesheets/_variables.sass
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
background-size: contain
padding-left: $padding

=simple_emboss($color:#000)
text-shadow: 0px 1px 0px $color

// Colors
$clr_white: #fff
Expand All @@ -23,8 +26,8 @@ $clr_blue_green: #467d91
$top_margin-bottom: rem-calc(10)

// Banner
$banner_height: rem-calc(100)
$banner_margin-bottom: rem-calc(20)
$banner_height: rem-calc(80)
$title_margin-bottom: rem-calc(5)
$site_title_font: "Open Sans", sans-serf
$site_title_clr: $clr_white
$site_title_font_weight: lighter
Expand Down
2 changes: 2 additions & 0 deletions _data/text.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tagline: Ph.D. physics student, online business owner, and developer.
post_list_title: words and such
8 changes: 3 additions & 5 deletions _includes/personal_links.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<p>Ph.D. physics student and online business owner.</p>

<nav id="personal_links">
<ul>
{% for item in site.data.personal_links %}
<li><a class="icon {{ item.icon }}" href="{{ item.url }}"></a></li>
<li><a class="icon {{ item.icon }}" href="{{ item.url }}" title="{{ item.name }}"></a></li>
{% endfor %}
<li><a href="" data-reveal-id="email_modal">@</a></li>
<li><a href="{{ site.baseurl }}/cv/">CV</a></li>
<li><a href="" data-reveal-id="email_modal" title="Email">@</a></li>
<li><a href="{{ site.baseurl }}/cv/" title="Curriculum Vitae">CV</a></li>
</ul>
</nav>
6 changes: 2 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@

<body>
<header id="top">
<h1 id="banner"><a id="title" href="{{ site.baseurl }}/">Evan <span></span> Sosenko</a></h1>
{% if page.personal_links %}
{% include personal_links.html %}
{% endif %}
<h1 id="banner" title="{{ site.data.text.tagline }}"><a id="title" href="{{ site.baseurl }}/">Evan <span></span> Sosenko</a></h1>
{% include personal_links.html %}
</header>

{{ content }}
Expand Down
1 change: 0 additions & 1 deletion cv/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
layout: default
title: Curriculum Vitae
personal_links: true
---

<section id="cv">
Expand Down
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
layout: default
title: "{evan|sosenko}"
personal_links: true
---

{% if site.paginate %}
Expand All @@ -10,8 +9,10 @@
{% assign posts = site.posts %}
{% endif %}

<h2 class="tagline">{{ site.data.text.tagline }}</h2>

<section class="posts">
<h2>posts and such</h2>
<h2>{{ site.data.text.post_list_title }}</h2>
<ul class="posts">
{% for post in posts %}
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
Expand Down

0 comments on commit 3defefb

Please sign in to comment.