Jump to content

MediaWiki:Common.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Vector 2022: tighten the space between title/toolbar and subtitle */
/* Styling for a grid of cards */
@media (min-width: 720px) {
.card-grid {
  /* Kill extra padding/border on the titlebar block */
    display: grid;
  .skin-vector-2022 .vector-page-titlebar,
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  .skin-vector-2022 .vector-page-toolbar-container {
    gap: 20px;
     padding-bottom: 0 !important;
    margin-top: 1em;
     margin-bottom: 0 !important;
}
     border-bottom: 0 !important;
 
  }
/* 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;
}


  /* Ensure our subtitle actually sits right under the title */
.person-card .card-image {
  .skin-vector-2022 .mw-page-title-main {
     text-align: center;
    margin-bottom: 0 !important;
}
  }
  .skin-vector-2022 #siteSub {
     display: block !important;
    margin: .25rem 0 .85rem !important; /* adjust to taste */
    font-size: 0.9em;
    color: #54595d;
  }


  /* If you used the grid/flex layout earlier, keep the toolbar right-aligned */
.person-card img {
  .skin-vector-2022 .vector-page-titlebar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title toolbar" "subtitle toolbar"; align-items: end; column-gap: .75rem; row-gap: .15rem; }
    border-radius: 50%;
  .skin-vector-2022 .mw-page-title-main { grid-area: title; }
    width: 150px;
  .skin-vector-2022 #siteSub { grid-area: subtitle; }
    height: 150px;
  .skin-vector-2022 .vector-page-toolbar { grid-area: toolbar; justify-self: end; }
    object-fit: cover;
    margin-bottom: 1em;
}
}


/* Optional: remove top margin on the first paragraph to close any remaining gap */
.person-card .bio-text {
.mw-parser-output > p:first-of-type { margin-top: 0; }
    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;
}


/* Put title + shortdesc on the left, toolbar on the right (Vector 2022) */
.gt-header-slot::before {
@media (min-width: 720px) {
  content: "🌐 Translate:";
  /* Turn the titlebar into a 2x2 grid */
  margin-right: 6px;
  .skin-vector-2022 .vector-page-titlebar {
  color: var(--color-subtle, #54595d);
    display: grid;
  font-size: 0.9em;
    grid-template-columns: 1fr auto;
}
    grid-template-areas:
      "title toolbar"
      "subtitle toolbar";
    align-items: end;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
  }


  /* Title occupies the top-left */
/* Tidy Google’s widget */
  .skin-vector-2022 .mw-page-title-main {
.gt-header-slot .goog-te-gadget { font: inherit !important; line-height: 1.2 !important; }
    grid-area: title;
.gt-header-slot .goog-te-combo  { height: 28px; }
    margin-bottom: 0; /* avoid extra gap above subtitle */
  }


  /* Short description sits directly under the title */
/* Optional: hide tiny "Powered by" link */
  .skin-vector-2022 #siteSub {
.goog-logo-link { display: none !important; }
    grid-area: subtitle;
    display: block !important;
    font-size: 0.9em;
    color: #54595d;
    margin: 0 0 0.8rem 0;
  }


  /* Toolbar hugs the right, spanning both rows */
/* Hide the header widget on smaller screens (keeps header clean) */
   .skin-vector-2022 .vector-page-toolbar {
@media (max-width: 1000px) {
    grid-area: toolbar;
   .gt-header-slot { display: none; }
    justify-self: end;
  }
}
}

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; }
}