MediaWiki:Common.css: Difference between revisions

From The Toaq Wiki
mNo edit summary
mNo edit summary
Line 60: Line 60:


[title]:hover::after {
[title]:hover::after {
    content: attr(title);
  content: attr(title);
    position: fixed;
  font-size: 2em;
    bottom: 0;
  position: fixed;
    left: 50%;
  bottom: 0;
    transform: translateX(-50%);
  left: 50%;
    max-width: calc(100vw - 3.5em);
  transform: translateX(-50%);
    padding: 0.75em 1.25em;
  max-width: calc(100vw - 3.5em);
    margin: 1em;
  padding: 0.75em 1.25em;
    border-radius: 5px;
  margin: 1em;
    background-color: #fff;
  border-radius: 0.5em;
    border: 0.5em solid rgba(255, 245, 245, 50%);
  background-color: #fff;
    text-align: center;
  border: 0.5em solid rgba(255, 245, 245, 50%);
  text-align: center;
}
}

Revision as of 15:53, 19 February 2022

@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@500;700&display=swap');

.toaq {
  font-family: 'Commissioner', system-ui, sans-serif;
}

@font-face {
  font-family: 'ToaqScript';
  src: url(/Special:Redirect/file/ToaqScript.ttf);
}

.toaq-script {
  font-family: ToaqScript;
  font-size: 200%;
  line-height: 100%;
  font-weight: normal !important;
}

ul {
  list-style-image: none;
}

[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 * {
  box-shadow: none !important;
  text-decoration: none !important;
}

a:link {
  color: rgb(91, 154, 170) !important;
  box-shadow: inset 0px -2px 0px 0px rgba(91, 154, 170, 25%);
  transition: background-color 0.5s;
  word-break: break-word;
}
.mw-parser-output .external {
  padding-right: 0;
  background-image: none;
}
a.external::after {
  content: '\02197';
}

a:visited, a:focus, a:active {
  color: rgb(0, 78, 93) !important;
  box-shadow: inset 0px -2px 0px 0px rgba(0, 78, 93, 25%);
}

a:link.new {
  color: rgb(200, 123, 150) !important;
  box-shadow: inset 0px -2px 0px 0px rgba(200, 123, 150, 25%);
}

[title]:hover::after {
  content: attr(title);
  font-size: 2em;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 3.5em);
  padding: 0.75em 1.25em;
  margin: 1em;
  border-radius: 0.5em;
  background-color: #fff;
  border: 0.5em solid rgba(255, 245, 245, 50%);
  text-align: center;
}