From 47be338f32ebd3a7f1bbe7eaf11df7e9263d32ff Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 23 Oct 2012 23:44:23 +0200 Subject: [PATCH] =?UTF-8?q?Format=20the=20CSS=20in=20a=20readable=20way?= =?UTF-8?q?=E2=80=A6.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search/css/results.css | 74 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 65 insertions(+), 9 deletions(-) diff --git a/search/css/results.css b/search/css/results.css index 40d5563e89..f2b0b1c53b 100644 --- a/search/css/results.css +++ b/search/css/results.css @@ -2,12 +2,68 @@ This file is licensed under the Affero General Public License version 3 or later. See the COPYING-README file. */ -#searchresults { list-style:none; position:fixed; top:3.5em; right:0; z-index:75; background-color:#fff; overflow:hidden; text-overflow:ellipsis; max-height:80%; width:26.5em; padding-bottom:1em; -moz-box-shadow:0 0 10px #000; -webkit-box-shadow:0 0 10px #000; box-shadow:0 0 10px #000; -moz-border-radius-bottomleft:1em; -webkit-border-bottom-left-radius:1em; border-bottom-left-radius:1em; } -#searchresults li.resultHeader { font-size:1.2em; font-weight:bold; border-bottom:solid 1px #CCC; padding:.2em; background-color:#eee; } -#searchresults li.result { margin-left:2em; } -#searchresults table { width:100%; table-layout:fixed; top:0; border-spacing:0; } -#searchresults td { padding:0 .3em; vertical-align:top; } -#searchresults td.result div.text { padding-left:1em; white-space:nowrap; } -#searchresults td.result * { cursor:pointer; } -#searchresults td.type { width:3.5em; text-align:right; border-right:1px solid #aaa; border-bottom:none; font-weight:bold; } -#searchresults tr.current { background-color:#ddd; } +#searchresults +{ + background-color: #fff; + border-bottom-left-radius: 1em; + box-shadow: 0 0 10px #000; + list-style: none; + max-height: 80%; + moz-border-radius-bottomleft: 1em; + moz-box-shadow: 0 0 10px #000; + overflow: hidden; + padding-bottom: 1em; + position: fixed; + right: 0; + text-overflow: ellipsis; + top: 3.5em; + webkit-border-bottom-left-radius: 1em; + webkit-box-shadow: 0 0 10px #000; + width: 26.5em; + z-index: 75; +} +#searchresults li.resultHeader +{ + background-color: #eee; + border-bottom: solid 1px #CCC; + font-size: 1.2em; + font-weight: bold; + padding: .2em; +} +#searchresults li.result +{ + margin-left: 2em; +} +#searchresults table +{ + border-spacing: 0; + table-layout: fixed; + top: 0; + width: 100%; +} +#searchresults td +{ + padding: 0 .3em; + vertical-align: top; +} +#searchresults td.result div.text +{ + padding-left: 1em; + white-space: nowrap; +} +#searchresults td.result * +{ + cursor: pointer; +} +#searchresults td.type +{ + border-bottom: none; + border-right: 1px solid #aaa; + font-weight: bold; + text-align: right; + width: 3.5em; +} +#searchresults tr.current +{ + background-color: #ddd; +} \ No newline at end of file