MediaWiki:Common.css: mudanças entre as edições

Ir para navegação Ir para pesquisar
sem sumário de edição
Sem resumo de edição
Sem resumo de edição
Linha 579: Linha 579:
/* Tests */
/* Tests */


.content {
@keyframes tonext {
   margin: 10% auto;
  75% {
    left: 0;
  }
  95% {
    left: 100%;
  }
  98% {
    left: 100%;
  }
  99% {
    left: 0;
  }
}
 
@keyframes tostart {
  75% {
    left: 0;
  }
  95% {
    left: -300%;
  }
  98% {
    left: -300%;
  }
  99% {
    left: 0;
  }
}
 
@keyframes snap {
  96% {
    scroll-snap-align: center;
  }
  97% {
    scroll-snap-align: none;
  }
  99% {
    scroll-snap-align: none;
  }
  100% {
    scroll-snap-align: center;
  }
}
 
body {
  max-width: 37.5rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  font-family: 'Lato', sans-serif;
}
 
* {
  box-sizing: border-box;
  scrollbar-color: transparent transparent; /* thumb and track color */
  scrollbar-width: 0px;
}
 
*::-webkit-scrollbar {
  width: 0;
}
 
*::-webkit-scrollbar-track {
  background: transparent;
}
 
*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}
 
* {
  -ms-overflow-style: none;
}
 
ol, li {
  list-style: none;
   margin: 0;
   padding: 0;
   padding: 0;
  background-color: antiquewhite;
  border-radius: 10px;
  height: 300px;
  width: 600px;
  overflow: hidden;
  border: 1px saddlebrown solid;
  box-shadow: 20px hsl(0, 0%, 3%);
  z-index: -1;
}
}
.show {
 
   padding: 10%;
.carousel {
   margin: auto;
   position: relative;
  justify-content: center;
   padding-top: 75%;
   align-items: center;
   filter: drop-shadow(0 0 10px #0003);
  font-style: italic;
   perspective: 100px;
   width: fit-content;
}
}


.slide_content {
.carousel__viewport {
   float: left;
   position: absolute;
   width: 600px;
   top: 0;
   height: 300px;
   right: 0;
}
   bottom: 0;
.slides {
   left: 0;
   width: 2400px;
   -webkit-animation-name: slide;
  -webkit-animation-duration: 10s;
  -webkit-animation-iteration-count: infinite;
  /* -webkit-animation-direction: alternate; */
  -webkit-animation-play-state: running;
   display: flex;
   display: flex;
   justify-content: center;
   overflow-x: scroll;
   align-items: center;
   counter-reset: item;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
}
.slide_content:nth-child(1) {
 
   background: rgb(247, 173, 210);
.carousel__slide {
   z-index: 1;
  position: relative;
  flex: 0 0 100%;
  width: 100%;
   background-color: #f99;
   counter-increment: item;
}
}


.slide_content:nth-child(2) {
.carousel__slide:nth-child(even) {
   background: hsl(108, 100%, 88%);
   background-color: #99f;
}
}


.slide_content:nth-child(3) {
.carousel__slide:before {
   background: rgb(226, 192, 192);
  content: counter(item);
  position: absolute;
  top: 50%;
  left: 50%;
   transform: translate3d(-50%,-40%,70px);
  color: #fff;
  font-size: 2em;
}
}


.slide_content:nth-child(4) {
.carousel__snapper {
   background: rgb(236, 236, 149);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
   scroll-snap-align: center;
}
}


@keyframes slide {
@media (hover: hover) {
   20% {
   .carousel__snapper {
     margin-left: 0px;
     animation-name: tonext, snap;
    animation-timing-function: ease;
    animation-duration: 4s;
    animation-iteration-count: infinite;
   }
   }


   40% {
   .carousel__slide:last-child .carousel__snapper {
     margin-left: calc(-600px * 1);
     animation-name: tostart, snap;
   }
   }
}


   60% {
@media (prefers-reduced-motion: reduce) {
     margin-left: calc(-600px * 2);
   .carousel__snapper {
     animation-name: none;
   }
   }
}
.carousel:hover .carousel__snapper,
.carousel:focus-within .carousel__snapper {
  animation-name: none;
}
.carousel__navigation {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
}
.carousel__navigation-list,
.carousel__navigation-item {
  display: inline-block;
}
.carousel__navigation-button {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #333;
  background-clip: content-box;
  border: 0.25rem solid transparent;
  border-radius: 50%;
  font-size: 0;
  transition: transform 0.1s;
}
.carousel::before,
.carousel::after,
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 0;
  margin-top: 37.5%;
  width: 4rem;
  height: 4rem;
  transform: translateY(-50%);
  border-radius: 50%;
  font-size: 0;
  outline: 0;
}
.carousel::before,
.carousel__prev {
  left: -1rem;
}
.carousel::after,
.carousel__next {
  right: -1rem;
}
.carousel::before,
.carousel::after {
  content: '';
  z-index: 1;
  background-color: #333;
  background-size: 1.5rem 1.5rem;
  background-repeat: no-repeat;
  background-position: center center;
  color: #fff;
  font-size: 2.5rem;
  line-height: 4rem;
  text-align: center;
  pointer-events: none;
}


   80% {
.carousel::before {
    margin-left: calc(-600px * 3);
   background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23fff'/%3E%3C/svg%3E");
  }
}
 
.carousel::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23fff'/%3E%3C/svg%3E");
}
}

Menu de navegação