MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Gridcaster (talk | contribs) No edit summary |
Gridcaster (talk | contribs) No edit summary |
||
Line 45: | Line 45: | ||
} | } | ||
/* | /* Tight 2- and 4-column box grids */ | ||
.box-grid-2, .box-grid-4 { | .box-grid-2, .box-grid-4 { | ||
display: grid; | display: grid; | ||
gap: | gap: 2px; /* Small spacing between cells */ | ||
margin-bottom: | margin-bottom: 20px; | ||
} | } | ||
/* | /* Column counts */ | ||
.box-grid-2 { | .box-grid-2 { | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
Line 61: | Line 61: | ||
} | } | ||
/* | /* Cell/Box Style */ | ||
.box { | .box { | ||
background-color: #fff; | background-color: #fff; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
padding: | padding: 14px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
min-height: | min-height: 120px; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: space-between; | justify-content: space-between; | ||
font-size: 0.95em; | |||
} | } | ||
/* Optional box titles */ | |||
/* Optional | |||
.box .box-title { | .box .box-title { | ||
font-weight: bold; | font-weight: bold; | ||
Line 88: | Line 81: | ||
border-bottom: 1px solid #eee; | border-bottom: 1px solid #eee; | ||
padding-bottom: 4px; | padding-bottom: 4px; | ||
} | } |
Revision as of 06:39, 19 April 2025
/* CSS placed here will be applied to all skins */
body {
background: url("/images/wiki_background.png") no-repeat center center fixed;
background-size: cover;
}
/* Wrap the sidebar (all portlets) in a white box */
#mw-panel {
background-color: #ffffff; /* White background */
border-radius: 5px;
box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* Optional soft shadow */
border: 1px solid #ccc;
}
/* Higher-contrast footer text */
#footer, #footer a, #footer li {
color: #eee !important; /* Medium gray – readable on light/gray backgrounds */
font-size: 0.9em;
text-decoration: none;
}
/* Subtle light-gray hover */
#footer a:hover {
color: #ccc !important;
text-decoration: underline;
}
/* Generic content box with optional title */
.box {
background-color: #ffffff;
border: 1px solid #ccc;
border-radius: 8px;
padding: 15px 20px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
/* Optional heading inside the box */
.box .box-title {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 10px;
border-bottom: 1px solid #ddd;
padding-bottom: 4px;
}
/* Tight 2- and 4-column box grids */
.box-grid-2, .box-grid-4 {
display: grid;
gap: 2px; /* Small spacing between cells */
margin-bottom: 20px;
}
/* Column counts */
.box-grid-2 {
grid-template-columns: repeat(2, 1fr);
}
.box-grid-4 {
grid-template-columns: repeat(4, 1fr);
}
/* Cell/Box Style */
.box {
background-color: #fff;
border: 1px solid #ccc;
padding: 14px;
box-sizing: border-box;
min-height: 120px;
display: flex;
flex-direction: column;
justify-content: space-between;
font-size: 0.95em;
}
/* Optional box titles */
.box .box-title {
font-weight: bold;
font-size: 1.05em;
margin-bottom: 8px;
border-bottom: 1px solid #eee;
padding-bottom: 4px;
}