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:
parent
41d21c5eb0
commit
c3f89e19ee
3 changed files with 22 additions and 9 deletions
|
@ -427,7 +427,7 @@
|
||||||
|
|
||||||
.listatovirgole.listevoci ul li a {
|
.listatovirgole.listevoci ul li a {
|
||||||
text-transform: initial;
|
text-transform: initial;
|
||||||
font-size: 1.5em !important;
|
font-size: 1.4em !important;
|
||||||
color: #000 !important;
|
color: #000 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1178,8 +1178,13 @@ p:has(> img.panel_logo){
|
||||||
max-height: 30px;
|
max-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.my-new-list li {
|
hr.post-divider {
|
||||||
border-bottom: 1px dotted #c53f33;
|
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 {
|
#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 {
|
||||||
|
|
|
@ -119,13 +119,13 @@ EVENTS.loadFromDb = function (containerId, type) {
|
||||||
"<br/>" +
|
"<br/>" +
|
||||||
evFrom +
|
evFrom +
|
||||||
evTo +
|
evTo +
|
||||||
|
"<hr class='post-divider'>"+
|
||||||
"</li>";
|
"</li>";
|
||||||
|
|
||||||
items.push(li);
|
items.push(li);
|
||||||
}
|
}
|
||||||
$(containerId).empty();
|
$(containerId).empty();
|
||||||
$("<ul/>", {
|
$("<ul/>", {
|
||||||
"class": "my-new-list",
|
|
||||||
html: items.join("")
|
html: items.join("")
|
||||||
}).prependTo(containerId);
|
}).prependTo(containerId);
|
||||||
$.mobile.loading('hide');
|
$.mobile.loading('hide');
|
||||||
|
|
|
@ -45,15 +45,23 @@ var drawListPost = function(div, resultSet, position) {
|
||||||
var title = val.title.rendered;
|
var title = val.title.rendered;
|
||||||
var url = val.guid.rendered;
|
var url = val.guid.rendered;
|
||||||
var cleanTime = EVENTS.formatDate(date, EVENTS.dateFormat.display.date);
|
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/>", {
|
var ul = $("<ul/>", {
|
||||||
"class": "my-new-list",
|
|
||||||
html: items.join("")
|
html: items.join("")
|
||||||
});
|
});
|
||||||
|
|
||||||
if(position == 'append'){
|
if(position == 'append'){
|
||||||
ul.appendTo(div);
|
ul.appendTo(div);
|
||||||
} else if(position == 'prepend'){
|
} else if(position == 'prepend'){
|
||||||
|
|
Loading…
Reference in a new issue