Advertisement
Guest User

Untitled

a guest
May 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. /**
  2. * This is a way to quickly add placeholders for
  3. * popular ad sizes on the web using an html div
  4. */
  5.  
  6. // Define Ad Variables
  7. $ad-background-color: #ccc;
  8. $ad-text-color: #666;
  9. $ad-base-font-size: 18px;
  10. $ad-small-font-size: 12px;
  11.  
  12. // Presenting the Ads
  13. .ad {
  14. background-color: $ad-background-color;
  15. color: $ad-text-color;
  16. font-size: $ad-base-font-size;
  17. margin: 0 auto;
  18. overflow: hidden;
  19. padding: 20px;
  20. text-align: center;
  21. text-transform: uppercase;
  22.  
  23. &::before {
  24. box-sizing: inherit;
  25. }
  26.  
  27. /*
  28. desktop ad sizes
  29. */
  30.  
  31. // <div class="ad wide-skyscraper"></div>
  32. &.wide-skyscraper {
  33. height: 600px;
  34. width: 160px;
  35. &:before {
  36. content: "160 x 600 Wide Skyscraper Ad";
  37. }
  38. }
  39.  
  40. // <div class="ad medium-rectangle"></div>
  41. &.medium-rectangle {
  42. height: 250px;
  43. width: 300px;
  44. &:before {
  45. content: "300 x 250 Medium Rectangle Ad";
  46. }
  47. }
  48.  
  49. // <div class="ad half-page"></div>
  50. // <div class="ad monster"></div>
  51. &.half-page,
  52. &.monster {
  53. height: 600px;
  54. width: 300px;
  55. &:before {
  56. content: "300 x 600 Half-Page (Monster) Ad";
  57. }
  58. }
  59.  
  60. // <div class="ad leaderboard"></div>
  61. &.leaderboard {
  62. height: 90px;
  63. width: 728px;
  64. &:before {
  65. content: "728 x 90 Leaderboard Ad";
  66. }
  67. }
  68.  
  69. // <div class="ad billboard"></div>
  70. &.billboard {
  71. height: 250px;
  72. width: 970px;
  73. &:before {
  74. content: "970 x 250 Billboard Ad";
  75. }
  76. }
  77.  
  78. /*
  79. mobile ad banners
  80. */
  81.  
  82. // <div class="ad mobile-banner"></div>
  83. &.mobile-banner {
  84. font-size: $ad-small-font-size;
  85. height: 50px;
  86. padding: 15px 20px;
  87. width: 300px;
  88. &:before {
  89. content: "300 x 50 Mobile Banner Ad";
  90. }
  91. }
  92.  
  93. // <div class="ad mobile-leaderboard"></div>
  94. &.mobile-leaderboard {
  95. font-size: $ad-small-font-size;
  96. height: 50px;
  97. padding: 15px 20px;
  98. width: 320px;
  99. &:before {
  100. content: "320 x 50 Mobile Leaderboard Ad";
  101. }
  102. }
  103.  
  104. // <div class="ad mobile-large-banner"></div>
  105. &.mobile-large-banner {
  106. font-size: $ad-small-font-size;
  107. height: 100px;
  108. width: 320px;
  109. &:before {
  110. content: "320 x 100 Mobile Large Banner Ad";
  111. }
  112. }
  113.  
  114. /*
  115. less common desktop ad sizes
  116. */
  117.  
  118. // <div class="ad button"></div>
  119. &.button {
  120. font-size: $ad-small-font-size;
  121. height: 60px;
  122. padding: 10px 20px;
  123. width: 120px;
  124. &:before {
  125. content: "60 x 120 Button Ad";
  126. }
  127. }
  128.  
  129. // <div class="ad large-button"></div>
  130. // defunct, only use if specifically asked to do so
  131. &.large-button {
  132. font-size: $ad-small-font-size;
  133. height: 125px;
  134. width: 125px;
  135. &:before {
  136. content: "125 x 125 Large Button Ad";
  137. }
  138. }
  139.  
  140. // <div class="ad super-leaderboard"></div>
  141. &.super-leaderboard {
  142. height: 90px;
  143. width: 970px;
  144. &:before {
  145. content: "970 x 90 Super Leaderboard Ad";
  146. }
  147. }
  148.  
  149. /*
  150. old ad sizes
  151.  
  152. these sizes are defunct, so only use these
  153. if you absolutely must
  154. */
  155.  
  156. // <div class="ad skyscraper"></div>
  157. // defunct, only use if specifically asked to do so
  158. &.skyscraper {
  159. font-size: $ad-small-font-size;
  160. height: 600px;
  161. width: 120px;
  162. &:before {
  163. content: "120 x 600 Skyscraper Ad";
  164. }
  165. }
  166.  
  167. // <div class="ad large-rectangle"></div>
  168. // defunct, only use if specifically asked to do so
  169. &.large-rectangle {
  170. height: 280px;
  171. width: 336px;
  172. &:before {
  173. content: "336 x 280 Large Rectangle Ad";
  174. }
  175. }
  176.  
  177. // <div class="ad banner"></div>
  178. // defunct, only use if specifically asked to do so
  179. &.banner {
  180. height: 60px;
  181. padding: 15px 20px;
  182. width: 468px;
  183. &:before {
  184. content: "468 x 60 Banner Ad";
  185. }
  186. }
  187.  
  188. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement