From 127e384a7ded2df27d3de17ebf6b35f2dde30491 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 7 Dec 2012 20:40:24 +0100 Subject: [PATCH] Simplified badge colors --- .../files/acp/templates/cronjobLogList.tpl | 4 +- .../files/acp/templates/updateServerList.tpl | 2 +- wcfsetup/install/files/style/global.less | 176 +++++++++--------- 3 files changed, 93 insertions(+), 89 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl index b3d98f7d76..aa4fc45d64 100644 --- a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl @@ -75,9 +75,9 @@

{if $cronjobLog->success} - {lang}wcf.acp.cronjob.log.success{/lang} + {lang}wcf.acp.cronjob.log.success{/lang} {elseif $cronjobLog->error} - {lang}wcf.acp.cronjob.log.error{/lang} + {lang}wcf.acp.cronjob.log.error{/lang} {@$cronjobLog->error} {/if}

diff --git a/wcfsetup/install/files/acp/templates/updateServerList.tpl b/wcfsetup/install/files/acp/templates/updateServerList.tpl index ef253f632e..ed0c9c08cd 100644 --- a/wcfsetup/install/files/acp/templates/updateServerList.tpl +++ b/wcfsetup/install/files/acp/templates/updateServerList.tpl @@ -65,7 +65,7 @@

{@$updateServer->packageUpdateServerID}

{$updateServer->serverURL}

{#$updateServer->packages}

-

{@$updateServer->status}

+

{@$updateServer->status}

{@$updateServer->errorMessage|truncate:"30"}

{if $updateServer->lastUpdateTime}{@$updateServer->lastUpdateTime|time}{/if}

diff --git a/wcfsetup/install/files/style/global.less b/wcfsetup/install/files/style/global.less index b458cee3db..7e2631947e 100644 --- a/wcfsetup/install/files/style/global.less +++ b/wcfsetup/install/files/style/global.less @@ -213,123 +213,127 @@ body > iframe[src="about:blank"] { font-weight: normal !important; padding: 1px 8px 2px; position: relative; - text-shadow: none !important; white-space: nowrap; + .textShadow(@wcfColor); + /* colors */ &.badgeUpdate { background-color: @wcfTabularBoxBackgroundColor; color: @wcfTabularBoxColor; + + .textShadow(@wcfTabularBoxBackgroundColor); + } + + &.badgeInverse { + background-color: @wcfTabularBoxColor; + color: @wcfTabularBoxBackgroundColor; + + .textShadow(@wcfTabularBoxColor); } - &.badgeGreen { + /* default label colors */ + &.green { background-color: rgba(0, 153, 0, 1); color: rgba(238, 255, 238, 1); + + .textShadow(rgba(0, 153, 0, 1)); } - &.badgeRed { + &.red { background-color: rgba(204, 0, 0, 1); color: rgba(255, 238, 238, 1); + + .textShadow(rgba(204, 0, 0, 1)); } - &.badgeInverse { - background-color: @wcfTabularBoxColor; - color: @wcfTabularBoxBackgroundColor; + &.black { + background-color: #333; + color: #fff; + + .textShadow(#333); } - &.label { - font-size: 90%; + &.brown { + background-color: #c63; color: #fff; - /* TODO: use textShadow() */ - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4); - /* default label colors */ - &.black { - background-color: #333; - } - - &.brown { - background-color: #c63; - } - - &.red { - background-color: #c00; - } - - &.orange { - background-color: #f90; - } - - &.yellow { - background-color: #ff0; - color: #333; - /* TODO: use textShadow() */ - text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.4); - } - - &.green { - background-color: #0c0; - } + .textShadow(#c63); + } + + &.orange { + background-color: #f90; + color: #fff; - &.blue { - background-color: #09f; - } + .textShadow(#f90); + } + + &.yellow { + background-color: #ff0; + color: #333; - &.purple { - background-color: #c0f; - } + .textShadow(#ff0); + } + + &.blue { + background-color: #09f; + color: #fff; - &.pink { - background-color: #f0c; - } + .textShadow(#09f); } - /* hover */ + &.purple { + background-color: #c0f; + color: #fff; + + .textShadow(#c0f); + } + &.pink { + background-color: #f0c; + color: #fff; + + .textShadow(#f0c); + } } a.badge:hover { color: @wcfContentBackgroundColor; - text-decoration: none; - - &.label { - text-decoration: none; - - &.black { - background-color: #000; - } - - &.brown { - background-color: #930; - } - - &.red { - background-color: #900; - } - - &.orange { - background-color: #f60; - } - - &.yellow { - background-color: #cc0; - } - - &.green { - background-color: #090; - } - - &.blue { - background-color: #06c; - } - &.purple { - background-color: #90c; - } - - &.pink { - background-color: #c09; - } + &.black { + background-color: #000; + } + + &.brown { + background-color: #930; + } + + &.red { + background-color: #900; + } + + &.orange { + background-color: #f60; + } + + &.yellow { + background-color: #cc0; + } + + &.green { + background-color: #090; + } + + &.blue { + background-color: #06c; + } + + &.purple { + background-color: #90c; + } + + &.pink { + background-color: #c09; } } -- 2.20.1