Wikipedia:AutoWikiBrowser/style.css: Difference between revisions
Appearance
Content deleted Content added
m +link to http://en.wikipedia.org/skins-1.5/common/diff.css |
Sun Creator (talk | contribs) It's not the standard, the font is different for one. |
||
Line 7: | Line 7: | ||
For reference, the default MediaWiki diff CSS file is [http://en.wikipedia.org/skins-1.5/common/diff.css diff.css]. |
For reference, the default MediaWiki diff CSS file is [http://en.wikipedia.org/skins-1.5/common/diff.css diff.css]. |
||
This is the standard/default AWB style: |
This is not the standard/default AWB style but is similar to it: |
||
<source lang="css"> |
<source lang="css"> |
||
td{ |
td{ |
||
border: 1px solid white; |
|||
} |
} |
||
table.diff, td.diff-otitle, td.diff-ntitle { |
table.diff, td.diff-otitle, td.diff-ntitle { |
||
background-color: white; |
background-color: white; |
||
border: 1px solid gray; |
|||
} |
} |
||
td.diff-addedline { |
td.diff-addedline { |
||
Line 37: | Line 37: | ||
td.diff-deletedline span.diffchange { |
td.diff-deletedline span.diffchange { |
||
background-color: #FFD754; color:black; |
|||
} |
} |
||
td.diff-addedline span.diffchange { |
td.diff-addedline span.diffchange { |
||
background-color: #73E5A1; color:black; |
|||
} |
} |
||
.d{ |
.d{ |
||
overflow: auto; |
|||
} |
} |
||
</source> |
</source> |
Revision as of 00:14, 5 September 2012
- Home
Introduction and rules - User manual
How to use AWB - Discussion
Discuss AWB, report errors, and request features - User tasks
Request or help with AWB-able tasks - Technical
Technical documentation
This is the format of the style.css file needs to be if you wish to use a custom css sheet for indicating and displaying diffs in AWB.
Create a file called "style.css" and put it in your AWB directory, you can then use the custom CSS.
For reference, the default MediaWiki diff CSS file is diff.css.
This is not the standard/default AWB style but is similar to it:
td{
border: 1px solid white;
}
table.diff, td.diff-otitle, td.diff-ntitle {
background-color: white;
border: 1px solid gray;
}
td.diff-addedline {
background: #cfc;
font-size: smaller;
}
td.diff-deletedline {
background: #ffa;
font-size: smaller;
}
td.diff-context {
background: #eee;
font-size: smaller;
}
.diffchange {
color: red;
font-weight: bold;
text-decoration: none;
}
td.diff-deletedline span.diffchange {
background-color: #FFD754; color:black;
}
td.diff-addedline span.diffchange {
background-color: #73E5A1; color:black;
}
.d{
overflow: auto;
}