[dw-nonfree] Style journal views and enable style=site as an option in settings, and add it to the n
[commit: http://hg.dwscoalition.org/dw-nonfree/rev/3423d5fdbeee]
http://bugs.dwscoalition.org/show_bug.cgi?id=4398
Add tropo-specific styling.
Patch by
foxfirefey.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=4398
Add tropo-specific styling.
Patch by
Files modified:
- bin/upgrading/s2layers-local.dat
- bin/upgrading/s2layers/siteviews/themes-local.s2
- htdocs/stc/siteviews/tropo-purple.css
- htdocs/stc/siteviews/tropo-red.css
--------------------------------------------------------------------------------
diff -r 8ea851007ae6 -r 3423d5fdbeee bin/upgrading/s2layers-local.dat
--- a/bin/upgrading/s2layers-local.dat Tue May 01 19:04:50 2012 +0800
+++ b/bin/upgrading/s2layers-local.dat Sun May 13 22:48:13 2012 +0800
@@ -1,6 +1,8 @@
################################################################
# base filename layer type parent
+siteviews/themes-local theme+ siteviews/layout
+
colorside/themes-local theme+ colorside/layout
modish/themes-local theme+ modish/layout
diff -r 8ea851007ae6 -r 3423d5fdbeee bin/upgrading/s2layers/siteviews/themes-local.s2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/upgrading/s2layers/siteviews/themes-local.s2 Sun May 13 22:48:13 2012 +0800
@@ -0,0 +1,20 @@
+#NEWLAYER: siteviews/tropo-red
+layerinfo type = "theme";
+layerinfo name = "Tropospherical Red";
+layerinfo redist_uniq = "siteviews/tropo-red";
+
+function Page::print_theme_stylesheet() {
+ # Do not actually *print* any stylesheets here, but you can $*SITEVIEWS->need_res(...); here to pull in anything.
+ $*SITEVIEWS->need_res( "stc/siteviews/tropo-red.css" );
+}
+
+#NEWLAYER: siteviews/tropo-purple
+layerinfo type = "theme";
+layerinfo name = "Tropospherical Purple";
+layerinfo redist_uniq = "siteviews/tropo-purple";
+
+function Page::print_theme_stylesheet() {
+ # Do not actually *print* any stylesheets here, but you can $*SITEVIEWS->need_res(...); here to pull in anything.
+ $*SITEVIEWS->need_res( "stc/siteviews/tropo-purple.css" );
+}
+
diff -r 8ea851007ae6 -r 3423d5fdbeee htdocs/stc/siteviews/tropo-purple.css
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/htdocs/stc/siteviews/tropo-purple.css Sun May 13 22:48:13 2012 +0800
@@ -0,0 +1,23 @@
+.month-wrapper table.month td.day span.label {
+ border-right: 1px solid #999;
+ border-bottom: 1px solid #999;
+ color: #555;
+}
+
+.month-wrapper table.month th { color: #555; }
+
+.month-wrapper table.month td, .month-wrapper table.month th { border: 1px solid #999; }
+
+.month .footer a, .tags-container .manage-link a {
+ background-color: #999;
+ color: white;
+}
+
+.month .footer a:hover, .tags-container .manage-link a:hover { color: #F3D2FC; }
+
+.navigation li.active {
+ color: #999;
+ background-color: #DDDDDD;
+}
+
+.navigation a:hover { color: #F3D2FC; }
diff -r 8ea851007ae6 -r 3423d5fdbeee htdocs/stc/siteviews/tropo-red.css
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/htdocs/stc/siteviews/tropo-red.css Sun May 13 22:48:13 2012 +0800
@@ -0,0 +1,37 @@
+.month-wrapper table.month td.day span.label {
+ border-right: 1px solid #999;
+ border-bottom: 1px solid #999;
+ color: #555;
+}
+
+.month-wrapper table.month th { color: #555; }
+
+.month-wrapper table.month td, .month-wrapper table.month th { border: 1px solid #999; }
+
+.month .footer a {
+ background-color: #999;
+ color: white;
+}
+
+.month .footer a:hover { color: #FFD8D8; }
+
+.month-wrapper table.month td.day span.label {
+ border-right: 1px solid #999;
+ border-bottom: 1px solid #999;
+ color: #555;
+}
+
+.month .footer a , .tags-container .manage-link a {
+ background-color: #999;
+ color: white;
+}
+
+.month .footer a:hover, .tags-container .manage-link a:hover { color: #FFD8D8; }
+
+.navigation a, .navigation li.active {
+ background-color: #999999;
+ color: white;
+}
+
+.navigation a:hover { color: #FFD8D8; }
+
--------------------------------------------------------------------------------
