styles.css: Porovnání verzí

Z Wiki JU
Ofara (diskuse | příspěvky)
Bez shrnutí editace
Ofara (diskuse | příspěvky)
Bez shrnutí editace
 
(Nejsou zobrazeny 3 mezilehlé verze od stejného uživatele.)
Řádek 6: Řádek 6:
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
gap: 16px;
margin: 1em 0;
margin: 16px 0;
}
}


.dlazdice-polozka {
.dlazdice-polozka {
position: relative;
position: relative;
box-sizing: border-box;
min-width: 0;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
Řádek 26: Řádek 28:
transform: translateY(-3px);
transform: translateY(-3px);
border-color: #d33;
border-color: #d33;
box-shadow: 0 6px 16px rgba(221, 51, 51, .25);
}
}


.dlazdice-obrazek {
.dlazdice-obrazek {
display: flex;
display: block;
align-items: center;
box-sizing: border-box;
justify-content: center;
width: 100%; /* obrázek se nikdy nezvětší přes šířku karty */
min-height: 1em; /* 1em = velikost obrázku, nastavená přes font-size */
min-width: 0;
overflow: hidden;
text-align: center;
line-height: 0;
line-height: 0;
margin-bottom: 10px;
margin-bottom: 10px;
Řádek 39: Řádek 42:


.dlazdice-obrazek img {
.dlazdice-obrazek img {
width: 1em;
width: 1em; /* 1em = velikost obrázku, nastavená přes font-size */
max-width: 100%;
max-width: 100%;
height: auto;
height: auto;
Řádek 83: Řádek 86:
font-weight: 600;
font-weight: 600;
line-height: 1.5;
line-height: 1.5;
color: #7a4b00;
color: #fff;
background: #fff1cc;
background: #d33;
border: 1px solid #f0c969;
border: 1px solid #d33;
border-radius: 999px;
border-radius: 999px;
}
/* Kontejner má velký font-size (velikost obrázků), proto odstavce uvnitř nesmí mít em odsazení */
.dlazdice p {
margin: 0;
line-height: 0;
}
}

Aktuální verze z 9. 10. 2026, 08:48

/* Šablona:Dlaždice/styles.css (TemplateStyles, content model: Sanitized CSS) */

/* Mřížka: výchozí = automatický počet sloupců podle šířky */
.dlazdice {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin: 16px 0;
}

.dlazdice-polozka {
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	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: #d33;
}

.dlazdice-obrazek {
	display: block;
	box-sizing: border-box;
	width: 100%; /* obrázek se nikdy nezvětší přes šířku karty */
	min-width: 0;
	overflow: hidden;
	text-align: center;
	line-height: 0;
	margin-bottom: 10px;
}

.dlazdice-obrazek img {
	width: 1em; /* 1em = velikost obrázku, nastavená přes font-size */
	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;
}

/* Odznak v pravém horním rohu (např. "Po přihlášení") */
.dlazdice-odznak {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 2px 8px;
	font-size: .7rem;
	font-weight: 600;
	line-height: 1.5;
	color: #fff;
	background: #d33;
	border: 1px solid #d33;
	border-radius: 999px;
}

/* Kontejner má velký font-size (velikost obrázků), proto odstavce uvnitř nesmí mít em odsazení */
.dlazdice p {
	margin: 0;
	line-height: 0;
}