Skip to content

Commit 544ec9e

Browse files
styling the header
1 parent 2d42e0c commit 544ec9e

File tree

4 files changed

+60
-52
lines changed

4 files changed

+60
-52
lines changed

_sass/header.scss

Lines changed: 59 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,9 @@ header {
22
padding-top: $large-vertical-space;
33
padding-bottom: $large-vertical-space;
44
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
5-
background: $header-bg url(/img/theme/header-bg.jpg) 0 0 repeat-x;
5+
background: $header-bg url(/img/theme/header-bg.png) 0 0 repeat;
66
border-bottom: solid 1px $header-border;
77

8-
#logo {
9-
position: absolute;
10-
top: 0;
11-
left: 0;
12-
width: 150px;
13-
height: 150px;
14-
border: solid 2px $header-text;
15-
border-radius: 10px;
16-
}
17-
188
h1 {
199
width: $header-width-monitor;
2010
margin-top: 0;
@@ -37,23 +27,39 @@ header {
3727
letter-spacing: 0;
3828
}
3929

40-
a.button {
30+
.buttons {
4131
position: absolute;
4232
top: 0;
4333
right: 0;
44-
background: transparent url(/img/theme/github-button.png) 0 0 no-repeat;
45-
width: 134px;
46-
height: 58px;
47-
padding-top: 22px;
48-
padding-left: 68px;
49-
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
50-
font-size: 23px;
51-
line-height: 1.2;
52-
color: $bright-white;
34+
min-height: 180px;
35+
}
36+
37+
a.button {
38+
&.github-button {
39+
background: transparent url(/img/theme/github-button.png) 0 0 no-repeat;
40+
display: block;
41+
width: 134px;
42+
height: 58px;
43+
padding-top: 22px;
44+
padding-left: 68px;
45+
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
46+
font-size: 23px;
47+
line-height: 1.2;
48+
color: $bright-white;
49+
50+
small {
51+
display: block;
52+
font-size: 11px;
53+
}
54+
}
5355

54-
small {
56+
&.logo-button {
57+
background: transparent url(/img/theme/logo-button.png) 0 0 no-repeat;
5558
display: block;
56-
font-size: 11px;
59+
60+
span {
61+
display: none;
62+
}
5763
}
5864
}
5965
}
@@ -76,7 +82,7 @@ header {
7682
// Phone size
7783
@media only screen and (max-width: $phone-max-width) {
7884
header {
79-
padding: $small-vertical-space 0;
85+
padding: 100px 0 $small-vertical-space 0;
8086

8187
.inner {
8288
position: relative;
@@ -92,26 +98,39 @@ header {
9298
font-size: 24px;
9399
}
94100

95-
a.button {
96-
position: relative;
97-
display: inline-block;
101+
.buttons {
102+
position: static;
103+
display: block;
98104
width: auto;
99-
height: auto;
100-
padding: 5px 10px;
101105
margin-top: 15px;
102-
font-size: 13px;
103-
line-height: 1;
104-
color: $medium-blue;
105-
text-align: center;
106-
background-color: $light-blue;
107-
background-image: none;
108-
border-radius: 5px;
109-
-moz-border-radius: 5px;
110-
-webkit-border-radius: 5px;
106+
}
111107

112-
small {
113-
display: inline;
108+
a.button {
109+
&.github-button {
110+
display: inline-block;
111+
width: auto;
112+
height: auto;
113+
padding: 5px 10px;
114114
font-size: 13px;
115+
line-height: 1;
116+
color: $medium-blue;
117+
text-align: center;
118+
background-color: $light-blue;
119+
background-image: none;
120+
border-radius: 5px;
121+
-moz-border-radius: 5px;
122+
-webkit-border-radius: 5px;
123+
124+
small {
125+
display: inline;
126+
font-size: 13px;
127+
}
128+
}
129+
130+
&.logo-button {
131+
position: absolute;
132+
top: 10px;
133+
left: 10px;
115134
}
116135
}
117136
}

_sass/sidebar.scss

Lines changed: 0 additions & 10 deletions
This file was deleted.

_sass/variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $heading-left-padding: $small-horizontal-space;
4949

5050
// Site Header
5151
// ===============================
52-
$header-bg: #2e7bcf;
52+
$header-bg: #4184F7;
5353
$header-border: #275da1;
5454
$header-text: $bright-white;
5555

css/style.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
@import 'content';
1212
@import 'headings';
1313
@import 'code';
14-
@import 'sidebar';
1514
@import 'footer';

0 commit comments

Comments
 (0)