Created
July 26, 2020 15:44
-
-
Save edn9/d646516ae1fd4712c8c082e9636cd2b8 to your computer and use it in GitHub Desktop.
android blur
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
<ion-header [translucent]="true"> | |
<ion-toolbar> | |
<ion-title> | |
Login | |
</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content [fullscreen]="true"> | |
<div id="container"> | |
<ion-card> | |
<ion-card-content> | |
<ion-item> | |
<ion-label>Email</ion-label> | |
<ion-input type="email" name="email" placeholder="Insira seu email"></ion-input> | |
</ion-item> | |
<ion-button>Entrar</ion-button> | |
</ion-card-content> | |
</ion-card> | |
</div> | |
<div class="background"> | |
<div class="blur"></div> | |
</div> | |
</ion-content> |
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
#container { | |
z-index: 10; | |
text-align: center; | |
position: absolute; | |
left: 0; | |
right: 0; | |
top: 50%; | |
transform: translateY(-50%); | |
} | |
#container strong { | |
font-size: 20px; | |
line-height: 26px; | |
} | |
#container p { | |
font-size: 16px; | |
line-height: 22px; | |
color: #8c8c8c; | |
margin: 0; | |
} | |
#container a { | |
text-decoration: none; | |
} | |
.background { | |
position: relative !important; | |
background-image: url("../../assets/img/bg.jpg") !important; | |
background-position: bottom !important; | |
background-repeat: no-repeat !important; | |
background-size: cover !important; | |
height: 100vh !important; | |
width: 100% !important; | |
} | |
.blur { | |
background: rgb(0, 0, 0, 0.1) !important; | |
backdrop-filter: blur(5px) !important; | |
filter: blur(5px) !important; | |
height: 100% !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment