summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-06 18:11:40 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-06 18:11:40 +0000
commit7f95b768ffd5e3d46701ff685504dd5850e73f83 (patch)
tree87f8f52799f7bad44074f7c6d31747b0f4cd5c6e /themes
parent3436c02c8194e8327064e22ced17ccfabad556fb (diff)
downloadbrdo-7f95b768ffd5e3d46701ff685504dd5850e73f83.tar.gz
brdo-7f95b768ffd5e3d46701ff685504dd5850e73f83.tar.bz2
Usability improvements to the Xtemplate theme by Kristjan and Al:
- added a subtle lineheight to nodes and #message - removed specific link colors for taxonomy terms and node links. Found it confusing, specially in context with a:visited color. - added a gray background, border and padding for <pre> tag, to make Drupal documentation pages more nicer. - nested search form into <div>s in order to validate as XHTML Strict. Modified patch by Alastair. - incorporated all of Alastair's patches to replace px-based padidngs with em-ones - fixed the footer font size and Y-centered it - removed class from seach <form>, put it in the surrounding <div> instead - added class for submit - simplified the search box's CSS, it is looking much more cleaner now
Diffstat (limited to 'themes')
-rw-r--r--themes/xtemplate/xtemplate.css67
-rw-r--r--themes/xtemplate/xtemplate.xtmpl8
2 files changed, 39 insertions, 36 deletions
diff --git a/themes/xtemplate/xtemplate.css b/themes/xtemplate/xtemplate.css
index ce9865ac5..5429c795a 100644
--- a/themes/xtemplate/xtemplate.css
+++ b/themes/xtemplate/xtemplate.css
@@ -47,7 +47,7 @@ img {
}
.header .menu {
background-color: #69c;
- padding: 5px 5px 0 5px;
+ padding: 0.5em 0.5em 0 0.5em;
}
.menu #logo {
vertical-align: bottom;
@@ -71,27 +71,23 @@ img {
font-weight: bold;
color: #9cf;
}
-.menu .search-form {
- padding: 0 0.5em 0 0.5em;
- margin: 0 0 0.5em 0;
-}
-.menu .search-form input {
+#search .form-text, #search .form-submit {
border: 1px solid #369;
- height: 1.5em;
-}
-#secondary form {
- display: inline;
+ font-size: 1.1em;
}
-#secondary form .keys {
- width: 12em;
+#search .form-text {
+ width: 8em;
+ height: 1.4em;
margin-left: 1em;
+ padding: 0 0.5em 0 0.5em;
+ margin: 0 0 0.5em 0;
}
-#secondary input {
- font-size: 1.1em;
+#search .form-submit {
+ height: 1.5em;
}
#message {
background-color: #369;
- padding: 20px 20px 20px 25px;
+ padding: 1.5em 2em;
color: #fff;
}
#message a, #message a:visited {
@@ -99,31 +95,34 @@ img {
font-weight: bold;
}
#main {
- padding: 10px;
+ padding: 1em;
+}
+#message, #main .node .content {
+ line-height: 1.4;
}
#sidebar {
background-color: #ddd;
- width: 200px;
- padding: 10px;
+ width: 16em;
+ padding: 1em;
}
#footer {
background-color: #eee;
- padding: 15px 10px 5px 10px;
- font-size: .7em;
+ padding: 1em 1em 1em 1em;
+ font-size: 0.8em;
}
table {
font-size: 1em;
}
.node, .block, .box {
- padding: 0 0 20px 0;
+ padding: 0 0 1.5em 0;
}
.comment {
border: 1px solid #ccc;
- padding: 15px 15px 15px 15px;
- margin: 5px 0 5px 0;
+ padding: 1.5em 1.5em 1.5em 1.5em;
+ margin: 0.5em 0 0.5em 0;
}
.node .title, .block .title, .box .title, .node .title a, .box .title a {
- padding-bottom: 5px;
+ padding-bottom: 0.5em;
font-weight: bold;
font-size: 1.3em;
color: #777;
@@ -139,26 +138,22 @@ table {
.node .author, .comment .author {
color: #999;
font-size: 0.8em;
- padding-bottom: 10px;
+ padding-bottom: 1em;
}
.node .taxonomy {
color: #999;
font-size: 0.8em;
- padding: 15px;
-}
-.node .taxonomy a {
- color: #369;
+ padding: 1.5em;
}
.node .content, .comment .content {
- padding-top: 5px;
+ padding-top: 0.5em;
}
.node .links, .comment .links {
- padding-top: 10px;
+ padding-top: 1em;
color: #999;
}
.node .links a, .comment .links a {
font-weight: bold;
- color: #369;
}
.comment .title {
font-weight: bold;
@@ -184,7 +179,7 @@ table {
}
#tracker td {
vertical-align: top;
- padding: 10px 10px 10px 0;
+ padding: 1em 1em 1em 0;
border-bottom: 1px solid #ddd;
}
.calendar td {
@@ -216,3 +211,9 @@ table {
.calendar .row-week td a:hover {
background-color: #fff; color: #000;
}
+pre {
+ background-color: #eee;
+ padding: 0.75em 1.5em;
+ font-size: 11px;
+ border: 1px solid #ddd;
+}
diff --git a/themes/xtemplate/xtemplate.xtmpl b/themes/xtemplate/xtemplate.xtmpl
index dc88eb06d..2496cc850 100644
--- a/themes/xtemplate/xtemplate.xtmpl
+++ b/themes/xtemplate/xtemplate.xtmpl
@@ -20,9 +20,11 @@
<div id="secondary">{secondary_links}</div>
<div id="primary">{primary_links}</div>
<!-- BEGIN: search_box -->
- <form action="{search_url}" method="post" class="search-form">
- <input class="keys" type="text" size="15" value="" name="keys" />
- <input type="submit" value="{search_button_text}" />
+ <form action="{search_url}" method="post">
+ <div id="search">
+ <input class="form-text" type="text" size="15" value="" name="keys" />
+ <input class="form-submit" type="submit" value="{search_button_text}" />
+ </div>
</form>
<!-- END: search_box -->
</td>