Šablona:Dlaždice / styles.css

styles.css

Z Wiki JU
Verze z 9. 10. 2026, 08:06, kterou vytvořil Ofara (diskuse | příspěvky) (založena nová stránka s textem „→Šablona:Dlaždice/styles.css (TemplateStyles, content model: Sanitized CSS): .dlazdice-polozka { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 12px; background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; } .dlazdice-polozka:hover { tra…“)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
/* Šablona:Dlaždice/styles.css (TemplateStyles, content model: Sanitized CSS) */

.dlazdice-polozka {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 16px 12px;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dlazdice-polozka:hover {
	transform: translateY(-3px);
	border-color: #36c;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.dlazdice-obrazek {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 1em; /* 1em = velikost obrázku, nastavená přes font-size */
	line-height: 0;
	margin-bottom: 10px;
}

.dlazdice-obrazek img {
	width: 1em;
	max-width: 100%;
	height: auto;
}

.dlazdice-nazev {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
}

/* Odkaz v názvu se roztáhne přes celou kartu, takže je klikací celá dlaždice */
.dlazdice-nazev a::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 10px;
}

.dlazdice-nazev a,
.dlazdice-nazev a:visited {
	color: inherit;
	text-decoration: none;
}

.dlazdice-popis {
	margin-top: 6px;
	font-size: .85rem;
	line-height: 1.4;
	color: #5b6470;
}