mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Use classes to signal diffs.
This commit is contained in:
parent
5939f3a865
commit
770e826340
@ -33,14 +33,14 @@
|
|||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
#diff div, #diff ul, #diff li, #diff dl, #diff dd, #diff span {
|
.diff div, .diff ul, .diff li, .diff dl, .diff dd, .diff span {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
display: inline;
|
display: inline;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#diff dt {
|
.diff dt {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -214,8 +214,8 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="before"></div>
|
<div id="before" class="diff"></div>
|
||||||
<div id="after"></div>
|
<div id="after" class="diff"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
loadJSON('diff.json', function (json) {
|
loadJSON('diff.json', function (json) {
|
||||||
var diff = diffFromJSON(json.diff);
|
var diff = diffFromJSON(json.diff);
|
||||||
|
Loading…
Reference in New Issue
Block a user