Skip to content

Instantly share code, notes, and snippets.

@sidneydemoraes
Created December 12, 2017 00:42
Show Gist options
  • Save sidneydemoraes/6aef3df565bd8eb86d592d059d120693 to your computer and use it in GitHub Desktop.
Save sidneydemoraes/6aef3df565bd8eb86d592d059d120693 to your computer and use it in GitHub Desktop.
Estilo para modal genérica.
.modal-mensagens {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
.backdrop-modal {
background: rgba(0, 0, 0, 0.6);
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
z-index: 98;
}
.content-modal {
top: 50%;
transform: translate(0px, -50%);
position: fixed;
background: #fff;
max-width: 800px;
margin: 0 15px;
padding: 30px;
border-radius: 4px;
z-index: 99;
.erro, .loading, .swamp {
display: block;
height: 40px;
background: url(../../media/warning.png) no-repeat 50% 50%/40px;
margin-bottom: 15px;
}
.loading {
background-image: url(../../media/loading.gif);
background-size: 100px;
}
.swamp {
background-image: url(../../media/ico-swap.svg);
}
@media only screen and (min-width: 767px) {
margin: 0 auto;
left: 50%;
transform: translate(-50%, -50%);
}
text-align: center;
a {
color: blue;
font-weight: 800;
}
.imagem-status {
display: block;
margin: 0 auto;
height: 84px;
background: url(../../media/gift-ok.png) no-repeat 50% 50% /101px;
}
h3 {
font-size: 36px;
padding: 10px 0 30px 0;
font-weight: 900;
}
p {
font-size: 18px;
line-height: 1.4;
padding-bottom: 20px;
}
strong {
font-weight: 800;
}
.btn-enviar {
margin: 0 15px 15px 15px;
opacity: 1;
transition: background-color 200ms ease-in-out;
&:hover {
background-color: #777777;
}
}
.fechar-modal {
position: absolute;
padding-top: 2px;
top: -30px;
right: 0px;
font-weight: 800;
padding-right: 30px;
font-size: 16px;
background: url(../../media/v2/ico-close.svg) no-repeat right 0 /16px;
color: #fff;
cursor: pointer;
}
}
&.modal-loading {
.content-modal {
max-width: 320px;
h3 {
font-size: 26px;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment