Difference between revisions of "MediaWiki:Common.css"

From Legends of Hyrule
Jump to navigationJump to search
(Undo revision 835 by Guy (talk))
Tag: Undo
Line 98: Line 98:
 
== hide tools/toolbox in sidebar ==
 
== hide tools/toolbox in sidebar ==
 
#p-tb { display: none; }
 
#p-tb { display: none; }
 
 
== 5e table ==
 
/ * https://www.dandwiki.com/wiki/MediaWiki:Common.css */
 
 
{| class="5e"
 
|+
 
=====Table: Sample 5e Table=====
 
! Blah || Dee || Blah
 
|- class="{{Odd-Even|{{#var:odd}}}}"
 
| Yackety || Schmackety || Wheeeeeeeeeee
 
|- class="{{Odd-Even|{{#var:odd}}}}"
 
| Lovely || Spam || Wonderful
 
|- class="{{Odd-Even|{{#var:odd}}}}"
 
| colspan="3" class="foot" |
 
# some footnote.
 
|}
 
 
<pre> */
 
 
table.minimize \000035e
 
{
 
  white-space: normal;
 
}
 
 
table.\000035e
 
{
 
  margin: 0 0 1em;
 
  text-align: center;
 
  border-collapse: collapse;
 
}
 
 
table.\000035e th, table.\000035e td
 
{
 
  border-left-width: 0em;
 
  border-right-width: 0em;
 
  border-top-width: 0em;
 
  border-bottom-width: 0em;
 
  border-style: solid;
 
  padding-top: 0.175em;
 
  padding-bottom: 0.175em;
 
  padding-left: 0.5em;
 
  padding-right: 0.5em;
 
}
 
 
table.\000035e th
 
{
 
  vertical-align: bottom;
 
}
 
 
table.\000035e td
 
{
 
  vertical-align: top;
 
}
 
 
table.\000035e caption
 
{
 
  margin: 0 0 -0.1em;
 
  text-align: left;
 
  font-weight: bold;
 
  padding-top: 0.18em;
 
  padding-bottom: 0.5em;
 
}
 
 
table.minimize td.\000035e footer
 
{
 
  white-space: normal;
 
}
 
 
table.\000035e footer
 
{
 
  text-align: left;
 
}
 
 
table.\000035e tr.odd
 
{
 
  background: #e0e4c0;
 
}
 
 
table.\000035e th, table.\000035e td {
 
  border-color: #fdf9d3;
 
}
 
 
table.\000035e tr.
 
{
 
  border-color: #d8c3b2;
 
}
 
 
table.\000035e td.notes
 
{
 
  text-align: left;
 
  border: none;
 
}
 
 
/* </pre>
 

Revision as of 09:09, 7 July 2019

/* CSS placed here will be applied to all skins */

== External image resizing ==

*/

.externalimage-holder {
    position: relative;
}
.externalimage-holder img {
    width: 100%;
    height: auto;
}

/*


== Fonts families ==

/* <pre> */
@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,400i,700,700i|PT+Serif:400,400i,700,700i&display=swap');


@font-face {
    font-family: 'triforce';
    font-style: normal;
    font-weight: normal;
    src: url('http://hyrulecastle.org/5e/fonts/triforce.ttf') format('truetype');
}

@font-face {
    font-family: 'mreaves';
    font-style: normal;
    font-weight: normal;
    src: url('http://hyrulecastle.org/mreavessmallcaps.otf') format('opentype'),
         url('http://hyrulecastle.org/5e/fonts/mreavessmallcaps.otf') format('opentype');
}

@font-face {
    font-family: 'bookinsanity';
    font-style: normal;
    font-weight: normal;
    src: url('http://hyrulecastle.org/5e/fonts/Bookinsanity.otf') format('opentype');
}

@font-face {
    font-family: 'scalysans';
    font-style: normal;
    font-weight: normal;
    src: url('http://hyrulecastle.org/5e/fonts/scalysans.otf') format('opentype'),
         url('http://hyrulecastle.org/5e/fonts/Scaly%20Sans.otf') format('opentype');
}

@font-face {
    font-family: 'scalysanscaps';
    font-style: normal;
    font-weight: normal;
    src: url('http://hyrulecastle.org/5e/fonts/scalysanscaps.otf') format('opentype'),
         url('http://hyrulecastle.org/5e/fonts/Scaly%20Sans%20Caps.otf') format('opentype');
}

@font-face {
    font-family: 'nodestocaps';
    font-style: normal;
    font-weight: normal;
    src: url('http://hyrulecastle.org/5e/fonts/nodestocapscondensed.otf') format('opentype');
}

@font-face {
    font-family: 'solbera';
    font-style: normal;
    font-weight: normal;
    src: url('http://hyrulecastle.org/5e/fonts/solberaimitation.otf.otf') format('opentype');
}

@font-face {
    font-family: 'zatanna';
    font-style: normal;
    font-weight: normal;
    src: url('http://hyrulecastle.org/5e/fonts/zatannamisdirection.otf') format('opentype');
}


== header fonts ==

#firstHeading{font-size: 32px; font-family: "mreaves"; }
#content h1 {font-size: 32px; font-family: "mreaves"; !important; }
#content h2 {font-size: 24px; font-family: "mreaves"; }
#content h3 {font-family: "scalysanscaps"; }
#content h4 {font-family: "scalysanscaps"; }


== hide main page header ==

body.mainpage.action-view h1.firstHeading, body.mainpage.action-submit h1.firstHeading { display: none; }


== hide tools/toolbox in sidebar ==
#p-tb { display: none; }