Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Участник:Alivepillow/песочница/Шаблоны/Kventcard/styles.css: различия между версиями

Материал из Space Station 14 | Время приключений Вики
Alivepillow (обсуждение | вклад)
Новая страница: «body { background-color: #0d1117; color: #c9d1d9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; margin: 0; padding: 20px; } .wiki-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; } .wiki-card { background-color: #161b22; border: 1px solid #30363d; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 1...»
 
Alivepillow (обсуждение | вклад)
мНет описания правки
Строка 1: Строка 1:
body {
  background-color: #0d1117;
  color: #c9d1d9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 20px;
}
.wiki-grid {
.wiki-grid {
   display: grid;
   display: grid;
Строка 12: Строка 4:
   gap: 20px;
   gap: 20px;
   max-width: 1200px;
   max-width: 1200px;
   margin: 0 auto;
   margin: 15px auto;
}
}


Строка 27: Строка 19:
.card-image {
.card-image {
   width: 100%;
   width: 100%;
   height: 300px;  
   height: 300px;
   background-color: #0d1117;
   background-color: #0d1117;
   display: flex;
   display: flex;
Строка 35: Строка 27:
   border-bottom: 1px solid #30363d;
   border-bottom: 1px solid #30363d;
}
}


.card-image img {
.card-image img {
   width: 100%;
   max-width: 100%;
   height: 100%;
   max-height: 100%;
   object-fit: contain;  
  width: auto;
  height: auto;
   object-fit: contain;
}
}


/* Текст */
.card-content {
.card-content {
   padding: 20px;
   padding: 20px;
   font-size: 14px;
   font-size: 14px;
   line-height: 1.5;
   line-height: 1.5;
  color: #c9d1d9;
}
}



Версия от 19:24, 9 ноября 2026

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 15px auto;
}

.wiki-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: 300px;
  background-color: #0d1117;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #30363d;
}


.card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Текст */
.card-content {
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #c9d1d9;
}

.card-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #f0f6fc;
  font-size: 18px;
  border-bottom: 1px solid #21262d;
  padding-bottom: 8px;
}

.card-content p {
  margin: 6px 0;
}

.card-content strong {
  color: #8b949e;
}

.card-content hr {
  border: 0;
  border-top: 1px solid #21262d;
  margin: 15px 0;
}