-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Atualizar-styles-principal-artigos-arrumar a nav-artigos-criar-o-men…
…u-artigos-e-demais-funcionalidades
- Loading branch information
1 parent
4c3db59
commit 2352afa
Showing
13 changed files
with
294 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// FUNCIONAMENTO-MENU-ARTIGOS-NAV | ||
document.addEventListener("DOMContentLoaded", function() { | ||
const btnAbrirMenu = document.querySelector('.btn-abrir-menu'); | ||
const menuMobile = document.querySelector('.menu-mobile-a'); | ||
const overlayMenu = document.querySelector('.overlay-menu'); | ||
|
||
btnAbrirMenu.addEventListener('click', () => { | ||
menuMobile.classList.add('abrir-menu'); | ||
overlayMenu.style.display = 'block'; | ||
}); | ||
|
||
overlayMenu.addEventListener('click', () => { | ||
menuMobile.classList.remove('abrir-menu'); | ||
overlayMenu.style.display = 'none'; | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
function scrollToTop() { | ||
window.scrollTo({ top: 0, behavior: 'smooth' }); | ||
} | ||
|
||
|
||
|
||
//BALAO-INFORMATIVO-DE-TOPO-DA-PAGINA | ||
var btnVoltarTopo = document.querySelector('.btn-topo'); | ||
var balaoInformativo = document.getElementById('balao-informativo'); | ||
|
||
btnVoltarTopo.addEventListener('click', function(event) { | ||
event.preventDefault(); // Impede o comportamento padrão do link | ||
|
||
// Verifica se já está no topo da página | ||
if (window.pageYOffset === 0) { | ||
exibirBalaoInformativo(); | ||
} else { | ||
voltarAoTopo(); | ||
} | ||
}); | ||
|
||
function voltarAoTopo() { | ||
window.scrollTo({ top: 0, behavior: 'smooth' }); | ||
} | ||
|
||
function exibirBalaoInformativo() { | ||
balaoInformativo.style.display = 'block'; | ||
|
||
// Remove o balão informativo após 2 segundos | ||
setTimeout(function() { | ||
balaoInformativo.style.display = 'none'; | ||
}, 2000); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
|
||
/* SUMIR COM OS ELEMETOS NO MEU PRINCIPA */ | ||
|
||
@media screen and (max-width: 800px) { | ||
|
||
|
||
|
||
|
||
.menu-mobile-a { | ||
background-color: #edeef0; | ||
position: fixed; | ||
top: 0; | ||
right: 0; | ||
z-index: 9999; | ||
width: 0%; | ||
overflow: hidden; | ||
transition: all ease .4s; | ||
border-radius: 12px; | ||
border: solid 1px #c07df734; | ||
margin-top: 1px; | ||
padding-bottom: 5px; | ||
box-sizing: border-box; | ||
padding-top: 50px; | ||
|
||
} | ||
|
||
.menu-mobile-a .btn-fechar { | ||
padding: 10px 8%; | ||
margin-top: 8px; | ||
} | ||
|
||
|
||
|
||
.menu-mobile-a nav ul { | ||
text-align: right; | ||
} | ||
|
||
.menu-mobile-a nav ul li a { | ||
text-decoration: none; | ||
letter-spacing: 2px; | ||
font-size: 20px; | ||
} | ||
/* ICONE-REDES-SOCIAIS-MOBILE */ | ||
.icon-img>div img { | ||
margin-right: 13px; | ||
border-radius: 5px; | ||
filter: brightness(1.9); | ||
|
||
} | ||
|
||
.menu-mobile-a ul li a { | ||
color: #b579fa !important; | ||
} | ||
|
||
.menu-mobile-a.abrir-menu { | ||
width: 60%; | ||
|
||
} | ||
|
||
|
||
|
||
|
||
.menu-mobile-a .btn-fechar { | ||
color: currentColor; | ||
font-size: 3px; | ||
cursor: pointer; | ||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
.menu-mobile-a nav ul li { | ||
font-family: 'Roboto', sans-serif; | ||
font-weight: 600; | ||
font-size: 20px; | ||
color: #722997; | ||
padding: 15px 6%; | ||
display: block | ||
} | ||
|
||
|
||
.menu-mobile-a li a:hover, | ||
.menu-mobile-a li a:focus { | ||
color: #93edf3 !important; | ||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
.icon-img { | ||
margin-left: 10px; | ||
|
||
|
||
} | ||
|
||
|
||
.menu-mobile-a .icon-img img { | ||
margin-right: 10px; | ||
margin-top: 10px; | ||
|
||
|
||
} | ||
|
||
nav.menu-mobile-a ul li { | ||
|
||
text-decoration: none | ||
} | ||
|
||
.menu-mobile-a { | ||
position: fixed; | ||
} | ||
|
||
.btn-abrir-menu { | ||
position: fixed; | ||
top: 9px; | ||
right: 9px; | ||
z-index: 9993; | ||
border-radius: 5px; | ||
background-position: center; | ||
border: 4px solid #5554550c; | ||
box-sizing: border-box; | ||
width: 30px; | ||
height: 30px; | ||
display: flex; | ||
} | ||
|
||
.btn-abrir-menu:hover { | ||
box-shadow: 0 1px 1px 8px #555455d3; | ||
background-color: #555455; | ||
border-radius: 9%; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
.menu-mobile-a nav ul li a:hover { | ||
background-color: #443e4777; | ||
color: #000000; | ||
display: block; | ||
border-radius: 3px; | ||
border-bottom: 19px; | ||
transition: .1s; | ||
padding: 15px 6%; | ||
transition-delay: 0.2s; | ||
pointer-events: auto; | ||
} | ||
|
||
.menu-mobile-a.abrir-menu~.overlay-menu { | ||
display: block; | ||
} | ||
|
||
|
||
|
||
|
||
.overlay-menu { | ||
background-color: rgba(3, 3, 3, 0.171); | ||
width: 100%; | ||
height: 100%; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
z-index: 8888; | ||
display: none; | ||
}} |