MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 45: | Line 45: | ||
height: 100%; | height: 100%; | ||
background-color: #F7F7F7; | background-color: #F7F7F7; | ||
background-color: var(--background-color-interactive); | |||
padding:0 5px 0 0; | padding:0 5px 0 0; | ||
} | } | ||
| Line 60: | Line 61: | ||
td.clickablecell3 { | td.clickablecell3 { | ||
padding: 0; | padding: 0; /* remove default padding so link fills cell */ | ||
} | } | ||
td.clickablecell3 a { | td.clickablecell3 a { | ||
display: flex; | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
align-items: center; /* vertical centering */ | |||
align-items: center; | justify-content: center; /* horizontal centering */ | ||
justify-content: center; | text-align: center; /* multi-line centering */ | ||
text-align: center; | text-decoration: none; /* optional: remove underline */ | ||
text-decoration: none; | |||
} | } | ||
Latest revision as of 13:49, 10 February 2026
/* CSS placed here will be applied to all skins */
/* restore floating behavior after 1.43 mediawiki upgrade */
.floatright {
float: right;
clear: right;
}
.floatleft {
float: left;
clear: left;
}
/* hide talk */
#ca-talk { display:none!important; }
/* using hue-rotate() function to recolor icons */
.bluetored img {
filter:hue-rotate(140deg);
}
.bluetogreen img {
filter:hue-rotate(320deg);
}
/* trying to add a bit more space between TOC and page */
#toc {
margin-top: 1.5em;
}
/* Used for Template:Tile2 */
/* originally based on https://stackoverflow.com/questions/23513965/table-cell-link-in-mediawiki-markup */
.clickablecell2 a {
display: grid;
align-items: center;
color: inherit;
width: 100%;
height: 100%;
}
.clickablecell a {
display: flex;
align-items: center;
width: 100%;
height: 100%;
background-color: #F7F7F7;
background-color: var(--background-color-interactive);
padding:0 5px 0 0;
}
.clickablecell a img {
padding:1em;
}
.clickablecell a.external.text{
background-image:none;
padding:0 5px 0 0;
}
/* Courtesy of ChatGPT */
td.clickablecell3 {
padding: 0; /* remove default padding so link fills cell */
}
td.clickablecell3 a {
display: flex;
width: 100%;
height: 100%;
align-items: center; /* vertical centering */
justify-content: center; /* horizontal centering */
text-align: center; /* multi-line centering */
text-decoration: none; /* optional: remove underline */
}