Шаблон:Gallery/styles.css

Материал из ultracity
Перейти к навигации Перейти к поиску
.center { /* Minerva skin doesn't provide this */
	text-align: center;
}
.gallery-banner-image {
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	margin-top: 1vh;
}
.gallery-subtitle {
	text-align: center;
}
.gallery-header {
	display: flex;
	flex-direction:row;
	flex-wrap: wrap;
	text-align:center; /* noflex */
	padding: 5px;
	margin-bottom:1em;
}

.gallery-header + .gallery-header {
	margin-top: -2em;
}

.gallery-header > .gallery-tab {
	display:inline-block; /* noflex */
	flex:1 1 0;
	align-self: flex-end;
	vertical-align:bottom; /* noflex */
	text-align:center;
	font-size:larger;
	margin: 5px;
}
.gallery-tab > .orange-marker {
	visibility: hidden;
	background-color: #a52266;
	height: 0.8em;
}
.gallery-tab.selected > .orange-marker {
	visibility: visible;
}
@media (max-width:550px) {
	.gallery-header {
		flex-direction:column;
		padding:0;
		margin-top: 0!important; /* cancels out the sibling styling */
	}
	.gallery-header > .gallery-tab {
		width: 100%;
		margin:0;
	}
	/* At smaller sizes we make the hr the green marker */
	.gallery-tab > .orange-marker {
		display:none;
	}
	.gallery-tab > p {
		margin:0 2vw 0 2vw;
	}
	.gallery-tab.selected > hr {
		background-color: #a52266;
		height: 5px;
	}
}
@media (min-width:551px) {
	.gallery-subtitle {
		font-size:155%;
	}
}