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

Страница интерфейса MediaWiki
Нет описания правки
Метка: ручная отмена
Нет описания правки
 
(не показаны 122 промежуточные версии этого же участника)
Строка 1: Строка 1:
.recipe-card {
body:before {
  width: 100%;
    content: "";
  max-width: 340px;
    position: fixed;
  margin: 1em auto;
    top: 0;
  padding: 1rem;
    left: 0;
  box-sizing: border-box;
    right: 0;
  background-color: #2a2a2a;
    bottom: 0;
  border: 2px solid #4fc3f7;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
  border-radius: 8px;
    background-repeat: repeat;
  color: #f5f5f5;
    pointer-events: none;
  font-size: 15px;
    opacity: 0.35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
  transition: transform 0.2s ease;
    animation: snowmove 60s linear infinite;
}
}


.recipe-card:hover {
@keyframes snowmove {
  transform: translateY(-2px);
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}
}


.collapsible-block {
h1, h2, h3, h4, h5 {
  margin-bottom: 1.2rem;
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    transition: text-shadow 0.3s;
}
}


.collapsible-header {
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
  background-color: #37474f;
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
  color: #81d4fa;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s ease;
}
}


.collapsible-header:hover {
a, a:visited {
  background-color: #455a64;
    transition: color 0.3s, text-shadow 0.3s;
  color: #b3e5fc;
}
}


.sprite {
a:hover {
  width: 28px;
    color: #b3e5fc !important;
  height: 28px;
    text-shadow: 0 0 6px #b3e5fc;
  background-image: url('Beaker.png');
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
}


.collapsible-header:hover .sprite {
.wikitable {
  transform: scale(1.1);
    border-color: rgba(179, 229, 252, 0.6) !important;
    border-radius: 6px;
}
}


.collapsible-content {
.wikitable th {
  overflow: hidden;
    background: rgba(179, 229, 252, 0.1);
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
  border-left: 3px solid #4fc3f7;
  padding-left: 1.8rem;
}
}


.collapsible-content.active {
.mw-page-title-main:before {
  max-height: 500px;
    content: " ";
  opacity: 1;
  margin-top: 1rem;
}
}


.recipe-list, .effect-list {
.mw-page-title-main:after {
  list-style: none;
    content: " ";
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
 
.recipe-list li, .effect-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #37474f;
  position: relative;
  padding-left: 24px;
}
 
.effect-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #4fc3f7;
  font-size: 1.4em;
  line-height: 0.8;
}
 
.chem-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px #4fc3f7);
}
 
.instruction {
  color: #81d4fa;
  font-weight: 600;
  font-size: 15px;
  background: rgba(129, 212, 250, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
}
 
.instruction::before {
  content: '➤';
  margin-right: 8px;
  color: #4fc3f7;
}
 
.recipe-description {
  margin-top: 1.2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #cfd8dc;
  border-left: 3px solid #4fc3f7;
}
 
@media (max-width: 480px) {
  .recipe-card {
    font-size: 14px;
    padding: 0.8rem;
  }
  .collapsible-header {
    padding: 0.6rem 1rem;
  }
  .instruction {
    font-size: 14px;
  }
}
}

Текущая версия от 08:23, 13 ноября 2025

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.35;
    z-index: 2;
    animation: snowmove 60s linear infinite;
}

@keyframes snowmove {
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}

h1, h2, h3, h4, h5 {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    transition: text-shadow 0.3s;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
}

a, a:visited {
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #b3e5fc !important;
    text-shadow: 0 0 6px #b3e5fc;
}

.wikitable {
    border-color: rgba(179, 229, 252, 0.6) !important;
    border-radius: 6px;
}

.wikitable th {
    background: rgba(179, 229, 252, 0.1);
}

.mw-page-title-main:before {
    content: " ";
}

.mw-page-title-main:after {
    content: " ";
}