mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Updated post page stylesheet
This commit is contained in:
parent
bd439e89e7
commit
d913b38a5d
14
assets/css/pages/postPage/main.css
Normal file
14
assets/css/pages/postPage/main.css
Normal 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;
|
||||
}
|
@ -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);
|
||||
|
||||
});
|
||||
|
||||
|
@ -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",
|
||||
);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user