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 1: Linha 1:
/**/
/**/
.select-box {
 
   position: relative;
.selectwithSearch__container {
   width: 100%;
  padding: 0 2rem;
}
 
.selectwithSearch__selectBtn {
   display: flex;
   display: flex;
   width: 400px;
   align-items: center;
   flex-direction: column;
   cursor: pointer;
}
}


.select-box .options-container {
.selectwithSearch__selectBtn {
   background: #2f3640;
   height: 4rem;
   color: #f5f6fa;
   padding: 0 1.2rem;
   max-height: 0;
   font-size: 1.3rem;
   width: 100%;
   background: #fff;
  opacity: 0;
  transition: all 0.4s;
   border-radius: 8px;
   border-radius: 8px;
   overflow: hidden;
   justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


   order: 1;
.selectwithSearch__selectBtn svg {
   font-size: 2rem;
  transition: transform .3s linear;
}
}


.selected {
.selectwithSearch__container.active .selectwithSearch__selectBtn svg {
   background: #2f3640;
  transform: rotate(-180deg);
}
 
.selectwithSearch__content {
  display: none;
  padding: 1.2rem;
  margin-top: .45rem;
   background: #fff;
   border-radius: 8px;
   border-radius: 8px;
   margin-bottom: 8px;
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  color: #f5f6fa;
}
  position: relative;


   order: 0;
.selectwithSearch__container.active .selectwithSearch__content {
   display: block;
}
}


.selected::after {
.selectwithSearch__content .selectwithSearch__search {
   content: "";
   position: relative;
  background: url("img/arrow-down.svg");
}
  background-size: contain;
  background-repeat: no-repeat;


.selectwithSearch__search svg {
  top: 50%;
  left: 1rem;
  color: #999;
  font-size: 1.2rem;
  pointer-events: none;
  transform: translateY(-50%);
   position: absolute;
   position: absolute;
  height: 100%;
  width: 32px;
  right: 10px;
  top: 5px;
  transition: all 0.4s;
}
}


.select-box .options-container.active {
.selectwithSearch__search input {
   max-height: 240px;
   height: 3.25rem;
   opacity: 1;
   width: 100%;
   overflow-y: scroll;
  outline: none;
   margin-top: 54px;
   font-size: 1rem;
   border-radius: 8px;
  padding: 0 1.2rem 0 4rem;
  border: 1px solid #B3B3B3;
}
}


.select-box .options-container.active + .selected::after {
.selectwithSearch__search input:focus {
   transform: rotateX(180deg);
   padding-left: 4rem;
   top: -6px;
   border: 2px solid #4285f4;
}
}


.select-box .options-container::-webkit-scrollbar {
.selectwithSearch__search input::placeholder {
   width: 8px;
   color: #bfbfbf;
  background: #0d141f;
  border-radius: 0 8px 8px 0;
}
}


.select-box .options-container::-webkit-scrollbar-thumb {
.selectwithSearch__content .selectwithSearch__options {
   background: #525861;
  margin-top: .5rem;
   border-radius: 0 8px 8px 0;
  padding-right: .5rem;
   max-height: 250px;
   overflow-y: auto;
}
}


.select-box .option,
.selectwithSearch__options::-webkit-scrollbar {
.selected {
   width: 8px;
   padding: 12px 24px;
  cursor: pointer;
}
}


.select-box .option:hover {
.selectwithSearch__options::-webkit-scrollbar-track {
   background: #414b57;
   background: #f1f1f1;
  border-radius: 25px;
}
}


.select-box label {
.selectwithSearch__options::-webkit-scrollbar-thumb {
   cursor: pointer;
   background: #ccc;
  border-radius: 25px;
}
}


.select-box .option .radio {
.selectwithSearch__options::-webkit-scrollbar-thumb:hover {
   display: none;
   background: #b3b3b3;
}
}


/* Searchbox */
.selectwithSearch__options li {
  height: 3rem;
  display: flex;
  align-items: center;
  padding: 0 .75rem;
  font-size: 1.2rem;


.search-box input {
   cursor: pointer;
  width: 100%;
}
  padding: 12px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  position: absolute;
  border-radius: 8px 8px 0 0;
   z-index: 100;
  border: 8px solid #2f3640;


   opacity: 0;
li.groupTitle {
   pointer-events: none;
   background-color: rgba(0, 0, 0, .075);
   transition: all 0.4s;
   margin-bottom: .25rem;
   margin-top: .35rem;
  border-bottom: 1px solid #d1d1d1;
  border-radius: 12px 12px 0 0 !important;
}
}


.search-box input:focus {
li.groupTitle:hover {
   outline: none;
  border-radius: 12px 12px 0 0 !important;
   background: rgba(0, 0, 0, .075) !important;
}
}


.select-box .options-container.active ~ .search-box input {
.selectwithSearch__options li:hover,
   opacity: 1;
li.selected {
   pointer-events: auto;
   border-radius: 8px;
   background: #f2f2f2;
}
}
/**/
/**/

Menu de navegação