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

Страница интерфейса MediaWiki
Нет описания правки
Метка: отменено
Нет описания правки
 
(не показано 18 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* ==================== Сетка карточек ==================== */
body:before {
.recipes-grid {
    content: "";
  display: flex;
    position: fixed;
  flex-wrap: wrap;
    top: 0;
  gap: var(--card-gap);
    left: 0;
  margin: 8px 0;
    right: 0;
  justify-content: flex-start;
    bottom: 0;
  padding-left: var(--content-left);
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
  padding-right: var(--content-right);
    background-repeat: repeat;
  box-sizing: border-box;
    pointer-events: none;
    opacity: 0.35;
    z-index: 2;
    animation: snowmove 60s linear infinite;
}
}


.recipe-card {
@keyframes snowmove {
  background: #1a1a1a;
    from { background-position: 0 0; }
  border: 1px solid #444;
    to { background-position: 500px 1000px; }
  border-radius: 8px;
  padding: 8px 10px;
  flex: 1 1 calc((100% - 3 * var(--card-gap)) / 4);
  min-width: 220px;
  max-width: 1fr;
  box-sizing: border-box;
  color: #ddd;
  font-size: 13px;
  line-height: 1.3em;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
}


.recipe-card:hover {
h1, h2, h3, h4, h5 {
  border-color: #7CFC00;
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
  box-shadow: 0 0 10px rgba(124,252,0,0.6);
    transition: text-shadow 0.3s;
}
}


.element-title {
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
  display: block;
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
  text-align: center;
  font-weight: bold;
  color: #7CFC00;
  font-size: 14px;
  margin-bottom: 6px;
}
}


.element-description {
a, a:visited {
  font-size: 12px;
    transition: color 0.3s, text-shadow 0.3s;
  color: #bbb;
  text-align: center;
  margin-bottom: 6px;
  font-style: italic;
}
}


.recipe-line b {
a:hover {
  display: block;
    color: #b3e5fc !important;
  margin-bottom: 4px;
    text-shadow: 0 0 6px #b3e5fc;
  color: #ffcc00;
}
}


.recipe-line {
.wikitable {
  display: flex;
    border-color: rgba(179, 229, 252, 0.6) !important;
  flex-wrap: wrap; /* разрешаем перенос внутри карточки, чтобы рецепт не вылезал */
    border-radius: 6px;
  gap: 4px;
  margin-bottom: 6px;
  word-break: break-word; /* длинные слова будут переноситься */
}
}


/* ==================== Ингредиенты ==================== */
.wikitable th {
.ingredient {
    background: rgba(179, 229, 252, 0.1);
  background: #333;
  color: #ffcc00;
  border-radius: 4px;
  padding: 2px 5px;
  font-weight: bold;
  display: inline-block;
  flex-shrink: 0; /* не уменьшаем сильно */
}
}


.ingredient.product {
.mw-page-title-main:before {
  background: #7CFC00;
    content: " ";
  color: #222;
}
}


.arrow {
.mw-page-title-main:after {
  font-weight: bold;
     content: " ";
  color: #ccc;
  flex-shrink: 0;
}
 
/* ==================== Мобильная версия ==================== */
@media (max-width: 600px) {
  .recipe-card {
    flex: 1 1 100%;
    min-width: 0;
  }
}
 
/* ==================== Широкие экраны ≥1120px ==================== */
@media screen and (min-width: 1120px) {
  .recipe-card {
     flex: 1 1 calc((100% - 3 * var(--card-gap)) / 4); /* 4 карточки в ряд */
  }
}
}

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