Skip to content

Commit cbcb547

Browse files
committed
fixes mobile layout
1 parent f23eee7 commit cbcb547

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

_assets/stylesheets/_layout.scss

+20-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Site header
33
*/
44
.site-header {
5-
padding: 25px 100px;
5+
padding: 20px 0;
66
background-color: $primary-color-dark;
77
border-top: 5px solid $secondary-color-2;
88
border-bottom: 5px solid $secondary-color-2-light;
@@ -32,27 +32,27 @@
3232
}
3333
.page-link {
3434
color: $grey-color-light;
35-
line-height: $base-line-height;
36-
font-weight: bold;
37-
38-
// Gaps between nav items, but not on the first one
39-
&:not(:first-child) {
40-
margin-left: 2px;
41-
}
42-
4335
background-color: $secondary-color;
4436
padding: 10px 12px;
4537
@include border-radius(5px);
4638

39+
line-height: $base-line-height;
40+
font-weight: bold;
41+
4742
&:hover {
4843
box-shadow: 2px 2px 2px #000;
4944
text-decoration: none;
5045
}
46+
47+
// Gaps between nav items, but not on the first one
48+
&:not(:first-child) {
49+
margin-left: 2px;
50+
}
5151
}
5252

5353
@include media-query($on-palm) {
5454
position: absolute;
55-
top: 9px;
55+
top: 15px;
5656
right: 30px;
5757
background-color: $background-color;
5858
border: 1px solid $grey-color-light;
@@ -62,7 +62,7 @@
6262
display: block;
6363
float: right;
6464
width: 36px;
65-
height: 26px;
65+
height: 32px;
6666
line-height: 0;
6767
padding-top: 10px;
6868
text-align: center;
@@ -86,6 +86,10 @@
8686
display: block;
8787
padding: 5px 10px;
8888
background-color: #fff;
89+
color: #000;
90+
&:hover {
91+
box-shadow: none;
92+
}
8993
}
9094
}
9195

@@ -178,6 +182,11 @@
178182
.member-github {
179183
width: 100px;
180184
}
185+
@include media-query($on-palm) {
186+
.github-label {
187+
display: none;
188+
}
189+
}
181190

182191
/**
183192
* Calendar

members.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
<path fill="#828282" d="{{ site.data.svg_icons.github }}"/>
1919
</svg>
2020
</span>
21-
<span class="username">{{ site.github_username }}</span>
22-
GitHub
21+
{{ site.github_username }}
22+
<span class="github-label">GitHub</span>
2323
</a>
2424
{% endif %}
2525
</td>
26-
<td>
26+
<td class="member-website">
2727
{% if member.website %}
2828
<a href="{{ member.website }}">{{ member.website }}</a>
2929
{% endif %}

0 commit comments

Comments
 (0)