MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 40: | Line 40: | ||
/* Support side-by-side images and text. */ | /* Support side-by-side images and text. */ | ||
div.lofe-examples-side-by-side { | div.lofe-examples-side-by-side { | ||
| Line 63: | Line 45: | ||
flex-direction:row; | flex-direction:row; | ||
justify-content:space-evenly; | justify-content:space-evenly; | ||
flex-wrap:nowrap; | |||
} | } | ||
| Line 68: | Line 51: | ||
display:flex; | display:flex; | ||
flex-direction:row; | flex-direction:row; | ||
justify-content:space-evenly; | |||
flex-wrap:wrap; | flex-wrap:wrap; | ||
} | } | ||
| Line 79: | Line 62: | ||
max-width:49%; | max-width:49%; | ||
} | } | ||
div.lofe-discussion { | |||
display:block; | |||
clear:both; | |||
padding-top:1em; | |||
} | |||
/* Allow shrinking side by side text slightly to fit better in medium screens */ | /* Allow shrinking side by side text slightly to fit better in medium screens */ | ||
Revision as of 06:18, 19 August 2025
/* CSS placed here will be applied to all skins */
/* Basic markup for LOFE images and text */
.lofe-image, .lofe-image img {
width:100%;
}
.lofe-image img {height:auto;}
div.lofe-text {
width:100%;
max-width:50em;
background-color: white;
}
div.lofe-text pre {
background-color: white;
margin-top:0;
}
/* Set the min and max widths for the image and text elements in the different layouts */
/* minimums with m */
div.lofe-m20 {min-width:20em;}
div.lofe-m30 {min-width:30em;}
div.lofe-m35 {min-width:35em;}
div.lofe-m40 {min-width:40em;}
div.lofe-m45 {min-width:45em;}
div.lofe-m50 {min-width:50em;}
/* maximums with x */
div.lofe-x20 {max-width:20em;}
div.lofe-x30 {max-width:30em;}
div.lofe-x40 {max-width:40em;}
div.lofe-x50 {max-width:50em;}
/* Support side-by-side images and text. */
div.lofe-examples-side-by-side {
display:flex;
flex-direction:row;
justify-content:space-evenly;
flex-wrap:nowrap;
}
div.lofe-examples {
display:flex;
flex-direction:row;
justify-content:space-evenly;
flex-wrap:wrap;
}
div.lofe-example {
float:left;
}
div.lofe-examples-side-by-side div.lofe-example {
max-width:49%;
}
div.lofe-discussion {
display:block;
clear:both;
padding-top:1em;
}
/* Allow shrinking side by side text slightly to fit better in medium screens */
div.lofe-small {
font-size:85%;
}
/* This code will be applied to all pages in the LOFE */
/* When migrating to live wiki, need to replace 3000 with actual ID. */
.ns-3000 #content, .ns-3001 #content {background-color:#f6f6f6; }
.ns-3000 #content .navbar, .ns-3001 #content .navbar {
background-color:white;
}
/* Testing the possibility of removing the sidebar */
.ns-3000 #mw-panel {visibility: hidden;}
.ns-3000 #content {margin-left:0;}