Updated post page stylesheet

This commit is contained in:
Pierre 2018-02-02 06:43:26 +01:00
parent bd439e89e7
commit d913b38a5d
3 changed files with 43 additions and 4 deletions

View File

@ -0,0 +1,14 @@
/**
* Single post page stylesheet
*
* @author Pierre HUBERT
*/
.single-post-row {
padding-top: 50px;
}
.single-post-row .col-md-6 {
margin: auto;
float: none;
}

View File

@ -57,14 +57,36 @@ ComunicWeb.pages.postPage.main = {
}
//Create post contener
var postContener = createElem2({
//Create row
var pageRow = createElem2({
appendTo: target,
type: "div"
type: "div",
class: "row single-post-row"
});
//Post column
var column = createElem2({
appendTo: pageRow,
type: "div",
class: "col-md-6"
});
//Create post box
var postBox = createElem2({
appendTo: column,
type: "div",
class: "box box-primary"
});
//Create box body
var boxBody = createElem2({
appendTo: postBox,
type: "div",
class: "box-body"
});
//Display the post
ComunicWeb.components.posts.ui.display_post(response, postContener);
ComunicWeb.components.posts.ui.display_post(response, boxBody);
});

View File

@ -150,6 +150,9 @@ class Dev {
//User Page
"css/pages/userPage/main.css",
"css/pages/userPage/accessForbidden.css",
//Post page
"css/pages/postPage/main.css",
);
/**