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