MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 56: | Line 56: | ||
text-align: center; | text-align: center; | ||
} | } | ||
# | /* Sidebar placement + tidy look */ | ||
#pt-google-translate { padding: 0.25rem 0; } | |||
#pt-google-translate .goog-te-gadget { | |||
font: inherit !important; | |||
line-height: 1.4 !important; | |||
} | } | ||
.goog-te-gadget { | #pt-google-translate .goog-te-gadget .goog-te-combo { | ||
font- | width: 100% !important; | ||
max-width: 220px; /* fits Vector sidebar */ | |||
} | |||
/* Optional: a small label */ | |||
#pt-google-translate::before { | |||
content: "🌐 Translate:"; | |||
display: block; | |||
margin-bottom: 0.25rem; | |||
color: var(--color-subtle,#54595d); | |||
font-size: 0.875em; | |||
} | } | ||
Revision as of 15:09, 17 October 2025
/* Styling for a grid of cards */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
margin-top: 1em;
}
/* Card container, styled to look like the main page boxes */
.card-box {
border: 1px solid #aaa;
padding: 0 0.5em 0.5em;
margin-top: 4px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Card title, mimicking the main page's h2 style */
.card-h2 {
border: 1px solid #aaa;
margin: 0.5em 0;
padding: 0.2em 0.4em;
font-size: 120%;
font-weight: bold;
font-family: inherit;
background-color: #f9f9f9;
text-align: center;
}
/* Styles for the individual cards */
.person-card {
display: flex;
flex-direction: column;
}
.person-card .card-image {
text-align: center;
}
.person-card img {
border-radius: 50%;
width: 150px;
height: 150px;
object-fit: cover;
margin-bottom: 1em;
}
.person-card .bio-text {
flex-grow: 1;
margin-bottom: 1em;
text-align: center;
}
.person-card .links {
margin-top: auto;
font-size: 90%;
text-align: center;
}
/* Sidebar placement + tidy look */
#pt-google-translate { padding: 0.25rem 0; }
#pt-google-translate .goog-te-gadget {
font: inherit !important;
line-height: 1.4 !important;
}
#pt-google-translate .goog-te-gadget .goog-te-combo {
width: 100% !important;
max-width: 220px; /* fits Vector sidebar */
}
/* Optional: a small label */
#pt-google-translate::before {
content: "🌐 Translate:";
display: block;
margin-bottom: 0.25rem;
color: var(--color-subtle,#54595d);
font-size: 0.875em;
}