1/** 2 * This file provides styles for the diff view, which shows you 3 * differences between two versions of a page (?do=diff). 4 */ 5 6.dokuwiki table.diff { 7 width: 100%; 8 border-width: 0; 9} 10.dokuwiki table.diff th, 11.dokuwiki table.diff td { 12 vertical-align: top; 13 padding: 0; 14 border-width: 0; 15 /* no style.ini colours because deleted and added lines have a fixed background colour */ 16 background-color: #fff; 17 color: #333; 18} 19 20/* table header */ 21.dokuwiki table.diff th { 22 border-bottom: 1px solid @ini_border; 23 font-size: 110%; 24 font-weight: normal; 25} 26.dokuwiki table.diff th a { 27 font-weight: bold; 28} 29.dokuwiki table.diff th span.user { 30 font-size: .9em; 31} 32.dokuwiki table.diff th span.sum { 33 font-size: .9em; 34 font-weight: bold; 35} 36.dokuwiki table.diff th.minor { 37 color: #999; 38} 39.dokuwiki table.diff_sidebyside th { 40 width: 50%; 41} 42 43/* table body */ 44.dokuwiki table.diff .diff-lineheader { 45 width: .7em; 46 text-align: right; 47} 48[dir=rtl] .dokuwiki table.diff .diff-lineheader { 49 text-align: left; 50} 51.dokuwiki table.diff .diff-lineheader, 52.dokuwiki table.diff td { 53 font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace; 54} 55.dokuwiki table.diff td.diff-blockheader { 56 font-weight: bold; 57} 58.dokuwiki table.diff .diff-addedline { 59 background-color: #cfc; 60 color: black; 61 width: ~"calc(50% - .7em)"; 62} 63.dokuwiki table.diff .diff-deletedline { 64 background-color: #fdd; 65 color: black; 66 width: ~"calc(50% - .7em)"; 67} 68.dokuwiki table.diff td.diff-context { 69 background-color: #eee; 70 color: black; 71 width: ~"calc(50% - .7em)"; 72} 73.dokuwiki table.diff td.diff-addedline strong, 74.dokuwiki table.diff td.diff-deletedline strong { 75 color: #f00; 76 background-color: inherit; 77 font-weight: bold; 78} 79 80/* diff options */ 81 82.dokuwiki .diffoptions form { 83 float: left; 84} 85.dokuwiki .diffoptions p { 86 float: right; 87} 88 89/* diff nav */ 90 91.dokuwiki table.diff_sidebyside td.diffnav { 92 padding-bottom: .7em; 93} 94.dokuwiki .diffnav a { 95 display: inline-block; 96 vertical-align: middle; 97} 98.dokuwiki .diffnav a span { 99 display: none; 100} 101 102.dokuwiki .diffnav a:hover, 103.dokuwiki .diffnav a:active, 104.dokuwiki .diffnav a:focus { 105 background-color: @ini_background_alt; 106 text-decoration: none; 107} 108 109.dokuwiki .diffnav a:before { 110 display: inline-block; 111 line-height: 1; 112 padding: .2em .4em; 113 border: 1px solid @ini_border; 114 border-radius: 2px; 115 color: @ini_text; 116} 117 118.dokuwiki .diffnav a.diffprevrev:before { 119 content: '\25C0'; /* left triangle */ 120} 121.dokuwiki .diffnav a.diffnextrev:before, 122.dokuwiki .diffnav a.difflastrev:before { 123 content: '\25B6'; /* right triangle */ 124} 125.dokuwiki .diffnav a.diffbothprevrev:before { 126 content: '\25C0\25C0'; 127} 128.dokuwiki .diffnav a.diffbothnextrev:before { 129 content: '\25B6\25B6'; 130} 131 132.dokuwiki .diffnav select { 133 width: 60%; 134 min-width: 9em; 135 height: 1.5em; /* height is necessary for longer options in Webkit */ 136} 137 138.dokuwiki .diffnav select option[selected] { 139 font-weight: bold; 140} 141