Muevo los datos de CSS relativos a la portada a su propio archivo,
authorWikimedia Espana <wmes@canberra>
Sat, 7 Jul 2012 16:15:12 +0000 (09:15 -0700)
committerWikimedia Espana <wmes@canberra>
Sat, 7 Jul 2012 16:16:24 +0000 (09:16 -0700)
cargado desde el ResourceLoader. Registro a través del parser, en
lugar de usar directamente $wgOut.

HomePageWMES.php
style.css [new file with mode: 0755]

index 2c439cc4ebff0b72d9b95c78368da535a4059ca0..e5196d276660877515cd8b2f7a0e85d64ee0cb42 100644 (file)
 \r
 $wgHooks['ParserFirstCallInit'][] = 'efSetupHomepageWMES';\r
 $wgResourceModules['ext.homepage-wmes'] = array(\r
-  'scripts' => 'home.js',\r
+  'scripts' => 'js/home.js',\r
+  'styles' => 'style.css',\r
   'dependencies' => 'jquery',\r
-  'localBasePath' => dirname( __FILE__ ) . '/js',\r
-  'remoteExtPath' => 'HomePageWMES/js'\r
+  'localBasePath' => dirname( __FILE__ ),\r
+  'remoteExtPath' => 'HomePageWMES'\r
 );\r
 \r
 function efSetupHomepageWMES(&$parser) {\r
@@ -53,7 +54,6 @@ function landingbox($nombre, $class, $texto, $enlace2, $titulo2) {
 \r
     \r
 function efHookHomepageWMES( $input, array $args, Parser $parser, PPFrame $frame ) {\r
-//      $parser->getOutput()->addInlineStyle('h1 { display: none }'); // FIXME\r
       $parser->getOutput()->addModules( 'ext.homepage-wmes' );\r
       \r
       $html = \r
diff --git a/style.css b/style.css
new file mode 100755 (executable)
index 0000000..27e5618
--- /dev/null
+++ b/style.css
@@ -0,0 +1,147 @@
+/* =Home
+ * ------------------------------------------------------------*/
+.content_landingbox a{
+  color: black;
+  text-decoration: none;
+}
+
+.landingbox{
+  background-position: left top;
+}
+
+.landingbox_title{
+  font-size: 180%;
+  font-weight: bold;
+  margin: 7px 0 0 15px;
+  padding-top: 10px;
+}
+
+.landingbox_body{
+  margin: 5px 0 0 25px ;
+}
+.landingbox_more{
+  background-position: left top;
+  height: 33px;
+  width: 98px;
+  float: right;
+  margin: 40px 10px 0 0;
+}
+
+.landingbox_more p{
+  font-size: 150%;
+  font-weight: bold;
+  margin: 0px 0 0 40px;
+  padding-top: 2px;
+}
+
+.actividades_box{
+  background-position: left top;
+}
+
+.actividades_box .landingbox_more{
+  background: url(http://blog.wikimedia-es.org/wp-content/themes/wmes-theme/images/home/more_blue.png) repeat 100% 100%;
+  color: white;
+}
+
+.actividades_box .landingbox_more a{
+  color: white;
+}
+.participa_box{
+  color: white;
+}
+
+.participa_box .landingbox_more{
+  background: url(http://blog.wikimedia-es.org/wp-content/themes/wmes-theme/images/home/more_whiteoverred.png) repeat 100% 100%;
+  color: #900;
+}
+.participa_box .landingbox_more a{
+  color: #900;
+}
+
+.participa_box a{
+  color: white;
+  text-decoration: none;
+}
+
+.donar_box .landingbox_more{
+  background: url(http://blog.wikimedia-es.org/wp-content/themes/wmes-theme/images/home/more_green.png) repeat 100% 100%;
+  color: white;
+}
+
+.donar_box .landingbox_more a{
+  color: white;
+}
+
+.prensa_box .landingbox_more{
+  background: url(http://blog.wikimedia-es.org/wp-content/themes/wmes-theme/images/home/more_gray.png) repeat 100% 100%;
+  color: white;
+}
+
+.prensa_box .landingbox_more a{
+  color: white;
+}
+.prensa_box .landingbox_body{
+  margin: -25px 0 0 220px ;
+}
+
+.prensa_box .landingbox_more{
+  float: right;
+  margin: -10px 10px 0 0;
+}
+
+.mainbox {
+  background-color: #2c2c2c;
+  color: white;
+  height: 330px;
+  -moz-border-radius: 10px;
+  -webkit-border-radius: 10px;
+  -khtml-border-radius: 10px;
+  border-radius: 10px;
+}
+
+.mainbox ul{
+  list-style:none;
+  margin: 0;
+  padding: 0;
+
+}
+
+.slideshow-img {
+  margin: 12px 0;
+}
+.slideshow-top p{
+  font-weight: bold;
+  font-size: 160%;
+  margin: 7px 0px 0px 15px;
+  white-space: nowrap;
+}
+
+.mainbox-show .mainbox_more{
+  color: white;
+  width: 180px;
+  float:right;
+  margin: -15px 0 10px 0;
+}
+
+.mainbox-show a{
+  color: #fff;
+  text-decoration: none;
+}
+.mainbox-show .mainbox_more a{
+  font-size: 180%;
+}
+
+.mainbox_more span{
+  padding-bottom: 3px;
+}
+
+img { border: none; }
+
+a.whitelink:hover {
+  color: #fff;
+}
+
+h1 {
+  display: none;
+}
+