m (Fixed bg image for .noticebar. Also added a solid color in case of failures.)
m (limit width)
 
(21 intermediate revisions by 5 users not shown)
Line 2: Line 2:
  
 
/* Mark redirects in Special:Allpages and Special:Watchlist */
 
/* Mark redirects in Special:Allpages and Special:Watchlist */
.allpagesredirect {
+
.allpagesredirect, .watchlistredir {
  color: #888;
 
  font-style: italic;
 
}
 
.watchlistredir {
 
 
   color: #888;
 
   color: #888;
 
   font-style: italic;
 
   font-style: italic;
Line 251: Line 247:
  
 
.noticebar {
 
.noticebar {
   background: #D4DEF4 url('/w/images/Scratch_Bar.png') no-repeat left center;
+
   background: #D4DEF4 url('/w/images/Scratch_Bar.png') repeat-x left center;
 
   border: 1px solid #99B2E5;
 
   border: 1px solid #99B2E5;
 
   margin-top: 0.2em;
 
   margin-top: 0.2em;
Line 297: Line 293:
 
   -moz-border-radius: 15px;
 
   -moz-border-radius: 15px;
 
   border-radius: 15px;
 
   border-radius: 15px;
   width: 550px; /*730px for Scratch2 skin */
+
   max-width: 550px;
 
   padding: 15px;
 
   padding: 15px;
 
}
 
}
Line 308: Line 304:
 
   padding: 5px 5px 5px 20px;
 
   padding: 5px 5px 5px 20px;
 
   max-height: 550px;
 
   max-height: 550px;
 +
  overflow-y: auto;
 
}
 
}
  
Line 324: Line 321:
 
/* temp testing thing  -- JSO */
 
/* temp testing thing  -- JSO */
 
p,h1,h2,h3,h4,h5 {outline: none !important;}
 
p,h1,h2,h3,h4,h5 {outline: none !important;}
 +
 +
/* Making image frames fit in page better */
 +
.thumbinner { margin:0px; }
 +
 +
/* Fixing images in templates */
 +
img { max-width:none; }
 +
 +
/* Float [edit] link to the right */
 +
.mw-editsection { float: right; }
 +
 +
/* Unselectable text */
 +
.hide {
 +
  -webkit-touch-callout: none;
 +
  -webkit-user-select: none;
 +
  -khtml-user-select: none;
 +
  -moz-user-select: none;
 +
  -ms-user-select: none;
 +
  user-select: none;
 +
}
 +
 +
/* Fix CA request notes box to only allow vertical resizing */
 +
#wpNotes { resize: vertical; }
 +
 +
/* Allow CodeMirror pres to wrap */
 +
pre[class^=CodeMirror], pre[class*= CodeMirror] {
 +
    white-space: pre-wrap !important;
 +
}
 +
 +
/* Make inline ScratchBlocks align to the middle of the line */
 +
code[class^=blocks], code[class^=blocks] svg {
 +
    vertical-align: middle;
 +
}
 +
 +
.page-Scratch_Wiki_Style_Guide pre {
 +
    max-width: 150px;
 +
}
 +
.page-Scratch_Wiki_Style_Guide code {
 +
    white-space: nowrap;
 +
}
 +
.page-Scratch_Wiki_Style_Guide .wikiEditor-ui pre {
 +
    max-width: unset;
 +
}
 +
 +
.welcome-banner {
 +
    max-width: 100%;
 +
}
 +
 +
.welcome-banner > img {
 +
    max-width: inherit;
 +
    height: auto;
 +
}

Latest revision as of 10:09, 16 July 2019

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

/* Mark redirects in Special:Allpages and Special:Watchlist */
.allpagesredirect, .watchlistredir {
   color: #888;
   font-style: italic;
}

/* Giving TOC a little extra space */
.toc {
   margin-top: 20px;
}

/* Infobox template style */
.infobox {
   border: 1px solid #aaaaaa;
   background-color: #f9f9f9;
   color: black;
   margin-bottom: 0.5em;
   margin-left: 1em;
   padding: 0.2em;
   float: right;
   clear: right;
}
.infobox td,
.infobox th {
   vertical-align: top;
}
.infobox caption {
   font-size: larger;
   margin-left: inherit;
}
.infobox.bordered {
   border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
   border: 1px solid #aaaaaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
   border: 0;
}

/* default skin for navigation boxes */
table.navbox {
    background-color: #f9f9f9;
    border: 1px solid #aaa;
    clear: both;
    font-size: 90%;
    margin: 1em 0em 0em;
    padding: 2px;
    text-align: center;
    width: 100%;
}

table.navbox th {
    background-color: #ccf;
    padding-left: 1em;
    padding-right: 1em;
}

table.navbox tr:not(:first-child) th {
    background-color: #ddf;
}

@media print {
    .navbox {
        display: none;
    }
}

/* default skin for message templates */
table.message-template {
    margin: 5px;
    padding: 5px;
    -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px;
    border: 1px solid #A3BAE8;
    background-color:#C7D5F0;
}

/* Wikitable (Prettytable) class for skinning normal tables */
table.wikitable, table.prettytable {
	margin: 1em 1em 1em 0;
	background: #f9f9f9;
	border: 1px #aaaaaa solid;
	border-collapse: collapse;
	empty-cells: show;
}
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
	border: 1px #aaaaaa solid;
	padding: 0.2em 0.4em;
}
table.wikitable th, table.wikitable td.hl3, table.wikitable th.hl3,
table.prettytable th, table.prettytable td.hl3, table.wikitable th.hl3 {
	background: #8da7d6;
	text-align: center;
}
table.wikitable td.hl1, table.wikitable th.hl1,
table.prettytable td.hl1, table.wikitable th.hl1 {
	background: #c5d8fc;
	text-align: center;
}
table.wikitable td.hl2, table.wikitable th.hl2,
table.prettytable td.hl2, table.wikitable th.hl2 {
	background: #a7c1f2;
	text-align: center;
}
table.wikitable caption, table.prettytable caption {
	margin-left: inherit;
	margin-right: inherit;
	font-weight: bold;
}

/* Standard Navigationsleisten, aka box hiding thingy from .de.  Documentation at [[wikipedia:Wikipedia:NavFrame]]. */

div.Boxmerge, div.NavFrame {
        margin: 0px;
        padding: 4px;
        border: 1px solid #aaa;
        text-align: center;
        border-collapse: collapse;
        font-size: 95%;
}
div.Boxmerge div.NavFrame {
        border-style: none;
        border-style: hidden;
}
div.NavFrame + div.NavFrame {
        border-top-style: none;
        border-top-style: hidden;
}
div.NavPic {
        background-color: #fff;
        margin: 0px;
        padding: 2px;
        float: left;
}
div.NavFrame div.NavHead {
        height: 1.6em;
        font-weight: bold;
        background-color: #ccccff;
        position:relative;
}
div.NavFrame p {
        font-size: 100%;
}
div.NavFrame div.NavContent {
        font-size: 100%;
}
div.NavFrame div.NavContent p {
        font-size: 100%;
}
div.NavEnd {
        margin: 0px;
        padding: 0px;
        line-height: 1px;
        clear: both;
}
a.NavToggle {
        position:absolute;
        top:0px;
        right:3px;
        font-weight:normal;
        font-size:smaller;
}

/* [[Template:Navbox]] and wide variant */
 
/* Default skin for navigation boxes. */
table.navbox {              /* Navbox style */
    border: 1px solid #aaa;
    color: black;
    width: 100%; 
    margin: auto;
    clear: both;
    font-size: 90%;
    text-align: left;
    padding: 1px;
}
table.navbox + table.navbox {
    margin-top:-1px;        /* single pixel border between adjacent navboxes */
}
.navbox, .navbox-subgroup {
    background: #f9f9f9;    /* Background color */
}
.navbox-title {             /* Title style */
    background: #ccccff;    /* Level 1 color */
    font-size:110%;
    text-align: center;      
    padding-left: 1em;
    padding-right: 1em;
    border:2px solid white;
}
.navbox-group {             /* Group style */
    background: #ddddff;    /* Level 2 color */
    font-weight: bold;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    border-left:2px solid white;
    border-bottom:2px solid white;
}
.navbox .navbox-group a {
    white-space: normal;
}
.navbox-list {
    border-color: #f9f9f9;  /* Must match background color */
    padding-left: 7px;
    padding-right: 7px;
    padding-bottom: 5px;
}
.navbox-subgroup .navbox-title {
    background: #ddddff;    /* Level 2 color */
}
.navbox-subgroup .navbox-group {
    background: #e6e6ff;    /* Level 3 color */
    padding-bottom: 5px;
}
.navbox-subgroup .navbox-group a {
    white-space: normal;
}
.navbox-subgroup .navbox-list {
    background: transparent !important; 
}

/* Poll auto-formatting */

.ajax-poll {
    width:auto !important;  /* Inline style override for Poll extension*/
    border: 1px solid #aaa !important;  /* Replaces dashed with solid grey */
}

/* Gives the "Fade to transparent" effect in table cells and DIV */
/* Used in conjunction with "background-color:<color>" */

.gradient, .gradient-horizontal { 
    background-image: url(http://images1.wikia.nocookie.net/runescape/images/1/14/Gradient-1pixel-horizontal.png); 
}
 
.gradient-vertical {
    background-image: url(http://images3.wikia.nocookie.net/runescape/images/b/b4/Gradient-1pixel-vertical.png);
}

/* Used to created the section bars on the Front Page */

.noticebar {
  background: #D4DEF4 url('/w/images/Scratch_Bar.png') repeat-x left center;
  border: 1px solid #99B2E5;
  margin-top: 0.2em;
  padding: 0.2em;
  text-align: center;
}

/* Adds the tagline */

#siteSub {
   display:inline;
   font-size:92%;
   font-weight:normal;
}

/* When PRE tags overflow, display the overflow automatically */
pre {
   overflow: auto;
}

/* Colors nonexistent links in the the page function bar red, like nonexistent links in regular content */
#scratchpagefunctions span.new a {
   color: #ba0000 !important;
}

#scratchpagefunctions span.new a:visited {
   color: #a55858 !important;
}

/* Bolds the selected item in the page function bar */
#scratchpagefunctions span.selected {
   font-weight: bold !important;
}

/* Fixes noarticletext border and padding */

div.noarticletext {
   border: none;
   padding: 0px;
}

div.faqshortanswer {
   background-color: #DDDDDD;
   -webkit-border-radius: 15px;
   -moz-border-radius: 15px;
   border-radius: 15px;
   max-width: 550px;
   padding: 15px;
}

/* ScratchBlocksPlugin */
pre.blocks {
   border: none;
   background: none;
   margin: 0;
   padding: 5px 5px 5px 20px;
   max-height: 550px;
   overflow-y: auto;
}

/* Make the list of references look smaller and highlight clicked reference in blue */
ol.references { font-size: 80%; }
.references-small { font-size: 70%;}
ol.references > li:target { background-color: #ddeeff; }
sup.reference:target { background-color: #ddeeff; }
/* Fix references displaying block */
div.anch {display: inline;}

/* In Recent Changes and others like it, display + and - in green and red, respectively */
.mw-plusminus-pos {color: darkGreen;}
.mw-plusminus-neg {color: darkRed;}

/* temp testing thing  -- JSO */
p,h1,h2,h3,h4,h5 {outline: none !important;}

/* Making image frames fit in page better */
.thumbinner { margin:0px; }

/* Fixing images in templates */
img { max-width:none; }

/* Float [edit] link to the right */
.mw-editsection { float: right; }

/* Unselectable text */
.hide {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Fix CA request notes box to only allow vertical resizing */
#wpNotes { resize: vertical; }

/* Allow CodeMirror pres to wrap */
pre[class^=CodeMirror], pre[class*= CodeMirror] {
    white-space: pre-wrap !important;
}

/* Make inline ScratchBlocks align to the middle of the line */
code[class^=blocks], code[class^=blocks] svg {
    vertical-align: middle;
}

.page-Scratch_Wiki_Style_Guide pre {
    max-width: 150px;
}
.page-Scratch_Wiki_Style_Guide code {
    white-space: nowrap;
}
.page-Scratch_Wiki_Style_Guide .wikiEditor-ui pre {
    max-width: unset;
}

.welcome-banner {
    max-width: 100%;
}

.welcome-banner > img {
    max-width: inherit;
    height: auto;
}