From 61bb08dfa533626b984621ad08962277655ce904 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 31 Oct 2011 15:23:18 +0100 Subject: [PATCH] Fix: optimize css --- htdocs/theme/auguria/style.css.php | 44 +++---------------- htdocs/theme/bureau2crea/style.css.php | 44 +++++-------------- htdocs/theme/cameleo/style.css.php | 60 +++++++------------------- htdocs/theme/eldy/style.css.php | 49 +++------------------ 4 files changed, 37 insertions(+), 160 deletions(-) diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index 5eb716f8ff5..72932dc09bb 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -92,52 +92,22 @@ input:focus, textarea:focus, button:focus, select:focus { box-shadow: 0 0 4px #8091BF; } -input { +input, input.flat, textarea, textarea.flat, form.flat select, select.flat { font-size: px; - font-family: ; - background: #FDFDFD; + font-family: ; + background: #FDFDFD; border: 1px solid #ACBCBB; padding: 1px 1px 1px 1px; margin: 0px 0px 0px 0px; } -input.flat { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 1px 1px 1px 1px; - margin: 0px 0px 0px 0px; +select.flat, form.flat select { + font-weight: normal; } input:disabled { -background:#ddd; -} -textarea { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 1px 1px 1px 1px; - margin: 0px 0px 0px 0px; -} -textarea.flat { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 1px 1px 1px 1px; - margin: 0px 0px 0px 0px; + background:#ddd; } textarea:disabled { -background:#ddd; -} -select.flat { - background: #FDFDFD; - font-size: px; - font-family: ; - font-weight: normal; - border: 1px solid #ACBCBB; - padding: 1px 1px 1px 1px; - margin: 0px 0px 0px 0px; + background:#ddd; } .button { font-family: ; diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php index 4abf98a414c..f0d92a9eaa7 100644 --- a/htdocs/theme/bureau2crea/style.css.php +++ b/htdocs/theme/bureau2crea/style.css.php @@ -120,47 +120,23 @@ body { a:link, a:visited, a:hover, a:active { font-family: ; font-weight: bold; color: #000000; text-decoration: none; } -input { +input, input.flat, textarea, textarea.flat, form.flat select, select.flat { font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} -input.flat { - font-size: px; font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} -textarea { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} -textarea.flat { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} -select.flat { background: #FDFDFD; - font-size: px; - font-family: ; - font-weight: normal; border: 1px solid #ACBCBB; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; } +select.flat, form.flat select { + font-weight: normal; +} +input:disabled { + background:#ddd; +} +textarea:disabled { + background:#ddd; +} input.button[type=submit] { background-image: url(); diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index d5f15d279b4..83d7925af2f 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -91,62 +91,32 @@ input:focus, textarea:focus, button:focus, select:focus { box-shadow: 0 0 4px #8091BF; } -input { +input, input.flat, textarea, textarea.flat, form.flat select, select.flat { font-size: px; - font-family: ; - background: #FDFDFD; + font-family: ; + background: #FDFDFD; border: 1px solid #ACBCBB; - padding: 0px 0px 0px 0px; + padding: 1px 1px 1px 1px; margin: 0px 0px 0px 0px; } -input.flat { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; +select.flat, form.flat select { + font-weight: normal; } input:disabled { -background:#ddd; -} -textarea { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} -textarea.flat { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; + background:#ddd; } textarea:disabled { -background:#ddd; -} -select.flat { - background: #FDFDFD; - font-size: px; - font-family: ; - font-weight: normal; - border: 1px solid #ACBCBB; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; + background:#ddd; } input.button[type=submit] { - background: #A51B00; - -moz-border-radius:8px; - border-radius:8px; - border-right: 1px solid #555555; - border-bottom: 1px solid #555555; - border-left: 1px solid #D0D0D0; - border-top: 1px solid #D8D8D8; + background: #A51B00; + -moz-border-radius:8px; + border-radius:8px; + border-right: 1px solid #555555; + border-bottom: 1px solid #555555; + border-left: 1px solid #D0D0D0; + border-top: 1px solid #D8D8D8; /*border: 2px solid #063953;*/ color: #FFF; padding: 0px 10px 0px 10px; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 874baa73b7e..3c314866fc1 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -92,62 +92,23 @@ input:focus, textarea:focus, button:focus, select:focus { box-shadow: 0 0 4px #8091BF; } -input { +input, input.flat, textarea, textarea.flat, form.flat select, select.flat { font-size: px; - font-family: ; - background: #FDFDFD; + font-family: ; + background: #FDFDFD; border: 1px solid #ACBCBB; padding: 1px 1px 1px 1px; margin: 0px 0px 0px 0px; } -input.flat { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 1px 1px 1px 1px; - margin: 0px 0px 0px 0px; +select.flat, form.flat select { + font-weight: normal; } input:disabled { background:#ddd; } -textarea { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 1px 1px 1px 1px; - margin: 0px 0px 0px 0px; -} -textarea.flat { - font-size: px; - font-family: ; - background: #FDFDFD; - border: 1px solid #ACBCBB; - padding: 1px 1px 1px 1px; - margin: 0px 0px 0px 0px; -} textarea:disabled { background:#ddd; } -form.flat select { - background: #FDFDFD; - font-size: px; - font-family: ; - font-weight: normal; - border: 1px solid #ACBCBB; - padding: 1px 1px 1px 1px; - margin: 0px 0px 0px 0px; -} -select.flat { - background: #FDFDFD; - font-size: px; - font-family: ; - font-weight: normal; - border: 1px solid #ACBCBB; - padding: 1px 1px 1px 1px; - margin: 0px 0px 0px 0px; -} .button { font-family: ; background-image: url();