From 4a526ca752c676692bb301669b0bf507211369d3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 15 Dec 2003 20:47:18 +0000 Subject: - Added a new theme derived from Kristjan's styleswitcher theme. --- themes/chameleon/chameleon.theme | 140 ++++++++++++++++++++++++ themes/chameleon/default.css | 100 +++++++++++++++++ themes/chameleon/images/druplicon-watermark.png | Bin 0 -> 2454 bytes themes/chameleon/images/marvin-bullet.png | Bin 0 -> 210 bytes themes/chameleon/images/pure-background.gif | Bin 0 -> 594 bytes themes/chameleon/marvin.css | 103 +++++++++++++++++ themes/chameleon/pure.css | 75 +++++++++++++ 7 files changed, 418 insertions(+) create mode 100644 themes/chameleon/chameleon.theme create mode 100644 themes/chameleon/default.css create mode 100644 themes/chameleon/images/druplicon-watermark.png create mode 100644 themes/chameleon/images/marvin-bullet.png create mode 100644 themes/chameleon/images/pure-background.gif create mode 100644 themes/chameleon/marvin.css create mode 100644 themes/chameleon/pure.css diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme new file mode 100644 index 000000000..4ed275139 --- /dev/null +++ b/themes/chameleon/chameleon.theme @@ -0,0 +1,140 @@ +\n"; + $output .= "\n"; + $output .= "\n"; + $output .= " ". ($title ? $title ." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")) ."\n"; + $output .= theme_head(); + $output .= " \n"; + $output .= " \n"; + $output .= ""; + $output .= "\n"; + $output .= "
"; + $output .= "

". l(variable_get("site_name", "drupal"), ""). "

"; + $output .= "
\n"; + + $output .= " \n"; + $output .= " \n"; + + if ($blocks = theme_blocks("left")) { + $output .= " \n"; + } + + $output .= " \n"; + + if ($blocks = theme_blocks("right")) { + $output .= " \n"; + } + + $output .= " \n"; + $output .= "
$blocks\n"; + + if ($title = drupal_get_title()) { + $output .= theme("breadcrumb", drupal_get_breadcrumb()); + $output .= "

$title

"; + } + + if ($help = menu_get_active_help()) { + $output .= "$help
"; + } + + if ($message = drupal_get_message()) { + $output .= "". t("Status") .": ". $message->message ."
"; + } + + return $output; +} + +function chameleon_node($node, $main = 0, $page = 0) { + + $output = "
\n"; + + if (!$page) { + $output .= "

". ($main ? l($node->title, "node/view/$node->nid") : $node->title) ."

\n"; + } + + $output .= "
\n"; + + if ($main && $node->teaser) { + $output .= $node->teaser; + } + else { + $output .= $node->body; + } + + $output .= "
\n"; + + $submitted = array(t("By %author at %date", array('%author' => format_name($node), '%date' => format_date($node->created, 'small')))); + + if (module_exist('taxonomy')) { + $terms = taxonomy_link("taxonomy terms", $node); + } + + if ($links = link_node($node, $main)) { + $output .= "
". theme('links', array_merge($submitted, $terms, $links)) ."
\n"; + } + + $output .= "
\n"; + + return $output; +} + +function chameleon_comment($comment, $link = "") { + + $date = array(format_date($comment->timestamp, 'small')); + $links = array($link); + + $output = "
\n"; + $output .= "

". $comment->subject ."

\n"; + $output .= "
". $comment->comment ."
\n"; + $output .= "
". theme('links', array_merge($date, $links)) ."
\n"; + $output .= "
\n"; + + return $output; +} + +function chameleon_footer() { + + $output = "
$blocks
\n"; + $output .= theme_closure(); + $output .= " \n"; + $output .= "\n"; + + return $output; +} +?> diff --git a/themes/chameleon/default.css b/themes/chameleon/default.css new file mode 100644 index 000000000..180f86ac7 --- /dev/null +++ b/themes/chameleon/default.css @@ -0,0 +1,100 @@ +/* $Id$ */ + +/* HTML tags */ +a, a:link, a:active { + font-weight: bold; + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +body { + margin: 0; + padding: 3em; + font-family: arial, helvetica, sans-serif; + font-size: .9em; + line-height: 1.3em; +} +blockquote { + font-style: italic; +} +table { + margin: 0; + padding: .5em; + border-collapse: collapse; +} +hr { + height: 1px; + border: 1px solid gray; +} +code, pre { + font-size: 1em; +} +pre { + font-size: 0.8em; + padding: 1em; + background: #eee; +} +li { + padding-bottom: .3em; +} +img { + border: 0; +} +h1, h2, h3, h4, h5, h6 { + margin-bottom: .25em; +} +h1 { + font-size: 1.3em; +} +h2 { + font-size: 1.2em; +} +h3 { + font-size: 1.1em; +} +h4, h5, h6 { + font-size: 1em; +} +p { + margin: 0 0 .5em 0; +} +br { + line-height: 0.6em; +} + +/* regions */ +#header { + margin-bottom: 2em; +} +#sidebar-left, #sidebar-right { + vertical-align: top; + padding: 10px; +} +#main { + padding-left: 1em; + padding-right: 1em; + vertical-align: top; + width: 60%; +} + +/* region-specific tags */ +.title { + margin: 0 0 .25em 0; +} +.content { + margin: 0 0 .5em 0; +} +.links { + font-size: 0.8em; + line-height: 1.25em; +} +.block { + width: 180px; +} + +/* modules definitions */ +.form-item textarea { + font-size: 1em; +} + diff --git a/themes/chameleon/images/druplicon-watermark.png b/themes/chameleon/images/druplicon-watermark.png new file mode 100644 index 000000000..4f91cd380 Binary files /dev/null and b/themes/chameleon/images/druplicon-watermark.png differ diff --git a/themes/chameleon/images/marvin-bullet.png b/themes/chameleon/images/marvin-bullet.png new file mode 100644 index 000000000..937c8ed05 Binary files /dev/null and b/themes/chameleon/images/marvin-bullet.png differ diff --git a/themes/chameleon/images/pure-background.gif b/themes/chameleon/images/pure-background.gif new file mode 100644 index 000000000..13e3631da Binary files /dev/null and b/themes/chameleon/images/pure-background.gif differ diff --git a/themes/chameleon/marvin.css b/themes/chameleon/marvin.css new file mode 100644 index 000000000..4a2403057 --- /dev/null +++ b/themes/chameleon/marvin.css @@ -0,0 +1,103 @@ +/* $Id$ */ +body { + background: #fff url(images/druplicon-watermark.png) no-repeat top right; +} +a:link { + color: #656 +} +a:visited { + color: #656 +} +a:active { + color: #ccc +} +h2 { + background-color: #eaeaea; + border: solid 1px #777; + font-size: 1.1em; + margin: 0.5em 0em 0.5em 0em; + padding: 0.5em; +} +h2.title { + background-color: #fff; + border: solid 1px #888; + margin-top: 1em; +} +p { + margin: 0 1em 1em 0; + padding: 0; +} +img { + border-width: 0; +} +table { + font-size: 1em; +} +#main { + width: 80%; +} +.block { + margin-bottom: 10px; + font-size: 0.9em; +} +.block .content { + border: solid 1px #888; + border-top: none; + margin: 0; + padding: 5px; +} +.block h2.title { + margin: 0; +} + +.calendar .day-today { + background-color: #ccc; +} +.calendar .day-selected { + background-color: #bbb; +} +.calendar .header-month { + background-color: #ddd; +} +.calendar .header-week { + background-color: #ccc; +} +.calendar .day-blank { + background-color: #ddd; +} +.calendar .day-link a { + color: #000; +} +.calendar .row-week { + color: #aaa; +} +.comment { + border: solid 1px #777; + margin: 0.5em 0 0.5em 0; + padding: 0.5em; +} +.item-list ul li { + list-style-image: url(images/marvin-bullet.png); +} +.path, .path a, .path a:visited { + color: #888; +} +.node .submitted { + color: #7c7c7c; + font-size: 0.9em; + float: left; + padding: 0.5em 0em 0.5em 1em; +} +.node .taxonomy { + color: #7c7c7c; + font-size: 0.9em; + float: right; +} +.node .content { + clear: both; + padding-left: 1em; +} +.node .links { + padding: 1em; +} + diff --git a/themes/chameleon/pure.css b/themes/chameleon/pure.css new file mode 100644 index 000000000..bd2422310 --- /dev/null +++ b/themes/chameleon/pure.css @@ -0,0 +1,75 @@ +/* $Id$ */ + +/* HTML styles */ + +a, a:link, a:active { + color: #930; +} +a:visited { + color: #630; +} +body { + padding: 5em 0 0 3em; + background-image: url(images/pure-background.gif); + background-repeat: repeat-x; + font-family: tahoma, verdana, arial, helvetica; + border-top: 10px solid gray; +} +ul { + list-style-type: disc; +} + +/* Regions */ + +#main { + width: 500px; +} +#sidebar-left { + border-right: 1px solid gray; +} +#sidebar-right { + border-left: 1px solid gray; +} +#header .title { + font-size: 2em; + font-weight: bold; +} +#header .title a, +#header .title a:link, +#header .title a:visited, +#header .title a:active { + text-decoration: none; + color: #aaa; +} +#header .title a:hover { + color: #930; +} +.item-list ul li { + list-style: square; +} +.node .title { + font-size: 1.2em; +} +.node .title a, +.node .title a:link, +.node .title a:active, +.node .title a:visited { + text-decoration: none; + font-weight: normal; +} +.node .title a:hover { + text-decoration: underline; +} +.links { + margin: 1em 0 3em 0; + text-align: right; + } +.comment .content, .block .content, .menu { + font-size: 0.9em; +} +.block { + padding-bottom: 1em; +} +.block .title { + font-size: 1em; +} -- cgit v1.2.3