From 5bca41d046a10a51ccb34e97d83c2b114f4654fd Mon Sep 17 00:00:00 2001 From: shnoulle Date: Sat, 4 Feb 2012 14:20:42 +0000 Subject: [PATCH] Dev : unable to fix padding/border on citronade template : giving up git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@12345 b72ed6b6-b9f8-46b5-92b4-906544132732 --- templates/citronade/template.css | 32 ++++++++------------------------ templates/citronade/template.js | 4 ++-- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/templates/citronade/template.css b/templates/citronade/template.css index cedb460efe1..132509a03cb 100644 --- a/templates/citronade/template.css +++ b/templates/citronade/template.css @@ -1,4 +1,6 @@ -/* This file is part of Lime Survey Template :a free template +/* This file is part of Lime Survey Template : citronade + Copyright (C) 2007-2012 The LimeSurvey Project Team / Carsten Schmitz + Copyright (C) 2010-2012 GsiLL / Denis Chenu you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -333,35 +335,17 @@ div.form table table td{padding:0;} .question-help img{margin:1px 5px 5px 1px;} /* tip bloc */ -.help-wrapper {font-style:italic} -.help-wrapper > span,.help-wrapper > div{display:block;padding:0 4px;margin:0.5em auto;width:96%;font-size:0.8em;} -.help-wrapper .error,.help-wrapper .error-wrapper{color:#944} +.help-wrapper {font-style:italic;margin:0.5em auto;width:96%;font-size:0.8em;} +.help-wrapper .error,.help-wrapper .error-wrapper{color:#944;font-weight:bold} .help-wrapper .success,.help-wrapper .good,.help-wrapper .ok{color:#494} .help-wrapper .problem{color:#944} -.help-wrapper .errormandatory{color:#944;font-size:1em;} +.help-wrapper .errormandatory{color:#944;font-weight:1em;} .help-wrapper .errormandatory br:first,.help-wrapper .errormandatory strong br:first{display:none;} +.mandatory br{display:none;}/* don't put linefeed at start of an error box */ -.js .help-wrapper > span,.js .help-wrapper > div,.js .help-wrapper > span,.js .help-wrapper > div{display:none;} -.help-wrapper .error-wrapper{display:none;} +.help-wrapper .mandatory{display:none;} .input-error .help-wrapper .mandatory{display:block;} -.mandatory br{display:none;}/* don't put linefeed at start of an error box */ -.help-wrapper > .mandatory span{display:block;} -.helpwrapper > .mandatory {margin:0.5em auto;width:96%;} - -.no-js .input-error .help-wrapper {border: 1px solid #fcefa1; padding:4px;padding-left:20px;width:96%;margin:0.5em auto;} -.no-js .input-error .help-wrapper {background:transparent url(./exclamation.png) no-repeat 2px center;padding:4px;padding-left:20px;} -.no-js .input-error .help-wrapper {border:#CD0A0A solid 1px;} -.no-js .input-error .help-wrapper {-moz-border-radius: 4px;-webkit-border-radius: 4px;border-radius:4px;} - -.js .help-wrapper > span,.js .help-wrapper > div{border: 1px solid #fcefa1; background: #fefefe; color: #363636;} -.js .help-wrapper > .good {background:transparent;padding:4px;padding-left:20px;} -.js .help-wrapper > .good {border:#0ACD0A solid 1px;} -.js .help-wrapper > .good {-moz-border-radius: 4px;-webkit-border-radius: 4px;border-radius:4px;} -.js .help-wrapper > .error {background:transparent url(./exclamation.png) no-repeat 2px center;padding:4px;padding-left:20px;} -.js .help-wrapper > .error {border:#CD0A0A solid 1px;} -.js .help-wrapper > .error {-moz-border-radius: 4px;-webkit-border-radius: 4px;border-radius:4px;} - /* input error */ input.error,input.problem{font-weight:bold}/* some width problem : todo :fix it */ input[type="text"].tip,input.tip,input.tip{border:0;background:transparent} diff --git a/templates/citronade/template.js b/templates/citronade/template.js index d721e466315..5c9453e7446 100644 --- a/templates/citronade/template.js +++ b/templates/citronade/template.js @@ -43,9 +43,9 @@ function jalert(text) { $dialog.dialog('open'); } // Comment this part to have default alert -function alert(text) { +/*function alert(text) { jalert(text); -} +}*/ /* * The focusFirst function is added to the eventlistener, when the page is loaded.