w00t!
first i added an overall class to the geshi object to be able to select it from css:
Code: Select all
--- serendipity_event_geshi.php?revision=1.17 2009-02-26 06:43:54.767682075 +0000
+++ serendipity_event_geshi.php 2009-02-26 06:22:40.578456328 +0000
@@ -194,6 +194,7 @@
// Have to get rid of newlines.
// Left align per suggestion from Norbert Mocsnik
$geshi->set_overall_style('text-align: left');
+ $geshi->set_overall_class('serendipity_geshi_block');
return str_replace("\n", '', $geshi->parse_code());
}
}
this should not break anything (i grepped through my installation, and overall_class is not mentioned anywhere outside geshi).
then i modified the mt-trendy style.css to apply the same style as used in wp for geshi (
http://www.mediawiki.org/wiki/Extension ... ight_GeSHi).
the diff is below.
we already discussed the first diff regarding the color and you said its commited, does not seem so?
the quicksearch thing is to hide the button, not related to geshi.
the sidebar whitespace style is to get dynamic sidebar resizing, not related.
and after that... there is a big block of "Additional plugin styles".
i did not add them myself. do the plugins add this, when they are installed?
only the last selector (serendipity_geshi_block) is from me and uses the patch above to modify the geshi block.
Code: Select all
--- style.css?revision=1.25 2009-02-26 06:48:57.133190172 +0000
+++ style.css 2009-02-26 06:51:35.791856828 +0000
@@ -2,11 +2,16 @@
body {
background-color: #333333;
- color: black;
+/* color: black;*/
+ color: #cccccc;
font-family: Verdana, Arial, sans-serif;
margin: 0px;
}
+.quicksearch_submit{
+ display: none;
+}
+
a,
a:link,
a:visited {
@@ -87,6 +92,7 @@
margin-top: 35px;
padding: 10px;
vertical-align: top;
+ white-space: nowrap;
}
.serendipitySideBarTitle {
@@ -285,3 +291,62 @@
.serendipity_comment_author_self {
background-color: #000000;
}
+
+
+/*** Additional plugin styles needed for the modernized output code ***/
+/*** added by Matthias 'YellowLed' Mees ***/
+
+.container_serendipity_archives_plugin ul,
+.container_serendipity_syndication_plugin ul,
+.container_serendipity_authors_plugin ul,
+.container_serendipity_plugin_entrylinks ul {
+ list-style: none;
+ margin-left: 0;
+ padding-left: 0;
+}
+
+.container_serendipity_authors_plugin .serendipitySideBarContent div {
+ margin: 5px 0;
+ padding-left: 0;
+}
+
+.serendipity_history_author { font-weight: bolder; }
+
+.serendipity_history_intro,
+.serendipity_history_info { margin-bottom: 3px; }
+
+.serendipity_history_body { margin-bottom: 10px; }
+
+.serendipity_recententries_entrylink { margin-bottom: 2px; }
+
+.serendipity_recententries_entrydate { margin: 0 0 4px 0; }
+
+.plugin_comment_body { padding: 3px 0; }
+
+.serendipity_shoutbox_date { margin: 5px 0 2px 0; }
+
+.serendipity_shoutbox_comment { padding: 4px 0; }
+
+.serendipity_geshi_block {
+ padding-top: 1em;
+ padding-right: 1em;
+ padding-bottom: 1em;
+ padding-left: 1em;
+ border-top-color: #2f6fab;
+ border-left-color: #2f6fab;
+ border-right-color: #2f6fab;
+ border-bottom-color: #2f6fab;
+ border-top-width: 1px;
+ border-left-width: 1px;
+ border-right-width: 1px;
+ border-bottom-width: 1px;
+ border-top-style: dashed;
+ border-left-style: dashed;
+ border-right-style: dashed;
+ border-bottom-style: dashed;
+ color: #000000;
+ background-color: #f9f9f9;
+ line-height: 1.1em;
+}
+
+/*** End Additional plugin styles ***/
its not perfect... id like a whole new set of colors, so that i dont have bright big blocks inside my blog, but all the colors are spread over the php files... so for now, thats the best option for dark templates imho.