MediaWiki:Common.css: Difference between revisions
From He is Coming Official Wiki
Define div.borderline-wrapper-challenge so that a text block can be shaped around a float container aligned to the left side, and when the text reaches beyond the lower edge of the float, trailing phrases don't become isolated from the rest of their sentence. |
A bunch of formatting additions narrowly intended for use in Template:Infobox_challenge, but absolutely necessary to be placed in this Common.css file because of the @media instruction. |
||
| Line 5: | Line 5: | ||
margin-top: 0.3em; | margin-top: 0.3em; | ||
margin-bottom: 0.3em; | margin-bottom: 0.3em; | ||
} | } | ||
| Line 94: | Line 84: | ||
} | } | ||
. | .challenge .borderline-wrapper p { | ||
. | text-align: right; | ||
. | } | ||
. | |||
. | .challenge .infobox-neutral { | ||
. | float: left; | ||
clear: left; | |||
border: 0px solid; | |||
width: 212px; | |||
margin: 0em auto; | |||
margin-right: 36px; | |||
margin-bottom: 24px; | |||
box-sizing: border-box; | |||
} | |||
.brown-bordered .w {border-bottom: 4px solid #cf831e;} | |||
.brown-bordered .a {border-right: 4px solid #cf831e;} | |||
.brown-bordered .s {background: black; color: white; padding: 4px; padding-left: 12px; padding-right: 12px;} | |||
.brown-bordered .d {border-left: 4px solid #cf831e;} | |||
.brown-bordered .x {border-top: 4px solid #cf831e;} | |||
@media (max-width: 600px) { | |||
.challenge .infobox-neutral { | |||
float:none; | |||
clear:none; | |||
} | |||
} | |||
Revision as of 18:49, 2 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 .infobox-neutral {
float: left;
clear: left;
border: 0px solid;
width: 212px;
margin: 0em auto;
margin-right: 36px;
margin-bottom: 24px;
box-sizing: border-box;
}
.brown-bordered .w {border-bottom: 4px solid #cf831e;}
.brown-bordered .a {border-right: 4px solid #cf831e;}
.brown-bordered .s {background: black; color: white; padding: 4px; padding-left: 12px; padding-right: 12px;}
.brown-bordered .d {border-left: 4px solid #cf831e;}
.brown-bordered .x {border-top: 4px solid #cf831e;}
@media (max-width: 600px) {
.challenge .infobox-neutral {
float:none;
clear:none;
}
}


