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 84 mezilehlých verzí od stejného uživatele.)
Řádek 1: Řádek 1:
/* ===== Portable Infobox – GOLD, bez radiusu, viditelné labely ===== */
@import url("/index.php?title=MediaWiki:PortableInfobox.css&action=raw&ctype=text/css");
:root{ --pi-accent:#BF8B20; }


/* BOX */
.text-gold {
.portable-infobox{
   background: linear-gradient(
   width:min(360px,100%);
    180deg,
  float:right;
    #a0703a 0%,
  margin:0 0 1rem 1rem;
    #a0703a 25%,
  background:transparent;
    #ffcf5b 50%,
  border:1px solid rgba(0,0,0,.12);
    #a0703a 75%,
  border-radius:0 !important;
    #a0703a 100%
   box-shadow:0 4px 18px rgba(0,0,0,.08);
   ) !important;
  color:inherit;
  overflow:visible !important;
}


/* TITULEK – plná zlato, centrovaný */
  -webkit-background-clip: text !important;
.portable-infobox .pi-title{
   background-clip: text !important;
  background:var(--pi-accent) !important;
   -webkit-text-fill-color: transparent !important;
  color:#111 !important;
  color: transparent !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 rgba(0,0,0,.12);
  border-top-left-radius:0 !important; border-top-right-radius:0 !important;
}


/* OBRÁZEK – centrovaný */
   display: inline !important;
.portable-infobox .pi-image,
   white-space: normal !important;
.portable-infobox .pi-image-collection{ text-align:center !important; background:transparent !important; }
.portable-infobox .pi-image img{
   display:block !important; margin:0 auto !important;
   max-height:320px; object-fit:contain;
  border-bottom:1px solid rgba(0,0,0,.12);
  border-radius:0 !important;
}


/* SKUPINY – bez vnitřních mezer, header přes CELÝ box */
  -webkit-box-decoration-break: clone !important;
.portable-infobox .pi-group{
   box-decoration-break: clone !important;
  padding:0 !important;
   background:transparent;
  border-top:1px solid rgba(0,0,0,.10);
}
.portable-infobox .pi-group:first-of-type{ border-top:none; }


/* HLAVIČKA SKUPINY – plné zlato, bez zaoblení, celá šířka */
  filter:
.portable-infobox .pi-header{
    drop-shadow(0 1px 0 rgba(0,0,0,.35))
  margin:0 !important;
    drop-shadow(0 3px 3px rgba(0,0,0,.35))
  width:100% !important;
    drop-shadow(0 6px 12px rgba(0,0,0,.25)) !important;
  background:var(--pi-accent) !important;
  color:#111 !important;
  padding:10px 14px !important;
  border-radius:0 !important;
  border-bottom:1px solid rgba(0,0,0,.12);
  font-weight:700;
}
}


/* TĚLO SKUPINY – odsazení pro položky */
.citizen-section > p {
.portable-infobox .pi-header + .pi-data,
   margin-top: 0 !important;
.portable-infobox .pi-header + .pi-data ~ .pi-data{
   margin-bottom: 0 !important;
   padding:8px 14px !important;
   text-align: justify;
}
   text-justify: inter-word;
 
   hyphens: auto;
/* LABELY – odskrýt (Citizen je schovává) + layout 2 sloupce */
.portable-infobox .pi-data-label{
  all:unset !important; display:block !important; visibility:visible !important;
   position:static !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 rgba(0,0,0,.10) !important; }
.portable-infobox .pi-data-value{ word-break:break-word; }


/* Textové bloky přes celou šířku */
.mw-parser-output p.ve-ce-branchNode.ve-ce-contentBranchNode.ve-ce-paragraphNode {
.portable-infobox .pi-data-type-text .pi-data-value{
   margin-top: 0 !important;
   grid-column:1 / -1;
   margin-bottom: 0 !important;
  padding:8px 10px;
  border:1px solid rgba(0,0,0,.10);
  background:color-mix(in srgb, currentColor 5%, transparent);
   border-radius:0 !important;
}
}


/* DARK – automaticky přes systém */
.ve-ui-surface .ve-ce-documentNode p {
@media (prefers-color-scheme: dark){
   margin-top: 0 !important;
   .portable-infobox{ border-color:rgba(255,255,255,.22); box-shadow:0 4px 18px rgba(0,0,0,.25); }
   margin-bottom: 0 !important;
   .portable-infobox .pi-title{ border-bottom-color:rgba(255,255,255,.16); color:#111 !important; }
   text-align: justify !important;
   .portable-infobox .pi-image img{ border-bottom-color:rgba(255,255,255,.14); }
   text-justify: inter-word !important;
   .portable-infobox .pi-group{ border-top-color:rgba(255,255,255,.16); }
   hyphens: auto !important;
  .portable-infobox .pi-header{ border-bottom-color:rgba(255,255,255,.16); color:#111 !important; }
   .portable-infobox .pi-data + .pi-data{ border-top-color:rgba(255,255,255,.16) !important; }
}
}


/* RESPONSIVE */
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;
}