Skip to content

Commit 9931bd1

Browse files
committed
First pass at masthead styling.
1 parent db4dcea commit 9931bd1

File tree

4 files changed

+70
-28
lines changed

4 files changed

+70
-28
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
# The name of your site
6-
name: Jekyll Boilerplate
6+
name: Barry Clark
77

88
# A short bio or description
99
description: Short bio of description placeholder.

_layouts/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<body>
2323
<header class="masthead">
2424
<img src="{{ site.avatar }}" class="avatar" />
25-
<a href="/" class="name">{{ site.name }}</a>
26-
<p class="description">{{ site.description }}</p>
25+
<a href="/" class="site-name">{{ site.name }}</a>
26+
<p class="site-description">{{ site.description }}</p>
2727

2828
<nav>
2929
<a href="/">Blog</a>

scss/style.scss

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,46 @@ img {
105105
// LAYOUT / SECTIONS
106106
//
107107

108-
.logo {
108+
//
109+
// .masthead
110+
//
111+
112+
.masthead {
113+
margin: 20px 0 70px;
114+
padding-bottom: 20px;
115+
border-bottom: 2px solid $darkGray;
116+
}
117+
118+
.avatar {
109119
float: left;
120+
width: 35px;
110121

111-
a {
122+
margin-right: 10px;
123+
border-radius: 5px;
124+
}
125+
126+
.site-name {
127+
float: left;
128+
129+
font-family: $helveticaNeue;
130+
font-weight: 300;
131+
font-size: 24px;
132+
letter-spacing: 1px;
133+
@include mobile {
134+
font-size: 22px;
135+
}
136+
137+
text-decoration: none;
138+
cursor: pointer;
139+
color: $darkGray;
140+
&:hover, &:active {
112141
text-decoration: none;
113-
cursor: pointer;
114-
color: $darkGray;
115-
&:hover, &:active {
116-
color: $blue;
117-
}
118142
}
119143
}
120144

121-
.avatar {
122-
border-radius: 6px;
145+
.site-description {
146+
float: left;
147+
display: none;
123148
}
124149

125150
nav {
@@ -137,15 +162,12 @@ nav {
137162
text-align: right;
138163
font-weight: 300;
139164
letter-spacing: 1px;
140-
color: $gray;
165+
color: $darkGray;
141166

142167
&:hover, &:active {
143168
text-decoration: none;
144169
cursor: pointer;
145170
color: $darkGray;
146-
&:hover, &:active {
147-
color: $blue;
148-
}
149171
}
150172
}
151173
}
@@ -158,6 +180,10 @@ nav {
158180
}
159181
}
160182

183+
//
184+
// .main
185+
//
186+
161187
.posts > .post {
162188
padding-bottom: 2em;
163189
border-bottom: 1px solid $lighterGray;

style.css

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -351,17 +351,35 @@ img {
351351
color: black;
352352
background: #eeeeee; }
353353

354-
.logo {
355-
float: left; }
356-
.logo a {
357-
text-decoration: none;
358-
cursor: pointer;
359-
color: #333333; }
360-
.logo a:hover, .logo a:active {
361-
color: #4183c4; }
354+
.masthead {
355+
margin: 20px 0 70px;
356+
padding-bottom: 20px;
357+
border-bottom: 2px solid #333333; }
362358

363359
.avatar {
364-
border-radius: 6px; }
360+
float: left;
361+
width: 35px;
362+
margin-right: 10px;
363+
border-radius: 5px; }
364+
365+
.site-name {
366+
float: left;
367+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
368+
font-weight: 300;
369+
font-size: 24px;
370+
letter-spacing: 1px;
371+
text-decoration: none;
372+
cursor: pointer;
373+
color: #333333; }
374+
@media screen and (max-width: 520px) {
375+
.site-name {
376+
font-size: 22px; } }
377+
.site-name:hover, .site-name:active {
378+
text-decoration: none; }
379+
380+
.site-description {
381+
float: left;
382+
display: none; }
365383

366384
nav {
367385
float: right;
@@ -375,13 +393,11 @@ nav {
375393
text-align: right;
376394
font-weight: 300;
377395
letter-spacing: 1px;
378-
color: #666666; }
396+
color: #333333; }
379397
nav a:hover, nav a:active {
380398
text-decoration: none;
381399
cursor: pointer;
382400
color: #333333; }
383-
nav a:hover:hover, nav a:hover:active, nav a:active:hover, nav a:active:active {
384-
color: #4183c4; }
385401

386402
@media screen and (max-width: 520px) {
387403
.logo, nav {

0 commit comments

Comments
 (0)