Skip to content

Commit

Permalink
Update content layout markup
Browse files Browse the repository at this point in the history
  • Loading branch information
gabor-udvari committed Sep 25, 2015
1 parent 8c724a0 commit 7464d05
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
4 changes: 3 additions & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ public function watch() {
$this->taskWatch()
->monitor('assets/styles/main.scss', function() {
$this->styles();
})
->monitor('assets/styles/bootgenie.scss', function() {
$this->styles();
})->run();
})
->run();
}
}
4 changes: 2 additions & 2 deletions assets/styles/bootgenie.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions sources/styles/bootgenie.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,21 @@

// Layout

.main-wrapper {
#content_container {
@extend .container;
}

.content-wrapper {
@include make-row();
}

.main-wrapper .sidebar {
.content-wrapper .sidebar {
@include make-lg-column(4);
@include make-md-column(4);
@include make-sm-column(4);
}

.main-wrapper .main {
.content-wrapper .main {
@include make-lg-column(8);
@include make-md-column(8);
@include make-sm-column(8);
Expand Down
4 changes: 3 additions & 1 deletion templates/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@
<?php require_once BOOTGENIE_PATH . 'templates/header.inc.php'; ?>
<?php \thebuggenie\core\framework\Logging::log('done (rendering header)'); ?>
</header>
<div id="content_container" class="container">
<div id="content_container">
<div class="content-wrapper">
<?php \thebuggenie\core\framework\Logging::log('Rendering content'); ?>
<?php echo $content; ?>
<?php \thebuggenie\core\framework\Logging::log('done (rendering content)'); ?>
</div> <!-- /.content-wrapper -->
</div> <!-- /#content_container -->
<footer>
<?php \thebuggenie\core\framework\Event::createNew('core', 'layout.php::footer-begins')->trigger(); ?>
Expand Down
2 changes: 0 additions & 2 deletions templates/main_index.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<?php endif; ?>
<?php endif; ?>

<div class="main-wrapper">
<aside class="sidebar">
<?php include_component('main/menulinks', array('links' => $links, 'target_type' => 'main_menu', 'target_id' => 0, 'title' => __('Quick links'))); ?>
<?php \thebuggenie\core\framework\Event::createNew('core', 'index_left')->trigger(); ?>
Expand Down Expand Up @@ -54,4 +53,3 @@
<?php endif; ?>
<?php \thebuggenie\core\framework\Event::createNew('core', 'index_right_bottom')->trigger(); ?>
</section> <!-- /.main -->
</div> <!-- /.main-wrapper -->
1 change: 0 additions & 1 deletion templates/publish_showarticle.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
$tbg_response->setTitle($article_name);
?>

<div class="main-wrapper">
<aside class="sidebar <?php if ($article->getArticleType() == \thebuggenie\modules\publish\entities\Article::TYPE_MANUAL) echo 'manual'; ?>">
<?php if ($article->getArticleType() == \thebuggenie\modules\publish\entities\Article::TYPE_MANUAL): ?>
<?php include_component('manualsidebar', array('article' => $article)); ?>
Expand Down
1 change: 0 additions & 1 deletion templates/publish_specialarticle.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

?>

<div class="main-wrapper">
<aside class="sidebar">
<?php include_component('leftmenu', compact('article', 'special')); ?>
</aside>
Expand Down

0 comments on commit 7464d05

Please sign in to comment.