JSFiddle - React, Tailwind, and code Playground
by fredd man
HTML
<!-- view modal -->
<button class="btn btn-primary btn-modal"
data-toggle="modal"
data-target="#fsModal">
View Fullscreen Modal
</button>
<!-- view modal -->
<!-- modal -->
<div id="fsModal"
class="modal animated bounceIn"
tabindex="-1"
role="dialog"
aria-labelledby="myModalLabel"
aria-hidden="true">
<!-- dialog -->
<div class="modal-dialog">
<!-- content -->
<div class="modal-content">
<!-- header -->
<div class="modal-header">
<h1 id="myModalLabel"
class="modal-title">
Modal title
</h1>
</div>
<!-- header -->
<!-- body -->
<div class="modal-body">
<h2>1. Modal sub-title</h2>
<p>Liquor ipsum dolor sit amet bearded lady, grog murphy's bourbon lancer. Kamikaze vodka gimlet; old rip van winkle, lemon drop martell salty dog tom collins smoky martini ben nevis man o'war. Strathmill grand marnier sea breeze b & b mickey slim. Cactus jack aberlour seven and seven, beefeater early times beefeater kalimotxo royal arrival jack rose. Cutty sark scots whisky b & b harper's finlandia agent orange pink lady three wise men gin fizz murphy's. Chartreuse french 75 brandy daisy widow's cork 7 crown ketel one captain morgan fleischmann's, hayride, edradour godfather. Long island iced tea choking hazard black bison, greyhound harvey wallbanger, "gibbon kir royale salty dog tonic and tequila."</p>
<h2>2. Modal sub-title</h2>
<p>The last word drumguish irish flag, hurricane, brandy manhattan. Lemon drop, pulteney fleischmann's seven and seven irish flag pisco sour metaxas, hayride, bellini. French 75 wolfram christian brothers, calvert painkiller, horse's neck old bushmill's gin pahit. Monte alban glendullan, edradour redline cherry herring anisette godmother, irish flag polish martini glen spey. Abhainn dearg bloody mary amaretto sour, ti punch black cossack port charlotte tequila slammer? Rum swizzle glen...
CSS
@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400);
.font-roboto {
font-family: 'roboto condensed';
}
* {
box-sizing: border-box;
}
body {
.font-roboto();
}
.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
}
.modal-dialog {
position: fixed;
margin: 0;
width: 100%;
height: 100%;
padding: 0;
}
.modal-content {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border: 2px solid #3c7dcf;
border-radius: 0;
box-shadow: none;
}
.modal-header {
position: absolute;
top: 0;
right: 0;
left: 0;
height: 50px;
padding: 10px;
background: #6598d9;
border: 0;
}
.modal-title {
font-weight: 300;
font-size: 2em;
color: #fff;
line-height: 30px;
}
.modal-body {
position: absolute;
top: 50px;
bottom: 60px;
width: 100%;
font-weight: 300;
overflow: auto;
}
.modal-footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 60px;
padding: 10px;
background: #f1f3f5;
}
.btn {
height: 40px;
border-radius: 0;
// focus
&:focus,
&:active,
&:active:focus {
box-shadow: none;
outline: none;
}
}
.btn-modal {
position: absolute;
top: 50%;
left: 50%;
margin-top: -20px;
margin-left: -100px;
width: 200px;
}
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
font-weight: 300;
font-size: 1.6rem;
color: #fff;
color: lighten(#484b5b, 20%);
color: #fff;
text-align: center;
background: #60cc69;
border: 1px solid #36a940;
border-bottom: 3px solid #36a940;
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
// active
&:active {
border-bottom: 1px solid #36a940;
}
}
.btn-default,
.btn-default:hover,
.btn-default:focus,
.btn-default:active {
font-weight: 300;
font-size: 1.6rem;
color: #fff;
text-align: center;
background: darken(#dcdfe4, 10%);
border: 1px solid darken(#dcdfe4, 20%);
border-bottom: 3px solid darken(#dcdfe4, 20%);
// active
...