Template:Main Page/style.css

From USApedia
< Template:Main Page
Revision as of 10:08, 19 December 2024 by Star (talk | contribs) (Created page with ".caixa-flex { display: flex; box-shadow: 0 0 7px rgba( 0, 0, 0, 0.5 ); max-width: 1500px; margin: 0 auto; } .reqport { flex: 1 1 0; } .slider-container { overflow: hidden; width: 100%; height: 100%; min-height: 30vh; } .slider-container ul { margin: 0; padding: 0; display: table; table-layout: fixed; height: 100%; list-style: none; } .card { height: 100%; color: #fff; } .card .background { height: 0; } .card .background img { positi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.caixa-flex {
	display: flex;
	box-shadow: 0 0 7px rgba( 0, 0, 0, 0.5 );
	max-width: 1500px;
	margin: 0 auto;
}

.reqport {
	flex: 1 1 0;
}
.slider-container {
	overflow: hidden;
	width: 100%;
	height: 100%;

	min-height: 30vh;

}

.slider-container ul {

	margin: 0;

	padding: 0;

	display: table;

	table-layout: fixed;

	height: 100%;

	list-style: none;

}

.card {

	height: 100%;

	color: #fff;

}

.card .background {

	height: 0;

}

.card .background img {

	position: absolute;

	width: 100%;

	height: auto;

	min-height: 100%;

	object-fit: cover;

}

.card-overlay {

	overflow: hidden;

	width: 100%;

	height: 100%;

	position: absolute;

	background: black;

	opacity: 0;

}

.card .content {

	position: absolute;

	box-sizing: border-box;

	padding: 0.25em 0.5em;

	margin: 0;

	display: flex;

	flex-direction: column;

	height: inherit;

	width: 100%;

}

.card .title {

	font-size: 150%;

	font-weight: bold;

	text-shadow: black 0px 0px 5px;

}

.card .description {

	flex: auto;

}

.card .image-link {

	z-index: 1;

}

.card .image-link a {

	color: #fff;

	font-size: 75%;

	text-decoration: underline;

	float: right;

	max-width: 100%;

	overflow: hidden;

	white-space: nowrap;

}

.nomobile.slider-container ul {

	width: 100%;

}

.nomobile.slider-container li {

	display: table-cell;

	position: relative;

	width: 33.33333%;

	transition: all 400ms ease;

	border: 1px solid white;

	border-right: 1px solid #ccc;

}

.nomobile.slider-container li:last-child {

	border-right: 0;

}

.nomobile.slider-container ul:hover li {

	width: 10%;

}

.nomobile.slider-container ul:hover li:hover {

	width: 60%;

}

  

.nomobile.slider-container li:hover .card-overlay {

	opacity: 0.7;

}

.nomobile.slider-container li:hover .show-on-hover {

	opacity: 1;

}

.nomobile .card .show-on-hover {

	opacity: 0;

}

.card > a {

	position: absolute;

	width: 100%;

	height: 100%;

	z-index: 1;

	opacity: 0;

}

.nomobile ~ .onlymobile {

	display: none;

}

.onlymobile .card {

 	position: relative;

 	overflow: hidden;

}

 

.onlymobile .background {

 	position: relative;

}

.onlymobile .content {

 	position: relative;

}

.onlymobile .card-overlay {

	opacity: 0.7;

}