From cc2b858485ea14fcae2fefa4792a4b5c5fd7382c Mon Sep 17 00:00:00 2001 From: Saivann Date: Fri, 14 Jun 2013 22:59:59 -0400 Subject: [PATCH] Use style linking with font-face This prevents bold fonts to fallback to plain sans-serif in IE6-7 due to some bug between IE and github servers. --- _less/screen.less | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/_less/screen.less b/_less/screen.less index a2bd572a..ed693f08 100644 --- a/_less/screen.less +++ b/_less/screen.less @@ -12,15 +12,15 @@ h1,h2,h3{ text-align:left; } h1{ - font-family:'UbuntuBold', sans-serif; - font-weight:normal; + font-family:'Ubuntu', sans-serif; + font-weight:700; color:#0d579b; font-size:160%; margin-top: 0; } h2{ - font-family:'UbuntuBold', sans-serif; - font-weight:normal; + font-family:'Ubuntu', sans-serif; + font-weight:700; color:#383838; font-size:130%; } @@ -83,44 +83,44 @@ li p{ /*Styles for whole website*/ @font-face{ - font-family:'UbuntuRegular'; + font-family:'Ubuntu'; src:url('/font/ubuntu-r-webfont.eot'); src:url('/font/ubuntu-r-webfont.eot?iefix') format('eot'), url('/font/ubuntu-r-webfont.woff') format('woff'), url('/font/ubuntu-r-webfont.ttf') format('truetype'), url('/font/ubuntu-r-webfont.svg') format('svg'); - font-weight:normal; + font-weight:300; font-style:normal; } @font-face{ - font-family:'UbuntuItalic'; + font-family:'Ubuntu'; src:url('/font/ubuntu-ri-webfont.eot'); src:url('/font/ubuntu-ri-webfont.eot?iefix') format('eot'), url('/font/ubuntu-ri-webfont.woff') format('woff'), url('/font/ubuntu-ri-webfont.ttf') format('truetype'), url('/font/ubuntu-ri-webfont.svg') format('svg'); - font-weight:normal; - font-style:normal; + font-weight:300; + font-style:italic; } @font-face{ - font-family:'UbuntuBold'; + font-family:'Ubuntu'; src:url('/font/ubuntu-b-webfont.eot'); src:url('/font/ubuntu-b-webfont.eot?iefix') format('eot'), url('/font/ubuntu-b-webfont.woff') format('woff'), url('/font/ubuntu-b-webfont.ttf') format('truetype'), url('/font/ubuntu-b-webfont.svg') format('svg'); - font-weight:normal; + font-weight:700; font-style:normal; } @font-face{ - font-family:'UbuntuBoldItalic'; + font-family:'Ubuntu'; src:url('/font/ubuntu-bi-webfont.eot'); src:url('/font/ubuntu-bi-webfont.eot?iefix') format('eot'), url('/font/ubuntu-bi-webfont.woff') format('woff'), url('/font/ubuntu-bi-webfont.ttf') format('truetype'), url('/font/ubuntu-bi-webfont.svg') format('svg'); - font-weight:normal; - font-style:normal; + font-weight:700; + font-style:italic; } .alert-message{ @@ -255,7 +255,8 @@ li p{ -webkit-left-radius:5px; } #menufor li a,#menufor li a:active,#menufor li a:visited,#menufor li a:link{ - font-family:'UbuntuBold', sans-serif; + font-family:'Ubuntu', sans-serif; + font-weight:700; font-size:105%; display:block; text-decoration:none; @@ -283,6 +284,7 @@ li p{ } #menu li a,#menu li a:active,#menu li a:visited,#menu li a:link{ font-family:'Ubuntu', sans-serif; + font-weight:300; display:block; color:#6a6a6a; text-decoration:none; @@ -330,13 +332,14 @@ li p{ } #choose a,#before a,#support a{ + font-family:'Ubuntu', sans-serif; + font-weight:700; padding:10px 8px 10px 48px; color:#fff; display:block; text-align:left; margin-bottom:10px; text-decoration:none; - font-weight:bold; border-radius:5px; -webkit-border-radius:5px; }