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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 57 промежуточных версий этого же участника)
Строка 1: Строка 1:
.chem-container {
body:before {
  display: flex;
    content: "";
  flex-wrap: wrap;
    position: fixed;
  gap: 20px;
    top: 0;
  justify-content: flex-start;
    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;
}
}


.infoblock {
@keyframes snowmove {
  background: #f5f5f7;
    from { background-position: 0 0; }
  border-radius: 12px;
    to { background-position: 500px 1000px; }
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 16px;
  width: calc((100% - 40px) / 3); /* 3 колонки с отступом */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  transition: box-shadow 0.3s ease;
}
}


.infoblock:hover {
h1, h2, h3, h4, h5 {
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    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;
}
}


.header {
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
  display: flex;
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1.2em;
  font-weight: 700;
}
}


.title {
a, a:visited {
  user-select: none;
    transition: color 0.3s, text-shadow 0.3s;
}
}


.content {
a:hover {
  flex-grow: 1;
    color: #b3e5fc !important;
  display: flex;
    text-shadow: 0 0 6px #b3e5fc;
  flex-direction: column;
  gap: 14px;
}
}


 
.wikitable {
.recipe-block {
    border-color: rgba(179, 229, 252, 0.6) !important;
  display: flex;
    border-radius: 6px;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center; /* выравнивание по вертикали */
  margin-bottom: 12px;
}
 
.materials, .result {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  flex: 1 1 40%; /* чуть шире */
}
 
.action {
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  flex: 0 0 120px; /* фиксированная ширина */
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: #555;
  user-select: none;
  cursor: default;
}
}


.action span {
.wikitable th {
  margin-left: 8px;
    background: rgba(179, 229, 252, 0.1);
}
}


 
.mw-page-title-main:before {
.section {
     content: " ";
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}
 
.section ul li {
  margin-bottom: 4px;
}
 
/* Мобильная адаптация */
 
@media (max-width: 960px) {
  .infoblock {
     width: calc((100% - 20px) / 2); /* 2 колонки */
  }
}
}


@media (max-width: 600px) {
.mw-page-title-main:after {
  .infoblock {
     content: " ";
     width: 100%; /* 1 колонка */
  }
}
}

Текущая версия от 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: " ";
}