From 4c5ade0af4662db0b18651ef71f70ea5ff832463 Mon Sep 17 00:00:00 2001 From: Luzifr Date: Wed, 7 Sep 2011 15:04:21 +0200 Subject: [PATCH] CSS & Template Changes Removed the reset-styles of Eric Meyer (some of them were not acting as wanted), included most of them in the normal testing styles, removed reference to the reset styles from the header template, optimized display of table headers with a checkbox. --- wcfsetup/install/files/acp/style/testing.css | 65 +++++++++++++++++-- .../install/files/acp/templates/header.tpl | 1 - 2 files changed, 59 insertions(+), 7 deletions(-) diff --git a/wcfsetup/install/files/acp/style/testing.css b/wcfsetup/install/files/acp/style/testing.css index 90cb5306d2..96a1b320c8 100644 --- a/wcfsetup/install/files/acp/style/testing.css +++ b/wcfsetup/install/files/acp/style/testing.css @@ -5,6 +5,61 @@ * @copyright 2011 WoltLab GmbH */ +/* -- -- -- -- -- Reset -- -- -- -- -- */ + +/** + * Parts taken from + * http://meyerweb.com/eric/tools/css/reset/ + * v2.0 | 20110126 + * License: none (public domain) + * modifyed to meet the needs of WoltLab + */ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; +} + +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} + +body { + line-height: 1; +} + +ol, ul { + list-style: none; +} + +blockquote, q { + quotes: none; +} + +blockquote:before, +blockquote:after, +q:before, +q:after { + content: ''; + content: none; +} + /* -- -- -- -- -- Globals -- -- -- -- -- */ @@ -1241,6 +1296,7 @@ input[type='submit']:active, table { width: 100% !important; + border-spacing: 0; } /* Table Header */ @@ -1311,11 +1367,8 @@ thead th.active:hover a { background-color: rgba(0, 0, 0, .3); } -thead th.columnMark { - background-color: transparent; - background-image: none; - padding: 0 !important; - width: 30px; +thead th input[type="checkbox"] { + margin: -5px !important; } thead th a img { @@ -1375,7 +1428,7 @@ tbody tr .columnIcon img { width: 16px; } -/* Table Specials */ +/* ToDo: Table Specials */ /* .menu ~ .border { diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index 96409619da..1da9d2aeac 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -30,7 +30,6 @@ *} - -- 2.20.1