Changes to the tab menus (experimental) und more def lists
authorLuzifr <szekely@woltlab.com>
Thu, 4 Aug 2011 19:15:45 +0000 (21:15 +0200)
committerLuzifr <szekely@woltlab.com>
Thu, 4 Aug 2011 19:15:58 +0000 (21:15 +0200)
wcfsetup/install/files/acp/style/testing.css
wcfsetup/install/files/acp/templates/packageAutoUpdateList.tpl

index 2f08a458a1594e0ed0ee98a9dd3ba34a6534b02d..727b0f05f381a56b0d86f9ad30f89633a1a10bbb 100644 (file)
@@ -206,12 +206,6 @@ nav.headerNavigation {
        margin: 0 23px;
        padding: 3px 7px;
        position: relative;
-       
-       -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
-       -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
-       -ms-box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
-       -o-box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
-       box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
 }
 
 nav.headerNavigation:after {
@@ -360,12 +354,6 @@ footer > div {
        border-bottom-right-radius: 3px;
        clear: both;
        padding: 3px 7px;
-       
-       -webkit-box-shadow: 0 -1px 5px rgba(0, 0, 0, .1);
-       -moz-box-shadow: 0 -1px 5px rgba(0, 0, 0, .1);
-       -ms-box-shadow: 0 -1px 5px rgba(0, 0, 0, .1);
-       -o-box-shadow: 0 -1px 5px rgba(0, 0, 0, .1);
-       box-shadow: 0 -1px 5px rgba(0, 0, 0, .1);
 }
 
 footer > div:after {
@@ -418,6 +406,7 @@ footer nav.footerNavigation ul li {
 .mainHeading > hgroup {
        height: 48px;
        padding-left: 60px;
+       margin-bottom: 30px;
 }
 
 .mainHeading > hgroup h1 {
@@ -457,9 +446,9 @@ footer nav.footerNavigation ul li {
 
 fieldset {
        border: 1px solid #ccc;
-       border-radius: 10px;
+       border-radius: 7px;
        margin: 7px 0 7px;
-       padding: 14px;
+       padding: 15px;
 }
 
 fieldset legend {
@@ -527,6 +516,7 @@ div.formGroupField div.formField label {
 
 .formSubmit {
        text-align: center;
+       margin-top: 15px;
 }
 
 /* Form Elements */
@@ -596,6 +586,10 @@ textarea:focus {
        box-shadow: 0 0 5px rgba(102, 153, 204, 1), inset 0 0 5px rgba(102, 153, 204, .7);
 }
 
+select {
+       width: 100%;
+}
+
 
 
 /* -- -- -- -- -- Large Buttons -- -- -- -- -- */
@@ -818,30 +812,6 @@ input[type='submit']:active,
        margin-top: -1px;
 }
 
-/* -- -- -- -- -- Tab Menu -- -- -- -- -- */
-
-.tabMenu {
-       margin: 0 3px -1px !important;
-}
-
-.tabMenu li a {
-       color: #999;
-       text-shadow: 0 1px 0 #fff;
-}
-
-.tabMenu li a:hover {
-       color: #666;
-}
-
-.tabMenu li.ui-state-active a {
-       color: #333 !important;
-       font-weight: bold;
-}
-
-.tabMenuContent, .content {
-       border-width: 0 !important;
-}
-
 
 
 /* -- -- -- -- -- Menu -- -- -- -- -- */
@@ -1140,6 +1110,7 @@ dl dt {
        float: left;
        text-align: right;
        width: 230px;
+       margin-top: 5px; /* not so nice */
 }
 
 dl dd {
@@ -1274,41 +1245,42 @@ div.ui-widget-overlay {
 
 
 
-/* -- -- -- -- -- Taken from jQuery UI @ themes/base/jquery.ui.tabs.css -- -- -- -- -- */
+/* -- -- -- -- -- Tab Menu -- -- -- -- -- */
+/* -- -- -- -- -- Parts taken from jQuery UI @ themes/base/jquery.ui.tabs.css -- -- -- -- -- */
 
-.ui-tabs {
-       position: relative; /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
-       padding: 3px;
-       zoom: 1;
-}
+/* Tab Menu */
 
-.ui-tabs .ui-tabs-nav {
-       height: 18px !important; /* Fixes a clearing problem */
+.tabMenu {
+       color: #999;
+       text-shadow: 0 1px 0 #fff;
        background-color: none;
-       padding: 3px 3px 0;
+       white-space: nowrap;
+       position: relative;
+       display: block;
+       text-align: center;
 }
 
-.ui-tabs .ui-tabs-nav li {
+.tabMenu:after {
+       content: "";
+       display: block;
+       clear: both;
+}
+
+.tabMenu li {
        list-style: none;
-       float: left;
-       position: relative;
-       top: 1px;
-       margin: 0 3px 1px 0;
-       border-bottom: 0 !important;
-       padding: 0;
+       display: inline-block;
        white-space: nowrap;
        z-index: 90; /* Prevents border overlay during transition */
 }
 
-.ui-tabs .ui-tabs-nav li a {
-       float: left;
-       padding: 7px 14px;
+.tabMenu li a {
+       padding: 7px 15px;
        text-decoration: none;
        border: 1px solid #ccc;
-       border-bottom-width: 0;
-       
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
+       display: inline-block;
+       
        
        background-color: #fefefe;
        background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fefefe), to(#eee));
@@ -1318,12 +1290,21 @@ div.ui-widget-overlay {
        background-image: linear-gradient(#fefefe, #eee);
 }
 
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected {
+.tabMenu li a:hover {
+       color: #666;
+}
+
+.tabMenu li.ui-tabs-selected {
        margin-bottom: 0;
        padding-bottom: 1px;
 }
 
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected a {
+.tabMenu li.ui-state-active a {
+       color: #333 !important;
+       font-weight: bold;
+}
+
+.tabMenu li.ui-tabs-selected a {
        background-color: #fefefe;      
        background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#fefefe));
        background-image: -moz-linear-gradient(0% 0% 270deg, #fff, #fefefe);
@@ -1334,25 +1315,34 @@ div.ui-widget-overlay {
        border-bottom: 1px solid #fefefe;
 }
 
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,
-.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
-.ui-tabs .ui-tabs-nav li.ui-state-processing a {
+.tabMenu li.ui-tabs-selected a,
+.tabMenu li.ui-state-disabled a,
+.tabMenu li.ui-state-processing a {
        cursor: default;
 }
 
-.ui-tabs .ui-tabs-nav li a,
+.tabMenu li a,
 .ui-tabs .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a {
        cursor: pointer;
 }
 
-.ui-tabs .ui-tabs-panel {
+/* Tab Menu Content */
+
+.tabMenuContent {
        background-color: #fefefe);
        border: 1px solid #ccc !important;
        z-index: 89; /* Prevents border overlay during transition */
        display: block;
+       margin: -2px 0 0;
        padding: 15px 23px;
 }
 
+.content {
+       border-width: 0 !important;
+}
+
+/* ToDo: 2x hidden? */
+
 .ui-tabs .ui-tabs-hide {
        display: none !important;
 }
@@ -1385,6 +1375,10 @@ div.ui-widget-overlay {
        clear: both;
 }
 
+
+
+/* ToDo: Is all that really necessary? We wanted to support good browser only */
+
 .ui-helper-clearfix {
        display: inline-block;
 }
@@ -1406,7 +1400,6 @@ div.ui-widget-overlay {
        left: 0;
        position: absolute;
        opacity: 0;
-       filter: Alpha(opacity=0);
 }
 
 
index 2c91fd12675c2f425520795a7246e948d291076e..d7b2b24d06ebd6c7e5c696090439744e33b2943c 100644 (file)
                                        </h1>
 
                                        <div class="messageBody">
-                                               <div class="formElement">
-                                                       <div class="formFieldLabel">
-                                                               <label>{lang}wcf.acp.packageUpdate.currentVersion{/lang}</label>
-                                                       </div>
-                                                       <div class="formField">
-                                                               <span>{$availableUpdate.packageVersion}</span>
-                                                       </div>
-                                               </div>
+                                               <dl>
+                                                       <dt><label>{lang}wcf.acp.packageUpdate.currentVersion{/lang}</label></dt>
+                                                       <dd>{$availableUpdate.packageVersion}</dd>
+                                               </dl>
                                                
-                                               <div id="version-{@$availableUpdate.packageID}Div" class="formElement">
-                                                       <div class="formFieldLabel">
-                                                               <label for="version-{@$availableUpdate.packageID}">{lang}wcf.acp.packageUpdate.updateVersion{/lang}</label>
-                                                       </div>
-                                                       <div class="formField">
-                                                               <select id="version-{@$availableUpdate.packageID}" name="updates[{@$availableUpdate.packageID}]" disabled="disabled">
+                                               <dl id="version-{@$availableUpdate.packageID}Div">
+                                                       <dt><label for="version-{@$availableUpdate.packageID}">{lang}wcf.acp.packageUpdate.updateVersion{/lang}</label></dt>
+                                                       <dd><select id="version-{@$availableUpdate.packageID}" name="updates[{@$availableUpdate.packageID}]" disabled="disabled">
                                                                        {foreach from=$availableUpdate.versions item=$version}
                                                                                <option value="{$version.packageVersion}"{if $version.packageVersion == $availableUpdate.version.packageVersion} selected="selected"{/if}>{$version.packageVersion}</option>
                                                                        {/foreach}
                                                                </select>
-                                                       </div>
-                                               </div>
+                                                       </dd>
+                                               </dl>
                                                
                                                {if $availableUpdate.author}
-                                                       <div class="formElement">
-                                                               <div class="formFieldLabel">
-                                                                       <label>{lang}wcf.acp.package.list.author{/lang}</label>
-                                                               </div>
-                                                               <div class="formField">
-                                                                       <span>{if $availableUpdate.authorURL}<a href="{@RELATIVE_WCF_DIR}acp/dereferrer.php?url={$availableUpdate.authorURL|rawurlencode}" class="externalURL">{$availableUpdate.author}</a>{else}{$availableUpdate.author}{/if}</span>
-                                                               </div>
-                                                       </div>
+                                                       <dl>
+                                                               <dt><label>{lang}wcf.acp.package.list.author{/lang}</label></dt>
+                                                               <dd>{if $availableUpdate.authorURL}<a href="{@RELATIVE_WCF_DIR}acp/dereferrer.php?url={$availableUpdate.authorURL|rawurlencode}" class="externalURL">{$availableUpdate.author}</a>{else}{$availableUpdate.author}{/if}</dd>
+                                                       </dl>
                                                {/if}
                                                
                                                {if $availableUpdate.packageDescription}
-                                                       <div class="formElement">
-                                                               <p class="formFieldLabel">{lang}wcf.acp.package.description{/lang}</p>
-                                                               <p class="formField">{$availableUpdate.packageDescription}</p>
-                                                       </div>
+                                                       <dl>
+                                                               <dt>{lang}wcf.acp.package.description{/lang}</dt>
+                                                               <dd>{$availableUpdate.packageDescription}</dd>
+                                                       </dl>
                                                {/if}
-                                                       
                                        </div>
-
                                        <hr />
                                </div>
                        </article>