MediaWiki:Common.css: Difference between revisions

131 bytes removed ,  14:55, 26 September 2024
Try something halfway?
mNo edit summary
(Try something halfway?)
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@400&display=swap');
@font-face {
@font-face {
   font-family: 'Commissioner';
   font-family: 'Iosevka Toaq Aile';
   font-weight: 500;
   font-weight: 400;
   src: url('/Special:Redirect/file/Commissioner_Medium.off') format('woff2');
   src: url('/Special:Redirect/file/IosevkaToaqAile-Regular.off') format('woff2');
  font-display: swap;
   font-display: block;
}
 
@font-face {
  font-family: 'Commissioner';
  font-weight: 700;
  src: url('/Special:Redirect/file/Commissioner_Bold.off') format('woff2');
   font-display: swap;
}
}


@font-face {
html,body {
   font-family: 'Derani';
   font-family: "Segoe UI", sans-serif;
  src: url('/Special:Redirect/file/Derani.off') format('woff2');
  font-display: block;
}
}


.derani {
.toaq {
   font-family: 'Derani';
   /* Iosevka has a tall x-height; it comes out looking larger than other fonts
   line-height: normal;
   on the wiki */
  font-size: 0.96em;
}
}


Line 30: Line 20:
}
}


.toaq, .derani ruby rt {
.toaq, .derani {
   font-family: 'Commissioner', system-ui, sans-serif;
   font-family: 'Iosevka Toaq Aile', system-ui, sans-serif;
  font-weight: 500;
}
}


Line 51: Line 40:
}
}


[title], a:link, abbr, abbr[title] {
  text-decoration: none;
}
[title]:not(a:link), abbr {
  box-shadow: inset 0px -2px 0px 0px rgba(0, 0, 0, 25%);
}
img[title] {
  box-shadow: none;
}
.no-decoration, .no-decoration * {
.no-decoration, .no-decoration * {
   box-shadow: none !important;
   box-shadow: none !important;
Line 67: Line 47:
a:link {
a:link {
   color: rgb(91, 154, 170) !important;
   color: rgb(91, 154, 170) !important;
  transition: background-color 0.5s;
  word-break: break-word;
}
.mw-content-container a:link {
   text-decoration: underline rgba(91,154,170,25%);
   text-decoration: underline rgba(91,154,170,25%);
   text-decoration-thickness: 2px;
   text-decoration-thickness: 2px;
   text-underline-offset: 2px;
   text-underline-offset: 2px;
  transition: background-color 0.5s;
  word-break: break-word;
}
}
.mw-parser-output .external {
 
.mw-parser-output .external, .plainlinks a.external {
   padding-right: 0 !important;
   padding-right: 0 !important;
   background-image: none !important;
   background-image: none !important;
Line 79: Line 63:
a.external::after {
a.external::after {
   content: '\02197';
   content: '\02197';
}
.plainlinks a.external::after {
  content: none;
}
}


Line 89: Line 76:
   color: rgb(200, 123, 150) !important;
   color: rgb(200, 123, 150) !important;
   text-decoration-color: rgba(200,123,150,25%);
   text-decoration-color: rgba(200,123,150,25%);
}
[title]:hover::after {
  content: attr(title);
  font-size: 1.25em;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 2.5em);
  padding: 0.75em 1.25em;
  margin: 1em;
  border-radius: 0.5em;
  background-color: #fff;
  text-align: center;
  text-transform: none;
}
}


Line 161: Line 132:
.float-right > :last-child  { margin-bottom: 0; }
.float-right > :last-child  { margin-bottom: 0; }


i > i         { font-style: normal; }
i > i, i > em, em > i, em > em { font-style: normal; }
i > i > i     { font-style: italic; }
i > i > i { font-style: italic; }
i > i > i > i { font-style: normal; }
i > i > i > i { font-style: normal; }


Line 207: Line 178:
max-height: 100%;
max-height: 100%;
}
}
.figure {
background: #00000010;
border: 1px solid #00000020;
padding: 4px;
}
@media screen and (min-width: 750px) {
.figure { float: right; }
}
.scope-diagram {
display: inline-block;
border: 1px dashed var(--reoge, red);
margin: 2px;
padding: 4px;
background: white;
}
.scope-diagram b, .scope-diagram i, .scope-diagram small {
font-style: normal;
color: var(--reoge, red);
}
span.twemoji > img { height: 1.3em; }
span.twemoji[title] { box-shadow: none; }
mark { background-color: #00ccff40; padding: 0 1px; }