From 6d6546011f2d1aa172241124ff3de547b15b30bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20J=C3=A4rvinen?= Date: Wed, 8 Apr 2015 21:59:45 +0300 Subject: Convert rem's to em's in breakpoints to fix layout jerking issue in e.g. iPad and when resizing viewport. --- static/css/hyde.css | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'static/css/hyde.css') diff --git a/static/css/hyde.css b/static/css/hyde.css index 5ef814c..1ddbdda 100644 --- a/static/css/hyde.css +++ b/static/css/hyde.css @@ -34,12 +34,12 @@ html { font-family: "PT Sans", Helvetica, Arial, sans-serif; } -@media (min-width: 48rem) { +@media (min-width: 48em) { html { font-size: 16px; } } -@media (min-width: 58rem) { +@media (min-width: 58em) { html { font-size: 20px; } @@ -59,7 +59,7 @@ html { color: rgba(255,255,255,.5); background-color: #202020; } -@media (min-width: 48rem) { +@media (min-width: 48em) { .sidebar { position: fixed; top: 0; @@ -105,7 +105,7 @@ a.sidebar-nav-item:focus { * contents to the bottom of the sidebar in tablets and up. */ -@media (min-width: 48rem) { +@media (min-width: 48em) { .sidebar-sticky { position: absolute; right: 1rem; @@ -126,7 +126,7 @@ a.sidebar-nav-item:focus { padding-bottom: 4rem; } -@media (min-width: 48rem) { +@media (min-width: 48em) { .content { max-width: 38rem; margin-left: 20rem; @@ -134,7 +134,7 @@ a.sidebar-nav-item:focus { } } -@media (min-width: 64rem) { +@media (min-width: 64em) { .content { margin-left: 22rem; margin-right: 4rem; @@ -148,7 +148,7 @@ a.sidebar-nav-item:focus { * Flip the orientation of the page by placing the `.sidebar` on the right. */ -@media (min-width: 48rem) { +@media (min-width: 48em) { .layout-reverse .sidebar { left: auto; right: 0; @@ -159,7 +159,7 @@ a.sidebar-nav-item:focus { } } -@media (min-width: 64rem) { +@media (min-width: 64em) { .layout-reverse .content { margin-left: 4rem; margin-right: 22rem; -- cgit v1.2.1-24-ge1ad