From b13a4cb2e3bf6d9dd887335aa6c64c31a2768134 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Feb 2004 14:21:37 +0000 Subject: - Changed the directory structure of theme chameleon. Each template is now in a subdirectory. This makes it easier to clone/fork an existing theme. --- themes/chameleon/chameleon.theme | 11 +-- themes/chameleon/common.css | 92 +++++++++++++++++++++ themes/chameleon/default.css | 92 --------------------- themes/chameleon/images/druplicon-watermark.png | Bin 2454 -> 0 bytes themes/chameleon/images/marvin-bullet.png | Bin 210 -> 0 bytes themes/chameleon/images/pure-background.gif | Bin 594 -> 0 bytes themes/chameleon/marvin.css | 104 ------------------------ themes/chameleon/marvin/bullet.png | Bin 0 -> 2454 bytes themes/chameleon/marvin/chameleon.css | 104 ++++++++++++++++++++++++ themes/chameleon/marvin/druplicon-watermark.png | Bin 0 -> 2454 bytes themes/chameleon/pure.css | 84 ------------------- themes/chameleon/pure/background.gif | Bin 0 -> 594 bytes themes/chameleon/pure/chameleon.css | 84 +++++++++++++++++++ 13 files changed, 286 insertions(+), 285 deletions(-) create mode 100644 themes/chameleon/common.css delete mode 100644 themes/chameleon/default.css delete mode 100644 themes/chameleon/images/druplicon-watermark.png delete mode 100644 themes/chameleon/images/marvin-bullet.png delete mode 100644 themes/chameleon/images/pure-background.gif delete mode 100644 themes/chameleon/marvin.css create mode 100644 themes/chameleon/marvin/bullet.png create mode 100644 themes/chameleon/marvin/chameleon.css create mode 100644 themes/chameleon/marvin/druplicon-watermark.png delete mode 100644 themes/chameleon/pure.css create mode 100644 themes/chameleon/pure/background.gif create mode 100644 themes/chameleon/pure/chameleon.css diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index c9f2ada39..b5326e426 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -22,12 +22,13 @@ function chameleon_settings() { $fd = opendir('themes/chameleon'); while ($file = readdir($fd)) { - if (strstr($file, 'css') && $file != 'default.css') { - $files["themes/chameleon/$file"] = "themes/chameleon/$file"; + if (is_dir("themes/chameleon/$file") && !in_array($file, array('.', '..', 'CVS'))) { + $files["themes/chameleon/$file/chameleon.css"] = "themes/chameleon/$file/chameleon.css"; } } + closedir($fd); - $output = form_select(t('CSS stylesheet'), 'chameleon_stylesheet', variable_get('chameleon_stylesheet', 'themes/chameleon/default.css'), $files, t('Selecting a different stylesheet will change the look and feel of your site.')); + $output = form_select(t('CSS stylesheet'), 'chameleon_stylesheet', variable_get('chameleon_stylesheet', 'themes/chameleon/pure/chameleon.css'), $files, t('Selecting a different stylesheet will change the look and feel of your site.')); return $output; } @@ -45,8 +46,8 @@ function chameleon_page($content, $title = NULL, $breadcrumb = NULL) { $output .= "\n"; $output .= " ". ($title ? $title ." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")) ."\n"; $output .= drupal_get_html_head(); - $output .= " \n"; - $output .= " \n"; + $output .= " \n"; + $output .= " \n"; $output .= ""; $output .= "\n"; $output .= "
"; diff --git a/themes/chameleon/common.css b/themes/chameleon/common.css new file mode 100644 index 000000000..8c3d36926 --- /dev/null +++ b/themes/chameleon/common.css @@ -0,0 +1,92 @@ +/* $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; +} +code, pre { + font-size: 1em; +} +pre { + font-size: 0.8em; + padding: 1em; + background: #eee; +} +li { + padding-bottom: .3em; +} +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/default.css b/themes/chameleon/default.css deleted file mode 100644 index 8c3d36926..000000000 --- a/themes/chameleon/default.css +++ /dev/null @@ -1,92 +0,0 @@ -/* $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; -} -code, pre { - font-size: 1em; -} -pre { - font-size: 0.8em; - padding: 1em; - background: #eee; -} -li { - padding-bottom: .3em; -} -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 deleted file mode 100644 index 4f91cd380..000000000 Binary files a/themes/chameleon/images/druplicon-watermark.png and /dev/null differ diff --git a/themes/chameleon/images/marvin-bullet.png b/themes/chameleon/images/marvin-bullet.png deleted file mode 100644 index 937c8ed05..000000000 Binary files a/themes/chameleon/images/marvin-bullet.png and /dev/null differ diff --git a/themes/chameleon/images/pure-background.gif b/themes/chameleon/images/pure-background.gif deleted file mode 100644 index 13e3631da..000000000 Binary files a/themes/chameleon/images/pure-background.gif and /dev/null differ diff --git a/themes/chameleon/marvin.css b/themes/chameleon/marvin.css deleted file mode 100644 index ba1f1d3e0..000000000 --- a/themes/chameleon/marvin.css +++ /dev/null @@ -1,104 +0,0 @@ -/* $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; -} -table { - font-size: 1em; -} -#main { - width: 80%; -} -#aggregator .feed { - border: 1px dashed #888; - padding: 1em; -} -.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/marvin/bullet.png b/themes/chameleon/marvin/bullet.png new file mode 100644 index 000000000..4f91cd380 Binary files /dev/null and b/themes/chameleon/marvin/bullet.png differ diff --git a/themes/chameleon/marvin/chameleon.css b/themes/chameleon/marvin/chameleon.css new file mode 100644 index 000000000..67ef9ea63 --- /dev/null +++ b/themes/chameleon/marvin/chameleon.css @@ -0,0 +1,104 @@ +/* $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; +} +table { + font-size: 1em; +} +#main { + width: 80%; +} +#aggregator .feed { + border: 1px dashed #888; + padding: 1em; +} +.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(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/marvin/druplicon-watermark.png b/themes/chameleon/marvin/druplicon-watermark.png new file mode 100644 index 000000000..4f91cd380 Binary files /dev/null and b/themes/chameleon/marvin/druplicon-watermark.png differ diff --git a/themes/chameleon/pure.css b/themes/chameleon/pure.css deleted file mode 100644 index f41f692a5..000000000 --- a/themes/chameleon/pure.css +++ /dev/null @@ -1,84 +0,0 @@ -/* $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; -} -#aggregator .source { - color: #777; - font-style: italic; - font-size: 0.9em; -} -#aggregator .feed { - border: 1px dashed #000; - padding: 1em; -} -.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; -} diff --git a/themes/chameleon/pure/background.gif b/themes/chameleon/pure/background.gif new file mode 100644 index 000000000..13e3631da Binary files /dev/null and b/themes/chameleon/pure/background.gif differ diff --git a/themes/chameleon/pure/chameleon.css b/themes/chameleon/pure/chameleon.css new file mode 100644 index 000000000..d5c03ca14 --- /dev/null +++ b/themes/chameleon/pure/chameleon.css @@ -0,0 +1,84 @@ +/* $Id$ */ + +/* HTML styles */ + +a, a:link, a:active { + color: #930; +} +a:visited { + color: #630; +} +body { + padding: 5em 0 0 3em; + background-image: url(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; +} +#aggregator .source { + color: #777; + font-style: italic; + font-size: 0.9em; +} +#aggregator .feed { + border: 1px dashed #000; + padding: 1em; +} +.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