MediaWiki:Common.css: Difference between revisions
From He is Coming Official Wiki
Realtime experimentation indicates that the table's un-specified width has been the cause of the resizing havoc -- but at 50% it is decently okay. |
Eureka! CSS attribute overrides without the !important tag only take effect if written after the value they are overriding! This means I should invent classes with all the style standards I want *here*, removing contradictory styles from the pages themselves. |
||
| Line 17: | Line 17: | ||
.borderline-wrapper { | .borderline-wrapper { | ||
margin-right: 0 !important; | margin-right: 0 !important; | ||
} | } | ||
} | } | ||
| Line 110: | Line 91: | ||
.challenge .brown-bordered { | .challenge .brown-bordered { | ||
width:50%; | width:50%; | ||
} | |||
@media (max-width: 640px) { | |||
.challenge .infobox-neutral { | |||
float: none !important; | |||
clear: none !important; | |||
margin-left: auto !important; | |||
margin-right: auto !important; | |||
} | |||
.infobox-upgrade { | |||
float: none !important; | |||
clear: none !important; | |||
margin: auto !important; | |||
} | |||
.challenge .brown-bordered { | |||
width:100%; | |||
} | |||
} | } | ||
Revision as of 17:56, 3 September 2025
/* CSS placed here will be applied to all skins */
/* Wrapper och border */
.borderline-wrapper {
overflow: auto;
margin-top: 0.3em;
margin-bottom: 0.3em;
}
.borderline {
max-width: 100%;
box-sizing: border-box;
margin: 0;
padding: 0;
}
@media (max-width: 900px) {
.borderline-wrapper {
margin-right: 0 !important;
}
}
.infobox-neutral {
border: 4px solid #fff;
border-collapse: collapse;
background: #241319;
width: 324px;
margin: 2em auto;
box-sizing: border-box;
}
.infobox-neutral td, .infobox-neutral th {
border: none;
background: #241319;
padding: 0;
}
/* Top left corner */
.infobox-corner-topleft {
margin-top: -10px !important;
margin-left: -4px !important;
position: relative;
z-index: 2;
width: 24px;
height: 24px;
background: none;
border: none;
padding: 0;
}
/* Bottom left corner (JUSTERA värden nedan för finjustering) */
.infobox-corner-bottomleft {
margin-bottom: -4px !important;
margin-left: -4px !important;
position: relative;
z-index: 2;
width: 24px;
height: 24px;
background: none;
border: none;
padding: 0;
}
.infobox-corner-topright {
margin-top: -10px !important;
margin-right: -4px !important;
position: relative;
z-index: 2;
width: 24px;
height: 24px;
background: none;
border: none;
padding: 0;
}
.infobox-corner-bottomright {
margin-bottom: -4px !important;
margin-right: -4px !important;
position: relative;
z-index: 2;
width: 24px;
height: 24px;
background: none;
border: none;
padding: 0;
}
.challenge .borderline-wrapper p {
text-align: right;
}
.challenge .brown-bordered {
width:50%;
}
@media (max-width: 640px) {
.challenge .infobox-neutral {
float: none !important;
clear: none !important;
margin-left: auto !important;
margin-right: auto !important;
}
.infobox-upgrade {
float: none !important;
clear: none !important;
margin: auto !important;
}
.challenge .brown-bordered {
width:100%;
}
}


