MediaWiki:Templates.css
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
/*******************
* Templates styles *
********************/
/* Infoboxes */
.infobox {
width: 100%;
max-width: 500px;
min-width: 200px;
padding: 0.25rem;
margin: 0.5rem 0 0.5rem 0.5rem!important;
float: right;
clear: right;
text-align: center;
}
@media all and (max-width: 768px) {
.infobox {
width: -moz-available;
max-width: -moz-available;
width: -webkit-fill-available;
max-width: -webkit-fill-available;
margin: 0.5rem 0!important;
}
}
.infobox td {
text-align: left;
}
.infobox .infoboxGap {
padding: 0.4rem;
background-color: #00000000;
}
.infobox .infoboxTitle {
padding: 0.5rem;
}
.infobox .infoboxDescription {
border: 0;
text-align: center;
}
.infobox .infoboxEnTitle {
font-size: 14pt;
}
.infobox .infoboxJaTitle {
font-size: 8pt;
}
.infobox .infoboxImage {
border: 0;
padding: 1rem;
background-color: #00000000;
}
.infobox .infoboxSubTable {
border: 0;
background-color: #00000000;
}
.infobox .infoboxHeadRow {
width: 100%;
max-width: 33%;
}
.infobox .infoboxBodyRow {
width: 100%;
max-width: 67%;
}
.infobox .infoboxNavRow {
width: 100%;
max-width: 50%;
}
/* Tabber */
.tabber:has(.infobox) {
width: 500px;
float: right;
}
@media all and (max-width: 768px) {
.tabber:has(.infobox) {
width: -moz-available!important;
width: -webkit-fill-available!important;
}
}
/* Navboxes */
.navigation-box {
text-align: center;
width: 100%;
}
.navboxHeader {
height: 3rem;
}
.navbar {
font-weight: normal;
font-size: 85%;
float: left;
padding: 0 0.5rem;
}
/* Interwiki */
.interwiki {
clear: right;
margin: 0.25rem 1rem;
padding: 0.5rem;
font-size: 90%;
width: 20rem;
text-align: left;
float: right;
font-style: italic;
box-shadow: 0.5rem 0.5rem #00000055;
}
@media (max-width: 550px) {
.interwiki {
width: -webkit-fill-available;
margin: 1rem;
}
}
/* Twitter Archive */
.twitterPostContent {
display: flex;
flex-flow: row wrap;
align-items: flex-start;
justify-content: space-around;
}
.twitterPost {
max-width: 500px;
margin: auto;
padding: 1rem;
background-color: var(--mdwiki-secondary-color);
border: 2px solid var(--mdwiki-tertiary-color);
}
.twitterPostContent .twitterPost {
margin: 1rem;
}
.twitterPost hr {
background-color: var(--mdwiki-border-color);
}
.twitterPost a.external {
color: #172D54!important;
}
.twitterPost a.external:visited {
color: #432343!important;
}
.tpHead {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.tpPp {
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
overflow: hidden;
padding-right: 0.5rem;
}
.tpUser {
display: flex;
flex-flow: column nowrap;
}
.tpUserTag {
font-family: monospace;
}
.tpPics {
display: flex;
flex-flow: row wrap;
justify-content: center;
max-width: 500px;
max-height: 500px;
margin: 1rem 0;
overflow: auto;
}
.tpPic {
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
background-color: var(--mdwiki-tertiary-color);
border: 1px solid var(--mdwiki-primary-color);
overflow: hidden;
}
.tpPp img,
.tpPic img {
width: 100%;
height: 100%;
object-fit: contain;
}
@media all and (max-width: 768px) {
.twitterPost,
.tpPics {
width: -moz-available;
max-width: -moz-available;
width: -webkit-fill-available;
max-width: -webkit-fill-available;
}
}
/* Misc styles
The following styles have no groups */
.anchor {
text-align: center;
font-size: 1rem;
}
.dungeonItemsContent {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.dungeonItemsContentRow {
width: 33%;
padding-bottom: 1rem;
}
@media all and (max-width: 1023px) {
.dungeonItemsContent {
flex-flow: column wrap;
align-items: center;
}
.dungeonItemsContentRow {
width: 100%;
}
}