MediaWiki:Common.css: Difference between revisions

mNo edit summary
mNo edit summary
 
(22 intermediate revisions by the same user not shown)
Line 424: Line 424:
     rgba(255,196,0,0.3)
     rgba(255,196,0,0.3)
   );
   );
}
/* =========================================================
  OOO CARD MOBILE TEXT
  ========================================================= */
@media (max-width: 700px) {
  .ooo-card {
    padding: 16px;
  }
  .ooo-card h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }
  .ooo-card h3 {
    font-size: 1.15rem;
    line-height: 1.25;
  }
  .ooo-card p,
  .ooo-card li {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  /* prevent text overflow */
  .ooo-card {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}
}


Line 1,428: Line 1,462:
.ooo-extlink a.external,
.ooo-extlink a.external,
.ooo-extlink a.extiw {
.ooo-extlink a.extiw {
   display: inline-flex;
   display: flex;
   align-items: center;
   align-items: center;
  justify-content: center;
   gap: 6px;
   gap: 6px;
  text-align: center;


   padding: 4px 8px;
   padding: 4px 8px;
Line 1,443: Line 1,479:
   transition: background 0.15s ease, border-color 0.15s ease;
   transition: background 0.15s ease, border-color 0.15s ease;


  /* kill MediaWiki default external icon */
   background-image: none !important;
   background-image: none !important;
}
}


/* hover */
/* hover */
.ooo-extlink a:hover,
.ooo-extlink a:hover,
.ooo-extlink a.external:hover,
.ooo-extlink a.external:hover,
Line 1,456: Line 1,492:


/* custom icon */
/* custom icon */
.ooo-extlink a::after,
.ooo-extlink a::after,
.ooo-extlink a.external::after,
.ooo-extlink a.external::after,
Line 1,461: Line 1,498:
   content: "";
   content: "";
   display: inline-block;
   display: inline-block;
   width: 12px;
   width: 12px;
   height: 12px;
   height: 12px;
   opacity: 0.8;
   opacity: 0.8;
   flex-shrink: 0;
   flex-shrink: 0;
Line 1,483: Line 1,522:
/* =========================================================
/* =========================================================
   OOO External Link Grid
   OOO External Link Grid
  4 items per column
   ========================================================= */
   ========================================================= */


.ooo-extlinks-grid {
.ooo-extlinks-grid {
   display: grid;
   display: grid;
   grid-template-columns: repeat(4, minmax(0,1fr)); /* setting for how many columns links space into */
  grid-auto-flow: column;
  gap: 8px 14px;
   grid-template-rows: repeat(4, auto);
  margin: 16px auto;


   justify-items: center;
   justify-content: start;
  align-content: start;
 
  column-gap: 10px;
  row-gap: 6px;
 
  margin: 8px 0;
}
}
/* remove MediaWiki paragraph wrappers */


.ooo-extlinks-grid p {
.ooo-extlinks-grid p {
   margin: 0;
  display: contents;
   margin: 0 !important;
  padding: 0 !important;
}
 
/* remove random line breaks */
 
.ooo-extlinks-grid br {
  display: none;
}
}
/* normalize grid items */


.ooo-extlinks-grid .ooo-extlink {
.ooo-extlinks-grid .ooo-extlink {
   display: block;
   display: block;
  margin: 0;
  align-self: start;
}
}


/* tablet */
/* tablet */
@media (max-width: 900px) {
@media (max-width: 900px) {
   .ooo-extlinks-grid {
   .ooo-extlinks-grid {
     grid-template-columns: repeat(3, minmax(0,1fr)); /* setting for how many columns links space into */
     grid-template-rows: repeat(3, auto);
   }
   }
}
}


/* mobile */
/* mobile */
@media (max-width: 600px) {
@media (max-width: 600px) {
   .ooo-extlinks-grid {
   .ooo-extlinks-grid {
     grid-template-columns: repeat(2, minmax(0,1fr)); /* setting for how many columns links space into */
    grid-auto-flow: row;
     grid-template-columns: 1fr;
    grid-template-rows: none;
   }
   }
}
.skin-theme-clientpref-day .ooo-extlink a,
.skin-theme-clientpref-day .ooo-extlink a.external,
.skin-theme-clientpref-day .ooo-extlink a.extiw {
  background: rgba(245,196,0,0.12);
  border-color: rgba(245,196,0,0.55);
  color: #9a7a00 !important;
}
.skin-theme-clientpref-day .ooo-extlink a:hover {
  background: rgba(245,196,0,0.22);
}
/* =========================================================
  OOO MENU LINK – navigation style
  ========================================================= */
.mw-parser-output .ooo-menulink a {
  display: block;
  position: relative;
  padding: 4px 8px 4px 14px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.18s ease, color 0.18s ease;
}
/* left accent bar (always visible) */
.mw-parser-output .ooo-menulink a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: var(--ooo-accent);
  opacity: 0.6;
}
/* arrow */
.mw-parser-output .ooo-menulink a::after {
  content: "➜";
  position: absolute;
  right: 6px;
  opacity: 0;
  transform: translateX(-4px);
  color: var(--ooo-accent);
  font-weight: 700;
  transition: 0.18s ease;
}
/* hover */
.mw-parser-output .ooo-menulink a:hover {
  font-weight: 700;
  color: var(--ooo-accent) !important;
  background: linear-gradient(
    to right,
    rgba(245,196,0,0.10),
    rgba(245,196,0,0.02)
  );
}
/* show arrow */
.mw-parser-output .ooo-menulink a:hover::after {
  opacity: 1;
  transform: translateX(0);
}
/* =========================================================
  OOO MENU LINK – COMING SOON
  ========================================================= */
.mw-parser-output .ooo-menulink-soon a {
  display: block;
  position: relative;
  padding: 4px 8px 4px 14px;
  opacity: 0.55;
  text-decoration: none !important;
  color: inherit;
  cursor: default;
}
/* dashed left indicator */
.mw-parser-output .ooo-menulink-soon a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(245,196,0,0.5),
    rgba(245,196,0,0.5) 2px,
    transparent 2px,
    transparent 4px
  );
}
/* auto label */
.mw-parser-output .ooo-menulink-soon a::after {
  content: " (coming soon)";
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.7;
}
/* disable hover effects */
.mw-parser-output .ooo-menulink-soon a:hover {
  background: none;
  color: inherit !important;
  font-weight: normal;
}
/* =========================================================
  OOO MENU SUB SECTION
  ========================================================= */
.mw-parser-output .ooo-menusub {
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ooo-accent);
  border-bottom: 1px solid rgba(245,196,0,0.35);
  padding-bottom: 3px;
  letter-spacing: 0.02em;
}
}