From d94b9b0ca215e689055fd92fe76bd9a344ae5a96 Mon Sep 17 00:00:00 2001 From: Josh Brewer Date: Sun, 10 Apr 2011 14:24:38 -0700 Subject: fine tuning some CSS --- site/css/screen.css | 1 + 1 file changed, 1 insertion(+) diff --git a/site/css/screen.css b/site/css/screen.css index 1e6a233..f55fa5d 100644 --- a/site/css/screen.css +++ b/site/css/screen.css @@ -290,6 +290,7 @@ footer p a[href="http://twitter.com/jbrewer"], footer p a[href="http://twitter.c color:rgba(143,187,204,0.4); } footer p a span {color:rgba(143,187,204,1)} +footer p a:hover span {color:#64c2e8;} footer .twitter-share-button { position:relative; top:5px; -- cgit v1.2.3 From 71423deaef0a788aab261140de8ffe95429799f6 Mon Sep 17 00:00:00 2001 From: Josh Brewer Date: Mon, 18 Apr 2011 21:20:27 -0700 Subject: updates to the website, copy, etc and reset bookmarklet --- bookmarklet/ffffallback.css | 10 ++++++++- site/css/screen.css | 54 ++++++++++++++++++++++++++++++++++++++++++--- site/index.html | 12 +++++----- 3 files changed, 65 insertions(+), 11 deletions(-) diff --git a/bookmarklet/ffffallback.css b/bookmarklet/ffffallback.css index 476aa12..d630c41 100644 --- a/bookmarklet/ffffallback.css +++ b/bookmarklet/ffffallback.css @@ -73,8 +73,16 @@ body.ffffallback-hide-original #ffffallback-content-container { display: block!important; opacity: 1!important; } +#ffffallback-controller { + margin:0; + padding:0; + border:0; + outline:0; + font-size:100%; + vertical-align:baseline; + background:transparent; +} -/* webkit scrollbar stuff from http://beautifulpixels.com/goodies/create-custom-webkit-scrollbar/ */ #ffffallback-controller { display: block!important; position: fixed!important; diff --git a/site/css/screen.css b/site/css/screen.css index f55fa5d..91d78e8 100644 --- a/site/css/screen.css +++ b/site/css/screen.css @@ -141,7 +141,7 @@ span.horizon { position:absolute; } span.rising {width:100%; margin-top:10.5em;} -span.setting {width:55em; margin-top:2.5em;margin-left:-16em;} +span.setting {width:52em; margin-top:2.5em;margin-left:-22em;} #main { border-left: 1px solid #423e39; margin:0 0 0 4em; @@ -271,7 +271,7 @@ h3 { } #main ol + p { - background:url(../images/bang.png) no-repeat 3px 2px; + background:url(../images/bang.png) no-repeat 3px 1px; font-weight:bold; padding-left:2em; margin-left:-2em; @@ -290,7 +290,9 @@ footer p a[href="http://twitter.com/jbrewer"], footer p a[href="http://twitter.c color:rgba(143,187,204,0.4); } footer p a span {color:rgba(143,187,204,1)} -footer p a:hover span {color:#64c2e8;} +footer p a[href="http://twitter.com/jbrewer"]:hover span, footer p a[href="http://twitter.com/shinypb"]:hover span { + color:#64c2e8; +} footer .twitter-share-button { position:relative; top:5px; @@ -300,6 +302,52 @@ footer .twitter-share-button { /* media queries for responsive design */ +/* One-column - iPhone portrait and any 320px device */ +@media (max-width:640px){ + .container{ + width: 320px; + } + #secondary{ + margin-left: 15px; + } +} + +/* One-column - iPhone landscape */ +@media (orientation:landscape) and (min-width:321px) and (max-width:480px){ + /* + .container{ + width: 480px; + }*/ +} + +/* Two-column - iPad */ +@media (min-width:641px) and (max-width:960px){ + hgroup { + margin-bottom:10em; + } + +} + +/* 15" MacBook Pro */ +@media (min-width:1281px) and (max-width:1600px){ + .container{ + width: 1280px; + } +} + +/* 17" MacBook Pro, iMac */ +@media (min-width:1601px) and (max-width:1920px){ + .container{ + width: 1600px; + } +} + +/* HD */ +@media (min-width:1920px) and (max-width:2240px){ + .container{ + width: 1920px; + } +} @media all and (orientation:portrait) { diff --git a/site/index.html b/site/index.html index 7ab006b..30e2931 100644 --- a/site/index.html +++ b/site/index.html @@ -10,9 +10,7 @@ - - @@ -32,7 +30,7 @@

A simple tool for bulletproof web typography.

-

It's a brave new world. Web fonts are here, sparking an exciting new era in web design. While this new-found freedom can be intoxicating, the importance of dependable web typography can not be overstated.

+

It's a brave new world. Web fonts are here, sparking an exciting new era in web design. Ffffallback makes it easy to find the perfect fallback fonts, so you can make sure your designs degrade gracefully. Fffallback means better layouts for everyone.

So in the spirit of bulletproof web design, we give you…

@@ -53,12 +51,12 @@

Small caveat: this bookmarklet only works on webkit browsers (Chrome & Safari) or Firefox. We are might get it working for IE and Opera if time permits.

    -
  1. Drag the bookmarklet to your browser toolbar.
  2. -
  3. Go to the page you want to test and click the bookmarklet to get started.
  4. +
  5. Drag the bookmarklet to your browser toolbar.
  6. +
  7. Go to the page you want to test and click the bookmarklet to get started.
  8. The bookmarklet will scan the CSS of the page in order to identify existing web fonts. Then, using magical unicorns and javascript rainbows, FFFFALLBACK clones the page and provides a tool where you can test and analyze different fallback font choices. You can also add an input in order to change font-size, line-height, color, etc.
  9. -
  10. Bulletproof your font-stacks and rejoice!
  11. +
  12. Bulletproof your font-stacks and rejoice!

For more background on how this came to be and why it's important, read Type study: Choosing fallback fonts.

@@ -69,7 +67,7 @@

Extra big high-fives to the kind souls whose encouragement brought this to life: Trent Walton, Tim Brown, Kyle Sollenberger, Yaron Schoen and Mandy Brown.

- Tell the world know about FFFFALLBACK! + Tell the world about FFFFALLBACK!

-- cgit v1.2.3 From 2c8f2447a34d3f939d4d2febb47e06d6ba99cb54 Mon Sep 17 00:00:00 2001 From: Josh Brewer Date: Mon, 18 Apr 2011 21:22:31 -0700 Subject: class should be an id --- site/css/screen.css | 8 ++++---- site/index.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/site/css/screen.css b/site/css/screen.css index 91d78e8..fdf5afb 100644 --- a/site/css/screen.css +++ b/site/css/screen.css @@ -222,12 +222,12 @@ hgroup + p, hgroup + p + p { max-width:25em; } -.bkmrklt { +#bkmrklt { font-size:1.3125em; margin-bottom: 3em; position:relative; } -.bkmrklt a { +#bkmrklt a { background:url(../images/bookmarklet-button.png) no-repeat 0 0; border:0; direction: ltr; @@ -238,10 +238,10 @@ hgroup + p, hgroup + p + p { height:57px; width:215px; } -.bkmrklt a:hover { +#bkmrklt a:hover { border-bottom:0; } -.bkmrklt span { +#bkmrklt span { color:#eebe5f; font-weight:200; left: 11em; diff --git a/site/index.html b/site/index.html index 30e2931..031b15e 100644 --- a/site/index.html +++ b/site/index.html @@ -33,7 +33,7 @@

It's a brave new world. Web fonts are here, sparking an exciting new era in web design. Ffffallback makes it easy to find the perfect fallback fonts, so you can make sure your designs degrade gracefully. Fffallback means better layouts for everyone.

So in the spirit of bulletproof web design, we give you…

-
+
ffffallback the bookmarklet!
-- cgit v1.2.3 From 73285aee80f90c7b83a6014f8c4af1825d33b3f5 Mon Sep 17 00:00:00 2001 From: Josh Brewer Date: Mon, 18 Apr 2011 21:24:26 -0700 Subject: class should be an id --- site/css/screen.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/css/screen.css b/site/css/screen.css index fdf5afb..bc1e4d1 100644 --- a/site/css/screen.css +++ b/site/css/screen.css @@ -222,12 +222,12 @@ hgroup + p, hgroup + p + p { max-width:25em; } -#bkmrklt { +#bookmarklet { font-size:1.3125em; margin-bottom: 3em; position:relative; } -#bkmrklt a { +#bookmarklet a { background:url(../images/bookmarklet-button.png) no-repeat 0 0; border:0; direction: ltr; @@ -238,10 +238,10 @@ hgroup + p, hgroup + p + p { height:57px; width:215px; } -#bkmrklt a:hover { +#bookmarklet a:hover { border-bottom:0; } -#bkmrklt span { +#bookmarklet span { color:#eebe5f; font-weight:200; left: 11em; -- cgit v1.2.3 From 8834e628c7403f7134ab672d45189f88eb54efcd Mon Sep 17 00:00:00 2001 From: Josh Brewer Date: Mon, 18 Apr 2011 21:25:30 -0700 Subject: class should be an id --- site/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/index.html b/site/index.html index 031b15e..25ceea2 100644 --- a/site/index.html +++ b/site/index.html @@ -33,7 +33,7 @@

It's a brave new world. Web fonts are here, sparking an exciting new era in web design. Ffffallback makes it easy to find the perfect fallback fonts, so you can make sure your designs degrade gracefully. Fffallback means better layouts for everyone.

So in the spirit of bulletproof web design, we give you…

-
+
ffffallback the bookmarklet!
-- cgit v1.2.3 From a9619005677145cada41eab6547b6b9b17879f63 Mon Sep 17 00:00:00 2001 From: Josh Brewer Date: Mon, 18 Apr 2011 21:28:06 -0700 Subject: class should be an id --- site/css/screen.css | 8 ++++---- site/index.html | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site/css/screen.css b/site/css/screen.css index bc1e4d1..91d78e8 100644 --- a/site/css/screen.css +++ b/site/css/screen.css @@ -222,12 +222,12 @@ hgroup + p, hgroup + p + p { max-width:25em; } -#bookmarklet { +.bkmrklt { font-size:1.3125em; margin-bottom: 3em; position:relative; } -#bookmarklet a { +.bkmrklt a { background:url(../images/bookmarklet-button.png) no-repeat 0 0; border:0; direction: ltr; @@ -238,10 +238,10 @@ hgroup + p, hgroup + p + p { height:57px; width:215px; } -#bookmarklet a:hover { +.bkmrklt a:hover { border-bottom:0; } -#bookmarklet span { +.bkmrklt span { color:#eebe5f; font-weight:200; left: 11em; diff --git a/site/index.html b/site/index.html index 25ceea2..0f2b04d 100644 --- a/site/index.html +++ b/site/index.html @@ -33,8 +33,8 @@

It's a brave new world. Web fonts are here, sparking an exciting new era in web design. Ffffallback makes it easy to find the perfect fallback fonts, so you can make sure your designs degrade gracefully. Fffallback means better layouts for everyone.

So in the spirit of bulletproof web design, we give you…

-
- ffffallback +
+ ffffallback the bookmarklet!
-- cgit v1.2.3