Skip to content

Commit

Permalink
fix(layout): Fixed full-screen container layout padding
Browse files Browse the repository at this point in the history
`container-liquid` was a css class that no longer exists. As a
consequence the `row` classes were behaving as if they were `form
button.row`s. Resulted in no padding for the page. Updated root layout
to use Bootstrap's container-fluid.

Also added a tiny bit of margin back into the sections on the visualize
page.
  • Loading branch information
atruskie committed Feb 12, 2016
1 parent 3e98d08 commit 17d2b35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions src/app/visualize/_visualize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
}
}

.temporalContextLabel {
font-size: 8pt;
font-weight: normal;
}

.loadingImage {
$loadGifPath: image-url('load.gif');
background: $loadGifPath center center no-repeat;
Expand All @@ -55,6 +50,10 @@

}

section {
margin-bottom: 2px;
}

/*
section {
//border-bottom: 1px solid $btn-default-border;
Expand Down
2 changes: 1 addition & 1 deletion src/app/visualize/visualize.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2>Audio distribution</h2>
</p>
</div>
</section>
<div ng-if="!errorState" event-distribution data="recordingData" options="distributionOptions">
<div ng-if="!errorState" event-distribution data="recordingData" options="distributionOptions" class="container-fluid">
<h2>Audio distribution for
<span ng-repeat="p in projects">
{{:: p.name}}
Expand Down
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
<div growl>
</div>

<div ng-class="{ 'container-liquid': fullWidth, 'container': !fullWidth }">
<div ng-class="{ 'container-fluid': fullWidth, 'container': !fullWidth }">

<div class="row">
<div class="leftMenu col-md-2" ></div>
<!-- each view must specify the controller they use -->
<div id="content-wrapper" ng-class="{ 'container-liquid': fullWidth, 'col-md-8': !fullWidth }" ng-view></div>
<div class="leftMenu col-md-2" ></div>
<div id="content-wrapper" ng-class="{ 'col-md-12': fullWidth, 'col-md-8': !fullWidth }" ng-view></div>
</div>
</div>

Expand Down

0 comments on commit 17d2b35

Please sign in to comment.