Created
April 30, 2017 22:20
-
-
Save diogomachado/8c1d088b0b96b854a86fc0e17f733bd1 to your computer and use it in GitHub Desktop.
Livro - CSS para offline/online
This file contains hidden or 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
.offline-alert{ | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
z-index: 28; | |
background: rgba(255, 255, 255, 0.95); | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
flex-direction: column; | |
} | |
.offline-alert p{ | |
margin: 0; | |
font-weight: normal; | |
font-family: 'Roboto-Light'; | |
} | |
.offline-alert p:first-of-type{ | |
font-size: 17px; | |
color: #607D8B; | |
margin: 8px 0; | |
} | |
.offline-alert p:nth-of-type(2){ | |
font-size: 13px; | |
color: #9E9E9E; | |
} | |
.offline-alert svg{ | |
width: 100px; | |
} | |
.offline-alert .tomada.on{ | |
animation: ligarTomada 1.5s ease both; | |
} | |
.offline-alert .tomada.off{ | |
animation: tirarTomada 1.5s ease both; | |
} | |
@keyframes ligarTomada{ | |
from { | |
transform: translateX(0%); | |
} | |
to { | |
transform: translateX(32%) translateY(-32%); | |
} | |
} | |
@keyframes tirarTomada{ | |
from { | |
transform: translateX(32%) translateY(-32%); | |
} | |
to { | |
transform: translateX(0%); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment