MediaWiki:Common.css: Difference between revisions

1,109 bytes removed ,  14:55, 26 September 2024
Try something halfway?
(Style mark)
(Try something halfway?)
 
(8 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;
  src: url('/Special:Redirect/file/Commissioner_Medium.off') format('woff2');
  font-display: swap;
}
 
@font-face {
  font-family: 'Commissioner';
  font-weight: 700;
  src: url('/Special:Redirect/file/Commissioner_Bold.off') format('woff2');
  font-display: swap;
}
 
/*
@font-face {
  font-family: 'Derani';
   font-weight: 400;
   font-weight: 400;
   src: url('/Special:Redirect/file/Derani.Regular.off') format('woff2');
   src: url('/Special:Redirect/file/IosevkaToaqAile-Regular.off') format('woff2');
  font-display: block;
}
*/
 
@font-face {
  font-family: 'Derani';
  font-weight: 400;
  src: url('/Special:Redirect/file/IosevkaToaq-Regular.off') format('woff2');
   font-display: block;
   font-display: block;
}
}
Line 35: Line 10:
}
}


.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 44: 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 65: 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 110: 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, [title]:focus::after {
  font-family: 'Commissioner', system-ui, sans-serif;
  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;
}
}