mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-18 18:29:54 +00:00
Small design and layout tweaks
This commit is contained in:
parent
7659eeb4f1
commit
0dcb34a4d6
10 changed files with 42 additions and 49 deletions
1
Rules
1
Rules
|
@ -48,6 +48,7 @@ end
|
||||||
|
|
||||||
compile '*' do
|
compile '*' do
|
||||||
filter :rdiscount
|
filter :rdiscount
|
||||||
|
layout 'page'
|
||||||
layout 'default'
|
layout 'default'
|
||||||
filter :rubypants
|
filter :rubypants
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
$ans-serif: Carlito, Calibri, sans-serif
|
$ans-serif: Carlito, Calibri, sans-serif
|
||||||
|
$header-colour: #242424
|
||||||
|
|
||||||
body
|
body
|
||||||
font-family: $ans-serif
|
font-family: $ans-serif
|
||||||
|
@ -134,7 +135,7 @@ body > header
|
||||||
font-size: 18px
|
font-size: 18px
|
||||||
color: white
|
color: white
|
||||||
padding: 0.5em
|
padding: 0.5em
|
||||||
background: #1C1C1C
|
background-color: $header-colour
|
||||||
|
|
||||||
a
|
a
|
||||||
-webkit-transition: border-bottom-color 500ms ease-out
|
-webkit-transition: border-bottom-color 500ms ease-out
|
||||||
|
@ -147,16 +148,16 @@ body > header
|
||||||
&:hover
|
&:hover
|
||||||
border-bottom-color: rgba(255, 255, 255, 1.0)
|
border-bottom-color: rgba(255, 255, 255, 1.0)
|
||||||
|
|
||||||
span
|
|
||||||
display: none
|
|
||||||
|
|
||||||
|
|
||||||
#menu
|
#menu
|
||||||
float: right
|
float: right
|
||||||
padding-right: 0.25em
|
padding-right: 0.25em
|
||||||
|
|
||||||
li
|
li
|
||||||
font-size: inherit
|
font-size: 14px
|
||||||
|
font-weight: bold
|
||||||
|
text-transform: uppercase
|
||||||
|
letter-spacing: 0.5px
|
||||||
|
|
||||||
|
|
||||||
#content
|
#content
|
||||||
|
@ -303,17 +304,12 @@ body.articles #content nav
|
||||||
|
|
||||||
|
|
||||||
#respond
|
#respond
|
||||||
margin-top: 10px
|
margin: 3em 0
|
||||||
padding: 10px
|
|
||||||
background-color: #ddd
|
|
||||||
clear: both
|
clear: both
|
||||||
|
|
||||||
h2
|
h2
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
|
|
||||||
.short
|
|
||||||
font-size: smaller
|
|
||||||
|
|
||||||
#content
|
#content
|
||||||
.published
|
.published
|
||||||
font-family: $ans-serif
|
font-family: $ans-serif
|
||||||
|
@ -521,13 +517,10 @@ body.weather
|
||||||
body
|
body
|
||||||
font-size: 20px
|
font-size: 20px
|
||||||
|
|
||||||
body > header span
|
body > header
|
||||||
float: right
|
text-align: center
|
||||||
display: inline
|
|
||||||
cursor: pointer
|
|
||||||
|
|
||||||
#menu
|
#menu
|
||||||
display: none
|
|
||||||
float: none
|
float: none
|
||||||
padding: 0.5em 0 0 0
|
padding: 0.5em 0 0 0
|
||||||
line-height: 2
|
line-height: 2
|
||||||
|
|
|
@ -1,17 +1,20 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="initial-scale=1.0" />
|
<meta name="viewport" content="initial-scale=1.0" />
|
||||||
<title><%=h [@item[:title], 'WezM.net by Wesley Moore'].compact.join(' - ') %></title>
|
<title><%=h [@item[:title], 'WezM.net by Wesley Moore'].compact.join(' - ') %></title>
|
||||||
|
<meta name="author" content="Wesley Moore" />
|
||||||
<% if @item[:extra] %><meta name="description" content="<%=h @item[:extra] %>"><% end %>
|
<% if @item[:extra] %><meta name="description" content="<%=h @item[:extra] %>"><% end %>
|
||||||
<% if @item[:keywords] %><meta name="keywords" content="<%=h @item[:keywords].join(',') %>"><% end %>
|
<% if @item[:keywords] %><meta name="keywords" content="<%=h @item[:keywords].join(',') %>"><% end %>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="/js/html5.js"></script>
|
<script src="/js/html5.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<link rel="stylesheet" href="/css/reset.css" type="text/css" media="screen,projection" />
|
<link rel="stylesheet" href="/css/reset.css" type="text/css" />
|
||||||
<link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen,projection" />
|
<link rel="stylesheet" href="/css/screen.css" type="text/css" />
|
||||||
<link rel="stylesheet" href="/css/prettyPhoto.css?v=3.0.1" type="text/css" media="screen" charset="utf-8" />
|
<link rel="stylesheet" href="/css/rouge.css" type="text/css" />
|
||||||
|
<link rel="stylesheet" href="/css/prettyPhoto.css?v=3.0.1" type="text/css" charset="utf-8" />
|
||||||
<link rel="alternate" href="/feed/" type="application/atom+xml" title="WezM.net - All Articles" />
|
<link rel="alternate" href="/feed/" type="application/atom+xml" title="WezM.net - All Articles" />
|
||||||
<link rel="alternate" href="/technical/feed/" type="application/atom+xml" title="WezM.net - Technical Articles" />
|
<link rel="alternate" href="/technical/feed/" type="application/atom+xml" title="WezM.net - Technical Articles" />
|
||||||
<link rel="alternate" href="/personal/feed/" type="application/atom+xml" title="WezM.net - Personal Articles" />
|
<link rel="alternate" href="/personal/feed/" type="application/atom+xml" title="WezM.net - Personal Articles" />
|
||||||
|
<link rel="author" href="http://www.wezm.net/" />
|
||||||
<script src="/js/jquery-1.4.4.min.js" type="text/javascript" charset="utf-8"></script>
|
<script src="/js/jquery-1.4.4.min.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="/js/jquery.timers-1.1.2.js" type="text/javascript" charset="utf-8"></script>
|
<script src="/js/jquery.timers-1.1.2.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="/js/jquery.prettyPhoto.js?v=3.0.1" type="text/javascript" charset="utf-8"></script>
|
<script src="/js/jquery.prettyPhoto.js?v=3.0.1" type="text/javascript" charset="utf-8"></script>
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
<header>
|
<header>
|
||||||
<a href="/">WezM<sup>.net</sup></a>
|
<a href="/">WezM<sup>.net</sup></a>
|
||||||
<span>Menu</span>
|
|
||||||
<nav id="menu" class="inline">
|
<nav id="menu" class="inline">
|
||||||
<li><a href="/articles/">Articles</a></li>
|
<li><a href="/articles/">Archive</a></li>
|
||||||
<li><a href="/about/">About</a></li>
|
<li><a href="/about/">About</a></li>
|
||||||
<li><a href="/projects/">Projects</a></li>
|
<li><a href="/projects/">Projects</a></li>
|
||||||
<li>
|
<li>
|
||||||
<a href="/feed/"><img src="/images/feed-icon.svg" width="12" height="12" alt="White Feed Icon" /></a> <a href="/feed/">Feed</a>
|
<a href="/feed/"><img src="/images/feed-icon.svg" width="12" height="12" alt="White Feed Icon" /> Feed</a>
|
||||||
</li>
|
</li>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -1,24 +1,19 @@
|
||||||
<% post_date = WezM::Helpers.parse_post_date(@item) %>
|
<% post_date = WezM::Helpers.parse_post_date(@item) %>
|
||||||
<% short = @item[:short_url] %>
|
<article>
|
||||||
<div class="published">
|
<header>
|
||||||
Published on
|
<h1><a href="<%= @item.reps[:default].path %>"><%=h @item[:title] %></a></h1>
|
||||||
<abbr class="calender date" title="<%= post_date.iso8601 %>">
|
<div class="published">
|
||||||
<span class="weekday"><%= post_date.strftime('%a') %></span>,
|
Published on
|
||||||
<span class="day"><%= post_date.day %></span>
|
<time datetime="<%= post_date.iso8601 %>"><%= post_date.strftime('%a, %d %B %Y') %></time>
|
||||||
<span class="month"><%= post_date.strftime('%B') %></span>
|
</div>
|
||||||
<span class="year"><%= post_date.year %></span>
|
</header>
|
||||||
</abbr>
|
<%= yield %>
|
||||||
</div>
|
<div id="respond">
|
||||||
<%= yield %>
|
<h2>
|
||||||
<div id="respond">
|
<img src="/images/comment.svg" width="32" height="32" alt="Comment icon" class="comment align-top" />
|
||||||
<h2>
|
Stay in touch!
|
||||||
<img src="/images/comment.svg" width="32" height="32" alt="Comment icon" class="comment align-top" />
|
</h2>
|
||||||
Stay in touch!
|
<p>Follow me on <a href="https://twitter.com/wezm">Twitter</a>, or <a href="https://mastodon.social/@wezm">Mastodon</a>, <a href="/feed/">subscribe to the feed</a>, or <a href="mailto:wes@wezm.net">send me an email</a>.
|
||||||
</h2>
|
</p>
|
||||||
<p>Follow me on <a href="https://twitter.com/wezm">Twitter</a>, or <a href="https://mastodon.social/@wezm">Mastodon</a>, <a href="/feed/">subscribe to the feed</a>, or <a href="mailto:wes@wezm.net">send me an email</a>.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="text-right">
|
|
||||||
<span class="short">Short URL: <a href="<%= short %>"><%= short %></a></span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</article>
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
<body<%= %Q( class="#{@item[:body_class]}") if @item[:body_class] %>>
|
<body<%= %Q( class="#{@item[:body_class]}") if @item[:body_class] %>>
|
||||||
<%= render '_header' %>
|
<%= render '_header' %>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h1><a href="<%= @item.reps[:default].path %>"><%=h @item[:title] %></a></h1>
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</div>
|
</div>
|
||||||
<%= render '_footer' %>
|
<%= render '_footer' %>
|
||||||
|
|
4
layouts/page.html
Normal file
4
layouts/page.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<div id="content">
|
||||||
|
<h1><a href="<%= @item.reps[:default].path %>"><%=h @item[:title] %></a></h1>
|
||||||
|
<%= yield %>
|
||||||
|
</div>
|
2
layouts/page.yaml
Normal file
2
layouts/page.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
--- {}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# before nanoc starts compiling.
|
# before nanoc starts compiling.
|
||||||
|
|
||||||
require 'json'
|
require 'json'
|
||||||
|
require 'rouge'
|
||||||
|
|
||||||
include Nanoc::Helpers::Rendering
|
include Nanoc::Helpers::Rendering
|
||||||
include Nanoc::Helpers::Blogging
|
include Nanoc::Helpers::Blogging
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
jQuery(function() {
|
jQuery(function() {
|
||||||
$('body > header span').click(function() {
|
|
||||||
$('#menu').slideToggle('normal');
|
|
||||||
})
|
|
||||||
|
|
||||||
/*** Article Search ***/
|
/*** Article Search ***/
|
||||||
function reset_search() {
|
function reset_search() {
|
||||||
$('#articles li').css({height: 'auto', opacity: 1.0});
|
$('#articles li').css({height: 'auto', opacity: 1.0});
|
||||||
|
|
Loading…
Reference in a new issue