From 6849c2caae2970d90555d87d0c308517ca389928 Mon Sep 17 00:00:00 2001 From: abijah Date: Wed, 14 Apr 2010 03:34:01 +0000 Subject: [PATCH] Added possible fix for this problem with sandbox/devbox themes that use a font size so large, it creates usability issues. git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@984 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/views/layouts/default.ctp | 8 ++++---- site/webroot/css/layout.css | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/site/views/layouts/default.ctp b/site/views/layouts/default.ctp index 3b03b0c..1cd0cdb 100644 --- a/site/views/layouts/default.ctp +++ b/site/views/layouts/default.ctp @@ -58,10 +58,6 @@ $protocol = 'http://'; echo $html->meta('icon') . "\n"; - echo $html->css('cake.generic') . "\n"; - echo $html->css('layout') . "\n"; - echo $html->css('print', null, array('media' => 'print')) . "\n"; - echo $html->css('sidemenu') . "\n"; $theme = 'smoothness'; $theme = 'base'; @@ -73,7 +69,11 @@ if (sandbox()) $theme = 'darkness'; + echo $html->css('cake.generic') . "\n"; echo $html->css('themes/'.$theme.'/ui.all') . "\n"; + echo $html->css('layout') . "\n"; + echo $html->css('print', null, array('media' => 'print')) . "\n"; + echo $html->css('sidemenu') . "\n"; echo $javascript->link('jquery-1.3.2.min') . "\n"; echo $javascript->link('jquery-ui-1.7.2.custom.min') . "\n"; diff --git a/site/webroot/css/layout.css b/site/webroot/css/layout.css index 87fbb36..e95deff 100644 --- a/site/webroot/css/layout.css +++ b/site/webroot/css/layout.css @@ -19,6 +19,10 @@ td#pagecolumn { padding-left: 4mm; } td#sidecolumn { width: 1% } +/* Ignore themes that want to increase font size */ +.ui-widget { font-size : 1.0em } + + /************************************************************ ************************************************************ * Panel captions