Skip to content

Commit 4ed847b

Browse files
committed
Improve widths
1 parent 316ece4 commit 4ed847b

File tree

10 files changed

+56
-23
lines changed

10 files changed

+56
-23
lines changed

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444

4545
</script>
4646
</head>
47-
<body class="swag-line template-index">
48-
<div>
47+
<body class="template-index ">
48+
<div class="swag-line">
4949

5050
<div class="container">
5151
<nav class="navbar navbar-default navbar-tall navbar-full" role="navigation">

docs/main.css

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
* Adapted by @rtfpessoa
44
*/
55

6+
.template-index {
7+
width: 100%;
8+
}
9+
10+
.template-index-min {
11+
min-width: 700px;
12+
}
13+
614
.m-b-md {
715
margin-bottom: 23px !important
816
}
@@ -87,13 +95,13 @@
8795

8896
@media (min-width: 768px) {
8997
.footer {
90-
padding: 60px 0
98+
padding: 60px 0;
9199
}
92100
}
93101

94102
@media (min-width: 768px) {
95103
.container {
96-
width: 710px
104+
width: 100%;
97105
}
98106

99107
.row-centered {
@@ -108,13 +116,13 @@
108116

109117
@media (min-width: 992px) {
110118
.container {
111-
width: 890px
119+
width: 100%;
112120
}
113121
}
114122

115123
@media (min-width: 1200px) {
116124
.container {
117-
width: 1050px
125+
width: 100%;
118126
}
119127
}
120128

@@ -168,7 +176,7 @@
168176

169177
.swag-line:before {
170178
content: '';
171-
position: absolute;
179+
position: fixed;
172180
display: block;
173181
top: 0;
174182
left: 0;

docs/main.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/url.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151

5252
</script>
5353
</head>
54-
<body class="swag-line template-index">
55-
<div>
54+
<body class="template-index template-index-min">
55+
<div class="swag-line">
5656

5757
<div class="container">
5858
<nav class="navbar navbar-default navbar-tall navbar-full" role="navigation">

docs/url.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,9 @@ $(document).ready(function() {
554554
var diff2htmlUi = new Diff2HtmlUI({diff: data});
555555

556556
if (outputFormat === 'side-by-side') {
557-
$container.css({'min-width': '1280px'});
557+
$container.css({'width': '100%'});
558558
} else {
559-
$container.css({'width': '980px'});
559+
$container.css({'width': ''});
560560
}
561561

562562
diff2htmlUi.draw(container, {

0 commit comments

Comments
 (0)