diff options
| author | Starla Insigna <hatkirby@fourisland.com> | 2009-10-03 10:30:17 -0400 |
|---|---|---|
| committer | Starla Insigna <hatkirby@fourisland.com> | 2009-10-03 10:30:17 -0400 |
| commit | dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893 (patch) | |
| tree | 511b0f752889172163f3801cdbe311f0efc55540 /theme/css | |
| parent | 0e4089184a44719fbd1284acb047ab7547674412 (diff) | |
| download | fourisland-dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893.tar.gz fourisland-dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893.tar.bz2 fourisland-dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893.zip | |
Created Theme Switcher
Also rewrote the way layouts work. Now, each layout requires a "layout.tpl" file (which contains the header and footer for the layout) and a "style.php"
file (which contains and can include other files that contain the CSS for the layout). Each layout has it's own folder in theme/layouts and you can switch
between them using a combo box in the Hatbar.
Layouts 6.2 and 4.5 have been modified to work with new Layout 7 features such as AJAX, and they should be relatively free of bugs. Layout 3 has not yet
been transferred because since it is pre-The New Four Island, it will be very difficult to do so.
This changeset requires manual external code changes:
* The line below must be added above the functions.php include in The Fourm's funnctions.php
require('/svr/www/hatkirby/fourisland/main/includes/session.php');
* The block of Four Island code in The Fourm's page_header() function should be replaced with:
global $fi_pagetitle;
$fi_pagetitle = $page_title;
ob_start();
* The block of Four Island code in The Fourm's page_footer() function should be replaced with:
global $fi_pagetitle;
$content = ob_get_contents();
ob_end_clean();
$noRightbar = 1;
$onFourm = 1;
$pageCategory = 'fourm';
if ($fi_pagetitle == 'Index page')
{
$title = 'The Fourm';
} else if (strpos($fi_pagetitle, 'View topic') !== FALSE)
{
$title = str_replace('View topic - ', 'Topic: ', $fi_pagetitle) . ' - The Fourm';
} else if (strpos($fi_pagetitle, 'View forum') !== FALSE)
{
$title = str_replace('View forum - ', 'Fourm: ', $fi_pagetitle) . ' - The Fourm';
} else if (strpos($fi_pagetitle, 'Viewing profile') !== FALSE)
{
$title = str_replace('Viewing profile - ', 'Member: ', $fi_pagetitle) . ' - The Fourm';
} else {
$title = $fi_pagetitle . ' - The Fourm';
}
if ($_GET['view'] != 'print')
{
include('/svr/www/hatkirby/fourisland/main/includes/layout.php');
} else {
echo $content;
}
Closes #117
Diffstat (limited to 'theme/css')
| -rwxr-xr-x | theme/css/bubbles.css | 8 | ||||
| -rw-r--r-- | theme/css/quotes.css | 2 | ||||
| -rw-r--r-- | theme/css/website.css | 182 |
3 files changed, 6 insertions, 186 deletions
| diff --git a/theme/css/bubbles.css b/theme/css/bubbles.css index 2e56fb0..68a3cc4 100755 --- a/theme/css/bubbles.css +++ b/theme/css/bubbles.css | |||
| @@ -8,16 +8,18 @@ | |||
| 8 | 8 | ||
| 9 | div.module + cite { | 9 | div.module + cite { |
| 10 | position: relative; | 10 | position: relative; |
| 11 | top: -1em; | 11 | top: -0.15em; |
| 12 | left: 0.2em; | ||
| 12 | margin: 0; | 13 | margin: 0; |
| 13 | padding: 7px 0px 0px 15px; | 14 | padding: 15px 0px 0px 15px; |
| 14 | background: transparent url(/theme/images/tip.gif) no-repeat 20px 0; | 15 | background: transparent url(/theme/images/tip.gif) no-repeat 20px 0; |
| 15 | font-style: normal; | 16 | font-style: normal; |
| 16 | font-size: small; | 17 | font-size: small; |
| 17 | } | 18 | } |
| 18 | 19 | ||
| 19 | div.module.unrounded + cite { | 20 | div.module.unrounded + cite { |
| 20 | top: -0.9em; | 21 | top: -0.5em; |
| 22 | padding-top: 10px; | ||
| 21 | } | 23 | } |
| 22 | 24 | ||
| 23 | div.module.bquote + cite { | 25 | div.module.bquote + cite { |
| diff --git a/theme/css/quotes.css b/theme/css/quotes.css index 72d5189..5be0923 100644 --- a/theme/css/quotes.css +++ b/theme/css/quotes.css | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ul.quote-list { | 1 | ul.quote-list { |
| 2 | list-style-type: none; | 2 | list-style-type: none !important; |
| 3 | } | 3 | } |
| 4 | 4 | ||
| 5 | li.quote { | 5 | li.quote { |
| diff --git a/theme/css/website.css b/theme/css/website.css index c7adad6..10771bc 100644 --- a/theme/css/website.css +++ b/theme/css/website.css | |||
| @@ -48,86 +48,6 @@ a img { | |||
| 48 | border: 0; | 48 | border: 0; |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | /* Body */ | ||
| 52 | |||
| 53 | body { | ||
| 54 | font-family: "Lucida Grande", "Arial", sans; | ||
| 55 | background-color: #111; | ||
| 56 | } | ||
| 57 | |||
| 58 | div#header { | ||
| 59 | width: 100%; | ||
| 60 | height: 200px; | ||
| 61 | background-image: url(http://fourisland.com/theme/images/header-repeat.png); | ||
| 62 | background-repeat: repeat-x; | ||
| 63 | } | ||
| 64 | |||
| 65 | div#banner { | ||
| 66 | width: 800px; | ||
| 67 | height: 200px; | ||
| 68 | margin: 0 auto; | ||
| 69 | background-image: url(http://fourisland.com/theme/images/header.png); | ||
| 70 | background-position: bottom right; | ||
| 71 | } | ||
| 72 | |||
| 73 | div#header a { | ||
| 74 | width: 800px; | ||
| 75 | height: 200px; | ||
| 76 | text-indent: -5000px; | ||
| 77 | display: block; | ||
| 78 | } | ||
| 79 | |||
| 80 | div#sidebar { | ||
| 81 | width: 21%; | ||
| 82 | float: left; | ||
| 83 | } | ||
| 84 | |||
| 85 | div#content { | ||
| 86 | width: 69%; | ||
| 87 | float: right; | ||
| 88 | padding-left: 5%; | ||
| 89 | padding-right: 5%; | ||
| 90 | padding-top: 20px; | ||
| 91 | } | ||
| 92 | |||
| 93 | div#content div.rounded { | ||
| 94 | padding: 10px; | ||
| 95 | } | ||
| 96 | |||
| 97 | div#footer { | ||
| 98 | width: 100%; | ||
| 99 | padding-top: 20px; | ||
| 100 | padding-bottom: 20px; | ||
| 101 | } | ||
| 102 | |||
| 103 | div#footer div.foot-module { | ||
| 104 | margin: 0 auto; | ||
| 105 | float: left; | ||
| 106 | width: 20%; | ||
| 107 | margin-left: 4%; | ||
| 108 | color: white; | ||
| 109 | font-size: 0.9em; | ||
| 110 | } | ||
| 111 | |||
| 112 | div#footer a { | ||
| 113 | color: white; | ||
| 114 | border-bottom: 1px dotted white; | ||
| 115 | } | ||
| 116 | |||
| 117 | div#footer div.foot-module ul { | ||
| 118 | list-style-type: square; | ||
| 119 | } | ||
| 120 | |||
| 121 | div#footer p { | ||
| 122 | font-size: 0.5em; | ||
| 123 | color: white; | ||
| 124 | text-align: center; | ||
| 125 | } | ||
| 126 | |||
| 127 | div#page-content { | ||
| 128 | background-color: #00ff00; /*#8B4513;*/ | ||
| 129 | padding-bottom: 10px; | ||
| 130 | } | ||
| 131 | 51 | ||
| 132 | body[id^=fourm] div#page div#content code { | 52 | body[id^=fourm] div#page div#content code { |
| 133 | display: block; | 53 | display: block; |
| @@ -146,36 +66,6 @@ body[id^=fourm] div#content h2 { | |||
| 146 | padding-bottom: 3px; | 66 | padding-bottom: 3px; |
| 147 | } | 67 | } |
| 148 | 68 | ||
| 149 | body#fourm div#actual-content { | ||
| 150 | font-size: 60%; | ||
| 151 | } | ||
| 152 | |||
| 153 | ul#navbar { | ||
| 154 | text-align: center; | ||
| 155 | margin-top: 0; | ||
| 156 | } | ||
| 157 | |||
| 158 | ul#navbar li { | ||
| 159 | display: inline; | ||
| 160 | font-family: Verdana, sans-serif; | ||
| 161 | font-size: 1.1em; | ||
| 162 | } | ||
| 163 | |||
| 164 | ul#navbar li+li:before { | ||
| 165 | content: " - "; | ||
| 166 | } | ||
| 167 | |||
| 168 | ul#navbar li img, ul#navbar li.active span { | ||
| 169 | display: none; | ||
| 170 | } | ||
| 171 | |||
| 172 | ul#navbar li.active img { | ||
| 173 | display: inline; | ||
| 174 | background-color: white; | ||
| 175 | outline: white solid .5em; | ||
| 176 | margin: 0 .5em; | ||
| 177 | } | ||
| 178 | |||
| 179 | .invisible { | 69 | .invisible { |
| 180 | display: none; | 70 | display: none; |
| 181 | } | 71 | } |
| @@ -265,78 +155,6 @@ table.webmail th { | |||
| 265 | text-align: left; | 155 | text-align: left; |
| 266 | } | 156 | } |
| 267 | 157 | ||
| 268 | /* Sidebar */ | ||
| 269 | |||
| 270 | div#rightbar { | ||
| 271 | float: left; | ||
| 272 | width: 270px; /*210*/ | ||
| 273 | } | ||
| 274 | |||
| 275 | div.sidebar { | ||
| 276 | width: 250px; /*250*/ /*240*/ /*210*/ | ||
| 277 | padding: 0 10px; | ||
| 278 | margin-bottom: 5px; | ||
| 279 | } | ||
| 280 | |||
| 281 | div.sidebar h3 { | ||
| 282 | font-family: Verdana, Helvetica, Arial, sans-serif; | ||
| 283 | margin: 5px 0 0 0; | ||
| 284 | font-weight: bold; | ||
| 285 | color: #333333; | ||
| 286 | } | ||
| 287 | |||
| 288 | div.sidebar p { | ||
| 289 | font-size: 0.8em; | ||
| 290 | margin: 3px 0; | ||
| 291 | } | ||
| 292 | |||
| 293 | div#sidebar ul.hatnav { | ||
| 294 | list-style-type: none; | ||
| 295 | padding-left: 24px; | ||
| 296 | margin-top: 0 !important; | ||
| 297 | line-height: normal !important; | ||
| 298 | list-style-image: none !important; | ||
| 299 | } | ||
| 300 | |||
| 301 | div#sidebar ul { | ||
| 302 | list-style-type: none; | ||
| 303 | } | ||
| 304 | |||
| 305 | div#sidebar ul.hatnav li { | ||
| 306 | text-align: right; | ||
| 307 | border: 1px gray solid; | ||
| 308 | padding-top: 2px; | ||
| 309 | padding-bottom: 2px; | ||
| 310 | background-color: #111; | ||
| 311 | color: white; | ||
| 312 | } | ||
| 313 | |||
| 314 | div#sidebar ul.hatnav li a { | ||
| 315 | display: block; | ||
| 316 | width: 95%; | ||
| 317 | color: white; | ||
| 318 | } | ||
| 319 | |||
| 320 | div#sidebar li img { | ||
| 321 | border: 0; | ||
| 322 | height: 16px; | ||
| 323 | width: 16px; | ||
| 324 | } | ||
| 325 | |||
| 326 | div#sidebar ul.hatnav li.active { | ||
| 327 | background-color:#00FF00; | ||
| 328 | border: none; | ||
| 329 | } | ||
| 330 | |||
| 331 | div#sidebar ul.hatnav li:hover { | ||
| 332 | background-color:yellow; | ||
| 333 | border: none; | ||
| 334 | } | ||
| 335 | |||
| 336 | div#sidebar ul li.active a, div#sidebar ul li a:hover { | ||
| 337 | color: black; | ||
| 338 | } | ||
| 339 | |||
| 340 | div.cleardiv { | 158 | div.cleardiv { |
| 341 | clear: both; | 159 | clear: both; |
| 342 | } | 160 | } |
