Skip to content

Commit 2786a77

Browse files
styling the header
1 parent 544ec9e commit 2786a77

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

_sass/header.scss

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,24 @@ header {
2929

3030
.buttons {
3131
position: absolute;
32-
top: 0;
32+
top: -10px;
3333
right: 0;
34-
min-height: 180px;
34+
min-height: 170px;
3535
}
3636

3737
a.button {
38+
&.logo-button {
39+
background: transparent url(/img/theme/logo-button.png) 0 0 no-repeat;
40+
display: block;
41+
width: 202px;
42+
height: 80px;
43+
margin-bottom: 10px;
44+
45+
span {
46+
display: none;
47+
}
48+
}
49+
3850
&.github-button {
3951
background: transparent url(/img/theme/github-button.png) 0 0 no-repeat;
4052
display: block;
@@ -52,15 +64,6 @@ header {
5264
font-size: 11px;
5365
}
5466
}
55-
56-
&.logo-button {
57-
background: transparent url(/img/theme/logo-button.png) 0 0 no-repeat;
58-
display: block;
59-
60-
span {
61-
display: none;
62-
}
63-
}
6467
}
6568
}
6669

@@ -103,9 +106,19 @@ header {
103106
display: block;
104107
width: auto;
105108
margin-top: 15px;
109+
min-height: 0;
106110
}
107111

108112
a.button {
113+
&.logo-button {
114+
position: absolute;
115+
top: -95px;
116+
left: 0;
117+
height: 50px;
118+
background-size: contain;
119+
margin: 0;
120+
}
121+
109122
&.github-button {
110123
display: inline-block;
111124
width: auto;
@@ -126,12 +139,6 @@ header {
126139
font-size: 13px;
127140
}
128141
}
129-
130-
&.logo-button {
131-
position: absolute;
132-
top: 10px;
133-
left: 10px;
134-
}
135142
}
136143
}
137144
}

0 commit comments

Comments
 (0)