Template:Main page/style.css

From GATE
< Template:Main page
Revision as of 08:55, 6 March 2019 by ArchivesPUG (talk | contribs) (Created page with ".caixa-flex { display: flex; box-shadow: 0 0 30px; } .reqport { flex: 1 1 0; } .slider-container { overflow: hidden; width: 100%; height: 100%; min-height: 30vh; } ....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.caixa-flex {
	display: flex;
	box-shadow: 0 0 30px;
}

.reqport {
	flex: 1 1 0;
}

.slider-container {
	overflow: hidden;
	width: 100%;
	height: 100%;
	min-height: 30vh;
}

.slider-container ul {
	margin: 0;
	padding-left: 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;
	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 1000ms ease;
	border: solid white thin;
}

.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;
}

.nomobile .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;
}