Created
May 8, 2015 15:45
-
-
Save tankchintan/2dfc3170ab6337b340e7 to your computer and use it in GitHub Desktop.
dfp > prestitial oop solution > style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import '../libs/prefixer.less'; | |
@min-z-index: 10000001; | |
.no-scroll { | |
overflow: hidden; | |
} | |
#prestitial-ad-overlay { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background-color: #FFFFFF; | |
z-index: @min-z-index; | |
} | |
#prestitial-ad-container { | |
position: fixed; | |
background: #FFFFFF; | |
z-index: @min-z-index + 1; | |
text-align: center; | |
.shown & { | |
box-shadow: 0 2px 10px #333; | |
} | |
/* | |
* This is used to remove the empty space at the bottom of the anchor tag. | |
* see http://stackoverflow.com/questions/3197601/white-space-at-bottom-of-anchor-tag | |
* */ | |
object, | |
img { | |
vertical-align: bottom; | |
display: block; | |
} | |
} | |
#prestitial-ad-close { | |
box-shadow: 0 2px 10px #333; | |
background: #ffffff; | |
top: 35px; | |
.border-radius(@args: 43px); | |
font-size: 21px; | |
} | |
#prestitial-ad-duration-counter { | |
color: #999999; | |
margin-top: 5px; | |
font-size: 18px; | |
top: 75px; | |
box-shadow: none; | |
.border-radius(@args: 10px); | |
background: none; | |
} | |
#prestitial-ad-close, | |
#prestitial-ad-duration-counter { | |
position: fixed; | |
right: 5%; | |
width: 165px; | |
z-index: @min-z-index + 2; | |
text-align: center; | |
padding: 15px; | |
cursor: pointer; | |
font-family: Arial; | |
} | |
#prestitial-ad-logo { | |
left: 5%; | |
padding: 10px; | |
position: fixed; | |
top: 30px; | |
z-index: @min-z-index + 2; | |
background: url("../../sprites/logo/prestitial-ad/desktop-logo-250x48.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0); | |
width: 230px; | |
height: 34px; | |
} | |
@media(max-width: 768px) { | |
#prestitial-ad-logo { | |
background: url("../../sprites/logo/prestitial-ad/mobile-logo-213x41.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0); | |
width: 213px; | |
height: 41px; | |
top: 15px; | |
} | |
#prestitial-ad-duration-counter { | |
display: none; | |
} | |
#prestitial-ad-close { | |
font-size: 14px; | |
width: 100px; | |
padding: 10px; | |
top: 75px; | |
} | |
} | |
#prestitial-ad-inject-container { | |
&:extend(#prestitial-ad-container); | |
.shown & { | |
box-shadow: 0 2px 10px #333; | |
} | |
* { | |
z-index: @min-z-index + 1 !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment