Skip to content

Instantly share code, notes, and snippets.

@petevb
Last active May 13, 2019 09:07
Show Gist options
  • Save petevb/16916fbd820516e5303e to your computer and use it in GitHub Desktop.
Save petevb/16916fbd820516e5303e to your computer and use it in GitHub Desktop.
[spinner] #css
/**
* spinner
*/
@keyframes spinner {
to { background-position: -625px 0; }
}
.spinner:before {
position: absolute;
content:'';
top:0;
left:0;
width:100%;
height:100%;
color: #fff;
background: rgba(0,0,0,.8);
z-index: 1;
}
.spinner:after {
content:'';
position: absolute;
top: calc(50% - 12px);
left: calc(50% - 12px);
margin: 0 auto;
width: 25px;
height: 25px;
background: url(https://rln8ba.bn1303.df.livefilestore.com/y3mdRka23yi-N_oVVpoIqk21lHR0AVd9hcN9087eFFSqPKoYQP-Hl0ZPi-zC0_wp5PYkbyMhrSSsD37jRL0EI4nm-V9yI6C1IgELxdkq9czkcjJX9y6spP-sXAsqG8BXcosQ9tbZ_N1QdBh_TuxxK1dwtXhFiL6Rq_ZoINnXICHTPg/playback_spinner.png) 0 0;
animation: spinner .85s steps(25) infinite;
z-index: 200;
}
.box{
position:absolute;
margin-top: 25%;
left: 25%;
height: auto;
width: 50%;
border: 1px solid silver;
background: black;
color: #fafafa;
text-align: center;
}
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
color: #fff;
}
#purchase-1 {
height: 620px;
width: 640px;
font-size: 16px;
overflow: hidden;
background-color: #181818;
}
#purchase-1 > #purchase-full-top-box {
padding-bottom: 10px;
background-color: grey;
}
#purchase-1 > #purchase-full-bottom-box {
padding-bottom: 10px;
background-color: silver;
}
#purchase-1 > #purchase-full-top-box > div {
display: inline-block;
line-height: 1.2;
}
#purchase-1 > #purchase-full-top-box > .img {
width: 188px;
height: 141px;
float: left;
background-repeat: no-repeat;
background-position: 50% 0%;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
margin: 27px;
}
#purchase-1 > #purchase-full-top-box > .info {
width: 380px;
margin-top: 27px;
margin-left: 7px;
height: 141px;
color: #EAEAEA;
}
<body>
<div class="box spinner"><h3>"dialog"</h3><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p></div>
<img src="https://rln8ba.bn1303.df.livefilestore.com/y3mdRka23yi-N_oVVpoIqk21lHR0AVd9hcN9087eFFSqPKoYQP-Hl0ZPi-zC0_wp5PYkbyMhrSSsD37jRL0EI4nm-V9yI6C1IgELxdkq9czkcjJX9y6spP-sXAsqG8BXcosQ9tbZ_N1QdBh_TuxxK1dwtXhFiL6Rq_ZoINnXICHTPg/playback_spinner.png"></img>
<div id="purchase-1" class="component purchaseDialog view dialog" data-componenttype="PurchaseDialog"><div id="purchase-full-top-box">
<div id="purchase-dialog-poster" class="img imageAnimate" style="background-image: url(http://ingsazmrusw.blob.core.windows.net/images/program/32393832312d656e-546d73/keyartlandscapesmall.jpg);"></div>
<div class="info">
<div id="purchase-dialog-title" class="title">Spider-Man</div>
<div id="purchase-dialog-series-title" class="series-title"></div>
<div id="purchase-dialog-tag" class="tag">Feature</div>
<div id="purchase-dialog-misc-info" class="misc-info">2002 | PG-13 | 5m</div>
</div>
</div>
<div id="purchase-full-bottom-box" class="">
<div id="purchase-dialog-scroller" class="purchase-scroller"><div class="divider"><div class="divider-label">Choose one of the following play options:</div><hr></div><div id="MORE-WAYS-TO-PLAY" class="item-container"></div><div id="MORE-WAYS-TO-PURCHASE" class="item-container"><div class="item purchase-vod"><div class="container"><div class="item-primary"><div class="container"><div class="item-indicators"><div class="indicator sd"></div></div></div></div><div class="item-secondary"><div class="item-price">$undefined ($2)</div><p class="confirm-section">Rent for 24 h</p></div><div class="action enabled component visible" data-componenttype="ActionButton"><div class="buttonWrapper"><div class="icon" data-icon="rent"></div><div class="label">Rent</div></div></div></div></div><div class="item purchase-vod"><div class="container"><div class="item-primary"><div class="container"><div class="item-indicators"><div class="indicator hd"></div></div></div></div><div class="item-secondary"><div class="item-price">$0.99 ($2)</div><p class="confirm-section">Buy for unlimited viewing</p></div><div class="action enabled component visible" data-componenttype="ActionButton"><div class="buttonWrapper"><div class="icon" data-icon="buy"></div><div class="label">Buy</div></div></div></div></div></div></div>
</div></body>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment