Skip to content

Commit bde458f

Browse files
committed
make text more readable on smaller screens
1 parent 9ae1d74 commit bde458f

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

_styles/default.sass

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ html, body
2626
#work, #contact
2727
@include span-columns(12)
2828
#about
29-
@include shift(3)
30-
@include span-columns(6)
29+
@include breakpoint(min-width 476px 12)
30+
@include shift(3)
31+
@include span-columns(6)
32+
@include breakpoint(max-width 476px)
33+
@include shift(1)
34+
@include span-columns(10)
3135
#about, #work, #contact
3236
@include omega()
3337

styles/default.css

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,24 @@ footer {
422422
width: 100%; }
423423
#page1 #work:last-child, #page1 #contact:last-child, #page2 #work:last-child, #page2 #contact:last-child {
424424
margin-right: 0; }
425-
#page1 #about, #page2 #about {
426-
margin-left: 25.58941%;
427-
display: block;
428-
float: left;
429-
margin-right: 2.35765%;
430-
width: 48.82117%; }
431-
#page1 #about:last-child, #page2 #about:last-child {
432-
margin-right: 0; }
425+
@media screen and (min-width: 476px) {
426+
#page1 #about, #page2 #about {
427+
margin-left: 25.58941%;
428+
display: block;
429+
float: left;
430+
margin-right: 2.35765%;
431+
width: 48.82117%; }
432+
#page1 #about:last-child, #page2 #about:last-child {
433+
margin-right: 0; } }
434+
@media screen and (max-width: 476px) {
435+
#page1 #about, #page2 #about {
436+
margin-left: 8.5298%;
437+
display: block;
438+
float: left;
439+
margin-right: 2.35765%;
440+
width: 82.94039%; }
441+
#page1 #about:last-child, #page2 #about:last-child {
442+
margin-right: 0; } }
433443
#page1 #about, #page1 #work, #page1 #contact, #page2 #about, #page2 #work, #page2 #contact {
434444
margin-right: 0; }
435445
#page1 #about, #page1 #contact, #page2 #about, #page2 #contact {

0 commit comments

Comments
 (0)