User:Yuriy kosygin/Template:Test/style.css

来自维基导游

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
.caixa-flex {
	display: flex;
	box-shadow: 0 0 5px;
}

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

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