Last edited 4 days ago
by WikiSysop

MediaWiki:Common.css: Difference between revisions

WikiSysop (talk | contribs)
No edit summary
WikiSysop (talk | contribs)
No edit summary
Line 227: Line 227:
   border: 0;
   border: 0;
   font-family: inherit;
   font-family: inherit;
  font-size: 2.5rem;
   line-height: 1.15;
   line-height: 1.15;
   font-weight: bold;
   font-weight: bold;
   color: #3e5389;
   color: #3e5389;
  font-size: clamp(1.5rem, 4.6cqi, 2.2rem);
  word-break: auto-phrase;
}
}
.bs-hero__mark {
.bs-hero__mark {
   text-decoration: underline;
   text-decoration: underline;

Revision as of 11:01, 16 October 2026

/* CSS placed here will be applied to all skins */
/*modernize wikitable*/

.wikitable {background-color:white!important;}
.wikitable tr th {background-color:#f2f3f9!important}
.wikitable th, .wikitable td {border-color: #c4c5ca!important}

/*hide NeoWiki nav */
#n-links-neowiki-page-tools-label {display:none;}
 /*emphasize nav titles */
#sb-pri-cnt .card-header.menu-title {    

    background:#f1f3f9;
    border-radius:5px; 
    margin-left:5px;
    font-size:0.95em;
    padding:2px 10px ;
    margin-bottom:0.6em
}

/* images for Reference pages */
#importdata .mw li {
	margin-left: 0;
	list-style-type: none;
	padding-left: 30px;
	background: no-repeat left 1px top 3px / 18px url('/w/nsfr_img_auth.php/c/c6/MediaWiki-2020-small-icon.svg');
}

#importdata .bs li {
	margin-left: 0;
	list-style-type: none;
	padding-left: 30px;
	background: no-repeat left 2px top 4px / 15px url('/w/nsfr_img_auth.php/c/c4/Bluespice_Icon.svg');
}


/* created by Claude.ai 
   Everything is scoped to .lp-page, so other Galaxy card layouts are untouched.
   To restyle ALL pl-container-card layouts wiki-wide, delete the ".lp-page " prefixes. 
   Optimized for WCAG */
 
:root {
  --lp-accent: #2B80EA;
  --lp-accent-soft: rgba(43, 128, 234, 0.12);
  --lp-surface: #ffffff;
  --lp-border: rgba(0, 0, 0, 0.1);
  --lp-radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not(.skin-light) {
    --lp-border: rgba(255, 255, 255, 0.12);
    --lp-text: #e8eaf0;
    --lp-muted: #aab1c3;
    --lp-accent-soft: rgba(43, 128, 234, 0.22);
  }
}
 
/* Hero */
.lp-page .lp-hero {
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: var(--lp-radius);
  background:
    radial-gradient(900px 300px at 0% 0%, var(--lp-accent-soft), transparent 70%),
    var(--lp-surface);
  border: 1px solid var(--lp-border);
}
.lp-page .lp-hero h1 {
  margin: 0 0 0.5rem;
  border: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}
.lp-page .lp-lead {
  max-width: 46rem;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--lp-muted);
}
 
/* Galaxy card layout: spacing between rows and equal-height columns.
   Layout (columns, breakpoints) is left to the pl-* classes. */
.lp-page .pl-container-card {
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}
 
/* The card itself */
.lp-page .pl-container-card > .pl-col {
  position: relative;
  box-sizing: border-box;
  padding: 1.5rem;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
}

.lp-page .pl-container-card > .pl-col:hover,
.lp-page .pl-container-card > .pl-col:focus-within {
  border-color: var(--lp-accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
 
/* Icon in a tinted rounded square */
.lp-page .lp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--lp-accent-soft);
  padding-top:0.3rem;
}

.lp-page .facebook span {
    display:flex;
    align-items: center;
    justify-content: center;
    height:88%;    
}

 
/* Reset skin defaults on h2 */
.lp-page .pl-col h2 {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  font-size: 1.2rem;
  font-weight: 650;

}

 
/* Whole card clickable + arrow affordance */

.lp-page .pl-container-card > .pl-col::after {
  content: "\2192";                   /* → */
  display: block;
  margin-top: 1rem;
  font-weight: 600;

  transition: transform 0.18s ease;
}

/* visible focus ring around the whole card */
.lp-page .pl-col .card-title a:focus-visible { outline: none; }
.lp-page .pl-col .card-title a:focus-visible::after {
  outline: 3px solid var(--lp-accent);
  outline-offset: 2px;
}

/* Links: clearly recognizable without relying on color alone */
.lp-page .pl-col .card-text a,
.lp-page .pl-col .card-title a {
  text-decoration: underline dotted #3366cc;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.lp-page .pl-col .card-text a:hover {
  text-decoration-style: solid;
}
.lp-page .pl-col .card-text a:focus-visible {
  outline: 1px solid #3366cc;
  outline-offset: 2px;
  border-radius: 2px;
}

/* arrow: decorative, with empty alt text (falls back below for older browsers) */
.lp-page .pl-container-card > .pl-col::after { content: "\2192"; }
@supports (content: "x" / "") {
  .lp-page .pl-container-card > .pl-col::after { content: "\2192" / ""; }
}

.lp-page .pl-container-card > .pl-col:hover::after { transform: translateX(4px); }
 
/*hide section anchors */
.lp-page .pl-col .sectionanchors-button, #content .lp-page .pl-col .mw-editsection {display:none!important}



@media (prefers-reduced-motion: reduce) {
  .lp-page .pl-container-card > .pl-col,
  .lp-page .pl-container-card > .pl-col::after { transition: none; }
  .lp-page .pl-container-card > .pl-col:hover { transform: none; }
}

/** End landing pages styling **/

/* ===== BlueSpice Galaxy – chatbot hero banner (blue) =====
   Paste into MediaWiki:Common.css.
   Colours: #3e5389 text, #2E6096 button, #2B80EA accent, #F1F3F9 background.
   Icons and the hero graphic are embedded, no uploads needed. */

/* Banner box */
.bs-hero {
  background: #F1F3F9;
  color: #3e5389;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}
.bs-hero__inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem 3rem 3.5rem;
}

/* Text */
.bs-hero p.bs-hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2E6096;
}
.bs-hero h2.bs-hero__title {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-family: inherit;
  line-height: 1.15;
  font-weight: bold;
  color: #3e5389;
  font-size: clamp(1.5rem, 4.6cqi, 2.2rem);
   word-break: auto-phrase;
}

.bs-hero__mark {
  text-decoration: underline;
  text-decoration-color: #2B80EA;
  text-decoration-thickness: 0.15em;
}
.bs-hero p.bs-hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #3e5389;
}

/* Button and link */
.bs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.bs-hero .bs-hero__cta a,
.bs-hero .bs-hero__cta a:visited,
.bs-hero .bs-hero__cta a.new {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.625rem;
  border-radius: 2rem;
  background: #2E6096;
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: bold;
  text-decoration: none;
}
.bs-hero .bs-hero__cta a::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bs-hero .bs-hero__cta a:hover {
  background: #3e5389;
  color: #FFFFFF;
}
.bs-hero .bs-hero__link a,
.bs-hero .bs-hero__link a:visited {
  font-weight: bold;
  color: #3e5389;
  text-decoration: underline;
}
.bs-hero a:focus-visible {
  outline: 3px solid #2B80EA;
  outline-offset: 3px;
}

/* Graphic (decorative background) */
.bs-hero__graphic {
  position: relative;
  aspect-ratio: 720 / 520;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='520' viewBox='0 0 720 520' aria-hidden='true'%3E%3Ccircle cx='430' cy='262' r='214' fill='%23DFECFC'/%3E%3Ccircle cx='430' cy='262' r='150' fill='%232B80EA' opacity='0.1'/%3E%3Cellipse cx='380' cy='270' rx='340' ry='96' fill='none' stroke='%232E6096' stroke-width='2' stroke-dasharray='4 10' stroke-linecap='round' opacity='0.55' transform='rotate(-14 380 270)'/%3E%3Ccircle cx='70' cy='352' r='11' fill='%232B80EA'/%3E%3Ccircle cx='690' cy='176' r='7' fill='%232E6096'/%3E%3Cpath d='M300 30 L304 40 L314 44 L304 48 L300 58 L296 48 L286 44 L296 40 Z' fill='%232B80EA'/%3E%3Cpath d='M674 300 L677 307 L684 310 L677 313 L674 320 L671 313 L664 310 L671 307 Z' fill='%232E6096'/%3E%3Cpath d='M40 230 L43 237 L50 240 L43 243 L40 250 L37 243 L30 240 L37 237 Z' fill='%232B80EA'/%3E%3Ccircle cx='250' cy='250' r='3' fill='%232E6096'/%3E%3Ccircle cx='620' cy='30' r='3' fill='%232B80EA'/%3E%3Ccircle cx='680' cy='480' r='4' fill='%232B80EA'/%3E%3Ccircle cx='200' cy='40' r='2.5' fill='%232E6096'/%3E%3Cg transform='translate(280 112) scale(2.5)'%3E%3Cline x1='60' y1='28' x2='60' y2='16' stroke='%232E6096' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M60 2 L63 9 L70 12 L63 15 L60 22 L57 15 L50 12 L57 9 Z' fill='%232B80EA'/%3E%3Ccircle cx='16' cy='60' r='8' fill='%232E6096'/%3E%3Ccircle cx='104' cy='60' r='8' fill='%232E6096'/%3E%3Cpath d='M50 26 H70 A32 32 0 0 1 102 58 V62 A32 32 0 0 1 70 94 H56 L36 110 L42 93 A32 32 0 0 1 18 62 V58 A32 32 0 0 1 50 26 Z' fill='%232B80EA'/%3E%3Crect x='30' y='42' width='60' height='36' rx='18' fill='%233e5389'/%3E%3Cpath d='M42 62 q6 -8 12 0' stroke='%23F1F3F9' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M66 62 q6 -8 12 0' stroke='%23F1F3F9' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M54 70 q6 4 12 0' stroke='%23DFECFC' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='86' cy='36' r='4' fill='%23F1F3F9' opacity='0.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* Badges: real text placed on the graphic */
.bs-hero ul.bs-hero__badges {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bs-hero li.bs-hero__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.625rem 1rem;
  border-radius: 2rem;
  background: #FFFFFF;
  color: #3e5389;
  font-size: 0.9375rem;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 0.5rem 1.5rem rgba(46, 96, 150, 0.2);
}
.bs-hero li.bs-hero__badge::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.bs-hero li.bs-hero__badge--speed {
  top: 12%;
  right: 4%;
  background: #3e5389;
  color: #FFFFFF;
}
.bs-hero li.bs-hero__badge--always { top: 56%; left: 5%; }
.bs-hero li.bs-hero__badge--search { top: 85%; left: 50%; }
.bs-hero li.bs-hero__badge--speed::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DFECFC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.bs-hero li.bs-hero__badge--always::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.bs-hero li.bs-hero__badge--search::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); }

/* Smaller screens: text above graphic */
@media (max-width: 1100px) {
  .bs-hero__inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
  }
  .bs-hero__graphic {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
  }
}

/* Phone: smaller headline, badges below the graphic */
@media (max-width: 600px) {
  .bs-hero__inner { padding: 2rem 1rem; }
  .bs-hero h2.bs-hero__title { font-size: 1.875rem; }
  .bs-hero__graphic {
    aspect-ratio: auto;
    padding-top: 15rem;
    background-position: top center;
    background-size: auto 14rem;
  }
  .bs-hero ul.bs-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .bs-hero li.bs-hero__badge { position: static; }
}