Jump to content

User:Sebastian Berlin (WMSE)/global.css

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Sebastian Berlin (WMSE) (talk | contribs) at 13:52, 1 July 2024. It may differ significantly from the current version.

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.
/* Underline links, as they should be */
#mw-content-text a:not(.oo-ui-buttonElement-button) {
  text-decoration: underline;
}

/* Make this header a bit more prominent */
.mw-body-content h2 {
	font-weight: bold;
	font-family: revert;
}

/* This is for the Subpages script */
.subpages-controls {
  font: inherit;
  font-size: inherit;
  background-color: inherit;
  border-color: inherit;
  border-width: 1px;
  border-style: solid;
}

/* This is for the Lastmod script */
#header-info-lastmod {
  color: #888;
  font-size: small;
  font-style: italic;
}

/* Add some nice pictures to links in the tool bar */
@font-face {
  font-family: "FontAwesome";
  src: url(https://tools-static.wmflabs.org/cdnjs/ajax/libs/font-awesome/5.11.2/webfonts/fa-solid-900.ttf) format("truetype");
}

.vector-unpinned-container li a::before,
.vector-pinned-container li a::before {
	font: normal normal normal 14px/1 FontAwesome;
	margin-left: -1.5em;
	width: 1.5em;
	display: inline-block;
	text-align: center;
}

#n-mainpage-description a::before {
	content: "\f015";
}

#n-currentevents a::before {
	content: "\f015";
}

#n-currentevents a::before {
	content: "\f1ea";
}

#n-translations a::before {
	content: "\f1ab";
}

#n-recentchanges a::before {
	content: "\f1da";
}

#n-randompage a::before {
	content: "\f074";
}

#n-help a::before {
	content: "\f128";
}

#t-log a::before {
	content: "\f15c";
}

#t-specialpages a::before {
	content: "\f0d0";
}

#t-info a::before {
	content: "\f129";
}

#t-whatlinkshere a::before {
	content: "\f0c1";
}

#t-permalink a::before {
	content: "\f13d";
}

#t-contributions a::before {
	content: "\f234";
}

#t-userrights a::before {
	content: "\f0c0";
}

#t-purge a::before {
	content: "\f06d";
}

#n-uploadbtn a::before {
	content: "\f093";
}

#ca-move a::before {
	content: "\f0ec";
}

/* Make Line numbers a bit nicer */

/*.ve-init-mw-desktopArticleTarget .CodeMirror-linenumber {
    color: #31527b;
}

.CodeMirror-gutter.CodeMirror-linenumbers {
    background: #eaeff7;
}*/

/* Selected TOC item */
.sidebar-toc .sidebar-toc-list-item-active > .sidebar-toc-link {
	font-weight: inherit;
	width: inherit;
	background: #36c2;
	border-left: solid 3px #36c;
	margin-left: -6px;
	padding-left: 3px;
}

/* Search highlighting */
.cdx-search-result-title {
	font-weight: inherit;
	color: #888;
}

.cdx-search-result-title__match {
  text-decoration: underline;
  color: initial;
}

.cdx-menu-item__text__description {
  font-style: italic;
}

/* Thicker underlines for tabs */
.vector-menu-tabs .mw-list-item.selected a,
.vector-menu-tabs .mw-list-item.selected a:visited,
.vector-menu-tabs .mw-list-item.vector-tab-noicon a:focus,
.vector-menu-tabs .mw-list-item.vector-tab-noicon a:hover {
  border-bottom-width: 2px;
}

/* Show left hand menu in narrower windows. */
@media screen and (min-width: 1000px) {
	.vector-column-start, .vector-column-end {
		margin-top: 2.8rem;
		border-top: 1px solid transparent;
	}
}

@media screen and (min-width: 1000px) {
  .vector-column-start, .vector-column-end {
    margin-top: 2.8rem;
    border-top: 1px solid transparent;
  }
}
@media screen and (min-width: 1000px) {
  .vector-column-start {
    grid-area: columnStart;
    overflow-anchor: none;
  }
}

@media screen and (min-width: 1000px) {
  .vector-sitenotice-container {
    grid-area: siteNotice;
  }
}

@media screen and (min-width: 1000px) {
  .mw-page-container-inner {
    display: grid;
    column-gap: 24px;
    grid-template: min-content 1fr min-content / 12.25rem minmax(0,1fr);
    grid-template-areas: none;
    grid-template-areas:
'siteNotice  siteNotice ' 
'columnStart pageContent' 
'footer      footer     ';
  }
}