MediaWiki:Common.less/diff.less

From Old School Near-Reality Wiki
Jump to navigation Jump to search

/* =================

        diffs
  ================= */
root {
   --diff-addedline-border-color: #438ab5;
   --diff-addedline-background: #bddff2;
   --diff-addedline-color: @black;
   --diff-deletedline-border-color: #379541;
   --diff-deletedline-background: #c1edbf;
   --diff-deletedline-color: @black;
   --diff-context-border-color: @BODY_MID;
   --diff-context-background: @BODY_MID;

}

.diff-addedline {

   border-color: var(--diff-addedline-border-color); // blue
   .diffchange {
       background: var(--diff-addedline-background);
   	color: var(--diff-addedline-color);
   }
   

}

.diff-deletedline {

   border-color: var(--diff-deletedline-border-color); // green
   .diffchange {
       background: var(--diff-deletedline-background);
   	color: var(--diff-deletedline-color);
   }

}

.diff-context {

   border-color: var(--diff-context-border-color);
   background: var(--diff-context-background);
   color: inherit;

}