aboutsummaryrefslogtreecommitdiff
path: root/dicoweb/static
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2010-05-23 18:30:08 +0200
committerWojciech Polak <polak@gnu.org>2010-05-23 18:30:08 +0200
commit96770e6e7026ccb54c53c904bb9a3e37102098db (patch)
tree88c0547d4df524446d737926a64e36edad33ae63 /dicoweb/static
parent603ded11428876f39f872767bfb78e40dcc14491 (diff)
downloaddico-96770e6e7026ccb54c53c904bb9a3e37102098db.tar.gz
dico-96770e6e7026ccb54c53c904bb9a3e37102098db.tar.bz2
Minor Dicoweb changes.
* dicoweb/settings.py: Rename to settings-sample.py * dicoweb/static/dicoweb.js: Bugfix. * dicoweb/static/dicoweb.css: Minor changes. * dicoweb/templates/base.html: Likewise. * dicoweb/templates/index.html: Likewise.
Diffstat (limited to 'dicoweb/static')
-rw-r--r--dicoweb/static/dicoweb.css20
-rw-r--r--dicoweb/static/dicoweb.js16
2 files changed, 23 insertions, 13 deletions
diff --git a/dicoweb/static/dicoweb.css b/dicoweb/static/dicoweb.css
index 179a348..bca907e 100644
--- a/dicoweb/static/dicoweb.css
+++ b/dicoweb/static/dicoweb.css
@@ -1,6 +1,6 @@
/*
This file is part of GNU Dico.
- Copyright (C) 2008, 2009 Wojciech Polak
+ Copyright (C) 2008, 2009, 2010 Wojciech Polak
GNU Dico is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -22,10 +22,10 @@
}
body {
+ font-family: arial, sans-serif;
+ font-size: 95%;
background-color: white;
color: #585858;
- font-family: "Nimbus Sans L", Arial, sans-serif;
- font-size: 10pt;
}
h1, h2, h3 {
@@ -52,6 +52,10 @@ a:hover {
text-decoration: underline;
}
+input {
+ padding: 1px;
+}
+
ul {
margin-bottom: 1em;
}
@@ -64,9 +68,10 @@ p {
margin-bottom: 0.2em;
}
pre {
- padding: 1em;
- font-size: 9pt;
+ font-size: 95%;
white-space: normal;
+ line-height: 140%;
+ padding: 1em;
}
table {
border-spacing: 2px;
@@ -90,6 +95,9 @@ tr, th, td {
#logo a {
text-decoration: none;
}
+#logo img {
+ padding-left: 15px;
+}
#searchform {
width: 600px;
margin: 60px auto 0 auto;
@@ -116,7 +124,7 @@ a.link-lmr {
}
#footer {
- font-size: 9pt;
+ font-size: 80%;
width: 700px;
text-align: center;
border-top: dotted 1px #e1e1e1;
diff --git a/dicoweb/static/dicoweb.js b/dicoweb/static/dicoweb.js
index 7191632..8a94bd2 100644
--- a/dicoweb/static/dicoweb.js
+++ b/dicoweb/static/dicoweb.js
@@ -53,13 +53,15 @@ window.onload = function () {
return true;
};
- document.forms[0].server.onchange = function () {
- var q = GID ('q');
- var u = '?server=' + this.value;
- if (q && q.value != '')
- u += '&q=' + encodeURIComponent (q.value);
- window.location.replace (u);
- };
+ if (document.forms[0].server) {
+ document.forms[0].server.onchange = function () {
+ var q = GID ('q');
+ var u = '?server=' + this.value;
+ if (q && q.value != '')
+ u += '&q=' + encodeURIComponent (q.value);
+ window.location.replace (u);
+ };
+ }
var q = GID ('q');
if (q) {

Return to:

Send suggestions and report system problems to the System administrator.