MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */ /** CSS trick to fix page name**/ .mw-logo-container::before { font-weight: bold; content: "Consumer Action Taskforce"; } .mw-logo-wordmark{ display: none; } /** Hide extra footer notices **/ li#footer-info-license-notice, li#footer-info-privacy-notice{ display: none; } /** Category Page **/ .cat-but-grid{ } .cat-but-grid a{ text-decoration: none; } .cat-but{ } .cat-but:active{ border-color: var( --color-base--active, #404244 ) !important; } @media screen { html.skin-theme-clientpref-night .cat-but:active{ border: 2px solid var( --color-base--hover, #404244 ) !important; } } @media screen and (prefers-color-scheme: dark) { /* automatic mode */ html.skin-theme-clientpref-os .cat-but:active { border: 2px solid var( --color-base--hover, #404244 ) !important; } } @media (hover: hover) { .cat-but:hover{ border-color: var( --color-base--hover, #404244 ) !important; transform: scale(1.03); } html.skin-theme-clientpref-night .cat-but:hover{ border: 2px solid var( --color-base--hover, #404244 ) !important; } } @media (hover: hover) and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .cat-but:hover{ border: 2px solid var( --color-base--hover, #404244 ) !important; } } /** -------------------------------- **/ /** Templates **/ /* Notices - Coloured boxes */ .cat-mw-box{ border: 1px solid var(--border-color-base, #a2a9b1); border-radius: 0.3rem; margin-bottom:2rem; } .cat-mw-box-header{ font-size:1.5rem; line-height: 1.65rem; background:rgba(0,0,0,0.03); padding:0.2rem 1rem; } .cat-mw-box-body{ padding:0.2rem 1rem; } /* Infobox */ .infobox { color: var(--color-base, #202122); background-color: var(--background-color-interactive-subtle, #f8f9fa); border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 0.5em; width: 24em; } .infobox-title { font-size: 2em; text-align: center; border-bottom: 0.2em solid #ccc; padding-bottom: .25em; } .infobox-image{ display: flex; aspect-ratio: 2 / 1; align-items: center; justify-content: center; } /*bg color to get visible transparent images in darkmode*/ @media screen { html.skin-theme-clientpref-night .infobox-image{ background-color:#909590; } } @media screen and (prefers-color-scheme: dark) { /* automatic mode */ html.skin-theme-clientpref-os .infobox-image{ background-color:#909590; } } .infobox-table{ width:100%; table-layout:fixed; } .infobox-table td{ word-wrap:break-word; text-align: left; } .infobox-table th{ text-align: left; } .infobox-table-caption{ border-bottom: 0.1em solid #ccc; font-size:125%; } /* Loosely based on https://en.wikipedia.org/wiki/Template:Infobox */ @media (min-width: 640px) { .infobox { float: right; clear: right; } } @media (max-width: 640px) { .infobox { width: 95%; } } /** -------------------------------- **/ /** Create page **/ .createPageInput { padding: 1rem; border: 2px solid var(--border-color-base, #a2a9b1); background-color: var(--background-color-interactive-subtle, #f8f9fa); cursor: pointer; border-radius: 8px; } .pageInputActive { border-color: var(--border-color-progressive--focus, #36c); box-shadow: inset 0 0 0 1px var(--box-shadow-color-progressive--focus, #36c); background-color: var(--background-color-interactive-subtle--active, #fff); } @media screen { html.skin-theme-clientpref-night .pageInputActive { border: 2px solid var( --color-base--hover, #404244 ); background-color: #101418; } } @media screen and (prefers-color-scheme: dark) { /* automatic mode */ html.skin-theme-clientpref-os .pageInputActive { border: 2px solid var( --color-base--hover, #404244 ); background-color: #101418; } } @media (hover: hover) { .createPageInput:hover{ border: 2px solid var( --color-base--hover, #404244 ); background-color: var( --background-color-interactive-subtle--active, #fff ); } html.skin-theme-clientpref-night .createPageInput:hover{ border: 2px solid var( --color-base--hover, #404244 ); background-color: #101418; } } @media (hover: hover) and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .createPageInput:hover{ border: 2px solid var( --color-base--hover, #404244 ); background-color: #101418; } } /* Work in progress */ .create-page { position: relative; } .create-page .grid { display: grid; grid-column-gap: 16px; grid-row-gap: 16px; } .create-page .grid .incident { grid-area: 1 / 1 / 3 / 3; cursor: pointer;} .create-page .grid .company { grid-area: 1 / 3 / 2 / 4; cursor: pointer;} .create-page .grid .product-line { grid-area: 2 / 3 / 3 / 4;cursor: pointer; } .create-page .grid .theme { grid-area: 3 / 1 / 4 / 3; cursor: pointer;} .create-page .grid .product { grid-area: 3 / 3 / 4 / 4;cursor: pointer; } .create-page .hidden { display: none; } .create-page .input-wrapper { padding-top: 16px; } @media (max-width: 640px) { .create-page .grid { display: flex; flex-direction: column; gap: 8px; } .create-page .input-wrapper { position: sticky; background-color: var(--background-color-base, #fff); bottom: 0; display: flex; flex-direction: column; border-top: 1px solid var(--border-color-muted, #dadde3); margin-left: -1.5rem; margin-right: -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; margin-top: 8px; } } /* Main page, new page summary */ .mainpage-contents .mw-contributions-list li{ padding-bottom: 0.5rem; margin: 0; } .mainpage-contents a.mw-newpages-time, .mainpage-contents span.mw-newpages-length, .mainpage-contents span.comment, .mainpage-contents span.mw-usertoollinks, .mainpage-contents span.mw-tag-markers { display: none;} /** -------------------------------- **/ /* Utility classes */ /* Make an image span the full width of the page (should only be used for very narrow horizontal images) */ .cat-image-fullwidth img { max-width: 100%; height: auto; }