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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
.recipe-card {
.recipe-card {
   width: 22%;
   width: 22%;
   min-width: 200px;
   min-width: 220px;
   box-sizing: border-box;
   box-sizing: border-box;
   padding: 1em;
   padding: 1.5em;
   margin: 1em;
   margin: 1em;
   display: inline-block;
   display: inline-block;
   vertical-align: top;
   vertical-align: top;
   background-color: #1a1a1a;
   background-color: #212121;
   border: 2px solid #444;
   border: 2px solid #444;
   border-radius: 10px;
   border-radius: 10px;
   color: white;
   color: #f5f5f5;
   font-size: 12px;
   font-size: 14px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease;
}
}


.recipe-card[data-border] {
.recipe-card:hover {
   /* Цвет границы будет задан через JS */
  transform: translateY(-5px);
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
}


.collapsible-block {
.collapsible-block {
   margin-top: 0.5em;
   margin-top: 1em;
   border-bottom: 1px solid #444;
   border-bottom: 1px solid #555;
   padding-bottom: 0.3em;
   padding-bottom: 0.5em;
}
}


.collapsible-header {
.collapsible-header {
  display: flex;
   background-color: #333;
  justify-content: space-between;
  align-items: center;
   background-color: #2b2b2b;
   border: 1px solid #666;
   border: 1px solid #666;
   border-radius: 5px;
   border-radius: 5px;
   padding: 6px 10px;
   padding: 10px 15px;
   font-size: 14px;
   font-size: 16px;
   font-weight: bold;
   font-weight: bold;
   color: #81d4fa;
   color: #81d4fa;
  text-transform: uppercase;
   cursor: pointer;
   cursor: pointer;
   text-align: left;
   transition: background-color 0.3s ease, color 0.3s ease;
   width: 100%;
   width: 100%;
}
.collapsible-header:hover {
  background-color: #444;
  color: #ffffff;
}
}


.collapsible-content {
.collapsible-content {
   display: none;
   display: none;
   margin-top: 0.5em;
   margin-top: 1em;
  padding-left: 1em;
  border-left: 2px solid #444;
}
}


.recipe-description {
.recipe-description {
   margin-top: 0.5em;
   margin-top: 1em;
  font-size: 14px;
   color: #ccc;
   color: #ccc;
   font-size: 13px;
}
 
.recipe-description strong {
   color: #81d4fa;
}
}

Версия от 03:10, 3 мая 2025

.recipe-card {
  width: 22%;
  min-width: 220px;
  box-sizing: border-box;
  padding: 1.5em;
  margin: 1em;
  display: inline-block;
  vertical-align: top;
  background-color: #212121;
  border: 2px solid #444;
  border-radius: 10px;
  color: #f5f5f5;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.collapsible-block {
  margin-top: 1em;
  border-bottom: 1px solid #555;
  padding-bottom: 0.5em;
}

.collapsible-header {
  background-color: #333;
  border: 1px solid #666;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  color: #81d4fa;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 100%;
}

.collapsible-header:hover {
  background-color: #444;
  color: #ffffff;
}

.collapsible-content {
  display: none;
  margin-top: 1em;
  padding-left: 1em;
  border-left: 2px solid #444;
}

.recipe-description {
  margin-top: 1em;
  font-size: 14px;
  color: #ccc;
}

.recipe-description strong {
  color: #81d4fa;
}