summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/styles.css45
-rw-r--r--static/textareas.js27
2 files changed, 72 insertions, 0 deletions
diff --git a/static/styles.css b/static/styles.css
index 605fef3..c329905 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -168,6 +168,18 @@ width:160px;
height:100px;
}
+.datetime a img{
+border:0;
+}
+
+.datetime input.vTimeField{
+width:68px;
+}
+
+.datetime input.vDateField{
+width:75px;
+}
+
.form_description{
background-color:#6f819d;
color:white;
@@ -310,3 +322,36 @@ text-align:center;
.comments .submit{
width:auto;
}
+
+
+/* CALENDARS & CLOCKS IMPORTED FROM ADMIN */
+
+.calendarbox, .clockbox { margin: 5px auto; font-size: 11px; width: 16em; text-align: center; background: white; position: relative; border: 1px solid #444; }
+.clockbox { width: auto; }
+.clockbox h2 { margin: 0; font-size: 13px; border-bottom: 1px solid #222; padding: 3px; background-color: #EEE; }
+
+.calendar { margin: 0; padding: 0; }
+.calendar table { margin: 0; padding: 0; border-collapse: collapse; background: white; width: 100%; }
+.calendar caption, .calendarbox h2 { margin: 0; font-size: 12px; text-align: center; border-top: none; background-color: #EEE; }
+.calendar caption { height: 18px; font-weight: bold; }
+.calendar th { font-size: 10px; color: #666; padding: 2px 3px; text-align: center; background: #e1e1e1 url(../img/admin/nav-bg.gif) 0 50% repeat-x; border-bottom: 1px solid #ddd; }
+.calendar td { font-size: 11px; text-align: center; padding: 0; border-top: 1px solid #eee; border-bottom: none; }
+.calendar td.selected a { background: #C9DBED; }
+.calendar td.nonday { background: #efefef; }
+.calendar td.today a { background: #ffc; }
+.calendar td a, .timelist a { display: block; font-weight: bold; padding: 4px; text-decoration: none; color: #444; }
+.calendar td a:hover, .timelist a:hover { background: #4A0010; color: white; }
+.calendar td a:active, .timelist a:active { background: #CCC; color: white; }
+.calendarnav { font-size: 10px; text-align: center; color: #ccc; margin: 0; padding: 1px 3px; }
+.calendarnav a:link, #calendarnav a:visited, #calendarnav a:hover { color: #999; }
+.calendar-shortcuts { background: white; font-size: 10px; line-height: 11px; border-top: 1px solid #eee; padding: 3px 0 4px; color: #ccc; }
+.calendarbox .calendarnav-previous, .calendarbox .calendarnav-next { display: block; position: absolute; font-weight: bold; font-size: 12px; background: #AAA url(../img/admin/default-bg.gif) bottom left repeat-x; padding: 1px 4px 2px 4px; color: white; }
+.calendarnav-previous:hover, .calendarnav-next:hover { background: #4A0010; }
+.calendarnav-previous { top: 0; left: 0; }
+.calendarnav-next { top: 0; right: 0; }
+.calendar-cancel { margin: 0 !important; padding: 0; font-size: 10px; background: #e1e1e1 url(../img/admin/nav-bg.gif) 0 50% repeat-x; border-top: 1px solid #ddd; }
+.calendar-cancel a { padding: 2px; color: #999; }
+
+ul.timelist, .timelist li { list-style-type: none; margin: 0; padding: 0; }
+.timelist a { padding: 2px; }
+
diff --git a/static/textareas.js b/static/textareas.js
new file mode 100644
index 0000000..fec83b8
--- /dev/null
+++ b/static/textareas.js
@@ -0,0 +1,27 @@
+/* base function shared by some pages */
+/* Copyright (C) 2009 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+See the file COPYING for details.
+*/
+
+tinyMCE.init({
+ mode : "textareas",
+ theme : "advanced",
+ relative_urls : false,
+ theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,bullist,numlist,separator,hr,separator,link",
+ theme_advanced_buttons2 : "",
+ theme_advanced_buttons3 : ""
+});