Aggiunto un <hr> come divisore tra i post per poterlo fare meno lungo del div. Rimpicciolito di 0.1em i titoli

This commit is contained in:
gine 2017-03-25 17:01:38 +01:00
parent 41d21c5eb0
commit c3f89e19ee
3 changed files with 22 additions and 9 deletions

View file

@ -427,7 +427,7 @@
.listatovirgole.listevoci ul li a {
text-transform: initial;
font-size: 1.5em !important;
font-size: 1.4em !important;
color: #000 !important;
}
@ -1178,8 +1178,13 @@ p:has(> img.panel_logo){
max-height: 30px;
}
.my-new-list li {
border-bottom: 1px dotted #c53f33;
hr.post-divider {
margin-left: 15%;
width: 70%;
color: #c53f33;
border-style: dashed;
border-width: 1px;
margin-bottom: 2px;
}
#outside, .ui-body-a, .ui-page-theme-a .ui-body-inherit, html .ui-bar-a .ui-body-inherit, html .ui-body-a .ui-body-inherit, html body .ui-group-theme-a .ui-body-inherit, html .ui-panel-page-container-a {

View file

@ -119,13 +119,13 @@ EVENTS.loadFromDb = function (containerId, type) {
"<br/>" +
evFrom +
evTo +
"<hr class='post-divider'>"+
"</li>";
items.push(li);
}
$(containerId).empty();
$("<ul/>", {
"class": "my-new-list",
html: items.join("")
}).prependTo(containerId);
$.mobile.loading('hide');

View file

@ -45,15 +45,23 @@ var drawListPost = function(div, resultSet, position) {
var title = val.title.rendered;
var url = val.guid.rendered;
var cleanTime = EVENTS.formatDate(date, EVENTS.dateFormat.display.date);
//key mi dice l'indice'
items.push("<li><a href='#singleQpost' data-post='" + id + "'>" + title + "</a><br/><small>" + cleanTime + "</small>");
var li = "<li>"+
"<a href='#singleQpost' data-post='" + id + "'>" +
title +
"</a>"+
"<br/>"+
"<small>" + cleanTime + "</small>"+
"<hr class='post-divider'>"+
"</li>";
items.push(li);
}
var ul = $("<ul/>", {
"class": "my-new-list",
html: items.join("")
});
if(position == 'append'){
ul.appendTo(div);
} else if(position == 'prepend'){