Por solicitud de AJX en Hacking this blog aquí teneis la plantilla que utilizo actualmente en manámaná sin los estilos de texto y con comentarios a la inserción de JPEGs para cabeceras. La plantilla original es Underwater para Blogger Beta, por Hans Oosting desde Beautiful Beta sobre un trabajo de Ramani's Hackosphere, yo sólo he modificado los estilos de texto, columnas, bordes, espaciados, cabeceras, etc. para adaptarlo a mis necesidades de estilo. Si usais esta plantilla por favor haced referencia a Beautiful Beta.
Tened en cuenta que soy aprendiz en CSS así que mi aproximación al diseño es más o menos de prueba-maldice-corrige y probablemente no podré responder a vuestras preguntas. Considerad también que ya he insertado algunos widgets y hacks adicionales así que probablemente necesitareis algo de adaptación antes de que sea operativo en vuestro blog. Y, recordad, ¡haced copia de seguridad de vuestro template antes de modificar nada!.
Importante: Sólo publico aquí la sección <head>, no he tocado el resto del template original aún. Si quereis el completo descargaros Underwater y substituir su sección <head> por la mía:
<head>
<title><data:blog.pageTitle/></title>
<b:include data='blog' name='all-head-content'/>
<b:skin><![CDATA[/*
-----------------------------------------------
Blogger Template Style
Name: Underwater
Designer: Hans Oosting
Artwork: Vladstudio
Date: 23 Sep 2006
-----------------------------------------------
Styles modified by Noir (thanks Hans for your great work!)
-----------------------------------------------
*/
/* Variable definitions
====================
<Variable name="bodyBgColor" description="Main Background
Color"
type="color" default="#666666" value="#666666">
<Variable name="mainBgColor" description="Blog Background
Color"
type="color" default="#ffffff" value="#ffffff">
<Variable name="borderColor" description="Border Color"
type="color" default="#ffffff" value="#ffffff">
<Variable name="headerTextColor" description="Blog Header
Text Color"
type="color" default="#ffffff" value="#666666">
<Variable name="descriptionTextColor" description="Blog Description
Text Color"
type="color" default="#999999" value="#999999">
<Variable name="sidebarTitleTextColor" description="Sidebar
Title Text Color"
type="color" default="#666666" value="#666666">
<Variable name="dateHeaderColor" description="Date Header
Color"
type="color" default="#996633" value="#7f7f7f">
<Variable name="postHeaderColor" description="Post Header
Color"
type="color" default="#AA2F51" value="#AA2F51">
<Variable name="textColor" description="Text Color"
type="color" default="#000000" value="#000000">
<Variable name="linkColor" description="Link Color"
type="color" default="#AA2F51" value="#AA2F51">
<Variable name="visitedlinkColor" description="Visited Link
Color" type="color" default="#D56685" value="#D56685">
<Variable name="bqBgColor" description="Blocquote Background
Color" type="color" default="#ffcc66" value="#e6e6e6">
<Variable name="bqTextColor" description="Blocquote Text Color"
type="color" default="#660000" value="#666666">
<Variable name="bodyFont" description="Text Font"
type="font" default="normal normal 90% Arial, sans-serif;"
value="normal normal 77% Arial, sans-serif">
<Variable name="headerFont" description="Blog Header Font"
type="font" default="normal normal 210% Verdana, Arial, Sans-serif;"
value="italic bold 392% Arial, sans-serif">
<Variable name="descriptionFont" description="Blog Description
Font"
type="font" default="normal normal 210% Verdana, Arial, Sans-serif;"
value="italic bold 150% Arial, sans-serif">
<Variable name="sbHeaderFont" description="Sidebar Header
Font" type="font" default="normal normal 210% Verdana, Arial,
Sans-serif;" value="italic bold 165% Arial, sans-serif">
<Variable name="dateHeaderFont" description="Date Header Font"
type="font" default="normal normal 210% Verdana, Arial, Sans-serif;"
value="normal normal 101% Arial, sans-serif">
<Variable name="postHeaderFont" description="Post Header Font"
type="font" default="normal normal 210% Verdana, Arial, Sans-serif;"
value="italic bold 147% Arial, sans-serif">
*/
/* BODY
---------------------- */
body {
background-color: $mainBgColor;
/*
Substitute the URL for your chosen header URL and retire the forwardslashes
ad asteriscs. Image at this example from the original Underworld template of
Beautiful Beta http://beautifulbeta.blogspot.com/.
background: url(http://home.planet.nl/~hansoosting/images/bubblebg.jpg) repeat-x
fixed;
*/
margin: 0;
padding: 0;
text-align: center;
font: $bodyFont;
color: $textColor;
}
/* OUTER WRAPPER
----------------------- */
#outer-wrapper {
width: 98%;
margin: 0 1% 0 1%;
background-color: $mainBgColor;
border: 1px solid #cccccc;
}a:link {
color: $linkColor;
}
a:visited {
color: $visitedlinkColor;
}
a img {
border-width: 0;
}
/* HEADER
----------------------------------------------- */
#header-wrapper {
margin-top: 10px;
padding: 0;
background-color: transparent;
text-align: left;
}
#header {
width: 98%;
height: 100px;
background-color: $bodyBgColor;
/*
Substitute the URL for your chosen header URL and retire the forwardslashes
ad asteriscs. Image at this example from a header of http://mmana.blogspot.com
background: url(http://photos1.blogger.com/blogger2/1287/4081/1600/header_06.1.gif)
left;
/*
margin: 0 auto;
color: $headerTextColor;
padding: 0;
border: 3px solid $borderColor;
}
#header h1 {
padding-top: 10px;
margin: 0 14px .1em;
line-height: 1.2em;
font: $headerFont;
color: $headerTextColor;
}
#header a {
color: $headerTextColor;
text-decoration: none;
}
#header .description {
display: block;
margin: 10px; 14px;
padding: 0 0 40px;
line-height: 1.4em;
font: $descriptionFont;
color: $descriptionTextColor;
}
/* Content
----------------------------------------------- */
.clear {
clear: both;
}#content-wrapper {
width: 98%;
margin: 0 auto;
padding: 0 0 10px;
text-align: left;
background-color: $mainBgColor;
border: 1px solid $borderColor;
border-top: 0;
}
#main-wrapper {
margin-left: 1%;
width: 62%;
float: left;
background-color: transparent;
border: 1px solid #cccccc;
padding: 5px 5px 5px 5px;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
}
#left-sidebar-wrapper {
margin-left: 1%;
width: 16%;
float: left;
background-color: transparent;
border: 1px solid #cccccc;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
}
#right-sidebar-wrapper {
margin-right: 1%;
width: 16%;
text-align:right;
float: right;
background-color: transparent;
border: 1px solid #cccccc;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
}
/* Headings
----------------------------------------------- */
h2, h3 {
margin: 0;
}
/* POSTS
----------------------------------------------- */
.date-header {
margin: 2px 0 0;
font-weight: normal;
color: $dateHeaderColor;
font: $dateHeaderFont;
text-align: right;
border-bottom: 1px solid $borderColor;
}
.post
margin: 2px 2px 5px 2px;
padding: 10px 10px 10px 10px;
border: 1px solid #cccccc;
}
.post-title {
margin: 0 0 0 0;
padding: 5px;
font: $postHeaderFont;
color: $postHeaderColor;
line-height: 1.1em;
}
.post-title a, .post-title a:visited, .post-title strong {
text-decoration: none;
color: $postHeaderColor;
font: $postHeaderFont;
}
.post-footer {
/*font-size: 85%;*/
color: #999999 /*$textColor*/;
}
.post img {
padding: 4px;
border: 1px solid #cccccc;
}
.post blockquote {
margin: 1em 20px;
padding: 5px 5px;
border-top: 1px solid $borderColor;
border-bottom: 1px solid $borderColor;
background-color: $bqBgColor;
color: $bqTextColor;
}/* Comments
----------------------------------------------- */
#comments h4 {
margin: 1em 0;
color: $dateHeaderColor;
}
#comments h4 strong {
font-size: 110%;
}
#comments-block {
margin: 1em 0 1.5em;
line-height: 1.3em;
}
#comments-block dt {
margin: .5em 0;
}
#comments-block dd {
margin: .25em 0 0;
}
#comments-block dd.comment-footer {
margin: -.25em 0 2em;
line-height: 1.4em;
font-size: 78%;
}
#comments-block dd p {
margin: 0 0 .75em;
}
.deleted-comment {
font-style:italic;
color:gray;
}
.feed-links {
clear: both;
line-height: 2.5em;
}
#blog-pager-newer-link {
float: left;
}
#blog-pager-older-link {
float: right;
}
#blog-pager {
text-align: center;
}
/* Sidebar Content
----------------------------------------------- */
.sidebar h2 {
margin: 1.0em 0 .5em;
padding: 2px 2px;
background-color: $mainBgColor;
/*
background: url(http://home.planet.nl/~hansoosting/images/bubblestrip.jpg) top
left;
*/
font: $sbHeaderFont;
color: $sidebarTitleTextColor;
border: solid 1px double $mainBgColor;
}
.sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}
.sidebar li {
margin: 0;
padding: 0 0 .5em 15px;
text-indent: -15px;
line-height: 1.0em;
}
.sidebar {
color: $textColor;
line-height:1.3em;
}
.sidebar .widget {
margin-bottom: 1em;
}
.sidebar .widget-content {
margin: 0 5px;
}
/* Profile
----------------------------------------------- */
.profile-img {
float: right;
margin: 2px;
padding: 0;
border: 3px solid #cccccc /*$borderColor*/;
}
.profile-data {
margin:0;
text-transform:uppercase;
letter-spacing:.1em;
font-weight: bold;
line-height: 1.6em;
font-size: 78%;
}
.profile-datablock {
margin:.5em 0 .5em;
}
.profile-textblock {
margin: 0.5em 0;
line-height: 1.6em;
}
/* Footer
----------------------------------------------- */
#footer {
clear: both;
text-align: right;
color: $textColor;
margin: 2px;
border: 1px solid #cccccc /*$borderColor*/;
}
#footer .widget {
margin:.5em;
padding-top: 20px;
font-size: 85%;
line-height: 1.5em;
text-align: left;
}
]]></b:skin>
<script src='http://www.anniyalogam.com/widgets/hackosphere.js' type='text/javascript'/>
</head>
As requested by AJX in Hacking this blog below is the template I actually use at manámaná without the text styles and inserted comments in the header and other jpeg images inserted. The original template was the Underwater for Blogger Beta by Hans Oosting from Beautiful Beta over a work by Ramani's Hackosphere, I've only modified styles from text, columns, borders, paddings, headers, etc., for adapting it visually to my desired blog style. If you use it please make a
reference note to Beautiful Beta .
Bear in mind that I'm a CSS learner and thus my designer approach has a try-claim to heavens-rectify style so I won't probably be able to answer your questions. Also consider that I've already inserted some widgets and hacks in my template that you don't have in your blog so it may well need some adaptation. And remember
always backup your style before trying this one!
Important: I've only inserted here the section <head>, I've not touched the rest of the template yet. If you want the complete template please download Underwater and substitute its <head> section with mine:
<head>
<title><data:blog.pageTitle/></title>
<b:include data='blog' name='all-head-content'/>
<b:skin><![CDATA[/*
-----------------------------------------------
Blogger Template Style
Name: Underwater
Designer: Hans Oosting
Artwork: Vladstudio
Date: 23 Sep 2006
-----------------------------------------------
Styles modified by Noir (thanks Hans for your great work!)
-----------------------------------------------
*/
/* Variable definitions
====================
<Variable name="bodyBgColor" description="Main Background
Color"
type="color" default="#666666" value="#666666">
<Variable name="mainBgColor" description="Blog Background
Color"
type="color" default="#ffffff" value="#ffffff">
<Variable name="borderColor" description="Border Color"
type="color" default="#ffffff" value="#ffffff">
<Variable name="headerTextColor" description="Blog Header
Text Color"
type="color" default="#ffffff" value="#666666">
<Variable name="descriptionTextColor" description="Blog Description
Text Color"
type="color" default="#999999" value="#999999">
<Variable name="sidebarTitleTextColor" description="Sidebar
Title Text Color"
type="color" default="#666666" value="#666666">
<Variable name="dateHeaderColor" description="Date Header
Color"
type="color" default="#996633" value="#7f7f7f">
<Variable name="postHeaderColor" description="Post Header
Color"
type="color" default="#AA2F51" value="#AA2F51">
<Variable name="textColor" description="Text Color"
type="color" default="#000000" value="#000000">
<Variable name="linkColor" description="Link Color"
type="color" default="#AA2F51" value="#AA2F51">
<Variable name="visitedlinkColor" description="Visited Link
Color" type="color" default="#D56685" value="#D56685">
<Variable name="bqBgColor" description="Blocquote Background
Color" type="color" default="#ffcc66" value="#e6e6e6">
<Variable name="bqTextColor" description="Blocquote Text Color"
type="color" default="#660000" value="#666666">
<Variable name="bodyFont" description="Text Font"
type="font" default="normal normal 90% Arial, sans-serif;"
value="normal normal 77% Arial, sans-serif">
<Variable name="headerFont" description="Blog Header Font"
type="font" default="normal normal 210% Verdana, Arial, Sans-serif;"
value="italic bold 392% Arial, sans-serif">
<Variable name="descriptionFont" description="Blog Description
Font"
type="font" default="normal normal 210% Verdana, Arial, Sans-serif;"
value="italic bold 150% Arial, sans-serif">
<Variable name="sbHeaderFont" description="Sidebar Header
Font" type="font" default="normal normal 210% Verdana, Arial,
Sans-serif;" value="italic bold 165% Arial, sans-serif">
<Variable name="dateHeaderFont" description="Date Header Font"
type="font" default="normal normal 210% Verdana, Arial, Sans-serif;"
value="normal normal 101% Arial, sans-serif">
<Variable name="postHeaderFont" description="Post Header Font"
type="font" default="normal normal 210% Verdana, Arial, Sans-serif;"
value="italic bold 147% Arial, sans-serif">
*/
/* BODY
---------------------- */
body {
background-color: $mainBgColor;
/*
Substitute the URL for your chosen header URL and retire the forwardslashes
ad asteriscs. Image at this example from the original Underworld template of
Beautiful Beta http://beautifulbeta.blogspot.com/.
background: url(http://home.planet.nl/~hansoosting/images/bubblebg.jpg) repeat-x
fixed;
*/
margin: 0;
padding: 0;
text-align: center;
font: $bodyFont;
color: $textColor;
}
/* OUTER WRAPPER
----------------------- */
#outer-wrapper {
width: 98%;
margin: 0 1% 0 1%;
background-color: $mainBgColor;
border: 1px solid #cccccc;
}a:link {
color: $linkColor;
}
a:visited {
color: $visitedlinkColor;
}
a img {
border-width: 0;
}
/* HEADER
----------------------------------------------- */
#header-wrapper {
margin-top: 10px;
padding: 0;
background-color: transparent;
text-align: left;
}
#header {
width: 98%;
height: 100px;
background-color: $bodyBgColor;
/*
Substitute the URL for your chosen header URL and retire the forwardslashes
ad asteriscs. Image at this example from a header of http://mmana.blogspot.com
background: url(http://photos1.blogger.com/blogger2/1287/4081/1600/header_06.1.gif)
left;
/*
margin: 0 auto;
color: $headerTextColor;
padding: 0;
border: 3px solid $borderColor;
}
#header h1 {
padding-top: 10px;
margin: 0 14px .1em;
line-height: 1.2em;
font: $headerFont;
color: $headerTextColor;
}
#header a {
color: $headerTextColor;
text-decoration: none;
}
#header .description {
display: block;
margin: 10px; 14px;
padding: 0 0 40px;
line-height: 1.4em;
font: $descriptionFont;
color: $descriptionTextColor;
}
/* Content
----------------------------------------------- */
.clear {
clear: both;
}#content-wrapper {
width: 98%;
margin: 0 auto;
padding: 0 0 10px;
text-align: left;
background-color: $mainBgColor;
border: 1px solid $borderColor;
border-top: 0;
}
#main-wrapper {
margin-left: 1%;
width: 62%;
float: left;
background-color: transparent;
border: 1px solid #cccccc;
padding: 5px 5px 5px 5px;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
}
#left-sidebar-wrapper {
margin-left: 1%;
width: 16%;
float: left;
background-color: transparent;
border: 1px solid #cccccc;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
}
#right-sidebar-wrapper {
margin-right: 1%;
width: 16%;
text-align:right;
float: right;
background-color: transparent;
border: 1px solid #cccccc;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
}
/* Headings
----------------------------------------------- */
h2, h3 {
margin: 0;
}
/* POSTS
----------------------------------------------- */
.date-header {
margin: 2px 0 0;
font-weight: normal;
color: $dateHeaderColor;
font: $dateHeaderFont;
text-align: right;
border-bottom: 1px solid $borderColor;
}
.post
margin: 2px 2px 5px 2px;
padding: 10px 10px 10px 10px;
border: 1px solid #cccccc;
}
.post-title {
margin: 0 0 0 0;
padding: 5px;
font: $postHeaderFont;
color: $postHeaderColor;
line-height: 1.1em;
}
.post-title a, .post-title a:visited, .post-title strong {
text-decoration: none;
color: $postHeaderColor;
font: $postHeaderFont;
}
.post-footer {
/*font-size: 85%;*/
color: #999999 /*$textColor*/;
}
.post img {
padding: 4px;
border: 1px solid #cccccc;
}
.post blockquote {
margin: 1em 20px;
padding: 5px 5px;
border-top: 1px solid $borderColor;
border-bottom: 1px solid $borderColor;
background-color: $bqBgColor;
color: $bqTextColor;
}/* Comments
----------------------------------------------- */
#comments h4 {
margin: 1em 0;
color: $dateHeaderColor;
}
#comments h4 strong {
font-size: 110%;
}
#comments-block {
margin: 1em 0 1.5em;
line-height: 1.3em;
}
#comments-block dt {
margin: .5em 0;
}
#comments-block dd {
margin: .25em 0 0;
}
#comments-block dd.comment-footer {
margin: -.25em 0 2em;
line-height: 1.4em;
font-size: 78%;
}
#comments-block dd p {
margin: 0 0 .75em;
}
.deleted-comment {
font-style:italic;
color:gray;
}
.feed-links {
clear: both;
line-height: 2.5em;
}
#blog-pager-newer-link {
float: left;
}
#blog-pager-older-link {
float: right;
}
#blog-pager {
text-align: center;
}
/* Sidebar Content
----------------------------------------------- */
.sidebar h2 {
margin: 1.0em 0 .5em;
padding: 2px 2px;
background-color: $mainBgColor;
/*
background: url(http://home.planet.nl/~hansoosting/images/bubblestrip.jpg) top
left;
*/
font: $sbHeaderFont;
color: $sidebarTitleTextColor;
border: solid 1px double $mainBgColor;
}
.sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}
.sidebar li {
margin: 0;
padding: 0 0 .5em 15px;
text-indent: -15px;
line-height: 1.0em;
}
.sidebar {
color: $textColor;
line-height:1.3em;
}
.sidebar .widget {
margin-bottom: 1em;
}
.sidebar .widget-content {
margin: 0 5px;
}
/* Profile
----------------------------------------------- */
.profile-img {
float: right;
margin: 2px;
padding: 0;
border: 3px solid #cccccc /*$borderColor*/;
}
.profile-data {
margin:0;
text-transform:uppercase;
letter-spacing:.1em;
font-weight: bold;
line-height: 1.6em;
font-size: 78%;
}
.profile-datablock {
margin:.5em 0 .5em;
}
.profile-textblock {
margin: 0.5em 0;
line-height: 1.6em;
}
/* Footer
----------------------------------------------- */
#footer {
clear: both;
text-align: right;
color: $textColor;
margin: 2px;
border: 1px solid #cccccc /*$borderColor*/;
}
#footer .widget {
margin:.5em;
padding-top: 20px;
font-size: 85%;
line-height: 1.5em;
text-align: left;
}
]]></b:skin>
<script src='http://www.anniyalogam.com/widgets/hackosphere.js' type='text/javascript'/>
</head>
The few months that I've been running manámaná I've passed through 3 different CSS templates and lots of troubles with Blogger and, later, Blogger Beta. As you can see I've achieved, more or less, a bit of a design stability without resigning to create my own styles. Unfortunately for those like me that crave for a bit more than basic blog style and functionality but are new to CSS, Blogger Beta is very likely to continue changing vital Blogger functions (each time I enter in the dashboard something has changed and sometimes the management of widgets or hacks have varied). But, as not everything is bad news, this situation coaches our CSS muscles to prepare them for the next Blogger stable version.
At the moment I perform little changes at manámaná at least 3 days each week, mostly at lunch time while I'm cooking. My next goal is to reinsert the peek-a-boo post and comments functionality that manámaná had on its first version and that worked so well (I Really miss it) but, of course, recipes have priority in the small piece of schedule that I can dedicate to manámaná. Below are listed my must-visit resources for learning about CSS and blog hacks. Enjoy!:
A list apart
Beutiful Beta
Mandarin Design
Tempus Fugit (in spanish)
The noodle incident
World Wide Web Consortimu: CSS box model
Durante el par de mese que lleva manámaná activo he pasado por 3 plantillas de estilos CSS diferentes y un montón de problemas tanto con Blogger primero como con Blogger Beta después. Como podéis ver he conseguido, más o menos, un poquito de estabilidad sin renunciar a crear un estilo propio. Desafortunadamente para aquellos como yo que quieren algo más que los estilos y funcionalidades básicos pero son novatos en CSS, es más que probable que Blogger Beta continue cambiando funcionalidades básicas (cada vez que entro en el panel de control algo ha cambiado, incluso a veces la gestión de widgets y hacks). Pero como no todo van a ser malas noticias esta situación entrena nuestros músculos CSS para prepararnos para el advenimiento de la próxima versión estable de Blogger.
Por el momento realizo pequeños cambios en este blog al menos 3 días por semana. Actualmente mi gran próximo objetivo es reinsertar la funcionalidad peek-a-book de posts y comentarios que tenía manámaná en su primera versión y que funcionaba tan bien (la hecho Mucho de menos) aunque, por supuesto, las recetas tienen prioridad en el poco tiempo que puedo dedicarle a este blog. A continuación teneis una lista de los mejores recursos que he encontrado y en los que me baso para aprender CSS y hackeos de blogs:
A list apart
Beutiful Beta
Mandarin Design
Tempus Fugit (en español)
The noodle incident
World Wide Web Consortimu: CSS box model









