User:Sandungas/vector.css: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (It works, but the h1 (page title) seems to have a different name)
m (The "clear" happens before the heading, the h1 headng (page title) doesnt needs it)
Line 1: Line 1:
/* Prevent floating boxes from overlapping page headings */
/* Prevent floating boxes from overlapping page headings */
.mw-body h1,
.mw-body-content h2, h3, h4, h5, h6 {
.mw-body-content h2, h3, h4, h5, h6 {
     clear: both; /* default not used */
     clear: both; /* default not used */
Line 10: Line 9:
pre {
pre {
     padding: 0em; /* default 1em. In some tests the value 1.2em was working fine to prevent the width disalignmentes caused by the presence/absence of the vertical scrollbar */
     padding: 0em; /* default 1em. In some tests the value 1.2em was working fine to prevent the width disalignmentes caused by the presence/absence of the vertical scrollbar */
    margin: 0px; /* default undefined in this wiki. Seems to depend of webbrowser, around 12px top and bottom in firefox */
     height: inherit; /* experiment with the scrollbars merged controls */
     height: inherit; /* experiment with the scrollbars merged controls */
     tab-width: 4; /* default TAB characters takes the width of 8 spaces */
     tab-width: 4; /* default TAB characters takes the width of 8 spaces */

Revision as of 16:45, 16 September 2021

/* Prevent floating boxes from overlapping page headings */
.mw-body-content h2, h3, h4, h5, h6 {
    clear: both; /* default not used */
}


/* Experiments with the <pre> tag temporally disabled because i need to revert my wiki profile to the "common" settings to continue experimenting other stuffings

pre {
    padding: 0em; /* default 1em. In some tests the value 1.2em was working fine to prevent the width disalignmentes caused by the presence/absence of the vertical scrollbar */
    height: inherit; /* experiment with the scrollbars merged controls */
    tab-width: 4; /* default TAB characters takes the width of 8 spaces */
}

*/



/* This experiment works, but the result is a bit weird when applyed to a whole table IF the table contains plain texts

/* Removes padding inside table data cells */
table.wikitable > tr > th, table.wikitable > tr > td,
table.wikitable > * > tr > th, table.wikitable > * > tr > td {
    padding: 0em; /* default 0.2em 0.4em */
}

*/