From: Luzifr Date: Mon, 1 Aug 2011 19:18:43 +0000 (+0200) Subject: Further changes to tables and (simplified) X-Git-Tag: 2.0.0_Beta_1~1918^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77da1fd8d242b42cc00223639d0fc5a508d0f9c1;p=GitHub%2FWoltLab%2FWCF.git Further changes to tables and (simplified) "subTabMenu" = "menu", "titleBarPanel" = "boxTitle", code format, other changes. --- diff --git a/wcfsetup/install/files/acp/style/testing.css b/wcfsetup/install/files/acp/style/testing.css index c92c309d0c..b6a16f441c 100644 --- a/wcfsetup/install/files/acp/style/testing.css +++ b/wcfsetup/install/files/acp/style/testing.css @@ -24,6 +24,10 @@ img { vertical-align: middle !important; } +p { + color: #333; +} + a { color: #369; text-decoration: none; @@ -40,14 +44,6 @@ a:hover { text-decoration: underline; } -#content a { - color: #999; -} - -#content a:hover { - color: #333; -} - .invisible { position: absolute; left: -9000px; @@ -58,16 +54,21 @@ hr { display: none; } +* { + text-overflow: ellipsis; +} + /* -- -- -- -- -- Header -- -- -- -- -- */ header.pageHeader { - /* - background-image: url("../images/header.png"); + /* Disabled, because the WoltLab header image is not LGPL + Activate it if you want to test your header image */ + /* background-image: url("../images/header.png"); */ background-position: left top; background-repeat: repeat-x; - */ + min-width: 800px; width: 100%; } @@ -529,15 +530,18 @@ input[type="search"], input[type="email"], input[type='password'], textarea { - border: 1px solid #ccc; - + border-width: 1px; + border-style: solid; + border-color: #999 #ccc #eee; border-radius: 3px; - -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, .1); - -moz-box-shadow: inset 0 0 5px rgba(0, 0, 0, .1); - -ms-box-shadow: inset 0 0 5px rgba(0, 0, 0, .1); - -o-box-shadow: inset 0 0 5px rgba(0, 0, 0, .1); - box-shadow: inset 0 0 5px rgba(0, 0, 0, .1); + background-color: #fafafa; + + -webkit-box-shadow: inset 0 1px 5px rgba(0, 0, 0, .1); + -moz-box-shadow: inset 0 1px 5px rgba(0, 0, 0, .1); + -ms-box-shadow: inset 0 1px 5px rgba(0, 0, 0, .1); + -o-box-shadow: inset 0 1px 5px rgba(0, 0, 0, .1); + box-shadow: inset 0 1px 5px rgba(0, 0, 0, .1); } input[type='text']:hover, @@ -711,36 +715,55 @@ input[type='submit']:hover, -/* ToDo */ +/* -- -- -- -- -- Border -- -- -- -- -- */ .border { border: 1px solid #ccc; border-radius: 5px; - margin: 14px 0 14px; + margin: 15px 0 15px; } -.borderMarginRemove { - margin-top: 0; +/* -- -- -- -- -- Box Title -- -- -- -- -- */ + +.boxTitle { + /* Disabled, because the WoltLab header image is not LGPL + Activate it if you want to test your header image */ + /* background-image: url("../images/header.png"); */ + background-position: left top; + background-repeat: repeat-x; + + background-size: auto 100px. + border-radius: 7px; } -.titleBarPanel { - background-color: #369; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - border-bottom-width: 0; +.boxTitle > hgroup { color: #fff; - /* margin-bottom: -10px; without "borderMarginRemove"! */ - margin-bottom: 0; padding: 7px; } -.titleBarPanel a { +.boxTitle > hgroup a, .boxTitle > a { color: #fff; text-decoration: none; } +.boxTitle > hgroup h1 { + display: inline-block; +} + +.boxTitle img.handle { + float: right !important; + height: 16px; + width: 16px; + cursor: pointer; + margin-top: -1px; +} + +/* -- -- -- -- -- Tab Menu -- -- -- -- -- */ + +.tabMenu { + margin: 0 3px -1px !important; +} + .tabMenu li a { text-shadow: 0 1px 0 #fff; } @@ -750,31 +773,48 @@ input[type='submit']:hover, font-weight: bold; } -.subTabMenu { - background-color: #369; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - border-bottom-width: 0; + + +/* -- -- -- -- -- Menu -- -- -- -- -- */ + +.menu { color: #fff; - margin-top: 15px !important; - margin-bottom: -14px !important; - padding: 7px; + padding: 6px 7px; } -.subTabMenu a { - color: #fff !important; +.menu a { + color: #eee !important; + font-size: 85%; text-decoration: none; + text-shadow: 0 -1px 0 #000; + border: 1px solid transparent; + background-color: transparent; + padding: 2px 10px; + border-radius: 13px; +} + +.menu a:hover { + color: #fff !important; + border: 1px solid rgba(0, 0, 0, .3); + background-color: rgba(0, 0, 0, .1); } -.tabMenuContent, -.content { - border-width: 0 !important; +.menu a:active, .menu a:focus, .menu a.active { + border: 1px solid rgba(0, 0, 0, .5); + + -webkit-box-shadow: inset 0 2px 15px rgba(0, 0, 0, .5); + -moz-box-shadow: inset 0 2px 15px rgba(0, 0, 0, .5); + -ms-box-shadow: inset 0 2px 15px rgba(0, 0, 0, .5); + -o-box-shadow: inset 0 2px 15px rgba(0, 0, 0, .5); + box-shadow: inset 0 2px 15px rgba(0, 0, 0, .5); } /* -- -- -- -- -- ToDo: Tables -- -- -- -- -- */ +/* Table */ + table { width: 100% !important; } @@ -789,38 +829,42 @@ thead th:last-child { border-top-right-radius: 5px; } -th { - background-color: rgba(51, 51, 51, .7); - background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#666), to(#000));/* ToDo: Transparency missing */ - background-image: -moz-linear-gradient(0% 0% 270deg, #333, #000); - background-image: -ms-gradient(linear, 0% 0%, 0% 100%, from(#333), to(#000)); - background-image: -o-linear-gradient(#333, #000); - background-image: linear-gradient(#666, #000); - - border-top: 1px solid #000; +thead th { + background-color: rgba(0, 0, 0, .4); + /* + background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#444), to(#000));/* ToDo: Transparency missing *//* + background-image: -moz-linear-gradient(0% 0% 270deg, #444, #000); + background-image: -ms-gradient(linear, 0% 0%, 0% 100%, from(#444), to(#000)); + background-image: -o-linear-gradient(#444, #000); + background-image: linear-gradient(#444, #000); + */ border-right: 1px solid #000; - border-bottom: 1px solid #000; - font-size: 87%; } -th:last-child { +thead th:last-child { border-right-width: 0; } -th:hover { - background-color: rgba(51, 51, 51, 1); +thead th:hover { + background-color: rgba(0, 0, 0, .5); } -th.active { - background-color: rgba(51, 51, 51, 1); +thead th.active { + background-color: rgba(0, 0, 0, .5); + + -webkit-box-shadow: inset 0 5px 15px rgba(0, 0, 0, .5); + -moz-box-shadow: inset 0 5px 15px rgba(0, 0, 0, .5); + -ms-box-shadow: inset 0 5px 15px rgba(0, 0, 0, .5); + -o-box-shadow: inset 0 5px 15px rgba(0, 0, 0, .5); + box-shadow: inset 0 5px 15px rgba(0, 0, 0, .5); } -th.active:hover { - background-color: rgba(51, 51, 51, 1); +thead th.active:hover { + background-color: rgba(0, 0, 0, .5); } -th a, th .emptyHead { +thead th a, thead th .emptyHead { color: #69c !important; text-shadow: 0 -1px 0 #000; display: block; @@ -828,11 +872,11 @@ th a, th .emptyHead { padding: 5px 7px; } -th a:hover { +thead th a:hover { color: #fff !important; } -th.active a { +thead th.active a { font-weight: bold; color: #fff !important; } @@ -844,62 +888,68 @@ tbody tr { } tbody tr:last-child { + /* no border for the last tables row */ border-bottom-width: 0; } tbody tr:last-child td:first-child { + /* rounded corners for the last table cell to the left */ border-bottom-left-radius: 5px; } tbody tr:last-child td:last-child { + /* rounded corners for the last table cell to the right */ border-bottom-right-radius: 5px; } -td { +tbody td { background-color: #fcfdfe; - border-right: 1px solid #fff; + border-right-width: 0; padding: 5px; } -td:last-child { +tbody td:last-child { border-right-width: 0; } -tr:nth-child(2n+1) td { +tbody tr:nth-child(2n+1) td { + /* auto-colorer for every 2nd row */ background-color: #f2f6fa; } -tr:hover td { +tbody tr:hover td { background-color: #d8e7f5; } -tr .columnIcon img { +tbody tr .columnIcon img { height: 16px; width: 16px; } /* Table Specials */ -.subTabMenu ~ .border { +/* +.menu ~ .border { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; } +*/ -.subTabMenu ~ .border thead th:first-child { +.menu ~ .border thead th:first-child { border-top-left-radius: 0 !important; } -.subTabMenu ~ .border thead th:last-child { +.menu ~ .border thead th:last-child { border-top-right-radius: 0 !important; } -.subTabMenu ~ .border thead th:first-child, -.titleBarPanel ~ .border thead th:first-child { +.menu ~ .border thead th:first-child, +.boxTitle > table thead th:first-child { border-top-left-radius: 0 !important; } -.subTabMenu ~ .border thead th:last-child, -.titleBarPanel ~ .border thead th:last-child { +.menu ~ .border thead th:last-child, +.boxTitle > table thead th:last-child { border-top-right-radius: 0 !important; } @@ -1145,7 +1195,6 @@ div.ui-widget-overlay { .ui-tabs .ui-tabs-nav { height: 18px !important; /* Fixes a clearing problem */ - margin: 0 3px; background-color: none; padding: 3px 3px 0; } diff --git a/wcfsetup/install/files/acp/templates/acpSessionLog.tpl b/wcfsetup/install/files/acp/templates/acpSessionLog.tpl index a4fc15e572..b18405f0da 100644 --- a/wcfsetup/install/files/acp/templates/acpSessionLog.tpl +++ b/wcfsetup/install/files/acp/templates/acpSessionLog.tpl @@ -15,10 +15,10 @@ {if $sessionAccessLogs|count}
-

{lang}wcf.acp.sessionLog.access.view.count{/lang}

-
-
- +
+

{lang}wcf.acp.sessionLog.access.view.count{/lang}

+
+
diff --git a/wcfsetup/install/files/acp/templates/acpSessionLogList.tpl b/wcfsetup/install/files/acp/templates/acpSessionLogList.tpl index 4ecfad160f..bb91d402a9 100644 --- a/wcfsetup/install/files/acp/templates/acpSessionLogList.tpl +++ b/wcfsetup/install/files/acp/templates/acpSessionLogList.tpl @@ -14,11 +14,11 @@ {if $sessionLogs|count} -
-

{lang}wcf.acp.sessionLog.view.count{/lang}

-
-
-

{lang}wcf.acp.sessionLog.sessionAccessLogID{/lang}{if $sortField == 'sessionAccessLogID'} {/if}

+
+
+

{lang}wcf.acp.sessionLog.view.count{/lang}

+
+
diff --git a/wcfsetup/install/files/acp/templates/cacheList.tpl b/wcfsetup/install/files/acp/templates/cacheList.tpl index e38d2ab1c9..328a22218e 100644 --- a/wcfsetup/install/files/acp/templates/cacheList.tpl +++ b/wcfsetup/install/files/acp/templates/cacheList.tpl @@ -47,18 +47,12 @@ {foreach from=$caches key=cache item=files} {if $files|count} -
-
-
- -
-
-

{$cache} ({#$files|count})

-
-
-
-
-

{lang}wcf.acp.sessionLog.sessionLogID{/lang}{if $sortField == 'sessionLogID'} {/if}

+
+ +
+

{$cache} ({#$files|count})

+
+
diff --git a/wcfsetup/install/files/acp/templates/cronjobList.tpl b/wcfsetup/install/files/acp/templates/cronjobList.tpl index cbddec4be0..e21a86b930 100644 --- a/wcfsetup/install/files/acp/templates/cronjobList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobList.tpl @@ -53,11 +53,11 @@ {else} -
-

{lang}wcf.acp.cronjob.list.count{/lang}

-
-
-

{lang}wcf.acp.cache.list.name{/lang}

+
+
+

{lang}wcf.acp.cronjob.list.count{/lang}

+
+
@@ -66,7 +66,7 @@ - + {if $additionalHeadColumns|isset}{@$additionalHeadColumns}{/if} diff --git a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl index 9f225ee5ba..23a40f2b3c 100644 --- a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl @@ -16,11 +16,11 @@ {hascontent} -
-

{lang}wcf.acp.cronjob.log.data{/lang}

-
-
-

{lang}wcf.acp.cronjob.cronjobID{/lang}{if $sortField == 'cronjobID'} {/if}

{lang}wcf.acp.cronjob.startDomShort{/lang}{if $sortField == 'startDom'} {/if}

{lang}wcf.acp.cronjob.startMonthShort{/lang}{if $sortField == 'startMonth'} {/if}

{lang}wcf.acp.cronjob.startDowShort{/lang}{if $sortField == 'startDow'} {/if}

{lang}wcf.acp.cronjob.description{/lang}{if $sortField == 'description'} {/if}

{lang}wcf.acp.cronjob.nextExec{/lang}{if $sortField == 'nextExec'} {/if}

+
+
+

{lang}wcf.acp.cronjob.log.data{/lang}

+
+
@@ -42,7 +42,7 @@ {elseif $cronjobLog->error} {else} diff --git a/wcfsetup/install/files/acp/templates/packageInstallationConfirm.tpl b/wcfsetup/install/files/acp/templates/packageInstallationConfirm.tpl index dc2999c9f2..7279285676 100644 --- a/wcfsetup/install/files/acp/templates/packageInstallationConfirm.tpl +++ b/wcfsetup/install/files/acp/templates/packageInstallationConfirm.tpl @@ -76,14 +76,12 @@ {if $updatableInstances|count > 0}

{lang}wcf.acp.package.install.updatableInstances.warning{/lang}

-
-
-

{lang}wcf.acp.package.install.updatableInstances{/lang}

-

{lang}wcf.acp.package.install.updatableInstances.description{/lang}

-
-
-
-

{@$cronjobLog->execTime|time} {lang}wcf.acp.cronjob.log.success{/lang}

- /p>{@$cronjobLog->execTime|time} {lang}wcf.acp.cronjob.log.error{/lang}
+

{@$cronjobLog->execTime|time} {lang}wcf.acp.cronjob.log.error{/lang}
{@$cronjobLog->error}

+
+
+

{lang}wcf.acp.package.install.updatableInstances{/lang}

+

{lang}wcf.acp.package.install.updatableInstances.description{/lang}

+
+
@@ -130,9 +128,9 @@ {/if}
- + {if $missingPackages == 0 && $excludingPackages|count == 0 && $excludedPackages|count == 0} - + {/if}
diff --git a/wcfsetup/install/files/acp/templates/packageList.tpl b/wcfsetup/install/files/acp/templates/packageList.tpl index 1c95825d5f..4de1f543ba 100644 --- a/wcfsetup/install/files/acp/templates/packageList.tpl +++ b/wcfsetup/install/files/acp/templates/packageList.tpl @@ -15,6 +15,7 @@

{lang}wcf.acp.package.list{/lang}

+

{lang}wcf.acp.package.list.count{/lang}

@@ -32,10 +33,11 @@ {if $packages|count > 0} -
-

{lang}wcf.acp.package.list.count{/lang}

- -

{lang}wcf.acp.package.list.name{/lang}

+
diff --git a/wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl b/wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl index 52fd22c44c..c5e7cb8314 100644 --- a/wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl +++ b/wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl @@ -69,11 +69,11 @@

{lang}wcf.acp.package.uninstall.dependentPackages.error{/lang}

{/if} -
-

{lang}wcf.acp.package.view.dependentPackages{/lang}

-
-
-

{lang}wcf.acp.package.list.id{/lang}{if $sortField == 'packageID'} {/if}

+
+
+

{lang}wcf.acp.package.view.dependentPackages{/lang}

+
+
diff --git a/wcfsetup/install/files/acp/templates/packageUpdateSearch.tpl b/wcfsetup/install/files/acp/templates/packageUpdateSearch.tpl index 843743a8f7..5a7b905461 100644 --- a/wcfsetup/install/files/acp/templates/packageUpdateSearch.tpl +++ b/wcfsetup/install/files/acp/templates/packageUpdateSearch.tpl @@ -126,8 +126,8 @@
- - + + {@SID_INPUT_TAG}
diff --git a/wcfsetup/install/files/acp/templates/packageUpdateSearchResult.tpl b/wcfsetup/install/files/acp/templates/packageUpdateSearchResult.tpl index e6218bc769..e002c63fbe 100644 --- a/wcfsetup/install/files/acp/templates/packageUpdateSearchResult.tpl +++ b/wcfsetup/install/files/acp/templates/packageUpdateSearchResult.tpl @@ -15,7 +15,7 @@ {foreach from=$packages item=package} -
+

{if $package.standalone == 1} @@ -101,12 +101,12 @@

-
+ {/foreach}
- - + + {@SID_INPUT_TAG} diff --git a/wcfsetup/install/files/acp/templates/packageView.tpl b/wcfsetup/install/files/acp/templates/packageView.tpl index dff08dfe71..2a9dba5ef0 100644 --- a/wcfsetup/install/files/acp/templates/packageView.tpl +++ b/wcfsetup/install/files/acp/templates/packageView.tpl @@ -94,17 +94,13 @@
{if $requiredPackages|count > 0} -
-
-
-
-

{lang}wcf.acp.package.view.requiredPackages{/lang}

-

{lang}wcf.acp.package.view.requiredPackages.description{/lang}

-
-
-
-
-

{lang}wcf.acp.package.list.id{/lang}

+
+ +
+

{lang}wcf.acp.package.view.requiredPackages{/lang}

+

{lang}wcf.acp.package.view.requiredPackages.description{/lang}

+
+
@@ -163,17 +159,13 @@ {/if} {if $dependentPackages|count > 0} -
-
-
-
-

{lang}wcf.acp.package.view.dependentPackages{/lang}

-

{lang}wcf.acp.package.view.dependentPackages.description{/lang}

-
-
-
-
-

{lang}wcf.acp.package.list.id{/lang}

+
+ +
+

{lang}wcf.acp.package.view.dependentPackages{/lang}

+

{lang}wcf.acp.package.view.dependentPackages.description{/lang}

+
+
diff --git a/wcfsetup/install/files/acp/templates/updateServerList.tpl b/wcfsetup/install/files/acp/templates/updateServerList.tpl index 597169aba5..718673609c 100644 --- a/wcfsetup/install/files/acp/templates/updateServerList.tpl +++ b/wcfsetup/install/files/acp/templates/updateServerList.tpl @@ -33,13 +33,13 @@ {else} -
-

{lang}wcf.acp.updateServer.list.available{/lang}

-
-
-

{lang}wcf.acp.package.list.id{/lang}

+
+
+

{lang}wcf.acp.updateServer.list.available{/lang}

+
+
- + diff --git a/wcfsetup/install/files/acp/templates/userEmailAddressExport.tpl b/wcfsetup/install/files/acp/templates/userEmailAddressExport.tpl index 4b1fb88307..9fd3f98279 100644 --- a/wcfsetup/install/files/acp/templates/userEmailAddressExport.tpl +++ b/wcfsetup/install/files/acp/templates/userEmailAddressExport.tpl @@ -81,8 +81,8 @@
- - + + {@SID_INPUT_TAG}
diff --git a/wcfsetup/install/files/acp/templates/userGroupAdd.tpl b/wcfsetup/install/files/acp/templates/userGroupAdd.tpl index e3497c7574..d8423d8338 100644 --- a/wcfsetup/install/files/acp/templates/userGroupAdd.tpl +++ b/wcfsetup/install/files/acp/templates/userGroupAdd.tpl @@ -74,17 +74,15 @@ {/foreach} -
-
- {foreach from=$optionTree item=categoryLevel1} - - {/foreach} -
-
+ {foreach from=$optionTree item=categoryLevel1} {foreach from=$categoryLevel1[categories] item=categoryLevel2} @@ -117,8 +115,8 @@
- - + + {@SID_INPUT_TAG} {if $groupID|isset}{/if} diff --git a/wcfsetup/install/files/acp/templates/userGroupList.tpl b/wcfsetup/install/files/acp/templates/userGroupList.tpl index 52214b7940..bc58c61880 100644 --- a/wcfsetup/install/files/acp/templates/userGroupList.tpl +++ b/wcfsetup/install/files/acp/templates/userGroupList.tpl @@ -38,11 +38,11 @@
{if $groups|count} -
-

{lang}wcf.acp.group.list.data{/lang}

-
-
-

{lang}wcf.acp.updateServer.packageUpdateServerID{/lang}{if $sortField == 'packageUpdateServerID'} {/if}

{lang}wcf.acp.updateServer.serverURL{/lang}{if $sortField == 'serverURL'} {/if}

{lang}wcf.acp.updateServer.packages{/lang}{if $sortField == 'packages'} {/if}

+
+
+

{lang}wcf.acp.group.list.data{/lang}

+
+
diff --git a/wcfsetup/install/files/acp/templates/userList.tpl b/wcfsetup/install/files/acp/templates/userList.tpl index 80c2ca7ec9..a24f12d590 100644 --- a/wcfsetup/install/files/acp/templates/userList.tpl +++ b/wcfsetup/install/files/acp/templates/userList.tpl @@ -63,17 +63,15 @@ -
-
+
+
-
-{if $users|count} -
-

{lang}wcf.acp.group.groupID{/lang}{if $sortField == 'groupID'} {/if}

+ + {if $users|count} +
diff --git a/wcfsetup/install/files/acp/templates/userSearch.tpl b/wcfsetup/install/files/acp/templates/userSearch.tpl index 8d2f1bdc8b..f5659d0c00 100644 --- a/wcfsetup/install/files/acp/templates/userSearch.tpl +++ b/wcfsetup/install/files/acp/templates/userSearch.tpl @@ -221,8 +221,8 @@
- - + + {@SID_INPUT_TAG}
diff --git a/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl b/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl index 67156a1a79..93e498367a 100644 --- a/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl +++ b/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl @@ -65,12 +65,12 @@ //]]> -
+
-
-

{lang}wcf.acp.user.massProcessing{/lang}

-
-
+
+

{lang}wcf.acp.user.massProcessing{/lang}

+
+ {if $errorField}

{lang}wcf.global.form.error{/lang}