MediaWiki:Common.css: Difference between revisions

From Tuyin Archives
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Load Custom Fonts */
/* Load Custom Fonts */
@font-face {
@font-face { font-family: 'Dwarven'; src: url('/wiki/fonts/Dwarven.ttf') format('truetype'); }
  font-family: 'Dwarven';
@font-face { font-family: 'Orcian'; src: url('/wiki/fonts/Orcian.ttf') format('truetype'); }
  src: url('/wiki/fonts/Dwarven.ttf') format('truetype');
@font-face { font-family: 'Elvic'; src: url('/wiki/fonts/Elvic.ttf') format('truetype'); }
}
@font-face { font-family: 'Ratik'; src: url('/wiki/fonts/Ratik.ttf') format('truetype'); }
@font-face {
@font-face { font-family: 'Trogian'; src: url('/wiki/fonts/Trogian.ttf') format('truetype'); }
  font-family: 'Orcian';
@font-face { font-family: 'Snekian'; src: url('/wiki/fonts/Snekian.ttf') format('truetype'); }
  src: url('/wiki/fonts/Orcian.ttf') format('truetype');
}
@font-face {
  font-family: 'Elvic';
  src: url('/wiki/fonts/Elvic.ttf') format('truetype');
}
@font-face {
  font-family: 'Ratik';
  src: url('/wiki/fonts/Ratik.ttf') format('truetype');
}
@font-face {
  font-family: 'Trogian';
  src: url('/wiki/fonts/Trogian.ttf') format('truetype');
}
@font-face {
  font-family: 'Snekian';
  src: url('/wiki/fonts/Snekian.ttf') format('truetype');
}


.dwarven { font-family: 'Dwarven'; }
.dwarven { font-family: 'Dwarven'; }
Line 47: Line 29:
.snekian-script td.script { font-family: 'Snekian'; }
.snekian-script td.script { font-family: 'Snekian'; }


/* Category links and top tools on same line */
/* Hide unused headers */
#mw-page-header-links #p-namespaces,
#mw-page-header-links #p-namespaces,
#mw-page-header-links #p-more,
#mw-page-header-links #p-more,
Line 56: Line 38:
}
}


/* Wrapper for categories + tools + edit buttons */
#mw-top-tools-wrapper {
#mw-top-tools-wrapper {
   display: flex;
   display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
   align-items: center;
   align-items: center;
  justify-content: flex-start;
   gap: 0.5em;
  flex-wrap: wrap;
   gap: 1em;
   margin: 0.5em 0;
   margin: 0.5em 0;
}
}


#catlinks {
#catlinks {
   margin: 0;
   display: block;
   padding: 0;
   white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
}
#catlinks ul {
#catlinks ul {
   display: flex;
   display: flex;
   flex-wrap: wrap;
   flex-wrap: wrap;
  gap: 10px;
   padding: 0;
   padding: 0;
   margin: 0;
   margin: 0;
   list-style: none;
   list-style-type: none;
}
}
#catlinks li {
#catlinks li {
   display: inline;
   margin: 0 0.5em 0 0;
  padding: 0;
  list-style: none;
}
}


/* Tool buttons */
/* Top tool buttons */
#mw-top-tools {
#mw-top-tools {
   margin: 0;
   margin: 0;
Line 108: Line 97:
}
}


/* Edit buttons */
#mw-edit-buttons {
#mw-edit-buttons {
   display: flex;
   display: flex;
   gap: 0.5em;
   gap: 0.5em;
}
}
#mw-edit-buttons a {
#mw-edit-buttons a {
   text-decoration: none;
   text-decoration: none;
Line 122: Line 111:
   font-size: 0.95em;
   font-size: 0.95em;
}
}
#mw-edit-buttons a:hover {
#mw-edit-buttons a:hover {
   background-color: #e0d4c2;
   background-color: #e0d4c2;
}
}

Latest revision as of 12:34, 7 August 2025

/* Load Custom Fonts */
@font-face { font-family: 'Dwarven'; src: url('/wiki/fonts/Dwarven.ttf') format('truetype'); }
@font-face { font-family: 'Orcian'; src: url('/wiki/fonts/Orcian.ttf') format('truetype'); }
@font-face { font-family: 'Elvic'; src: url('/wiki/fonts/Elvic.ttf') format('truetype'); }
@font-face { font-family: 'Ratik'; src: url('/wiki/fonts/Ratik.ttf') format('truetype'); }
@font-face { font-family: 'Trogian'; src: url('/wiki/fonts/Trogian.ttf') format('truetype'); }
@font-face { font-family: 'Snekian'; src: url('/wiki/fonts/Snekian.ttf') format('truetype'); }

.dwarven { font-family: 'Dwarven'; }
.orcian  { font-family: 'Orcian'; }
.elvic   { font-family: 'Elvic'; }
.ratik   { font-family: 'Ratik'; }
.trogian { font-family: 'Trogian'; }
.snekian { font-family: 'Snekian'; }

.dwarven-script td.script,
.orcian-script td.script,
.elvic-script td.script,
.ratik-script td.script,
.trogian-script td.script,
.snekian-script td.script {
  font-size: 150%;
}
.dwarven-script td.script { font-family: 'Dwarven'; }
.orcian-script td.script  { font-family: 'Orcian'; }
.elvic-script td.script   { font-family: 'Elvic'; }
.ratik-script td.script   { font-family: 'Ratik'; }
.trogian-script td.script { font-family: 'Trogian'; }
.snekian-script td.script { font-family: 'Snekian'; }

/* Hide unused headers */
#mw-page-header-links #p-namespaces,
#mw-page-header-links #p-more,
#mw-page-header-links #p-pagemisc,
#p-pagemisc,
#p-more {
  display: none !important;
}

/* Wrapper for categories + tools + edit buttons */
#mw-top-tools-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em;
  margin: 0.5em 0;
}

#catlinks {
  display: block;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}


#catlinks ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

#catlinks li {
  margin: 0 0.5em 0 0;
  padding: 0;
  list-style: none;
}

/* Top tool buttons */
#mw-top-tools {
  margin: 0;
  padding: 0;
}
#mw-top-tools ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#mw-top-tools li {
  display: inline-block;
  margin: 0 0.2em;
}
#mw-top-tools a {
  text-decoration: none;
  color: #8b4e2f;
  background-color: #f5f0e8;
  border: 1px solid #d6c5ac;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.95em;
}
#mw-top-tools a:hover {
  background-color: #e0d4c2;
}

/* Edit buttons */
#mw-edit-buttons {
  display: flex;
  gap: 0.5em;
}
#mw-edit-buttons a {
  text-decoration: none;
  color: #8b4e2f;
  background-color: #f5f0e8;
  border: 1px solid #d6c5ac;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.95em;
}
#mw-edit-buttons a:hover {
  background-color: #e0d4c2;
}