diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-17 22:49:08 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-17 22:49:08 +0000 |
commit | 8e4040197b15b7af9d1510e47a7fea1d72ec6a06 (patch) | |
tree | da150691a2b015517226459a25414291a7ed15db /chrome/browser | |
parent | e28167fdc58f234ca325b932716f59818c77d18b (diff) | |
download | chromium_src-8e4040197b15b7af9d1510e47a7fea1d72ec6a06.zip chromium_src-8e4040197b15b7af9d1510e47a7fea1d72ec6a06.tar.gz chromium_src-8e4040197b15b7af9d1510e47a7fea1d72ec6a06.tar.bz2 |
Make all font sizes in NTP percentages of their parent.
BUG=54275
TEST=Open NTP. Change font size (preferences > under the hood
> change font and language settings). All fonts on page
should change size proportionally.
Review URL: http://codereview.chromium.org/3458007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/resources/new_new_tab.css | 13 | ||||
-rw-r--r-- | chrome/browser/resources/ntp/apps.css | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/chrome/browser/resources/new_new_tab.css b/chrome/browser/resources/new_new_tab.css index 6d416db..b44550d 100644 --- a/chrome/browser/resources/new_new_tab.css +++ b/chrome/browser/resources/new_new_tab.css @@ -266,7 +266,7 @@ html[hasattribution=false] #attribution > div { .section { position: fixed; - font-size: 12px; + font-size: 92%; } html[anim=true][enable-section-animations=true] .section { @@ -279,7 +279,7 @@ html[anim=true][enable-section-animations=true] .section { .section > h2 { font-family: Helvetica, Arial, sans-serif; - font-size: 16px; + font-size: 133%; font-weight: normal; margin: 0; position: relative; @@ -292,7 +292,8 @@ html[anim=true][enable-section-animations=true] .section { .section > h2 > .disclosure { position: absolute; left: -15px; - top: 4px; + margin-top: 50%; + top: -5px; } html[dir=rtl] .section > h2 > .disclosure { @@ -312,14 +313,14 @@ html[anim=true] .section > h2 > .disclosure { .section > h2 .back { position: absolute; left: 0; - top: 9px; + top: 0.56em; width: 100%; - height: 24px; + height: 1.5em; z-index: 1; } .section > h2 span { - -webkit-padding-end: 5px; + -webkit-padding-end: 0.30em; position: relative; z-index: 2; } diff --git a/chrome/browser/resources/ntp/apps.css b/chrome/browser/resources/ntp/apps.css index 9c51f44..58f544a 100644 --- a/chrome/browser/resources/ntp/apps.css +++ b/chrome/browser/resources/ntp/apps.css @@ -28,7 +28,7 @@ no-repeat center 10px; background-size: 96px 96px; font-family: Helvetica, Arial; - font-size: 14px; + font-size: 107%; overflow: hidden; padding: 111px 10px 10px; /* 10 + 96 + 5 */ text-align: center; |