MediaWiki:Common.css: відмінності між версіями

Add styles for add-place button
(Fix card image sizing with object-fit cover)
(Add styles for add-place button)
Рядок 1: Рядок 1:
.place-card{
/* Add-place button */
   display:flex;
.add-place-btn{ text-align:center; margin:20px 0; }
  gap:16px;
.add-place-btn a{
   padding:12px;
   display:inline-block; background:#2a6df4; color:#fff !important;  
  border:1px solid #ddd;
   padding:10px 14px; border-radius:8px; text-decoration:none;  
  border-radius:12px;
   font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.12);
   background:#fff;
  margin:0 0 14px 0;
}
}
.place-card__img{ width:260px; flex:0 0 260px; height:180px; overflow:hidden; }
.add-place-btn a:hover{ background:#1f57c2; }
.place-card__img img{ width:100%; height:100%; object-fit:cover; border-radius:10px; display:block; }
.place-card__title{ font-size:18px; font-weight:700; margin:0 0 6px 0; }
.place-card__meta{ font-size:14px; opacity:.9; margin:0 0 8px 0; }
.place-card__desc{ font-size:14px; line-height:1.35; }
70

редагувань