Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reformats css to match Github's (pretty) diff.

  • Loading branch information...
commit 55c9d488c0bb81c24860f7e5956e3504b11fe6bb 1 parent 9783d4e
@nhunzaker nhunzaker authored committed
Showing with 29 additions and 10 deletions.
  1. +29 −10 template.html
View
39 template.html
@@ -4,25 +4,44 @@
<meta charset="utf-8">
<title>Pretty Diff</title>
<style>
+ body {
+ text-align: center;
+ }
+ #wrapper {
+ display: inline-block;
+ margin-top: 1em;
+ min-width: 800px;
+ text-align: left;
+ }
h2 {
- font-family: Arial;
- font-size: 1.2em;
- margin-bottom: 0.3em;
+ background: #fafafa;
+ background: -moz-linear-gradient(#fafafa, #eaeaea);
+ background: -webkit-linear-gradient(#fafafa, #eaeaea);
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#fafafa',endColorstr='#eaeaea')";
+ border: 1px solid #d8d8d8;
+ border-bottom: 0;
+ color: #555;
+ font: 14px sans-serif;
+ overflow: hidden;
+ padding: 10px 6px;
+ text-shadow: 0 1px 0 white;
+ margin: 0;
}
.file-diff {
- width: 800px;
+ border: 1px solid #d8d8d8;
+ margin-bottom: 1em;
overflow: auto;
- border: 1px solid #aaa;
+ padding: 0.5em 0;
}
.file-diff > div {
- float: left;
- min-width: 800px;
+ width: 100%:
}
pre {
margin: 0;
- font-family: 'Bitstream Vera Sans Mono','Courier',monospace;
+ font-family: "Bitstream Vera Sans Mono", Courier, monospace;
font-size: 12px;
line-height: 1.4em;
+ text-indent: 0.5em;
}
.file {
color: #aaa;
@@ -39,8 +58,8 @@
</style>
</head>
<body>
-
+<div id="wrapper">
{{diff}}
-
+</div>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.