Minor layout and style adjustments.

This commit is contained in:
2018-11-22 21:35:27 +01:00
parent 72417a9abb
commit 64b4ce3ba9
3 changed files with 14 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ export class Posts extends NodesBase {
static create$item(post) {
let content = [];
let $title = $('<div>')
.addClass('h2 text-uppercase font-weight-bold mt-4 mb-3')
.addClass('h1 text-uppercase mt-4 mb-3')
.text(post.name);
content.push($title);
let $post = $('<div>')
@@ -12,7 +12,7 @@ export class Posts extends NodesBase {
.append(
content,
$('<div>')
.addClass('node-details-description mx-auto')
.addClass('node-details-description')
.html(post['properties']['pretty_content'])
);

View File

@@ -163,7 +163,7 @@ class GroupBuilder {
if (secondaryNodes) {
content.push(
$('<div>')
.addClass('card-deck card-padless card-deck-responsive js-asset-list border-bottom p-3 pb-5 mb-5')
.addClass('card-deck card-padless card-deck-responsive js-asset-list p-3 pb-5 mb-5')
.append(pillar.templates.Nodes.createListOf$nodeItems(secondaryNodes))
);
}
@@ -171,19 +171,18 @@ class GroupBuilder {
}
_create$Label(level, label, url) {
let type = level == 0 ? 'h6 float-right py-2' : 'h6 py-2 group-title'
let type = level == 0 ? 'h6 float-right py-2 group-date' : 'h6 py-2 group-title'
if (url) {
return $('<div>')
.addClass(type + ' sticky-top')
.append(
$('<a>')
.addClass('text-muted font-weight-bold')
.attr('href', url)
.text(label)
);
}
return $('<div>')
.addClass(type + ' text-secondary sticky-top')
.addClass(type + ' sticky-top')
.text(label);
}
}