MediaWiki:Common.css: различия между версиями

Материал из Вики вселенной ржомб
Перейти к навигации Перейти к поиску
Новая страница: « infobox: .pi { float: right; width: 260px; margin: 0 0 1em 1em; border: 2px solid #999; background: #f9f9f9; font-family: Arial, sans-serif; font-size: 12px; box-shadow: 2px 2px 0 #ccc; } .pi-title { background: #d6d6d6; text-align: center; font-weight: bold; padding: 5px; border-bottom: 1px solid #999; } .pi-data-label { background: #eee; font-weight: bold; padding: 2px 4px; width:...»
 
Нет описания правки
Строка 1: Строка 1:
/* Retro PortableInfobox for MediaWiki Vector */
.portable-infobox {
  /* Core structure */
  border: 2px solid #4a5568;
  border-radius: 0;
  background: #f7f5e6;
  color: #2d3748;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 4px 4px 0 #a0aec0;
 
  /* Retro terminal feel */
  margin: 1em 0;
  width: 270px;
  float: right;
  clear: right;
  margin-left: 1em;
}
/* Title styling - amber monitor style */
.portable-infobox .pi-title {
  background: #1a202c;
  color: #f6ad55;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 12px;
  border-bottom: 2px solid #4a5568;
  text-shadow: 0 0 2px #f6ad55;
}
/* Header sections */
.portable-infobox .pi-header {
  background: #e2e8f0;
  color: #2d3748;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-top: 1px solid #a0aec0;
  border-bottom: 1px solid #a0aec0;
}
/* Data rows */
.portable-infobox .pi-data {
  border-bottom: 1px dotted #a0aec0;
  padding: 6px 12px;
}
.portable-infobox .pi-data:last-child {
  border-bottom: none;
}
/* Labels */
.portable-infobox .pi-data-label {
  color: #4a5568;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
/* Values */
.portable-infobox .pi-data-value {
  color: #2d3748;
  font-size: 12px;
}
/* Links in retro style */
.portable-infobox a {
  color: #2b6cb0;
  text-decoration: underline;
}
.portable-infobox a:hover {
  color: #c53030;
  background: #fefcbf;
}
/* Images */
.portable-infobox .pi-image {
  background: #1a202c;
  border-bottom: 2px solid #4a5568;
  padding: 8px;
}


/* infobox */
.portable-infobox .pi-image img {
  border: 1px solid #4a5568;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
 
/* Image collection */
.portable-infobox .pi-image-collection {
  background: #1a202c;
  border-bottom: 2px solid #4a5568;
}
 
/* Navigation */
.portable-infobox .pi-navigation {
  background: #e2e8f0;
  font-size: 11px;
  padding: 8px 12px;
  border-top: 2px solid #4a5568;
}
 
/* Horizontal group */
.portable-infobox .pi-horizontal-group {
  border-bottom: 1px dotted #a0aec0;
}
 
.portable-infobox .pi-horizontal-group-item {
  border-right: 1px dotted #a0aec0;
}
 
.portable-infobox .pi-horizontal-group-item:last-child {
  border-right: none;
}
 
/* Collapsible sections */
.portable-infobox .pi-collapse .pi-header::after {
  content: " [+]";
  color: #4a5568;
  font-size: 10px;
}
 
.portable-infobox .pi-collapse.pi-collapse-closed .pi-header::after {
  content: " [-]";
}


.pi {
/* Alternative color schemes via data attributes */
    float: right;
.portable-infobox[data-theme="green"] .pi-title {
    width: 260px;
  color: #68d391;
    margin: 0 0 1em 1em;
  text-shadow: 0 0 2px #68d391;
    border: 2px solid #999;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
    font-size: 12px;
    box-shadow: 2px 2px 0 #ccc;
}
}


.pi-title {
.portable-infobox[data-theme="amber"] .pi-title {
    background: #d6d6d6;
  color: #f6ad55;
    text-align: center;
  text-shadow: 0 0 2px #f6ad55;
    font-weight: bold;
    padding: 5px;
    border-bottom: 1px solid #999;
}
}


.pi-data-label {
.portable-infobox[data-theme="cyan"] .pi-title {
    background: #eee;
  color: #63b3ed;
    font-weight: bold;
  text-shadow: 0 0 2px #63b3ed;
    padding: 2px 4px;
    width: 40%;
}
}


.pi-data-value {
/* Mobile responsiveness */
     padding: 2px 4px;
@media screen and (max-width: 720px) {
  .portable-infobox {
     float: none;
    width: 100%;
    margin: 1em 0;
    box-shadow: 2px 2px 0 #a0aec0;
  }
}
}


.pi-image img {
/* Print styles - clean retro */
     max-width: 100%;
@media print {
     border: 1px solid #aaa;
  .portable-infobox {
     background: white;
    box-shadow: none;
    border: 1px solid #000;
  }
 
  .portable-infobox .pi-title {
     background: #fff;
    color: #000;
    text-shadow: none;
     border: 1px solid #000;
  }
 
  .portable-infobox .pi-image {
     background: #fff;
  }
}
}

Версия от 16:25, 3 июля 2026

/* Retro PortableInfobox for MediaWiki Vector */
.portable-infobox {
  /* Core structure */
  border: 2px solid #4a5568;
  border-radius: 0;
  background: #f7f5e6;
  color: #2d3748;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 4px 4px 0 #a0aec0;
  
  /* Retro terminal feel */
  margin: 1em 0;
  width: 270px;
  float: right;
  clear: right;
  margin-left: 1em;
}

/* Title styling - amber monitor style */
.portable-infobox .pi-title {
  background: #1a202c;
  color: #f6ad55;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 12px;
  border-bottom: 2px solid #4a5568;
  text-shadow: 0 0 2px #f6ad55;
}

/* Header sections */
.portable-infobox .pi-header {
  background: #e2e8f0;
  color: #2d3748;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-top: 1px solid #a0aec0;
  border-bottom: 1px solid #a0aec0;
}

/* Data rows */
.portable-infobox .pi-data {
  border-bottom: 1px dotted #a0aec0;
  padding: 6px 12px;
}

.portable-infobox .pi-data:last-child {
  border-bottom: none;
}

/* Labels */
.portable-infobox .pi-data-label {
  color: #4a5568;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* Values */
.portable-infobox .pi-data-value {
  color: #2d3748;
  font-size: 12px;
}

/* Links in retro style */
.portable-infobox a {
  color: #2b6cb0;
  text-decoration: underline;
}

.portable-infobox a:hover {
  color: #c53030;
  background: #fefcbf;
}

/* Images */
.portable-infobox .pi-image {
  background: #1a202c;
  border-bottom: 2px solid #4a5568;
  padding: 8px;
}

.portable-infobox .pi-image img {
  border: 1px solid #4a5568;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Image collection */
.portable-infobox .pi-image-collection {
  background: #1a202c;
  border-bottom: 2px solid #4a5568;
}

/* Navigation */
.portable-infobox .pi-navigation {
  background: #e2e8f0;
  font-size: 11px;
  padding: 8px 12px;
  border-top: 2px solid #4a5568;
}

/* Horizontal group */
.portable-infobox .pi-horizontal-group {
  border-bottom: 1px dotted #a0aec0;
}

.portable-infobox .pi-horizontal-group-item {
  border-right: 1px dotted #a0aec0;
}

.portable-infobox .pi-horizontal-group-item:last-child {
  border-right: none;
}

/* Collapsible sections */
.portable-infobox .pi-collapse .pi-header::after {
  content: " [+]";
  color: #4a5568;
  font-size: 10px;
}

.portable-infobox .pi-collapse.pi-collapse-closed .pi-header::after {
  content: " [-]";
}

/* Alternative color schemes via data attributes */
.portable-infobox[data-theme="green"] .pi-title {
  color: #68d391;
  text-shadow: 0 0 2px #68d391;
}

.portable-infobox[data-theme="amber"] .pi-title {
  color: #f6ad55;
  text-shadow: 0 0 2px #f6ad55;
}

.portable-infobox[data-theme="cyan"] .pi-title {
  color: #63b3ed;
  text-shadow: 0 0 2px #63b3ed;
}

/* Mobile responsiveness */
@media screen and (max-width: 720px) {
  .portable-infobox {
    float: none;
    width: 100%;
    margin: 1em 0;
    box-shadow: 2px 2px 0 #a0aec0;
  }
}

/* Print styles - clean retro */
@media print {
  .portable-infobox {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .portable-infobox .pi-title {
    background: #fff;
    color: #000;
    text-shadow: none;
    border: 1px solid #000;
  }
  
  .portable-infobox .pi-image {
    background: #fff;
  }
}