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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показана 51 промежуточная версия этого же участника)
Строка 1: Строка 1:
body {
body:before {
  font-family: sans-serif;
    content: "";
  background-color: #f0f0f0;
    position: fixed;
  margin: 0;
    top: 0;
  padding: 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;
}
}


.chem-container {
@keyframes snowmove {
  display: flex;
    from { background-position: 0 0; }
  flex-wrap: wrap;
    to { background-position: 500px 1000px; }
  justify-content: space-around;
  padding: 20px;
  gap: 20px;
}
}


.infoblock {
h1, h2, h3, h4, h5 {
  background-color: #fff;
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
  border: 1px solid #ccc;
    transition: text-shadow 0.3s;
  margin: 15px;
  padding: 20px;
  width: calc(30% - 30px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
}


.infoblock .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;
  margin-bottom: 10px;
}
}


.infoblock img {
a, a:visited {
  width: 24px;
    transition: color 0.3s, text-shadow 0.3s;
  height: auto;
  margin-right: 5px;
}
}


.title {
a:hover {
  color: #ff4d4d;
    color: #b3e5fc !important;
  font-weight: bold;
    text-shadow: 0 0 6px #b3e5fc;
}
}


.infoblock .content {
.wikitable {
  margin-bottom: 20px;
    border-color: rgba(179, 229, 252, 0.6) !important;
  display: flex;
    border-radius: 6px;
  flex-direction: column;
  gap: 14px;
}
}


.recipe-block {
.wikitable th {
  border: 1px solid #eee;
    background: rgba(179, 229, 252, 0.1);
  padding: 15px;
  background-color: #f9f9f9;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
}


.materials,
.mw-page-title-main:before {
.result,
    content: " ";
.action {
  background-color: #f9f9f9;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
  flex: 1 1 40%;
  font-size: 0.95em;
  overflow-wrap: break-word;
}
}


.action {
.mw-page-title-main:after {
  display: flex;
     content: " ";
  align-items: center;
  justify-content: center;
  flex: 0 0 120px;
  font-weight: 600;
  color: #555;
  user-select: none;
  cursor: default;
}
 
.action img {
  width: 24px;
  height: auto;
  margin-right: 5px;
}
 
.section-title {
  font-weight: bold;
  margin-bottom: 5px;
}
 
ul {
  list-style-type: disc;
  padding-left: 20px;
}
 
.section {
  margin-top: 20px;
  background-color: #f9f9f9;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9em;
  color: #222;
}
 
.section ul li {
  margin-bottom: 4px;
}
 
@media (max-width: 768px) {
  .infoblock {
     width: calc(50% - 30px);
  }
}
 
@media (max-width: 480px) {
  .infoblock {
    width: calc(100% - 30px);
  }
 
  .recipe-block {
    flex-direction: column;
  }
 
  .materials,
  .result,
  .action {
    flex: 1 1 100%;
  }
 
  .action {
    margin-top: 8px;
  }
}
}

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