80 lines
1.3 KiB
CSS
80 lines
1.3 KiB
CSS
* {box-sizing: border-box}
|
|
body {margin:0;}
|
|
.mySlides {display: none}
|
|
.show-image {vertical-align: middle;}
|
|
|
|
.slideshow-container {
|
|
max-width: 1000px;
|
|
position: relative;
|
|
|
|
margin: auto;
|
|
top: 0px;
|
|
}
|
|
|
|
.prev, .next {
|
|
cursor: pointer;
|
|
position: absolute;
|
|
top: 50%;
|
|
width: auto;
|
|
padding: 16px;
|
|
margin-top: -22px;
|
|
color: white;
|
|
font-weight: bold;
|
|
font-size: 18px;
|
|
transition: 0.6s ease;
|
|
border-radius: 0 10px 10px 0;
|
|
user-select: none;
|
|
}
|
|
|
|
.next {
|
|
right: 0;
|
|
border-radius: 10px 0 0 10px;
|
|
}
|
|
|
|
.prev:hover, .next:hover {
|
|
background-color: rgba(0, 120, 138, 0.8);
|
|
}
|
|
|
|
.text {
|
|
color: #f2f2f2;
|
|
background-color: rgba(0, 120, 138, 0.8);
|
|
font-size: 15px;
|
|
padding: 4px 6px;
|
|
position: absolute;
|
|
bottom: 2px;
|
|
margin-left: 20%;
|
|
width: 60%;
|
|
border-radius: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.numbertext {
|
|
color: #f2f2f2;
|
|
background-color: rgba(0, 120, 138, 0.8);
|
|
border-radius: 0 0 15px 0;
|
|
font-size: 12px;
|
|
padding: 4px 10px;
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
.fade {
|
|
-webkit-animation-name: fade;
|
|
-webkit-animation-duration: 1.5s;
|
|
animation-name: fade;
|
|
animation-duration: 1.5s;
|
|
}
|
|
|
|
@-webkit-keyframes fade {
|
|
from {opacity: .9}
|
|
to {opacity: 1}
|
|
}
|
|
|
|
@keyframes fade {
|
|
from {opacity: .9}
|
|
to {opacity: 1}
|
|
}
|
|
|
|
@media only screen and (max-width: 300px) {
|
|
.prev, .next,.text {font-size: 11px}
|
|
} |