Commit 632f6c67 authored by david salinas's avatar david salinas

Fix #2 - Funcionalidad cambiar tamaño del texto

parent 0f3b90a7
......@@ -1179,6 +1179,7 @@ footer .bottom .bicolor {
.single #content #main .post .fontsize ul li a,
.page #content #main .post .fontsize ul li a,
.error404 #content #main .post .fontsize ul li a {
cursor: pointer;
display: block;
background: #bdc9d1;
color: #fff;
......
......@@ -1087,6 +1087,7 @@ footer {
float:left;
margin:0 0 0 4px;
a {
cursor: pointer;
display:block;
background:@gris-claro;
color:#fff;
......
......@@ -10,5 +10,17 @@ $(document).ready(function() {
$("a#menu-movil-cerrar").click(function() {
$("#menu-movil").slideToggle("fast");
});
// Tamaño de fuentes en posts
$(".fontsize a").click(function() {
var fsize = $(this).attr('data-size');
$(".fontsize li").removeClass('current');
$(this).parent().addClass('current');
$('.post .texto .contenido p').css('fontSize', fsize + 'px');
});
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment