From d913b38a5d72d95b84bf9c980fdfded1ed169ba7 Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 2 Feb 2018 06:43:26 +0100 Subject: [PATCH] Updated post page stylesheet --- assets/css/pages/postPage/main.css | 14 ++++++++++++++ assets/js/pages/postPage/main.js | 30 ++++++++++++++++++++++++++---- system/config/dev.config.php | 3 +++ 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 assets/css/pages/postPage/main.css diff --git a/assets/css/pages/postPage/main.css b/assets/css/pages/postPage/main.css new file mode 100644 index 00000000..70beb606 --- /dev/null +++ b/assets/css/pages/postPage/main.css @@ -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; +} \ No newline at end of file diff --git a/assets/js/pages/postPage/main.js b/assets/js/pages/postPage/main.js index db8fd04b..671d887a 100644 --- a/assets/js/pages/postPage/main.js +++ b/assets/js/pages/postPage/main.js @@ -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); }); diff --git a/system/config/dev.config.php b/system/config/dev.config.php index 10732df4..785eabec 100644 --- a/system/config/dev.config.php +++ b/system/config/dev.config.php @@ -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", ); /**