Widget:AddonsStyle: mudanças entre as edições

De PokeXGames
Ir para navegação Ir para pesquisar
Sem resumo de edição
Sem resumo de edição
Linha 1: Linha 1:
<style>
<style>
body {
     font-family: Arial, sans-serif;
     .input-group { margin-bottom: 1em; position: relative; }
    background-color: #f0f0f0;
.dropdown {
    margin: 0;
border: 1px solid #ccc;
    padding: 20px;
display: none;
position: absolute;
background-color: #fff;
max-height: 150px;
overflow-y: auto;
max-width: 30; /* Ajusta a largura mínima */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adiciona uma sombra sutil */
}
}


.input-group {
    .dropdown-item {
    position: relative;
        padding: 8px;
    width: 100%;
        cursor: pointer;
}
        display: flex;
 
        align-items: center;
#imageSearch {
    }
     width: 100%;
     .dropdown-item img {
    padding: 10px;
        margin-right: 10px;
     font-size: 16px;
     }
     border-radius: 5px;
     .dropdown-item:hover {
    border: 1px solid #ccc;
        background-color: #f0f0f0;
}
    }
 
    .image-container {
#dropdown {
        display: flex;
    position: absolute;
        flex-direction: column;
    top: 100%;
        align-items: center;
    left: 0;
        justify-content: center;
    right: 0;
     }
     background-color: white;
    .image-item {
    border: 1px solid #ccc;
        margin-bottom: 1em;  
    border-radius: 5px;
        text-align: center;
     max-height: 200px;
     }
     overflow-y: auto;
     .image-item img {
    display: none;
        display: block;
    z-index: 10;
        margin: 0 auto;
}
    }


.dropdown-item {
    .variations-container {
    padding: 10px;
        display: flex;
    display: flex;
        flex-wrap: wrap;
    align-items: center;
        justify-content: center;
    cursor: pointer;
        margin-top: 1em;
}
    }


.dropdown-item img {
    .variation-item {
    width: 40px;
        width: 35%;
    height: 40px;
        box-sizing: border-box;
    margin-right: 10px;
        margin: 5px;
}
        text-align: center;
        border: 1px solid ;
        padding: 10px;
    }


.image-container {
    .variation-item img {
    margin-top: 20px;
        display: block;
    display: none;
        margin: 0 auto 10px;
}
    }


.variation-item {
    .swap-button {  
    display: flex;
        margin-top: 10px;
    align-items: center;
        cursor: pointer;
    margin-bottom: 10px;
        width: 15px;
}
        height: 15px;
 
        background: url('https://wiki.pokexgames.com/images/f/fb/SwapButtonAddons.png') no-repeat center;
.variation-image {
        background-size: contain;
    width: 100px;
        display: block;
    height: 100px;
        margin: 0 auto;
    margin-right: 10px;
     }
    transition: all 0.3s ease;
}
 
.swap-button {
    cursor: pointer;
    margin-left: 10px;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}
 
.image-info {
     margin-left: 10px;
}
</style>
</style>

Edição das 23h21min de 23 de dezembro de 2024

<style>

   .input-group { margin-bottom: 1em; position: relative; }

.dropdown { border: 1px solid #ccc; display: none; position: absolute; background-color: #fff; max-height: 150px; overflow-y: auto; max-width: 30; /* Ajusta a largura mínima */ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adiciona uma sombra sutil */ }

   .dropdown-item {
       padding: 8px;
       cursor: pointer;
       display: flex;
       align-items: center;
   }
   .dropdown-item img {
       margin-right: 10px;
   }
   .dropdown-item:hover {
       background-color: #f0f0f0;
   }
   .image-container {
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
   }
   .image-item { 
       margin-bottom: 1em; 
       text-align: center;
   }
   .image-item img {
       display: block;
       margin: 0 auto;
   }
   .variations-container {
       display: flex;
       flex-wrap: wrap;
       justify-content: center;
       margin-top: 1em;
   }
   .variation-item {
       width: 35%;
       box-sizing: border-box;
       margin: 5px;
       text-align: center;
       border: 1px solid ;
       padding: 10px;
   }
   .variation-item img {
       display: block;
       margin: 0 auto 10px;
   }
   .swap-button { 
       margin-top: 10px;
       cursor: pointer;
       width: 15px;
       height: 15px;
       background: url('https://wiki.pokexgames.com/images/f/fb/SwapButtonAddons.png') no-repeat center;
       background-size: contain;
       display: block;
       margin: 0 auto;
   }

</style>