Toggle menu
Toggle preferences menu
Toggle personal menu
Nejste přihlášen(a)
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Porovnání verzí

MediaWiki interface page
Bez shrnutí editace
Bez shrnutí editace
 
(Není zobrazeno 89 mezilehlých verzí od stejného uživatele.)
Řádek 1: Řádek 1:
:root{ --pi-accent:#d4af37; }
@import url("/index.php?title=MediaWiki:PortableInfobox.css&action=raw&ctype=text/css");
@media (prefers-color-scheme: dark){
 
   :root{ --pi-bd:rgba(255,255,255,.22); --pi-sep:rgba(255,255,255,.16); --pi-soft:rgba(255,255,255,.05); }
.text-gold {
}
   background: linear-gradient(
    180deg,
    #a0703a 0%,
    #a0703a 25%,
    #ffcf5b 50%,
    #a0703a 75%,
    #a0703a 100%
  ) !important;


.portable-infobox{
  -webkit-background-clip: text !important;
  width:min(360px,100%); float:right; margin:0 0 1rem 1rem;
   background-clip: text !important;
   background:transparent; border:1px solid var(--pi-bd,rgba(0,0,0,.12));
  -webkit-text-fill-color: transparent !important;
   border-radius:16px; box-shadow:0 4px 18px rgba(0,0,0,.08); color:inherit;
   color: transparent !important;
}


/* Titulek – celé zlato + centrování */
   display: inline !important;
.portable-infobox .pi-title{
   white-space: normal !important;
  background:var(--pi-accent) !important; color:#111 !important;
   display:flex !important; align-items:center !important; justify-content:center !important;
  text-align:center !important; padding:12px 14px 10px !important;
   border-bottom:1px solid var(--pi-sep,rgba(0,0,0,.12)) !important;
  border-top-left-radius:16px !important; border-top-right-radius:16px !important;
}


/* Obrázek na střed */
  -webkit-box-decoration-break: clone !important;
.portable-infobox .pi-image,.portable-infobox .pi-image-collection{ text-align:center !important; background:transparent !important; }
  box-decoration-break: clone !important;
.portable-infobox .pi-image img{ display:block !important; margin:0 auto !important; max-height:320px; object-fit:contain;
  border-bottom:1px solid var(--pi-sep,rgba(0,0,0,.12)); }


/* ZLATÉ hlavičky skupin (vyžaduje <header>Text</header>) */
  filter:
.portable-infobox .pi-header{
    drop-shadow(0 1px 0 rgba(0,0,0,.35))
  background:var(--pi-accent) !important; color:#111 !important; font-weight:700;
    drop-shadow(0 3px 3px rgba(0,0,0,.35))
  padding:8px 12px; border-radius:10px; margin:10px 12px 6px;
    drop-shadow(0 6px 12px rgba(0,0,0,.25)) !important;
  border:1px solid var(--pi-bd,rgba(0,0,0,.12));
}
}


/* Tělo skupiny */
.citizen-section > p {
.portable-infobox .pi-group{ background:var(--pi-soft,rgba(0,0,0,.035));
  margin-top: 0 !important;
   border-top:1px solid var(--pi-sep,rgba(0,0,0,.12)); padding:6px 12px 8px; }
  margin-bottom: 0 !important;
   text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


/* **ODSKRYTÍ LABELŮ** (Citizen je schovává) + 2 sloupce */
.mw-parser-output p.ve-ce-branchNode.ve-ce-contentBranchNode.ve-ce-paragraphNode {
.portable-infobox .pi-data-label{
   margin-top: 0 !important;
  all: unset !important; display:block !important; visibility:visible !important; position:static !important;
   margin-bottom: 0 !important;
  clip:auto !important; clip-path:none !important; height:auto !important; width:auto !important; overflow:visible !important;
  font-weight:600 !important; opacity:.9; margin:0;
}
.portable-infobox .pi-data{
   display:grid !important; grid-template-columns:44% 56% !important; gap:6px 10px !important;
   padding:8px 0 !important; border-top:none !important;
}
}
.portable-infobox .pi-data + .pi-data{ border-top:1px solid var(--pi-sep,rgba(0,0,0,.12)) !important; }
.portable-infobox .pi-data-value{ word-break:break-word; }


/* Textová pole přes celou šířku */
.ve-ui-surface .ve-ce-documentNode p {
.portable-infobox .pi-data-type-text .pi-data-value{
   margin-top: 0 !important;
   grid-column:1 / -1; padding:8px 10px; border-radius:10px;
  margin-bottom: 0 !important;
   border:1px solid var(--pi-sep,rgba(0,0,0,.10)); background:color-mix(in srgb,currentColor 5%,transparent);
  text-align: justify !important;
   text-justify: inter-word !important;
  hyphens: auto !important;
}
}


/* Responsivita */
p:not(.mw-empty-elt) + ul,p:not(.mw-empty-elt) + ol,p:not(.mw-empty-elt) + table,p:not(.mw-empty-elt) + dl,p:not(.mw-empty-elt) + blockquote {
@media (max-width:720px){
    margin-top: 5px !important;
  .portable-infobox{ float:none!important; width:100%!important; margin:0 0 1rem 0!important; }
  .portable-infobox .pi-image img{ max-height:260px; }
}
}

Aktuální verze z 14. 10. 2025, 11:54

@import url("/index.php?title=MediaWiki:PortableInfobox.css&action=raw&ctype=text/css");

.text-gold {
  background: linear-gradient(
    180deg,
    #a0703a 0%,
    #a0703a 25%,
    #ffcf5b 50%,
    #a0703a 75%,
    #a0703a 100%
  ) !important;

  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;

  display: inline !important;
  white-space: normal !important;

  -webkit-box-decoration-break: clone !important;
  box-decoration-break: clone !important;

  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,.35))
    drop-shadow(0 3px 3px rgba(0,0,0,.35))
    drop-shadow(0 6px 12px rgba(0,0,0,.25)) !important;
}

.citizen-section > p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.mw-parser-output p.ve-ce-branchNode.ve-ce-contentBranchNode.ve-ce-paragraphNode {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ve-ui-surface .ve-ce-documentNode p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
}

p:not(.mw-empty-elt) + ul,p:not(.mw-empty-elt) + ol,p:not(.mw-empty-elt) + table,p:not(.mw-empty-elt) + dl,p:not(.mw-empty-elt) + blockquote {
    margin-top: 5px !important;
}