123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- /**
- * This file provides styles for the diff view, which shows you
- * differences between two versions of a page (?do=diff).
- */
- @font-face {
- font-family: "Roboto";
- font-weight: 200;
- font-style: normal;
- font-stretch: normal;
- src: url("lib/tpl/mytemplate/css/roboto.ttf") format("truetype");
- }
- :root {
- --ini-text: #333;
- --ini-background: #fff;
- --ini-text-alt: #999;
- --ini-background-alt: #eee;
- --ini-text-neu: #666;
- --ini-background-neu: #ddd;
- --ini-border: #1C3031;
- --ini-highlight: #F2C94C;
- --ini-link: #1C3031;
- --ini-background-site: #fbfaf9;
- --ini-existing: #27AE60;
- --ini-missing: #EE1010;
- --ini-site-width: 75em;
- --ini-sidebar-width: 16em;
- --ini-tablet-width: 800px;
- --ini-phone-width: 480px;
- --ini-theme-color: #008800;
- }
- .edit, .input {
- background-color: transparent !important;
- color: #000;
- }
- label {
- background-color: transparent !important;
- }
- .selection, .selectiondefault {
- background-color: transparent !important;
- }
- .selection:hover, .selectiondefault:hover {
- background-color: #eee !important;
- }
- .dokuwiki table.diff {
- width: 100%;
- border-width: 0;
- }
- .dokuwiki table.diff th,
- .dokuwiki table.diff td {
- vertical-align: top;
- padding: 0;
- border-width: 0;
- /* no style.ini colours because deleted and added lines have a fixed background colour */
- background-color: #fff;
- color: #333;
- }
- /* table header */
- .dokuwiki table.diff th {
- border-bottom: 1px solid var(--ini-border);
- font-size: 110%;
- font-weight: normal;
- }
- .dokuwiki table.diff th a {
- font-weight: bold;
- }
- .dokuwiki table.diff th span.user {
- font-size: .9em;
- }
- .dokuwiki table.diff th span.sum {
- font-size: .9em;
- font-weight: bold;
- }
- .dokuwiki table.diff th.minor {
- color: #999;
- }
- .dokuwiki table.diff_sidebyside th {
- width: 50%;
- }
- /* table body */
- .dokuwiki table.diff .diff-lineheader {
- width: .7em;
- text-align: right;
- }
- [dir=rtl] .dokuwiki table.diff .diff-lineheader {
- text-align: left;
- }
- .dokuwiki table.diff .diff-lineheader,
- .dokuwiki table.diff td {
- font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
- }
- .dokuwiki table.diff td.diff-blockheader {
- font-weight: bold;
- }
- .dokuwiki table.diff .diff-addedline {
- background-color: #cfc;
- color: inherit;
- width: calc(50% - .7em);
- }
- .dokuwiki table.diff .diff-deletedline {
- background-color: #fdd;
- color: inherit;
- width: calc(50% - .7em);
- }
- .dokuwiki table.diff td.diff-context {
- background-color: #eee;
- color: inherit;
- width: calc(50% - .7em);
- }
- .dokuwiki table.diff td.diff-addedline strong,
- .dokuwiki table.diff td.diff-deletedline strong {
- color: #f00;
- background-color: inherit;
- font-weight: bold;
- }
- /* diff options */
- .dokuwiki .diffoptions form {
- float: left;
- }
- .dokuwiki .diffoptions p {
- float: right;
- }
- /* diff nav */
- .dokuwiki table.diff_sidebyside td.diffnav {
- padding-bottom: .7em;
- }
- .dokuwiki .diffnav a {
- display: inline-block;
- vertical-align: middle;
- }
- .dokuwiki .diffnav a span {
- display: none;
- }
- .dokuwiki .diffnav a:hover,
- .dokuwiki .diffnav a:active,
- .dokuwiki .diffnav a:focus {
- background-color: var(--ini-background-alt);
- text-decoration: none;
- }
- .dokuwiki .diffnav a:before {
- display: inline-block;
- line-height: 1;
- padding: .2em .4em;
- border: 1px solid var(--ini-border);
- border-radius: 2px;
- color: var(--ini-text);
- }
- .dokuwiki .diffnav a.diffprevrev:before {
- content: '\25C0'; /* left triangle */
- }
- .dokuwiki .diffnav a.diffnextrev:before,
- .dokuwiki .diffnav a.difflastrev:before {
- content: '\25B6'; /* right triangle */
- }
- .dokuwiki .diffnav a.diffbothprevrev:before {
- content: '\25C0\25C0';
- }
- .dokuwiki .diffnav a.diffbothnextrev:before {
- content: '\25B6\25B6';
- }
- .dokuwiki .diffnav select {
- width: 60%;
- min-width: 9em;
- height: 1.5em; /* height is necessary for longer options in Webkit */
- }
- .dokuwiki .diffnav select option[selected] {
- font-weight: bold;
- }
|