MediaWiki:Vector.css: Difference between revisions

new color for right-hand border; added some comments
(converting hex color codes to RGB)
(new color for right-hand border; added some comments)
Line 2: Line 2:


/*
/*
** Diff rendering
** Improved diff-rendering
** NOTE: These changes are "back-ported" from MW 1.20; remove if we upgrade.
** NOTE: These changes are "back-ported" from MW 1.20; remove if we upgrade.
*/
*/
table.diff, td.diff-otitle, td.diff-ntitle
table.diff, td.diff-otitle, td.diff-ntitle
{
{
Line 16: Line 17:
}
}


/* The markers are the +/- signs besides the diff text blocks */
td.diff-marker
td.diff-marker
{
{
Line 38: Line 40:
}
}


/* Border style for diff text blocks */
td.diff-addedline,
td.diff-addedline,
td.diff-deletedline
td.diff-deletedline
{
{
border-style: solid;
border-style: solid;
        /* Note that the fourth border-width parameter is "left", so we're setting
            the thickness of the lefthand border higher than the other sides */
border-width: 1px 1px 1px 4px;
border-width: 1px 1px 1px 4px;
border-radius: 0.33em;
border-radius: 0.33em;
}
}


/* Border colors (mainly visible on left of each diff text block) */
td.diff-addedline
td.diff-addedline
{
{
border-color: rgb(163,211,255);
border-color: rgb(137,255,137);
}
}
td.diff-deletedline
td.diff-deletedline
{
{
Line 56: Line 61:
}
}


td.diff-addedline .diffchange
/* Highlight color for changed text */
{
td.diff-addedline .diffchange,
background: rgb(215, 175, 255);
}
td.diff-deletedline .diffchange
td.diff-deletedline .diffchange
{
{
background: rgb(215, 175, 255);
background: rgb(215,175,255);
}
}


/* The context blocks are the gray text before and after the diff text blocks */
td.diff-context
td.diff-context
{
{
Line 76: Line 79:
}
}


/* Style of actual changed text in diff blocks */
.diffchange
.diffchange
{
{