From e68048797483a3e5cc5e1dc114a80a7af8fecbb9 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sun, 26 Jul 2015 21:58:01 -0700 Subject: tons of logic and performance improvements The main aim is a more logical DOM structure and more performant CSS. --- source/css/theme-narrow.css | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'source/css/theme-narrow.css') diff --git a/source/css/theme-narrow.css b/source/css/theme-narrow.css index 56328225..86d78443 100644 --- a/source/css/theme-narrow.css +++ b/source/css/theme-narrow.css @@ -1,34 +1,29 @@ -nav { - position: static; - margin: 5% 0 0 0; - text-align: center; - height: 100%; - width: 100%; +body { + margin: 40px 0 100px 0; } -nav div { - text-align: center; - margin: auto; +.nav { + position: static; + width: 100%; + height: 150px; + margin: 20px 0; } -nav div .blog-icon { - margin: 0; - height: 150px; +.nav-icon { width: 150px; + height: 150px; background-image: url("/img/icon-150.png"); background-image: -webkit-image-set( url("/img/icon-150.png") 1x, url("/img/icon-300.png") 2x ); background-size: 150px; } -nav div.title, div.author { +.nav-title, .nav-author { height: 0; width: 0; visibility: hidden; pointer-events: none; } -article { - position: static; +.content, .content-separator, .footer { width: 80%; - margin: 2% 10% 10% 10%; } -- cgit v1.2.1