"Untitled"
Bootstrap 4.1.1 Snippet by jlourenco

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="card alert"> <div class="inner"> <h3>Um jogador está lhe oferendo droga</h3> <p>João Lourenço está querendo lhe vender 10 gramas de maconha por 120$</p> <p>Deseja aceitar?</p> </div> <div class="buttons"> <button class="btn btn-success">Sim</button> <button class="btn btn-danger">Não</button> </div> </div> </div> <!-- Google Font --> <link href="https://fonts.googleapis.com/css?family=Roboto+Slab" rel="stylesheet">
html, body { width: 100%; height: 100%; max-height: 100%; /* Font styles */ font-family: 'Roboto Slab', serif; font-size: 1em; line-height: 1.5em; color: #607D8B; letter-spacing: .01em; } /* Info */ .card { position: absolute; width: 80%; max-width: 500px; top: 10%; right: 5%; pointer-events: none; } .card:before { content: ""; position: absolute; width: 65%; height: 80%; top: 0; left: 0; -webkit-transform: translate(-10px, -10px); -ms-transform: translate(-10px, -10px); -o-transform: translate(-10px, -10px); transform: translate(-10px, -10px); background: #3F51B5; } .inner:after { display: block; position: absolute; content: ""; width: 80px; height: 80px; top: -10px; right: 10px; background: transparent url('https://media.discordapp.net/attachments/621804680942452739/629667391869026314/server.png') no-repeat ; background-size: 80px 80px; } .card.info:before { background: #3F51B5; } .card.danger:before { background: #E91E63; } .card.success:before { background: #307a33; } .card.alert:before { background: #e3c644; } .inner { position: relative; padding: 0.1em 1em; background: #FFFFFF; box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22); } .buttons { position: absolute; bottom: -50px; right: 5%; pointer-events: all; } .buttons button { transition: ease .4s; width: 60px; height: 60px; margin-left: 10px; border: none; outline: none; border-radius: 60px; color: #FFFFFF; background: -webkit-linear-gradient(top, #F5515F, #E91E63); background: linear-gradient(to bottom, #F5515F, #E91E63); box-shadow: 0px 3px 15px 2px rgba(245,81,95,.8); cursor: pointer; } .buttons button.btn-success { background: -webkit-linear-gradient(top, #6ba340, #53a614); background: linear-gradient(to bottom, #6ba340, #53a614); box-shadow: 0px 3px 15px 2px rgba(107, 163, 64,.8); } .buttons button.btn-success:hover { box-shadow: 0px 3px 30px 3px rgba(107, 163, 64,.8); } .buttons button:hover { box-shadow: 0px 3px 30px 3px rgba(245,81,95,.8); }

Related: See More


Questions / Comments: