Skip to content

Commit 7105ca2

Browse files
committed
Horizontalize links in mobile
1 parent e307f67 commit 7105ca2

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

_includes/sidebar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ <h1>
3333
{% endif %}
3434
</nav>
3535

36-
<p>&copy; {{ site.time | date: '%Y' }}. All rights reserved.</p>
36+
<p id='copyright'>&copy; {{ site.time | date: '%Y' }}. All rights reserved.</p>
3737
</div>
3838
</div>

css/ssl.scss

+14-14
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ html {
2424
color: rgba(255,255,255,.5);
2525
padding: 2em $side-pad-left;
2626

27-
@include to('m') {
27+
@include to('s') {
2828
text-align: center;
2929
width: calc(#{$s-sidebar-width} - 2*#{$side-pad-left});
3030
}
@@ -78,12 +78,17 @@ html {
7878
}
7979

8080
.sidebar-nav-item {
81-
display: block;
8281
line-height: 1.75;
82+
padding-right: 0.5em;
83+
&:last-child { padding-right: 0; }
8384

8485
.active {
8586
font-weight: bold;
8687
}
88+
89+
90+
@include to('s') { display: inline-block; }
91+
@include from('m') { display: block; }
8792
}
8893

8994
a.sidebar-nav-item {
@@ -93,26 +98,21 @@ a.sidebar-nav-item {
9398
}
9499

95100

96-
@include from('l') {
97-
.sidebar-top {
98-
//position: absolute;
99-
right: 1rem;
100-
top: 1.2rem;
101-
left: 1rem;
101+
.sidebar-bottom {
102+
@include to('s') {
103+
#copyright { display: none; }
102104
}
103-
}
104-
105-
@include from('l') {
106-
.sidebar-bottom {
107-
//position: absolute;
105+
@include from('m') {
106+
position: fixed;
108107
right: 1rem;
109108
bottom: 1rem;
110109
left: 1rem;
111110
}
111+
112112
}
113113

114114
.content {
115-
@include to('m') { margin-left: 0; }
115+
@include to('s') { margin-left: 0; }
116116
@include from('m') { margin-left: #{$m-sidebar-width}; }
117117
@include from('l') { margin-left: #{$l-sidebar-width}; }
118118
}

0 commit comments

Comments
 (0)