Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anonymous/720c370af728ce1591cc to your computer and use it in GitHub Desktop.
Save anonymous/720c370af728ce1591cc to your computer and use it in GitHub Desktop.
Is it really copy'n'use? This one from bootsnip.com is :-)
<div class="container">
<div class="row">
<blockquote class="col-md-8">NB: This is from
<h2><a href="http://bootsnipp.com/snippets/featured/centered-processing-modal">bootsnipp.com</a></h2> <small>I wanted to test if <em>bootstrap snippets</em> from bootsnipp.com were really so easy to use in another <b>bootstrap</b> page...</small>
<small class="happy">Seems like it <b>is</b> actually ready to just copy'n'use !</small></blockquote>
</div>
<div class="row">
<h3>Centered Processing Modal <br /><small>Create a simpler, auto-centered modal to tell the user something is processing!</small></h3>
<p><code>NOTE: The 'X' button in the modal is provided for testing purposes only, and can be removed to make the modal uninterruptable.</code></p>
<br />
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#processing-modal">
<i class="glyphicon glyphicon-play"></i> Start Processing
</button>
</div>
</div>
<!-- Static Modal -->
<div class="modal modal-static fade" id="processing-modal" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="text-center">
<img src="http://www.travislayne.com/images/loading.gif" class="icon" />
<h4>Processing... <button type="button" class="close" style="float: none;" data-dismiss="modal" aria-hidden="true">×</button></h4>
</div>
</div>
</div>
</div>
</div>

Is it really copy'n'use? This one from bootsnip.com is :-)

As a front end developer having resources where you can copy'n'use snippets for say Bootstrap is great. However often such resources fail to deliver easy copied bits and pieces. So I tried this one from bootsnip.com - went fine! Great!

A Pen by Sten Hougaard on CodePen.

License.

.modal-static {
position: fixed;
top: 50% !important;
left: 50% !important;
margin-top: -100px;
margin-left: -100px;
overflow: visible !important;
}
.modal-static,
.modal-static .modal-dialog,
.modal-static .modal-content {
width: 200px;
height: 200px;
}
.modal-static .modal-dialog,
.modal-static .modal-content {
padding: 0 !important;
margin: 0 !important;
}
.modal-static .modal-content .icon {
}
/* SHO 20/01/2014 23.50: not required */
body {
padding: 2em 0px;
}
blockquote {
background-color: rgba(240,250,210,.14);
font-size: 16pt;
box-shadow: 0px 0px 20px 10px rgba(240,250,210,.14);
outline: solid 1px black;
}
blockquote h2 {
display: inline;
}
.happy {
background-color: #579c57 ;
display: inline-block;
color: white;
padding: 3px 10px 6px 3px;
float: right;
letter-spacing: 1px;
transform: rotate(5deg) skew(-3deg,-6deg);
box-shadow: 10px 10px 24px 1px rgba(0,0,0,.321);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment