MediaWiki:Gadget-ms-Navbox.css: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
(Making this look more consistent, so navbox subchildren get the white line in either case (whether you have the list and then the subchild, or the "outside" list inside the subchild).) |
(Hopefully this will give us the old blue look; if it's not properly working, I'll just revert my edit) Tag: Reverted |
||
Line 12: | Line 12: | ||
from the English Wikipedia. | from the English Wikipedia. | ||
================== */ | ================== */ | ||
/* ++++++++++++++++ | /* ++++++++++++++++ | ||
Line 60: | Line 48: | ||
} | } | ||
div.NavPic { | div.NavPic { | ||
background-color: #D5D4f0; | |||
margin: 0px; | margin: 0px; | ||
padding: 5px; | padding: 5px; | ||
float: left; | float: left; | ||
} | } | ||
div.NavFrame div.NavHead { | div.NavFrame div.NavHead { | ||
Line 113: | Line 103: | ||
text-align: right; | text-align: right; | ||
width: auto; | width: auto; | ||
} | } | ||
/* +++++++++++++++ | /* +++++++++++++++ | ||
DEFAULT SKIN | |||
FOR NAVBOXES | |||
FOR | +++++++++++++++ | ||
=-=-=-=-=-=-=-= | =-=-=-=-=-=-=-= | ||
Line 133: | Line 115: | ||
table.navbox { | table.navbox { | ||
border: | border:none; | ||
-moz-box-shadow: inset | -webkit-border-radius: 10px 0px 0px 10px; | ||
-webkit-box-shadow: inset | -moz-border-radius: 10px 0px 0px 10px; | ||
-ms-box-shadow: inset | -ms-border-radius: 10px 0px 0px 10px; | ||
-o-box-shadow: inset | -o-border-radius: 10px 0px 0px 10px; | ||
box-shadow: inset | border-radius: 10px 0px 0px 10px; | ||
-moz-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-webkit-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
color:# | -ms-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | ||
-o-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
background-color:transparent; | |||
color:#1F1E38; | |||
padding:5px; | padding:5px; | ||
font-family: | font-family: 'Lucida Grande', 'Trebuchet MS', 'Gill Sans', Verdana, 'URW Gothic L','Nimbus Sans L',sans-serif; | ||
text-align:left; | text-align:left; | ||
line-height:120%; | line-height:120%; | ||
Line 149: | Line 135: | ||
margin-left:auto; | margin-left:auto; | ||
width:97%; | width:97%; | ||
} | } | ||
/* =-=-=-=-=-=-=-= | /* =-=-=-=-=-=-=-= | ||
Line 179: | Line 154: | ||
.navbox-abovebelow, | .navbox-abovebelow, | ||
table.navbox th { | table.navbox th { | ||
/* | |||
-webkit-border-radius: 10px 0px 0px 10px; | |||
-moz-border-radius: 10px 0px 0px 10px; | |||
-ms-border-radius: 10px 0px 0px 10px; | |||
-o-border-radius: 10px 0px 0px 10px; | |||
border-radius: 10px 0px 0px 10px; | |||
-moz-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-webkit-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-ms-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-o-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
box-shadow: inset -0px 0px 25px #D5D4F0 4px; | |||
*/ | |||
text-align:center; | text-align:center; | ||
color:#012c57; | color:#012c57; | ||
font-family: | font-family: 'Lucida Grande', 'Trebuchet MS', 'Gill Sans', Verdana, 'URW Gothic L','Nimbus Sans L',sans-serif; | ||
padding:3px; | padding:3px; | ||
font-weight:normal; | font-weight:normal; | ||
Line 189: | Line 176: | ||
padding-left:1em; | padding-left:1em; | ||
padding-right:1em; | padding-right:1em; | ||
} | } | ||
Line 225: | Line 195: | ||
} | } | ||
.navbox-list { | .navbox-list { | ||
border-left:2px solid #fdfdfd; | border-left:2px solid #fdfdfd; | ||
} | } | ||
.navbox-title, | .navbox-title, | ||
table.navbox th { | table.navbox th { | ||
color:# | -webkit-border-radius: 10px 0px 0px 10px; | ||
-moz-border-radius: 10px 0px 0px 10px; | |||
-ms-border-radius: 10px 0px 0px 10px; | |||
-o-border-radius: 10px 0px 0px 10px; | |||
border-radius: 10px 0px 0px 10px; | |||
-moz-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-webkit-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-ms-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-o-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
box-shadow: inset -0px 0px 25px 4px #DFD4F0; | |||
color:#1F1E38; | |||
padding:5px; | padding:5px; | ||
font-family: | font-family: 'Lucida Grande', 'Trebuchet MS', 'Gill Sans', Verdana, 'URW Gothic L','Nimbus Sans L',sans-serif; | ||
text-align:left; | text-align:left; | ||
line-height:120%; | line-height:120%; | ||
Line 263: | Line 227: | ||
} | } | ||
.navbox-subgroup .navbox-title { | |||
-webkit-border-radius: 10px 0px 0px 10px; | |||
-moz-border-radius: 10px 0px 0px 10px; | |||
-ms-border-radius: 10px 0px 0px 10px; | |||
-o-border-radius: 10px 0px 0px 10px; | |||
color:# | border-radius: 10px 0px 0px 10px; | ||
-moz-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-webkit-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-ms-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
-o-box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
box-shadow: inset -0px 0px 25px 4px #D5D4F0; | |||
color:#1F1E38; | |||
padding:5px; | padding:5px; | ||
font-family: | font-family: 'Lucida Grande', 'Trebuchet MS', 'Gill Sans', Verdana, 'URW Gothic L','Nimbus Sans L',sans-serif; | ||
text-align:left; | text-align:left; | ||
line-height:120%; | line-height:120%; | ||
Line 276: | Line 246: | ||
margin-right:auto; | margin-right:auto; | ||
margin-top:5px; | margin-top:5px; | ||
} | } | ||
.navbox-subgroup .navbox-group, | .navbox-subgroup .navbox-group, | ||
.navbox-subgroup .navbox-abovebelow { | .navbox-subgroup .navbox-abovebelow { | ||
background: #e6e6ff; | background:#e6e6ff; | ||
} | } | ||
.navbox- | .navbox-even { | ||
background:#f7f7f7; | |||
color:#012c57; | |||
background: | |||
} | } | ||
.navbox- | .navbox-odd { | ||
background:#012c57; | |||
color:white; | |||
color: white | |||
} | } | ||
. | .navbox-list .navbox-even a:link, | ||
. | .navbox-even a:visited, | ||
.navbox-even a:link { | |||
color:#012c57 | |||
} | } | ||
.navbox-odd a:visited, | |||
.navbox-odd a:link, | |||
.navbox-list .navbox-odd a:visited { | |||
color:#fff; | |||
.navbox- | |||
} | } | ||
@media print { .navbox { display: none; } } | @media print { .navbox { display: none; } } |
Revision as of 23:22, 8 January 2023
/* =================
NAVBOXES
=================
This is for simple navigation,
as with seasonal nav boxes,
species nav boxes, etc.
=================
The core of this originally
came from wowwiki.com,
but it seemed to be a tweak
of code originally taken
from the English Wikipedia.
================== */
/* ++++++++++++++++
General tweak for navboxes
+++++++++++++++++ */
.nowraplinks a {
white-space: nowrap;
}
/* ++++++++++++++++
NAVFRAME STUFF
++++++++++++++++
Standard Navigationsleisten,
aka box hiding thingy from .de.wikipedia
Documentation at
[[wikipedia:Wikipedia:NavFrame]].
++++++++++++++++ */
div.Boxmerge,
div.NavFrame {
margin: 0px;
padding: 4px;
/* border: 1px solid #aaa; Border unnecessary and uncurved */
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: #D5D4f0;
margin: 0px;
padding: 5px;
float: left;
}
div.NavFrame div.NavHead {
height: 1.6em;
font-weight: bold;
background-color: red;
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:10px;
font-weight:normal;
font-size:smaller;
margin-left:25px;
}
.NavToggle .collapseButton,
.NavToggle collapseButton {
right:10px;
font-weight:normal;
font-size:smaller;
text-align:right;
margin-left:25px;
}
.collapseButton {
float: right;
font-weight: normal;
margin-left: 0.5em;
text-align: right;
width: auto;
}
/* +++++++++++++++
DEFAULT SKIN
FOR NAVBOXES
+++++++++++++++
=-=-=-=-=-=-=-=
Navbox container style
=-=-=-=-=-=-=-= */
table.navbox {
border:none;
-webkit-border-radius: 10px 0px 0px 10px;
-moz-border-radius: 10px 0px 0px 10px;
-ms-border-radius: 10px 0px 0px 10px;
-o-border-radius: 10px 0px 0px 10px;
border-radius: 10px 0px 0px 10px;
-moz-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-webkit-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-ms-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-o-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
box-shadow: inset -0px 0px 25px 4px #D5D4F0;
background-color:transparent;
color:#1F1E38;
padding:5px;
font-family: 'Lucida Grande', 'Trebuchet MS', 'Gill Sans', Verdana, 'URW Gothic L','Nimbus Sans L',sans-serif;
text-align:left;
line-height:120%;
margin-right:auto;
margin-left:auto;
width:97%;
}
/* =-=-=-=-=-=-=-=
Single pixel border between
adjacent navboxes
(doesn't work for IE6, but that's okay)
=-=-=-=-=-=-=-= */
table.navbox + table.navbox {
margin-top:-1px;
}
/* =-=-=-=-=-=-=-=-
Title and above/below styles
=-=-=-=-=-=-=-=- */
.navbox-title,
.navbox-abovebelow,
table.navbox th {
/*
-webkit-border-radius: 10px 0px 0px 10px;
-moz-border-radius: 10px 0px 0px 10px;
-ms-border-radius: 10px 0px 0px 10px;
-o-border-radius: 10px 0px 0px 10px;
border-radius: 10px 0px 0px 10px;
-moz-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-webkit-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-ms-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-o-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
box-shadow: inset -0px 0px 25px #D5D4F0 4px;
*/
text-align:center;
color:#012c57;
font-family: 'Lucida Grande', 'Trebuchet MS', 'Gill Sans', Verdana, 'URW Gothic L','Nimbus Sans L',sans-serif;
padding:3px;
font-weight:normal;
line-height:1.2;
letter-spacing:3px;
text-transform:uppercase;
padding-left:1em;
padding-right:1em;
}
/* =-=--=-=-=-=-=-
Group style
=-=-=-=-=-=-=-= */
.navbox-group {
white-space:nowrap;
text-align:right;
font-weight:normal;
padding-left:1em;
padding-right:1em;
}
.navbox,
.navbox-subgroup {
background:#fdfdfd;
}
.navbox-list {
border-left:2px solid #fdfdfd;
}
.navbox-title,
table.navbox th {
-webkit-border-radius: 10px 0px 0px 10px;
-moz-border-radius: 10px 0px 0px 10px;
-ms-border-radius: 10px 0px 0px 10px;
-o-border-radius: 10px 0px 0px 10px;
border-radius: 10px 0px 0px 10px;
-moz-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-webkit-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-ms-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-o-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
box-shadow: inset -0px 0px 25px 4px #DFD4F0;
color:#1F1E38;
padding:5px;
font-family: 'Lucida Grande', 'Trebuchet MS', 'Gill Sans', Verdana, 'URW Gothic L','Nimbus Sans L',sans-serif;
text-align:left;
line-height:120%;
margin-left:auto;
margin-right:auto;
margin-top:5px;
}
.navbox-abovebelow,
.navbox-group {
background-color:#012c57;
color:white;
}
.navbox-subgroup .navbox-title {
-webkit-border-radius: 10px 0px 0px 10px;
-moz-border-radius: 10px 0px 0px 10px;
-ms-border-radius: 10px 0px 0px 10px;
-o-border-radius: 10px 0px 0px 10px;
border-radius: 10px 0px 0px 10px;
-moz-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-webkit-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-ms-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
-o-box-shadow: inset -0px 0px 25px 4px #D5D4F0;
box-shadow: inset -0px 0px 25px 4px #D5D4F0;
color:#1F1E38;
padding:5px;
font-family: 'Lucida Grande', 'Trebuchet MS', 'Gill Sans', Verdana, 'URW Gothic L','Nimbus Sans L',sans-serif;
text-align:left;
line-height:120%;
margin-left:auto;
margin-right:auto;
margin-top:5px;
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background:#e6e6ff;
}
.navbox-even {
background:#f7f7f7;
color:#012c57;
}
.navbox-odd {
background:#012c57;
color:white;
}
.navbox-list .navbox-even a:link,
.navbox-even a:visited,
.navbox-even a:link {
color:#012c57
}
.navbox-odd a:visited,
.navbox-odd a:link,
.navbox-list .navbox-odd a:visited {
color:#fff;
}
@media print { .navbox { display: none; } }