Small optimization
authorMarcel Werk <burntime@woltlab.com>
Sun, 2 Jun 2013 18:39:01 +0000 (20:39 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 2 Jun 2013 18:39:01 +0000 (20:39 +0200)
wcfsetup/install/files/acp/templates/styleAdd.tpl
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 1b9ade9891d11b1b2b500a8fa849c04b091a70ad..c942d38179ae97ecd3f47fdcb4ab1591f8376ce2 100644 (file)
                
                {* advanced *}
                <div id="advanced" class="container containerPadding tabMenuContainer tabMenuContent">
-                       <p class="info">{lang}wcf.acp.style.advanced.syntax{/lang}</p>
-                       
                        <fieldset class="marginTop">
                                <legend>{lang}wcf.acp.style.advanced.individualLess{/lang}</legend>
                                
-                               <textarea rows="20" cols="40" name="individualLess">{$variables[individualLess]}</textarea>
-                               <small>{lang}wcf.acp.style.advanced.individualLess.description{/lang}</small>
+                               <dl class="wide">
+                                       <dd>
+                                               <textarea rows="20" cols="40" name="individualLess">{$variables[individualLess]}</textarea>
+                                               <small>{lang}wcf.acp.style.advanced.individualLess.description{/lang}</small>
+                                       </dd>
+                               </dl>
                        </fieldset>
                        
                        <fieldset{if $errorField == 'overrideLess'} class="formError"{/if}>
                                <legend>{lang}wcf.acp.style.advanced.overrideLess{/lang}</legend>
                                
-                               <p class="warning">{lang}wcf.acp.style.advanced.overrideLess.warning{/lang}</p>
-                               
-                               <textarea rows="20" cols="40" name="overrideLess" class="marginTop">{$variables[overrideLess]}</textarea>
-                               {if $errorField == 'overrideLess'}
-                                       <small class="innerError">
-                                               {lang}wcf.acp.style.advanced.overrideLess.error{/lang}
-                                               {implode from=$errorType item=error}{lang}wcf.acp.style.advanced.overrideLess.error.{$error.error}{/lang}{/implode}
-                                       </small>
-                               {/if}
-                               <small>{lang}wcf.acp.style.advanced.overrideLess.description{/lang}</small>
+                               <dl class="wide">
+                                       <dd>
+                                               <textarea rows="20" cols="40" name="overrideLess">{$variables[overrideLess]}</textarea>
+                                               {if $errorField == 'overrideLess'}
+                                                       <small class="innerError">
+                                                               {lang}wcf.acp.style.advanced.overrideLess.error{/lang}
+                                                               {implode from=$errorType item=error}{lang}wcf.acp.style.advanced.overrideLess.error.{$error.error}{/lang}{/implode}
+                                                       </small>
+                                               {/if}
+                                               <small>{lang}wcf.acp.style.advanced.overrideLess.description{/lang}</small>
+                                       </dd>
+                               </dl>
                        </fieldset>
                        
                        {event name='syntaxFieldsets'}
index ead196cde8bcab409e4454a684e7d5fe400f61ef..42fb6a0e8931354a7370b4810a2f0e3b7e19113d 100644 (file)
                <item name="wcf.acp.style.advanced.overrideLess.error.notValid"><![CDATA[Eingabe „{$error[text]}“ ungültig]]></item>
                <item name="wcf.acp.style.advanced.overrideLess.error.predefined"><![CDATA[Variable „{$error[text]}“ wird bereits durch den Stil-Editor gesetzt]]></item>
                <item name="wcf.acp.style.advanced.overrideLess.error.unknown"><![CDATA[Variable „{$error[text]}“ unbekannt]]></item>
-               <item name="wcf.acp.style.advanced.overrideLess.warning"><![CDATA[Fehlerhafte Eingaben führen dazu, dass der Stil nicht erzeugt werden kann. Überschreiben Sie LESS-Variablen nur, wenn Sie sich den Auswirkungen bewusst sind und eine Änderung nicht anderweitig möglich ist.]]></item>
-               <item name="wcf.acp.style.advanced.syntax"><![CDATA[Sie können sowohl CSS als auch <a href="{@$__wcf->getPath()}acp/dereferrer.php?url=http://www.lesscss.org">LESS</a> verwenden. Bitte beachten Sie, dass der Stil nicht erzeugt werden kann, wenn der LESS-Code ungültig ist.]]></item>
                <item name="wcf.acp.style.authorName"><![CDATA[Autor]]></item>
                <item name="wcf.acp.style.authorURL"><![CDATA[Website]]></item>
                <item name="wcf.acp.style.button.exportStyle"><![CDATA[Export starten]]></item>
index 3d89841405d673fc55b25fb78cdea3fe5159e565..9a6c209ef47b588aa1feff484fe4cc3b16ca0dec 100644 (file)
@@ -965,8 +965,6 @@ Examples for medium ID detection:
                <item name="wcf.acp.style.advanced.overrideLess.error.notValid"><![CDATA[Input for “{$error[text]}” invalid]]></item>
                <item name="wcf.acp.style.advanced.overrideLess.error.predefined"><![CDATA[Variable “{$error[text]}” is already defined by the style editor]]></item>
                <item name="wcf.acp.style.advanced.overrideLess.error.unknown"><![CDATA[Variable “{$error[text]}” is not recognized]]></item>
-               <item name="wcf.acp.style.advanced.overrideLess.warning"><![CDATA[Flawed input values can harm style creation. You should not override LESS variables unless it is not possible otherwise!]]></item>
-               <item name="wcf.acp.style.advanced.syntax"><![CDATA[You can use both CSS and <a href="{@$__wcf->getPath()}acp/dereferrer.php?url=http://www.lesscss.org">LESS</a>. Please be aware that the style cannot be created if the LESS-code is flawed.]]></item>
                <item name="wcf.acp.style.authorName"><![CDATA[Author]]></item>
                <item name="wcf.acp.style.authorURL"><![CDATA[Website]]></item>
                <item name="wcf.acp.style.button.exportStyle"><![CDATA[Start Export]]></item>