MediaWiki:Common.css: Difference between revisions

Content deleted Content added
added navbox styling from https://en.wikipedia.org/wiki/MediaWiki:Common.css
more ergonomic changes
 
(55 intermediate revisions by 2 users not shown)
Line 3:
/* {{spoiler}} templates -- default select-to-view */
 
.spoiler { border:1px dotted gray; }
border: .1em dotted #808080;
.spoiler, .spoiler a, .spoiler a.link, .spoiler a.new, .spoiler a.external
{ background: white; color:white; background: white#fff; }
padding: .1em .2em;
}
 
.spoilerhidden, .spoilerhidden a, spoilerhidden a:visited, .spoilerhidden .new, .spoilerhidden .external, .spoilerhidden .extiw {
color: #fff !important;
background-image: none;
}
 
/* {{Work}}/{{Trope}}/{{Creator}} templates */
Line 11 ⟶ 18:
.tropemenu li { white-space: nowrap }
 
 
/* Trope link styling (put before page menu) */
a.trope, a.ymmv {
color: #347E4F;
}
a.ymmv {
border-bottom: 1px dotted #347E4F;
}
a.trope:visited, a.ymmv:visited {
color: #006400;
}
 
/* page menu */
div.sp-menu {
background-color: #F6F6F6;
background-image: linear-gradient(to bottom, #FFF 50%, #F6F6F6 90%);
border-bottom: 1px solid #AAA;
text-align: center;
padding: 1px;
font-family: Arial, Verdana, sans-serif;
margin-bottom: 0.5em;
clear: both;
}
.skin-vector .sp-menu:first-child,
.skin-metrolook .sp-menu:first-child {
margin-top: -1em;
}
 
.sp-menu a, .sp-menu a:visited,
.sp-menu a.extiw, .sp-menu a.extiw:visited,
.sp-menu strong {
border: none;
border-radius: 5px;
display: block;
text-decoration: none;
color: white;
padding: 5px 10px;
background: #6588a3; /* #617F8A; 2C5463 */
margin: 1px;
white-space: nowrap;
}
.sp-menu a.new, .sp-menu a.new:visited { color: pink; }
.sp-menu .mw-redirect { text-decoration: underline }
 
/* light colors: 89b0cc/79a2bf/9cbfd9/7dabcc/b3d0e6 */
.sp-menu ul { font-size: 14px; margin: 0; padding: 0; list-style: none; }
.sp-menu li { display: inline-block; position: relative; }
.sp-menu li ul { display: none; text-align: left; min-width: 100%; }
.sp-menu li:hover > ul { z-index: 2; display: block; position: absolute; }
.sp-menu li:hover li { font-size: 11px; display: block; float: none; margin: 0}
 
.sp-menu li:hover a { background: #77a0c1; /* #95A9B1; */ }
.sp-menu li li a { background: #80acd0; /* #95A9B1; */}
.sp-menu li li:hover a { background: #89b9df; /* #b4c6cd; */ }
.sp-menu li li li:hover a { background: #a0c8ec; }
.sp-menu li li li li a:hover { background: #b3d0e6; }
 
.sp-menu li li a { margin: 0; border-top: 1px solid white; }
.sp-menu li li ul {
position: absolute; left: 100%; top:0; min-width: inherit;
}
 
#tm-Analysis, #tm-Characters, #tm-Laconic, #tm-Recap, #tm-Trivia, #tm-YMMV,
#tm-Awesome, #tm-crowners, #tm-Fridge, #tm-Fanfic_Recs, #tm-Haiku,
#tm-Headscratchers, #tm-Heartwarming, #tm-Ho_Yay, #tm-Image_Links,
#tm-Memes, #tm-Nightmare_Fuel, #tm-Quotes, #tm-Radar, #tm-Reviews,
#tm-Tear_Jerker, #tm-Useful_Notes, #tm-WMG, #tm-Wikipedia,
#tm-Allothers, #tm-New, #tm-Funny, #tm-Setting {
background-repeat: no-repeat;
position: relative;
display: inline-block;
width: 16px; height: 16px;
top: 3px;
margin: -3px 4px 0 0;
background-image: url(https://static.miraheze.org/allthetropeswiki/7/7d/ATTspriterow.png);
}
 
#tm-Laconic { background-position: 0px 0 }
#tm-Analysis { background-position: -16px 0 }
#tm-Characters { background-position: -32px 0 }
#tm-Recap, #tm-By_Medium { background-position: -48px 0 }
#tm-Setting { background-position: -64px 0 }
#tm-Trivia { background-position: -80px 0 }
#tm-YMMV { background-position: -96px 0 }
#tm-Awesome { background-position: -112px 0 }
#tm-Crowners { background-position: -112px 0 }
#tm-Fridge { background-position: -128px 0 }
#tm-Funny { background-position: -144px 0 }
#tm-Fanfic_Recs { background-position: -160px 0 }
#tm-Haiku { background-position: -176px 0 }
#tm-Headscratchers { background-position: -192px 0 }
#tm-Heartwarming { background-position: -208px 0 }
#tm-Ho_Yay { background-position: -224px 0 }
#tm-Image_Links { background-position: -240px 0 }
#tm-Memes { background-position: -256px 0 }
#tm-Nightmare_Fuel { background-position: -272px 0 }
#tm-Quotes { background-position: -288px 0 }
#tm-Radar { background-position: -304px 0 }
#tm-Reviews { background-position: -320px 0 }
#tm-Tear_Jerker { background-position: -336px 0 }
#tm-Useful_Notes { background-position: -352px 0 }
#tm-WMG { background-position: -368px 0 }
#tm-Wikipedia { background-position: -384px 0 }
#tm-Allothers { background-position: -400px 0 }
#tm-New { background-position: -416px 0 }
#tm-Playing_With { background-position: -432px 0 }
 
 
/* Examples and tropelist templates, et al. */
.examplesbox {
font-size: 16px;
margin: 8px 0px;
background-color: #f9f9f9;
border: solid 1px #aaa;
Line 73 ⟶ 189:
font-size: 85%;
}
 
*/
 
table td.forum_title a.forum_new { font-weight: bold }
table td.forum_title a.forum_new:visited { font-weight: normal }
table td.forum_edited a { text-decoration: none }
 
.forumlist { border-collapse: collapse }
Line 84 ⟶ 198:
.forumlist td span { display: block; padding-left: 10px; font-size: smaller }
.forumlist td span a { text-decoration: none; }
.forumlist td span.forum_author { padding-left: 30px; }
.forumlist td.forum_title a { padding-left: 20px }
.forumlist td.forum_title span a { padding-left: 0px }
Line 108 ⟶ 222:
margin-bottom: 0.6em;
color: black;
margin: 0px;
overflow: hidden;
padding: 0.5em 0.17em;
Line 132 ⟶ 245:
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
Line 213 ⟶ 325:
 
/* Disambig and set index box styles */
table.dmbox {
clear: both;
margin: 0.9em 1em;
Line 322 ⟶ 434:
margin-right: 0.5em;
width: 6em;
}
 
/* Infobox template style */
.infobox {
border: 1px solid #aaa;
background-color: #f9f9f9;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
/* @noflip */
text-align: left;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
}
.infobox td,
.infobox th {
vertical-align: top;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
.infobox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
}
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #aaa;
/* @noflip */
border-right: 1px solid #aaa;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
border: 0;
/* @noflip */
border-right: 1px solid #aaa;
}
 
/* LQT styling */
 
.lqt_toc {
background: oldlace!important;
border: 2px black solid!important;
}
 
.lqt-post-wrapper {
background: none repeat scroll white!important;
}
 
.ve-not-available .mw-editsection-divider {
display: inline;
}
 
/**
* Fix for http://bugzilla.shoutwiki.com/show_bug.cgi?id=191 (long words do not wrap)
*
* @see http://stackoverflow.com/questions/7284990/css-how-to-break-long-words-in-a-table-td/11423675#11423675
* @see http://webdesignerwall.com/tutorials/word-wrap-force-text-to-wrap
*/
.mw-wikiforum-thread-main,
.mw-wikiforum-thread-sub {
word-wrap: break-word;
}
 
td.mw-wikiforum-thread-main, td.mw-wikiforum-thread-sub {
word-wrap: break-word;
word-break: normal;
}
 
#mw-wikiforum-searchbox-border {
width: 600px;
}
 
.mw-wikiforum-descr {
color: black;
font-size: 11px;
}
 
.mw-wikiforum-posted {
color: black;
font-size: 11px;
}
 
.mw-wikiforum-headerrow {
font-size: 12px;
}
 
p.mw-wikiforum-descr {
color: black;
font-size: 11px;
}