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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
:root {
:root {
  --primary-bg: #f5f5f7;
  --header-bg: #ddd;
  --recipe-bg: #e5e5e5;
  --text-color: #222;
  --subtext-color: #555;
  --accent-color: #995500;
  --border-color: #ccc;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --width-layout: 100vw;
  --card-padding: 16px;
  --gap: 20px;


}
}


@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
  :root {


  }
  :root {
 
    --primary-bg: #2b2b2b;
 
    --header-bg: #333;
 
    --recipe-bg: #3a3a3a;
 
    --text-color: #e0e0e0;
 
    --subtext-color: #ccc;
 
    --accent-color: #ffd;
 
    --border-color: #555;
 
    --shadow-color: rgba(0, 0, 0, 0.5);
 
  }
 
}
}


body {
body {
  font-family: sans-serif;
 
  background-color: #f0f0f0;
  font-family: sans-serif;
  margin: 0;
 
  padding: 0;
  background-color: #f0f0f0;
  color: var(--text-color);
 
  margin: 0;
 
  padding: 0;
 
  color: var(--text-color);
 
}
}


.chem-container {
.chem-container {
  display: flex;
 
  flex-wrap: wrap;
  display: flex;
  gap: var(--gap);
 
  justify-content: flex-start;
  flex-wrap: wrap;
  max-width: var(--width-layout);
 
  margin: 0 auto;
  gap: var(--gap);
  padding: 20px;
 
  box-sizing: border-box;
  justify-content: flex-start;
 
  max-width: var(--width-layout);
 
  margin: 0 auto;
 
  padding: 20px;
 
  box-sizing: border-box;
 
}
}


.infoblock {
.infoblock {
  background: var(--primary-bg);
 
  border-radius: 12px;
  background: var(--primary-bg);
  box-shadow: 0 2px 8px var(--shadow-color);
 
  padding: var(--card-padding);
  border-radius: 12px;
  width: calc((100% - 40px) / 3);
 
  box-sizing: border-box;
  box-shadow: 0 2px 8px var(--shadow-color);
  display: flex;
 
  flex-direction: column;
  padding: var(--card-padding);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
 
  color: var(--text-color);
  width: calc((100% - 40px) / 3);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
 
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  margin: 15px;
 
  display: flex;
 
  flex-direction: column;
 
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
 
  color: var(--text-color);
 
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
 
  border: 1px solid var(--border-color);
 
  margin: 15px;
 
}
}


.infoblock:hover {
.infoblock:hover {
  box-shadow: 0 6px 18px var(--shadow-color);
 
  box-shadow: 0 6px 18px var(--shadow-color);
 
}
}


.header {
.header {
  display: flex;
 
  align-items: center;
  display: flex;
  gap: 8px;
 
  margin-bottom: 12px;
  align-items: center;
  font-size: 1.2em;
 
  font-weight: 700;
  gap: 8px;
  background: var(--header-bg);
 
  padding: 6px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
 
  user-select: none;
  font-size: 1.2em;
  color: var(--accent-color);
 
  font-weight: 700;
 
  background: var(--header-bg);
 
  padding: 6px 12px;
 
  border-radius: 8px;
 
  user-select: none;
 
  color: var(--accent-color);
 
}
}


.title {
.title {
  color: #ff4d4d;
 
  font-weight: bold;
  color: #ff4d4d;
  user-select: none;
 
  font-weight: bold;
 
  user-select: none;
 
}
}


.infoblock img,
.infoblock img,
.header img,
.header img,
.action img {
.action img {
  width: 24px;
 
  height: auto;
  width: 24px;
  margin-right: 5px;
 
  height: auto;
 
  margin-right: 5px;
 
}
}


.content {
.content {
  flex-grow: 1;
 
  display: flex;
  flex-grow: 1;
  flex-direction: column;
 
  gap: 14px;
  display: flex;
  margin-bottom: 20px;
 
  flex-direction: column;
 
  gap: 14px;
 
  margin-bottom: 20px;
 
}
}


.recipe-block {
.recipe-block {
  display: flex;
 
  gap: 12px;
  display: flex;
  flex-wrap: nowrap;
 
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
 
  background-color: #f9f9f9;
  flex-wrap: nowrap;
  border: 1px solid #eee;
 
  padding: 15px;
  align-items: center;
 
  margin-bottom: 12px;
 
  background-color: #f9f9f9;
 
  border: 1px solid #eee;
 
  padding: 15px;
 
}
}


.materials,
.materials,
.result {
.result {
  background: var(--recipe-bg);
 
  padding: 12px 16px;
  background: var(--recipe-bg);
  border-radius: 8px;
 
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  flex: 1 1 40%;
 
  color: var(--text-color);
  border-radius: 8px;
  font-size: 0.95em;
 
  overflow-wrap: break-word;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
 
  flex: 1 1 40%;
 
  color: var(--text-color);
 
  font-size: 0.95em;
 
  overflow-wrap: break-word;
 
  margin-bottom: 10px;
 
}
}


.action {
.action {
  background: var(--recipe-bg);
 
  padding: 12px 20px;
  background: var(--recipe-bg);
  border-radius: 8px;
 
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  flex: 0 0 120px;
 
  display: flex;
  border-radius: 8px;
  justify-content: center;
 
  align-items: center;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  font-weight: 600;
 
  color: var(--subtext-color);
  flex: 0 0 120px;
  user-select: none;
 
  cursor: default;
  display: flex;
  margin-bottom: 10px;
 
  justify-content: center;
 
  align-items: center;
 
  font-weight: 600;
 
  color: var(--subtext-color);
 
  user-select: none;
 
  cursor: default;
 
  margin-bottom: 10px;
 
}
}


.action span {
.action span {
  margin-left: 8px;
 
  margin-left: 8px;
 
}
}


.section {
.section {
  background: var(--recipe-bg);
 
  padding: 10px 14px;
  background: var(--recipe-bg);
  border-radius: 8px;
 
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  padding: 10px 14px;
  color: var(--text-color);
 
  font-size: 0.9em;
  border-radius: 8px;
  margin-top: 20px;
 
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
 
  color: var(--text-color);
 
  font-size: 0.9em;
 
  margin-top: 20px;
 
}
}


.section-title {
.section-title {
  font-weight: bold;
 
  margin-bottom: 5px;
  font-weight: bold;
 
  margin-bottom: 5px;
 
}
}


.section ul {
.section ul {
  list-style-type: disc;
 
  padding-left: 20px;
  list-style-type: disc;
 
  padding-left: 20px;
 
}
}


.section ul li {
.section ul li {
  margin-bottom: 4px;
 
  margin-bottom: 4px;
 
}
}


@media (max-width: 960px) {
@media (max-width: 960px) {
  .infoblock {
 
    width: calc((100% - 20px) / 2);
  .infoblock {
  }
 
    width: calc((100% - 20px) / 2);
 
  }
 
}
}


@media (max-width: 600px) {
@media (max-width: 600px) {
  .infoblock {
    width: 100%;
  }


  .recipe-block {
  .infoblock {
    flex-wrap: wrap;
 
  }
    width: 100%;
 
  }
 
 
 
  .recipe-block {
 
    flex-wrap: wrap;
 
  }
 
 
 
  .materials,
 
  .result,
 
  .action {
 
    flex: 1 1 100%;
 
  }
 
 
 
  .action {
 
    margin-top: 8px;


  .materials,
  }
  .result,
  .action {
    flex: 1 1 100%;
  }


  .action {
    margin-top: 8px;
  }
}
}

Версия от 17:36, 7 июля 2025

:root {

  --primary-bg: #f5f5f7;

  --header-bg: #ddd;

  --recipe-bg: #e5e5e5;

  --text-color: #222;

  --subtext-color: #555;

  --accent-color: #995500;

  --border-color: #ccc;

  --shadow-color: rgba(0, 0, 0, 0.1);

  --width-layout: 100vw;

  --card-padding: 16px;

  --gap: 20px;

}



@media (prefers-color-scheme: dark) {

  :root {

    --primary-bg: #2b2b2b;

    --header-bg: #333;

    --recipe-bg: #3a3a3a;

    --text-color: #e0e0e0;

    --subtext-color: #ccc;

    --accent-color: #ffd;

    --border-color: #555;

    --shadow-color: rgba(0, 0, 0, 0.5);

  }

}



body {

  font-family: sans-serif;

  background-color: #f0f0f0;

  margin: 0;

  padding: 0;

  color: var(--text-color);

}



.chem-container {

  display: flex;

  flex-wrap: wrap;

  gap: var(--gap);

  justify-content: flex-start;

  max-width: var(--width-layout);

  margin: 0 auto;

  padding: 20px;

  box-sizing: border-box;

}



.infoblock {

  background: var(--primary-bg);

  border-radius: 12px;

  box-shadow: 0 2px 8px var(--shadow-color);

  padding: var(--card-padding);

  width: calc((100% - 40px) / 3);

  box-sizing: border-box;

  display: flex;

  flex-direction: column;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  color: var(--text-color);

  transition: box-shadow 0.3s ease, background-color 0.3s ease;

  border: 1px solid var(--border-color);

  margin: 15px;

}



.infoblock:hover {

  box-shadow: 0 6px 18px var(--shadow-color);

}



.header {

  display: flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 12px;

  font-size: 1.2em;

  font-weight: 700;

  background: var(--header-bg);

  padding: 6px 12px;

  border-radius: 8px;

  user-select: none;

  color: var(--accent-color);

}



.title {

  color: #ff4d4d;

  font-weight: bold;

  user-select: none;

}



.infoblock img,

.header img,

.action img {

  width: 24px;

  height: auto;

  margin-right: 5px;

}



.content {

  flex-grow: 1;

  display: flex;

  flex-direction: column;

  gap: 14px;

  margin-bottom: 20px;

}



.recipe-block {

  display: flex;

  gap: 12px;

  flex-wrap: nowrap;

  align-items: center;

  margin-bottom: 12px;

  background-color: #f9f9f9;

  border: 1px solid #eee;

  padding: 15px;

}



.materials,

.result {

  background: var(--recipe-bg);

  padding: 12px 16px;

  border-radius: 8px;

  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);

  flex: 1 1 40%;

  color: var(--text-color);

  font-size: 0.95em;

  overflow-wrap: break-word;

  margin-bottom: 10px;

}



.action {

  background: var(--recipe-bg);

  padding: 12px 20px;

  border-radius: 8px;

  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);

  flex: 0 0 120px;

  display: flex;

  justify-content: center;

  align-items: center;

  font-weight: 600;

  color: var(--subtext-color);

  user-select: none;

  cursor: default;

  margin-bottom: 10px;

}



.action span {

  margin-left: 8px;

}



.section {

  background: var(--recipe-bg);

  padding: 10px 14px;

  border-radius: 8px;

  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);

  color: var(--text-color);

  font-size: 0.9em;

  margin-top: 20px;

}



.section-title {

  font-weight: bold;

  margin-bottom: 5px;

}



.section ul {

  list-style-type: disc;

  padding-left: 20px;

}



.section ul li {

  margin-bottom: 4px;

}



@media (max-width: 960px) {

  .infoblock {

    width: calc((100% - 20px) / 2);

  }

}



@media (max-width: 600px) {

  .infoblock {

    width: 100%;

  }



  .recipe-block {

    flex-wrap: wrap;

  }



  .materials,

  .result,

  .action {

    flex: 1 1 100%;

  }



  .action {

    margin-top: 8px;

  }

}