Last active
December 3, 2018 13:19
-
-
Save byhemechi/f72f41649f4d53e3a47fcf8a1cc2e819 to your computer and use it in GitHub Desktop.
cubey alerts
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
@import url("https://fonts.googleapis.com/css?family=Oswald:400,700"); | |
@import url("https://fonts.googleapis.com/css?family=Roboto Mono:400,400i,700"); | |
#notification { | |
position: relative; | |
font-family: Oswald; | |
font-size: 20px; | |
margin: 100px; | |
display: inline-block; | |
overflow: hidden; | |
width: auto; | |
box-shadow: 110px 0 0 rgba(0,0,0,0.333) inset; | |
box-sizing: border-box; | |
background: rgba(0,0,0,0.6); | |
color: #fff; | |
border-radius: 15px; | |
text-transform: uppercase; | |
} | |
#notification #wrapper { | |
padding: 20px; | |
padding-left: 140px; | |
padding-right: 20px; | |
width: 300px; | |
} | |
#notification header { | |
font-size: 24px; | |
width: auto; | |
font-weight: bold; | |
} | |
#notification #alert-image { | |
width: 70px; | |
height: 70px; | |
position: absolute; | |
top: 50%; | |
margin-top: -35px; | |
left: 20px; | |
border-radius: 10px; | |
} | |
#alert-message, #alert-user-message { | |
font-family: inherit !important; | |
font-weight: default; | |
font-size: inherit; | |
} |
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
<div id="notification"> | |
<div id="alert-image-wrap"> | |
<div id="alert-image">{img}</div> | |
</div> | |
<div id="wrapper"> | |
<header id="alert-message">{messageTemplate}</header> | |
<main id="alert-user-message">{userMessage}</main> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment