Jump to content

MediaWiki:Common.css: Difference between revisions

From Resco's Wiki
No edit summary
No edit summary
 
Line 44: Line 44:
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
    background-color: #F7F7F7;
     background-color: var(--background-color-interactive);
     background-color: var(--background-color-interactive);
     padding:0 5px 0 0;
     padding:0 5px 0 0;

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 */
}