MediaWiki:Common.css: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
Sem resumo de edição |
||
Linha 2: | Linha 2: | ||
.select-box { | .select-box { | ||
position: relative; | position: relative; | ||
display: flex; | |||
width: 400px; | |||
flex-direction: column; | |||
} | } | ||
. | .select-box .options-container { | ||
background: #2f3640; | |||
color: #f5f6fa; | |||
max-height: 0; | |||
width: 100%; | width: 100%; | ||
opacity: 0; | |||
transition: all 0.4s; | |||
border-radius: 8px; | |||
border-radius: | overflow: hidden; | ||
order: 1; | |||
} | |||
.selected { | |||
background: #2f3640; | |||
border-radius: 8px; | |||
margin-bottom: 8px; | |||
color: #f5f6fa; | |||
position: relative; | |||
order: 0; | |||
} | } | ||
. | .selected::after { | ||
content: ""; | |||
background: url("img/arrow-down.svg"); | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
position: absolute; | position: absolute; | ||
height: 100%; | |||
width: 32px; | |||
right: 10px; | |||
top: 5px; | |||
transition: all 0.4s; | |||
} | |||
.select-box .options-container.active { | |||
max-height: 240px; | |||
opacity: 1; | |||
overflow-y: scroll; | |||
margin-top: 54px; | |||
} | |||
.select-box .options-container.active + .selected::after { | |||
transform: rotateX(180deg); | |||
top: -6px; | |||
} | |||
.select-box .options-container::-webkit-scrollbar { | |||
width: 8px; | |||
background: #0d141f; | |||
border-radius: 0 8px 8px 0; | |||
} | |||
.select-box .options-container::-webkit-scrollbar-thumb { | |||
background: #525861; | |||
border-radius: 0 8px 8px 0; | |||
} | |||
.select-box .option, | |||
.selected { | |||
padding: 12px 24px; | |||
cursor: pointer; | |||
} | |||
.select-box .option:hover { | |||
background: #414b57; | |||
} | |||
.select-box label { | |||
cursor: pointer; | |||
} | |||
.select-box .option .radio { | |||
display: none; | |||
} | |||
/* Searchbox */ | |||
.search-box input { | |||
width: 100%; | 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; | opacity: 0; | ||
pointer-events: none; | pointer-events: none; | ||
transition: | transition: all 0.4s; | ||
} | } | ||
. | .search-box input:focus { | ||
outline: none; | |||
} | } | ||
.options- | .select-box .options-container.active ~ .search-box input { | ||
opacity: 1; | opacity: 1; | ||
pointer-events: auto; | pointer-events: auto; | ||
} | } | ||
/**/ | /**/ |
Edição das 23h30min de 1 de maio de 2023
/**/ .select-box { position: relative; display: flex; width: 400px; flex-direction: column; } .select-box .options-container { background: #2f3640; color: #f5f6fa; max-height: 0; width: 100%; opacity: 0; transition: all 0.4s; border-radius: 8px; overflow: hidden; order: 1; } .selected { background: #2f3640; border-radius: 8px; margin-bottom: 8px; color: #f5f6fa; position: relative; order: 0; } .selected::after { content: ""; background: url("img/arrow-down.svg"); background-size: contain; background-repeat: no-repeat; position: absolute; height: 100%; width: 32px; right: 10px; top: 5px; transition: all 0.4s; } .select-box .options-container.active { max-height: 240px; opacity: 1; overflow-y: scroll; margin-top: 54px; } .select-box .options-container.active + .selected::after { transform: rotateX(180deg); top: -6px; } .select-box .options-container::-webkit-scrollbar { width: 8px; background: #0d141f; border-radius: 0 8px 8px 0; } .select-box .options-container::-webkit-scrollbar-thumb { background: #525861; border-radius: 0 8px 8px 0; } .select-box .option, .selected { padding: 12px 24px; cursor: pointer; } .select-box .option:hover { background: #414b57; } .select-box label { cursor: pointer; } .select-box .option .radio { display: none; } /* Searchbox */ .search-box input { 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; pointer-events: none; transition: all 0.4s; } .search-box input:focus { outline: none; } .select-box .options-container.active ~ .search-box input { opacity: 1; pointer-events: auto; } /**/ /** o código CSS colocado aqui será aplicado a todos os temas */ #ca-viewsource { display: none !important; } #ca-history { display: none !important;} /* Efeitos */ .hover-minimizeAndRotateContainer a, .hover-minimizeAndRotate img{ transition: transform .25s ease; } .hover-minimizeAndRotateContainer a:hover, .hover-minimizeAndRotate img:hover{ transform: scale(.95) rotateZ(-4deg); } .hover-minimize img, .hover-minimize a img, .hover-minimize.initialPage__topicContainer { transition: transform .25s ease; } .hover-minimize:not(.initialPage__topicContainer) img:hover, .hover-minimize a img:hover, .hover-minimize.initialPage__topicContainer:hover{ transform: scale(.95); } /* Efeitos */ body { position: relative; } body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: url('https://wiki.pokexgames.com//images/a/af/Fundo-wiki.jpeg') no-repeat; filter: brightness(0.8); background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; z-index: -1; } .mw-body { border-right: 0 !important; } .mw-body, .parsoid-body, #mw-panel { background: #fffffff0; border-radius: 6px; border: 5px solid transparent; border-image: url('https://wiki.pokexgames.com/images/9/9a/Borda-wiki.png') 15 stretch; } #p-logo a { background-size: contain; } .mw-list-item a { color: white; } .mw-list-item a:visited { color: #dddddd; } @media screen and (min-width: 982px) { .mw-body, #mw-head-base, #left-navigation, #mw-data-after-content, .mw-footer { margin-left: 13em; } } #mw-panel { width: 10.5em; margin-top: 2.2rem; border-left: none; } /*Ocultamentos e Remoções de estilo*/ #p-tb { display: none; } .css-links { pointer-events: none; opacity: 0; margin: 0 !important; } #footer-info-lastmod { display: none; } .firstHeading {display: none;} .catlinks { display: none; } .vector-menu-tabs-legacy .selected { background: none!important; } .vector-menu-tabs-legacy li { background: none!important; } #mw-page-base { background: none!important;} #ca-view { display: none; } #ca-talk {display: none;} .vector-search-box-input:focus, .vector-search-box-inner:hover .vector-search-box-input:focus { border-color: #cc7ee0; box-shadow: inset 0 0 0 1px #cc7ee0; } .vector-search-box-inner:hover .vector-search-box-input { border-color: #cc7ee0; } .vector-search-box-input { border: 1px solid #9f4eea; background: white; } /*Wikitable*/ .wikitable th, .wikitable td { color : #202122 !important; } .wikitable td.table-no-background { background-color: none; } .wikitable th { background-color: #d1c1e0 !important; } .wikitable td { background-color: #f2e8f8 !important; } .wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td { border-color: white !important; border-width: 2px !important; } /*Wikitable*/ /*Ajustes visuais de elementos da wiki*/ .vector-menu-tabs, .vector-menu-tabs a, #mw-head .vector-menu-dropdown .vector-menu-heading { background-image: none; } #footer-places li a { color: #adadad; } #right-navigation { margin-top: 2em; } .mw-list-item.selected{ margin-top: -.2rem; display: block; border-radius: 6px; border: 5px solid transparent; border-image: url('https://wiki.pokexgames.com/images/9/9a/Borda-wiki.png') 15 stretch; } .mw-list-item.selected a { padding: .35rem; background: white; height: auto !important; } /* Utilitarios */ .d-none { display: none!important; } .d-flex { display: flex; } .d-flex > p, .d-flex > br { display: none !important; } .w-100 { width: 100%; } .align-center { align-items: center; } .justify-center, .list-center, .center-tab .tabber__tabs { justify-content: center; } .space-between { justify-content: space-between; } .space-around { justify-content: space-around; } .flex-center { display: flex; justify-content:center; align-items: center; } .flex-column { flex-direction: column; } .flex-wrap, .break-row { flex-wrap: wrap; } .bg-none { background: none !important; } .text-center { text-align: center; } .border-0 { border: none !important; } .gap-1{ gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .margin-center { margin-left: auto !important; margin-right: auto !important; } .mx-2 { margin-right: 1rem; margin-left: 1rem; } .mr-2 { margin-right: 1rem !important; } .mr-4 { margin-right: 2rem !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem !important; } .mb-2 { margin-bottom: 1rem; } .p-1 { padding: .5rem; } .p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; } .pr-1 { padding-right: .5rem; } /* Utilitarios */ /* Cartões dos NPCs */ .npcCard { box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px; background-color: rgb(250, 250, 250); padding: 1rem .75rem; margin-top: 1rem; margin-bottom: 1rem; height: 9.5rem; width: 11.5rem; border-top: 5px solid; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: all .25s ease; } h2.npcCard__title{ border: none; font-size: 1.25rem !important; font-weight: 400; } .npcCard__link { display: table; } .npcCard__link:hover { text-decoration: none !important; } .npcCard__link:hover .npcCard { transform: scale(.98); } .npcCard__portrait { padding: .55rem .8rem; border-radius: 50%; margin-bottom: .5rem; } .npcCard__list { display: flex; flex-wrap: wrap; align-items: center; } .npcCard__list .npcCard { margin-bottom: 1rem; } .npcCard__list a { display: block; margin-right: 1rem; } /* Cartões dos NPCs - Cores */ .npcCard.default .npcCard__portrait { background-color: #f7eeff; } .npcCard.default { border-color: #e89dff; } /* Cartões dos NPCs - Cores */ /* Cartões dos NPCs */ /* Componente veja mais */ .seeMore { height: 3.2rem; padding: .5rem .575rem; border: 1px dashed #e89dff; background-color: #f9f2ff; border-radius: 12px; margin: 1rem auto 1rem 0px; } .flex-center .seeMore { margin: 0; } .seeMore__image { text-align: center; width: 2rem; } /* Componente veja mais */ /* Cartão*/ .card { background: white; box-shadow: rgb(67 71 85 / 27%) 0px 0px 0.25em, rgb(90 125 188 / 5%) 0px 0.25em 1em; padding-bottom: .2rem; margin-bottom: .75rem; border-radius: 8px; } .card-title { text-align: center; background-color: #944EC7; color: white; padding: .25rem 1rem; letter-spacing: .03rem; font-size: 1.15rem; font-weight: bold; border-radius: 8px 8px 0 0; } .card-container { padding: .75rem 1rem; } /* Cartão */ /*Navegação rápida*/ .linkWithIcon__link { display: flex; flex-direction: column; align-items: center; justify-content: center; } .linkWithIcon__imageContainer { height: 10rem; box-sizing: border-box; padding: 1rem; display: flex; align-items: flex-end; } .linkWithIcon__imageContainer img { width: 100%; margin-bottom: .2rem; height: auto; max-height: 9rem; } .linkWithIcon__link img{ height: 100%; } .linkWithIcon__link span { font-size: 1rem; font-weight: bold; margin-top: .5rem; } .fastNav__linksContainer { margin-top: 1rem; margin-bottom: 1rem; display: flex; gap: 2rem 0; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; } /*Prevent paragraph spacement*/ .fastNav__linksContainer p { display: none; } .fastNav__linksContainer a:not([href]) { display: none; } .fastNav__linksContainer .linkWithIcon__link, .fastNav__linksContainer a{ width: 19.5%; max-width: 13rem; padding: .65rem; box-sizing: border-box; } .fastNav__linksContainer a img { width: 100%; height: auto; } /*Navegação rápida*/ .initialPage__container { max-width: 1650px; } .initialPage__contentContainer { display: flex; align-items: flex-start; justify-content: flex-start; padding: 0 1rem; box-sizing: border-box; } .initialPage__mainContent { margin-top: 2.5rem; padding: 0 2rem; box-sizing: border-box; width: 75%; } .initialPage__sideContent { margin-top: 2.5rem; width: 25%; padding: 0 1rem; box-sizing: border-box; } .initialPage__welcomeBadge { text-align: center; } .initialPage__welcomeBadgeImg { max-width: 800px; width: 100%; border-radius: 12px; } .initialPage__highlightCardContainer { display: flex; justify-content: space-between; align-items: center; padding: 0 .5rem; margin-bottom: 1.5rem; gap: 1.5rem; } .initialPage__highlightCard { flex: 1; max-width: 19rem; min-width: 14rem; } .initialPage__highlightCard .badge-img { cursor: pointer; } .badge-img { box-shadow: rgb(67 71 85 / 27%) 0px 0px 0.25em, rgb(90 125 188 / 5%) 0px 0.25em 1em; border-radius: 12px; width: 100%; transition: transform .35s ease; } /*Social media*/ .socialMedia__title { font-weight: bold; font-size: 1.25rem; display: block; text-align: center; margin-top: 1rem; color: #747176; letter-spacing: .02rem; } .socialMedia__linkContainer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; margin-top: .5rem; } a.socialMedia__link img { width: 100%; max-width: 16rem; height: auto; border-radius: 12px; filter: grayscale(.5); transition: all .25s ease; } a.socialMedia__link:hover img{ filter: grayscale(0); transform: scale(.98); } /* Indice da pagina inicial */ .initialPage__indexContent { margin-bottom: .75rem; } .initialPage__indexLinks { display: block; border-bottom: 2px dotted gray; padding-bottom: .5rem; } /* Formulario poll daddy */ .css-box.pds-box { width: 100%!important; max-width: 300px; margin: 0 auto !important; } /*Topico componente*/ .initialPage__topicContainer { display: block; width: 30rem; aspect-ratio: 1 / .27; display: flex; align-items: stretch; border: 5px solid transparent; border-image: url('https://wiki.pokexgames.com/images/9/9a/Borda-wiki.png') 15 stretch; } .initialPage__topicContainer h4 { font-size: 1.3rem; text-align: center; } .initialPage__topicContainer p { font-size: 1rem; text-align: center; } .initialPage__topicImage { width: 55%; height: unset; margin-right: .5rem; } .initialPage__topicContainer img { width: 100%; height: 100%; border-right: 5px solid transparent; border-image: url('https://wiki.pokexgames.com/images/9/9a/Borda-wiki.png') 15 stretch; } .initialPage__topicContent { width: 100%; padding: .5rem; } /*Formulario de boost*/ .boostCalc__form { width: 35rem; margin: 0 auto; box-sizing: border-box; } .input-group { position: relative; margin-top: 2rem; } .checkbox-group { margin-top: .35rem; padding-left: .7rem; display: flex; justify-content: flex-start; align-items: center; } .checkbox-group label { padding-left: .35rem; font-size: .8rem; padding-top: .15rem; letter-spacing: .02rem; color: #6e6e6e; font-weight: bold; } .boostCalc__label { position: absolute; left: .5rem; top: 50%; transform: translate(0%, -50%); font-size: .95rem; color: #626262; pointer-events: none; transition: all .25s ease; } .boostCalc__input, .boostCalc__select { position: relative; width: 100%; box-sizing: border-box; padding: .65rem 1.1rem; border: 1px solid #ced4da; border-radius: 8px; font-size: 1.2rem; transition: all .25s ease; } .boostCalc__input:focus { border-color: #80bdff; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25); outline: 0; } .boostCalc__input:focus, .boostCalc__input:not(:placeholder-shown) { background: rgba(0, 123, 255, .035); } .boostCalc__input:focus+.boostCalc__label, .boostCalc__input:not(:placeholder-shown)+.boostCalc__label, .boostCalc__select:focus+.boostCalc__label, .boostCalc__select:not(:placeholder-shown)+.boostCalc__label { top: -.7rem; font-size: .9rem; } .boostTo-container { margin-top: 2rem; display: flex; justify-content: space-around; align-items: center; } .boostTo-container div { width: 28%; } .boostTo-container .input-group { margin-top: 0; width: 35%; } .boostTo-container div img { width: 100%; padding: 0 1.8rem; box-sizing: border-box; } .boostCalc__resultContainer { text-align: center; background: #ffffff; width: 32rem; margin: 0 auto; padding: 1rem; padding-top: .35rem; border-radius: 12px; border-color: #80bdff; box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); outline: 0; } .boostCalc__resultTitle { margin: 0; font-size: 1.2rem !important; padding: 0; color: #4c4b4b; font-weight: bolder; } .boostCalc__result { font-weight: 500; font-size: .925rem !important; } .boostCalc__result span { padding-right: .5rem; font-weight: bold; } /*Formulario de boost*/ @media screen and (max-width: 1450px) { .linkWithIcon__imageContainer { height: 8rem; } } @media screen and (max-width: 1360px) { html { font-size: 14px; } } @media screen and (max-width: 1250px) { .initialPage__mainContent { padding: 0; } .fastNav__linksContainer { gap: .5rem 0; margin-top: 0; } } @media screen and (max-width: 1150px) { .initialPage__contentContainer { flex-direction: column; align-items: center; } .initialPage__mainContent, .initialPage__sideContent { width: 100%; padding: 0 3rem; } .fastNav__linksContainer { gap: 1.5rem 0; padding: 1.5rem 1rem; } .fastNav__linksContainer .linkWithIcon__link, .fastNav__linksContainer a { max-width: 9.95rem; } .socialMedia__linkContainer { flex-direction: row; } }