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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
#chemical-recipes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.recipe-block {
.recipe-block {
   background-color: #2d2d2d;
   background-color: #2d2d2d;
   border-radius: 8px;
   border-radius: 8px;
   padding: 15px;
   padding: 12px;
   margin-bottom: 20px;
   margin: 0;
  width: 300px;
   box-shadow: 0 2px 5px rgba(0,0,0,0.4);
   box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  border-left: 4px solid;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
}


.recipe-name {
.recipe-name {
   font-size: 20px;
   font-size: 18px;
   font-weight: bold;
   font-weight: bold;
   margin-bottom: 10px;
   margin-bottom: 8px;
   color: #f0f0f0;
   color: #f0f0f0;
}
}
Строка 16: Строка 28:
.section-title {
.section-title {
   background-color: #3a3a3a;
   background-color: #3a3a3a;
   padding: 8px 12px;
   padding: 6px 10px;
   border-radius: 5px;
   border-radius: 5px;
   cursor: pointer;
   cursor: pointer;
   margin: 10px 0;
   margin: 8px 0;
   position: relative;
   position: relative;
   transition: background-color 0.3s;
   transition: background-color 0.3s;
Строка 31: Строка 43:
   content: '▶';
   content: '▶';
   position: absolute;
   position: absolute;
   right: 12px;
   right: 10px;
   transition: transform 0.3s;
   transition: transform 0.3s;
}
}
Строка 40: Строка 52:


.section-content {
.section-content {
   padding: 10px;
   padding: 8px;
   border-radius: 5px;
   border-radius: 5px;
   background-color: #252525;
   background-color: #252525;
Строка 51: Строка 63:


.recipe-item {
.recipe-item {
   margin-bottom: 15px;
   margin-bottom: 10px;
}
}


Строка 60: Строка 72:


.ingredients {
.ingredients {
   padding: 8px;
   padding: 6px;
   background-color: #1e1e1e;
   background-color: #1e1e1e;
   border-radius: 4px;
   border-radius: 4px;
   margin-top: 5px;
   margin-top: 5px;
   font-family: monospace;
   font-family: monospace;
  font-size: 90%;
}
}


.effect {
.effect {
   padding: 8px;
   padding: 6px;
   background-color: #1e1e1e;
   background-color: #1e1e1e;
   border-radius: 4px;
   border-radius: 4px;
   margin-bottom: 5px;
   margin-bottom: 5px;
   color: #ff6b6b;
   color: #ff6b6b;
  font-size: 90%;
}
}


Строка 79: Строка 93:
   margin-top: 10px;
   margin-top: 10px;
   color: #a0a0a0;
   color: #a0a0a0;
  font-size: 90%;
}
}



Версия от 02:58, 17 июня 2025

#chemical-recipes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.recipe-block {
  background-color: #2d2d2d;
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  border-left: 4px solid;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recipe-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.section-title {
  background-color: #3a3a3a;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin: 8px 0;
  position: relative;
  transition: background-color 0.3s;
}

.section-title:hover {
  background-color: #4a4a4a;
}

.section-title::after {
  content: '▶';
  position: absolute;
  right: 10px;
  transition: transform 0.3s;
}

.section-title.expanded::after {
  transform: rotate(90deg);
}

.section-content {
  padding: 8px;
  border-radius: 5px;
  background-color: #252525;
  display: none;
}

.section-content.expanded {
  display: block;
}

.recipe-item {
  margin-bottom: 10px;
}

.output {
  font-weight: bold;
  color: #4fc3f7;
}

.ingredients {
  padding: 6px;
  background-color: #1e1e1e;
  border-radius: 4px;
  margin-top: 5px;
  font-family: monospace;
  font-size: 90%;
}

.effect {
  padding: 6px;
  background-color: #1e1e1e;
  border-radius: 4px;
  margin-bottom: 5px;
  color: #ff6b6b;
  font-size: 90%;
}

.description {
  font-style: italic;
  margin-top: 10px;
  color: #a0a0a0;
  font-size: 90%;
}

.gas { border-color: #adff2f; }
.liquid { border-color: #1e88e5; }
.solid { border-color: #ff9800; }