Skip to content

Commit

Permalink
Improve widths
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfpessoa committed Oct 15, 2016
1 parent 316ece4 commit 4ed847b
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

</script>
</head>
<body class="swag-line template-index">
<div>
<body class="template-index ">
<div class="swag-line">

<div class="container">
<nav class="navbar navbar-default navbar-tall navbar-full" role="navigation">
Expand Down
18 changes: 13 additions & 5 deletions docs/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
* Adapted by @rtfpessoa
*/

.template-index {
width: 100%;
}

.template-index-min {
min-width: 700px;
}

.m-b-md {
margin-bottom: 23px !important
}
Expand Down Expand Up @@ -87,13 +95,13 @@

@media (min-width: 768px) {
.footer {
padding: 60px 0
padding: 60px 0;
}
}

@media (min-width: 768px) {
.container {
width: 710px
width: 100%;
}

.row-centered {
Expand All @@ -108,13 +116,13 @@

@media (min-width: 992px) {
.container {
width: 890px
width: 100%;
}
}

@media (min-width: 1200px) {
.container {
width: 1050px
width: 100%;
}
}

Expand Down Expand Up @@ -168,7 +176,7 @@

.swag-line:before {
content: '';
position: absolute;
position: fixed;
display: block;
top: 0;
left: 0;
Expand Down
2 changes: 1 addition & 1 deletion docs/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/url.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@

</script>
</head>
<body class="swag-line template-index">
<div>
<body class="template-index template-index-min">
<div class="swag-line">

<div class="container">
<nav class="navbar navbar-default navbar-tall navbar-full" role="navigation">
Expand Down
4 changes: 2 additions & 2 deletions docs/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ $(document).ready(function() {
var diff2htmlUi = new Diff2HtmlUI({diff: data});

if (outputFormat === 'side-by-side') {
$container.css({'min-width': '1280px'});
$container.css({'width': '100%'});
} else {
$container.css({'width': '980px'});
$container.css({'width': ''});
}

diff2htmlUi.draw(container, {
Expand Down
Loading

0 comments on commit 4ed847b

Please sign in to comment.