Mejoro la portada. Principalmente, haciendo el código
authorWikimedia Espana <wmes@canberra>
Sat, 25 Aug 2012 12:30:47 +0000 (14:30 +0200)
committerWikimedia Espana <wmes@canberra>
Sat, 25 Aug 2012 12:30:47 +0000 (14:30 +0200)
válido xhtml, solucionando el problema donde se veía
mal (los MÁS mal situados) al tener tidy activado
(debido a las correcciones -incorrectas- que hacía este).

Modificada también la posición de los botones MÁS
bajándolos, con lo que no se superponen con la parte
inferior de las imágenes.

HomePageWMES.php
style.css

index e441858862cbd6bf6ea1f665d4a88a7ac5355915..72a6a1cc29d0111e47f4e70d5889a0f0529feeee 100644 (file)
@@ -43,15 +43,17 @@ function landingbox($nombre, $class, $texto, $enlace2 = false, $titulo2 = false)
    return   "<div class=\"content_landingbox\">\r
                 <div class=\"$boxname\">" .\r
                   '<div class="landingbox" style="background: url(' . "'$imagen'" . ') repeat 100% 100%; height:133px;width:319px;">' .\r
-                    "<a class=\"link$class\" href=\"$link\" title=\"$nombre\">" .\r
-                      "<h3 class=\"landingbox_title\">" . rtrim( $nombre, 'r' ) . "</h3>" .\r
-                    "</a>" .\r
-                    "<a class=\"link landingbox_more\" href=\"$link\" title=\"$nombre\">" .\r
-                      '<p>MÁS</p>' . \r
-                    '</a>' . \r
-                    "<a class=\"link$class\" href=\"$enlace2\" title=\"$titulo2\">" .\r
-                      "<p class=\"landingbox_body\">$texto</p>" .\r
-                    '</a>' .\r
+                    "<h3 class=\"landingbox_title\">" .\r
+                     "<a class=\"link$class\" href=\"$link\" title=\"$nombre\">" . rtrim( $nombre, 'r' ) . "</a>" .\r
+                    "</h3>" .\r
+                    "<p><a class=\"link landingbox_more\" href=\"$link\" title=\"$nombre\">" .\r
+                      '<span>MÁS</span>' . \r
+                    '</a></p>' . \r
+                    "<p class=\"landingbox_body\">" . \r
+                      "<a class=\"link$class\" href=\"$enlace2\" title=\"$titulo2\">" .\r
+                        "$texto" .\r
+                      '</a>' .\r
+                    '</p>' .\r
                   '</div>\r
                 </div>\r
               </div>';\r
@@ -103,9 +105,9 @@ function efHookHomepageWMES( $input, array $args, Parser $parser, PPFrame $frame
               '<div class="dm_widget content_landingbox">\r
                 <div class="dm_widget_inner prensa_box">\r
                   <div class="landingbox" style="background: url(' . "'$wgExtensionAssetsPath/HomePageWMES/images/Prensa.png'" .') repeat 100% 100%; height:81px;width:602px;">' .\r
-                    '<a class="link" href="/blog" title="Blog"><h3 class="landingbox_title">Blog</h3></a>' . \r
-                    '<a class="link landingbox_more" href="/blog" title="Blog"><p>MÁS</p></a>' . \r
-                    '<a class="link" href="/blog" title="Blog"><p class="landingbox_body">Artículos y noticias<br/>sobre conocimiento libre</p></a>' . \r
+                    '<h3 class="landingbox_title"><a class="link" href="/blog" title="Blog">Blog</a></h3>' . \r
+                    '<p><a class="link landingbox_more" href="/blog" title="Blog"><span>MÁS</span></a></p>' . \r
+                    '<p class="landingbox_body"><a class="link" href="/blog" title="Blog">Artículos y noticias<br/>sobre conocimiento libre</a></p>' . \r
                   '</div>\r
                 </div>\r
               </div>\r
index be62d0bd635c083f01d5dfca9bc375165f372993..3cd58752709468d4a4ab4a114255281468fc10d4 100755 (executable)
--- a/style.css
+++ b/style.css
   height: 33px;
   width: 98px;
   float: right;
-  margin: 40px 10px 0 0;
+  margin: 50px 10px 0 0;
 }
 
-.landingbox_more p{
+.landingbox_more span {
   font-size: 150%;
   font-weight: bold;
   margin: 0px 0 0 40px;
-  padding-top: 2px;
+  padding-top: 5pt;
+  display: block;
 }
 
 .actividades_box{