Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
display: block; | display: block; | ||
margin: 0; | margin: 0; | ||
− | padding: 0 0 | + | padding: 0 0 5px 0; |
list-style: none; | list-style: none; | ||
text-align: center; | text-align: center; | ||
Line 13: | Line 13: | ||
display: inline-block; | display: inline-block; | ||
list-style: none; | list-style: none; | ||
− | width: | + | width: 80px; |
− | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
overflow: hidden; | overflow: hidden; | ||
text-align: center; | text-align: center; | ||
− | padding: | + | padding: 10px 0; |
border: 1px solid transparent; | border: 1px solid transparent; | ||
border-radius: 4px; | border-radius: 4px; | ||
Line 47: | Line 46: | ||
display: block; | display: block; | ||
line-height: 16px; | line-height: 16px; | ||
− | |||
padding: 8px; | padding: 8px; | ||
} | } | ||
Line 59: | Line 57: | ||
font-size: 11px; | font-size: 11px; | ||
line-height: 12px; | line-height: 12px; | ||
− | color: # | + | color: #6a6a6a; |
} | } | ||
Line 66: | Line 64: | ||
clear: both; | clear: both; | ||
display: block; | display: block; | ||
− | padding-top: | + | padding-top: 10px; |
− | |||
font-size: 13px; | font-size: 13px; | ||
− | |||
text-align: center; | text-align: center; | ||
} | } |
Revision as of 15:20, 25 May 2015
/** CSS placed here will be applied to all skins */ /** --------- Languages at front page ------- */ /* HTML: http://hitchwiki.org/en/Template:Startpage-language*/ .primary_wikis { display: block; margin: 0; padding: 0 0 5px 0; list-style: none; text-align: center; } .primary_wikis li { display: inline-block; list-style: none; width: 80px; margin: 0; padding: 0; overflow: hidden; text-align: center; padding: 10px 0; border: 1px solid transparent; border-radius: 4px; transition: all 200ms; -moz-transition: all 200ms; /* Firefox 4 */ -webkit-transition: all 200ms; /* Safari and Chrome */ -o-transition: all 200ms; /* Opera */ } .primary_wikis li:hover { background: #f3da70; border-color: #d5a72d; } .primary_wikis li a:link, .primary_wikis li a:visited, .primary_wikis li a:active, .primary_wikis li a:hover { text-decoration: none; width: 100%; height: 100%; display: block; } .primary_wikis li p { margin-bottom: 0; } .primary_wikis li strong { font-size: 15px; display: block; line-height: 16px; padding: 8px; } .primary_wikis li .flag { display: block; height: 32px; overflow: hidden; text-align: center; } .primary_wikis li small { font-size: 11px; line-height: 12px; color: #6a6a6a; } /* HTML: http://hitchwiki.org/en/Template:Startpage-babylanguage */ .secondary_wikis { clear: both; display: block; padding-top: 10px; font-size: 13px; text-align: center; } .secondary_wikis ul { display: block; margin: 0; padding: 0; } .secondary_wikis li { display: block; margin: 0; padding: 0; } .secondary_wikis li a:link, .secondary_wikis li a:visited, .secondary_wikis li a:hover, .secondary_wikis li a:active { display: inline-block; line-height: 12px; font-size: 12px; color: #997d20; text-align: center; float: left; text-decoration: none; margin: 5px; padding: 5px; border: 1px solid rgba(0, 0, 0, 0); } .secondary_wikis li a:hover, .secondary_wikis li a:active { border-radius: 5px; text-decoration: none; background: #f3da70; border-color: #d5a72d; } .secondary_wikis strong { display: block; padding: 5px 0; } .secondary_wikis small { font-size: 11px; display: block; width: 100%; font-size: 8pt; } .secondary_wikis a:link, .secondary_wikis a:visited, .secondary_wikis a:hover, .secondary_wikis a:active { color: #956520; } /** --------- Infobox location/country styling --------- * http://hitchwiki.org/en/Template:Infobox_Location * http://hitchwiki.org/en/Template:Infobox_Country */ .infobox { width: 25em; text-align: left; font-size: 85%; border: 1px solid #aaa; border-radius: 4px; border-collapse: separate; clear: right; } .infobox-h1 { text-align:center; } .infobox-h1 div { font-size: large; width: 80%; /* for centering heading */ margin: auto; /* text-align: center; alone doesn't work because of the toggle in the same table row/cell */ } /* Hide/show switch */ .infobox .mw-collapsible-toggle, .infobox .mw-collapsible-toggle a { font-weight:normal; color:black; } /* 2nd heading (Information) */ .infobox-h2 { text-align:center; background:#D8E2EF; border-top: 1px solid #aaa; /*border-bottom: 1px solid #aaa;*/ } .infobox th { padding: 0.3em; } .infobox th.infobox-h2 { padding: 0; } /* Flags, coat of arms etc. */ .infobox .floatright { margin: 0; } .infobox-map div { margin: 0 5px 5px 5px !important; } /* text "See full map" */ .infobox-map small { position: relative; bottom: 7px; } /* --------------------------------------------------------- */