Jump to content

MediaWiki:Common.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Vector 2022: title + shortdesc on left, toolbar on right (top row only) */
/* Styling for a grid of cards */
@media (min-width: 720px) {
.card-grid {
  .skin-vector-2022 .vector-page-titlebar {
     display: grid;
     display: grid;
     grid-template-columns: 1fr auto;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     grid-template-areas:
    gap: 20px;
      "title toolbar"
     margin-top: 1em;
      "subtitle subtitle";  /* subtitle gets its own row */
}
     align-items: end;
 
     column-gap: .75rem;
/* Card container, styled to look like the main page boxes */
     row-gap: .15rem;
.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);
}


  /* Title */
/* Card title, mimicking the main page's h2 style */
  .skin-vector-2022 .mw-page-title-main {
.card-h2 {
     grid-area: title;
    border: 1px solid #aaa;
     margin: 0;
    margin: 0.5em 0;
  }
    padding: 0.2em 0.4em;
    font-size: 120%;
    font-weight: bold;
    font-family: inherit;
     background-color: #f9f9f9;
     text-align: center;
}


  /* Subtitle (ShortDescription) */
/* Styles for the individual cards */
  .skin-vector-2022 #siteSub {
.person-card {
    grid-area: subtitle;
     display: flex;
     display: block !important;
     flex-direction: column;
     margin: .25rem 0 .9rem !important;  /* adjust to taste */
}
    font-size: .95em;
    color: #54595d;
  }


  /* Toolbar sits in the top-right only */
.person-card .card-image {
  .skin-vector-2022 .vector-page-toolbar {
     text-align: center;
     grid-area: toolbar;
}
    align-self: end;
    justify-self: end;
  }


  /* Kill extra bottom spacing/border some builds add */
.person-card img {
  .skin-vector-2022 .vector-page-toolbar,
    border-radius: 50%;
  .skin-vector-2022 .vector-page-toolbar .mw-portlet,
    width: 150px;
  .skin-vector-2022 .vector-page-toolbar .vector-menu-content,
     height: 150px;
  .skin-vector-2022 .vector-page-titlebar,
     object-fit: cover;
  .skin-vector-2022 .vector-page-toolbar-container {
     margin-bottom: 1em;
     margin-bottom: 0 !important;
}
     padding-bottom: 0 !important;
     border-bottom: 0 !important;
  }


  /* Fallback for setups that still use #p-views / #p-namespaces */
.person-card .bio-text {
  .skin-vector-2022 #p-views,
     flex-grow: 1;
  .skin-vector-2022 #p-namespaces {
     margin-bottom: 1em;
     margin-bottom: 0 !important;
     text-align: center;
     padding-bottom: 0 !important;
     border-bottom: 0 !important;
  }
}
}


/* Optional: remove top margin from first paragraph to tidy the block below */
.person-card .links {
.mw-parser-output > p:first-of-type { margin-top: 0; }
    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; }
}

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