JSFiddle - React, Tailwind, and code Playground

by darcyclarke

HTML

<div class="overlay">
  <div class="notification">
    <div class="container">
      <h3>Visit external link</h3>
      <p class="message">Link will open in default browser</p>
      <p class="options">
          <span class="cancel">Cancel</span>
          <span class="ok"><a href="{{url}}">OK</a></span>
      </p>
        </div>
  </div>
</div>

CSS

body {
  color: #fff;
  font-family: sans-serif;    
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    -ms-flex-direction: row;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    box-pack: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    box-align: center;
    -ms-flex-align: center;
}

.overlay .notification {
    background-color: #000;
    z-index: 999;
    width: 100%;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
    -ms-flex-direction: row;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    box-pack: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    box-align: center;
    -ms-flex-align: center;
}

.overlay .notification .container {
    padding: 25px;
}

.overlay .notification .container h3 {
    font-size: 30px;
    margin: 0 0 5px 0;
}

.overlay .notification .container .message {
     margin: 0 0 20px 0;
     font-size: 12px;
}

.overlay .notification .container a,
.overlay .notification .container a:visited,
.overlay .notification .container a:active {
    text-decoration: none;
    color: #fff;
}

.overlay .notification .container .options {
    text-align: right;
}

.overlay .notification .container .options span {
    background: transparent;
    border: 2px solid #fff;
    padding: 5px 20px;
    display: inline-block;
    font-size: 12px;
}