From: Wikimedia Espana Date: Sat, 7 Jul 2012 16:15:12 +0000 (-0700) Subject: Muevo los datos de CSS relativos a la portada a su propio archivo, X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=1b13477e1bff00c975f8651d18d918480b252bbb;p=mediawiki%2Fextensions%2FHomePageWMES Muevo los datos de CSS relativos a la portada a su propio archivo, cargado desde el ResourceLoader. Registro a través del parser, en lugar de usar directamente $wgOut. --- diff --git a/HomePageWMES.php b/HomePageWMES.php index 2c439cc..e5196d2 100644 --- a/HomePageWMES.php +++ b/HomePageWMES.php @@ -16,10 +16,11 @@ $wgHooks['ParserFirstCallInit'][] = 'efSetupHomepageWMES'; $wgResourceModules['ext.homepage-wmes'] = array( - 'scripts' => 'home.js', + 'scripts' => 'js/home.js', + 'styles' => 'style.css', 'dependencies' => 'jquery', - 'localBasePath' => dirname( __FILE__ ) . '/js', - 'remoteExtPath' => 'HomePageWMES/js' + 'localBasePath' => dirname( __FILE__ ), + 'remoteExtPath' => 'HomePageWMES' ); function efSetupHomepageWMES(&$parser) { @@ -53,7 +54,6 @@ function landingbox($nombre, $class, $texto, $enlace2, $titulo2) { function efHookHomepageWMES( $input, array $args, Parser $parser, PPFrame $frame ) { -// $parser->getOutput()->addInlineStyle('h1 { display: none }'); // FIXME $parser->getOutput()->addModules( 'ext.homepage-wmes' ); $html = diff --git a/style.css b/style.css new file mode 100755 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; +} +