MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 148: | Line 148: | ||
text-align: center; /* Ensure text stays centered in flex layout */ | text-align: center; /* Ensure text stays centered in flex layout */ | ||
padding: 10px; /* Your eras-table padding */ | padding: 10px; /* Your eras-table padding */ | ||
} | |||
} | |||
.youtube-responsive { | |||
position: relative; | |||
width: 100%; | |||
padding-bottom: 56.25%; | |||
height: 0; | |||
max-width: 960px; /* Optional: caps the size on large screens */ | |||
} | |||
.youtube-responsive iframe { | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
} | |||
@media only screen and (max-width: 768px) { | |||
.youtube-responsive { | |||
max-width: 560px; /* Smaller size for tablets */ | |||
} | |||
} | |||
@media only screen and (max-width: 480px) { | |||
.youtube-responsive { | |||
max-width: 320px; /* Even smaller for phones */ | |||
} | } | ||
} | } | ||
Revision as of 15:13, 25 March 2025
body.page-Main_Page h1.firstHeading {
display: none;
}
.welcome-banner {
width: 100%;
overflow: hidden;
border: 1px solid #a2a9b1;
background-color: #f0f0f0;
}
.welcome-header {
font-weight: bold;
font-size: 115%;
}
.welcome-text {
width: 70%;
float: left;
text-align: center;
background-color: #f0f0f0;
}
.welcome-image {
width: 30%;
float: left;
padding-top: 2%;
padding-bottom: 2%;
background-color: #f0f0f0;
}
@media screen and (max-width: 768px) {
.welcome-text {
width: 100%;
float: none;
}
.welcome-image {
width: 100%;
float: none;
padding-top: 0;
}
}
.current-box {
width: 100%;
overflow: hidden;
border: 1px solid #a2a9b1;
background-color: #f0f0f0;
text-align: center;
margin-top: 3%;
}
.current-header {
font-weight: bold;
font-size: 115%;
}
.current-text {
width: 50%;
float: left;
background-color: #f0f0f0;
}
.current-media {
width: 50%;
float: left;
padding-top: 2%;
padding-bottom: 2%;
background-color: #f0f0f0;
}
@media screen and (max-width: 768px) {
.current-text {
width: 100%;
float: none;
}
.current-image {
width: 100%;
float: none;
padding-top: 0;
}
}
.eras-table {
margin: 1em 0; /* From wikitable */
background-color: #f8f9fa; /* From wikitable */
border: 1px solid #808080; /* Your eras-table, overrides wikitable’s #a2a9b1 */
border-collapse: collapse; /* From wikitable */
color: #000; /* From wikitable */
width: 100%; /* Your eras-table */
table-layout: fixed; /* Your eras-table */
}
.eras-table th {
background-color: #eecdf2; /* Your eras-table, overrides wikitable’s #eaecf0 */
border: 1px solid #a2a9b1; /* From wikitable */
padding: 0.2em 0.4em; /* From wikitable */
text-align: center; /* Both wikitable and eras-table */
font-weight: bold; /* From wikitable */
width: 100%; /* Your eras-table */
display: table-cell; /* Your eras-table */
font-size: 115%;
}
.eras-table td {
background-color: #fdf4ff; /* Your eras-table, overrides wikitable’s default */
border: 1px solid #a2a9b1; /* From wikitable */
padding: 10px; /* Your eras-table, overrides wikitable’s 0.2em 0.4em */
vertical-align: top; /* Your eras-table */
text-align: center; /* Your eras-table, overrides wikitable’s default */
}
/* Ensure images scale properly */
.eras-table img {
max-width: 200px;
width: 100%;
height: auto;
display: block; /* Ensure image behaves as a block for centering */
margin: 0 auto; /* Center the image horizontally */
}
@media screen and (max-width: 768px) {
.eras-table {
display: block; /* Switch to block for responsive layout */
margin: 1em 0; /* From wikitable, consistent in media query */
border-collapse: collapse; /* From wikitable, maintain table integrity */
}
.eras-table thead {
display: block; /* Ensure header stays separate */
}
.eras-table th {
display: block; /* Full width block for header */
width: 100%; /* Explicitly full width */
text-align: center; /* Maintain centering */
}
.eras-table tbody {
display: flex;
flex-wrap: wrap;
}
.eras-table tr {
display: contents; /* Let cells flow into flex */
}
.eras-table td {
flex: 0 0 33.333%; /* 3 columns */
box-sizing: border-box;
text-align: center; /* Ensure text stays centered in flex layout */
padding: 10px; /* Your eras-table padding */
}
}
.youtube-responsive {
position: relative;
width: 100%;
padding-bottom: 56.25%;
height: 0;
max-width: 960px; /* Optional: caps the size on large screens */
}
.youtube-responsive iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
@media only screen and (max-width: 768px) {
.youtube-responsive {
max-width: 560px; /* Smaller size for tablets */
}
}
@media only screen and (max-width: 480px) {
.youtube-responsive {
max-width: 320px; /* Even smaller for phones */
}
}