Jump to content

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Filter bar */
/* Styling for a grid of cards */
.people-filter-bar {
.card-grid {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    display: grid;
  margin-bottom: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 1em;
}
}
.people-filter-bar input[type="search"] {
 
  flex: 1 1 260px; padding: .5rem .6rem; border: 1px solid #aaa; border-radius: .5rem;
/* Card container, styled to look like the main page boxes */
}
.card-box {
.people-filter-bar select, .people-filter-bar button {
    border: 1px solid #aaa;
  padding: .5rem .6rem; border: 1px solid #aaa; border-radius: .5rem; background: #f8f8f8;
    padding: 0 0.5em 0.5em;
    margin-top: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
}
.people-filter-count { color: #666; margin-left: .5rem; }


/* Grid of cards */
/* Card title, mimicking the main page's h2 style */
.cards-grid {
.card-h2 {
  display: grid;
    border: 1px solid #aaa;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin: 0.5em 0;
  gap: 0.75em;
    padding: 0.2em 0.4em;
    font-size: 120%;
    font-weight: bold;
    font-family: inherit;
    background-color: #f9f9f9;
    text-align: center;
}
}


/* Person card: align with mp-box look & feel */
/* Styles for the individual cards */
.person-card {
.person-card {
  border: 1px solid #aaa;
    display: flex;
  background-color: #f9f9f9; /* consistent neutral like #mp-topbanner */
    flex-direction: column;
  padding: 0.5em;
  margin: 0.25em 0;
  border-radius: 4px;
}
}


/* Name styled like mp-h2, but as a semantic h2 */
.person-card .card-image {
.person-name { margin: 0.5em 0; }
    text-align: center;
.person-name h2 {
  border: 1px solid #aaa;
  background-color: #eee; /* similar to #mp-bottom .mp-h2 */
  font-size: 120%;
  font-weight: bold;
  font-family: inherit;
  margin: 0;
  padding: 0.2em 0.4em;
}
}


/* Photo fills width, framed like other mp elements */
.person-card img {
.person-photo img {
    border-radius: 50%;
  width: 100%;
    width: 150px;
  height: auto;
    height: 150px;
  border: 1px solid #aaa;
    object-fit: cover;
    margin-bottom: 1em;
}
}


/* Bio */
.person-card .bio-text {
.person-bio {
    flex-grow: 1;
  margin: 0.5em 0; font-size: 95%; line-height: 1.4; color: #202122;
    margin-bottom: 1em;
    text-align: center;
}
}


/* Buttons */
.person-card .links {
.person-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
    margin-top: auto;
    font-size: 90%;
    text-align: center;
}
/* Compact, header-friendly styling */
.gt-header-slot {
  display: inline-flex;
  margin-right: 16px;
  white-space: nowrap;
}


.btn {
.gt-header-slot::before {
   display: inline-block; padding: 0.35em 0.8em; border-radius: 4px;
   content: "🌐 Translate:";
   border: 1px solid #aaa; background-color: #f7f7f7; text-decoration: none;
  margin-right: 6px;
   font-size: 90%; color: #202122;
   color: var(--color-subtle, #54595d);
   font-size: 0.9em;
}
}
.btn:hover { background-color: #eee; }


.btn-primary {
/* Tidy Google’s widget */
  border-color: #a3bfb1;     /* mp-left .mp-h2 border tone */
.gt-header-slot .goog-te-gadget { font: inherit !important; line-height: 1.2 !important; }
  background-color: #cef2e0; /* mp-left .mp-h2 background */
.gt-header-slot .goog-te-combo  { height: 28px; }
   color: #000;
 
/* Optional: hide tiny "Powered by" link */
.goog-logo-link { display: none !important; }
 
/* Hide the header widget on smaller screens (keeps header clean) */
@media (max-width: 1000px) {
   .gt-header-slot { display: none; }
}
}
.btn-primary:hover { background-color: #a3d2b1; }
/* Optional: dark themes can rely on your existing mp-* dark rules */

Latest revision as of 15:18, 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;
}
/* Compact, header-friendly styling */
.gt-header-slot {
  display: inline-flex;
  margin-right: 16px;  
  white-space: nowrap;
}

.gt-header-slot::before {
  content: "🌐 Translate:";
  margin-right: 6px;
  color: var(--color-subtle, #54595d);
  font-size: 0.9em;
}

/* Tidy Google’s widget */
.gt-header-slot .goog-te-gadget { font: inherit !important; line-height: 1.2 !important; }
.gt-header-slot .goog-te-combo  { height: 28px; }

/* Optional: hide tiny "Powered by" link */
.goog-logo-link { display: none !important; }

/* Hide the header widget on smaller screens (keeps header clean) */
@media (max-width: 1000px) {
  .gt-header-slot { display: none; }
}