Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.38 KB | None | 0 0
  1.  
  2. /* ---------------------------------- */
  3. /* Coupon Widget
  4. ------------------------------------- */
  5. .coupon-widget {
  6.     margin-top: 35px;
  7.     border-radius: 4px;
  8.     background-position: 50%;
  9.     background-repeat: no-repeat;
  10.     background-size: cover;
  11.     position: relative;
  12.     color: #fff;
  13.     transition: 0.3s;
  14.     display: block;
  15. }
  16.  
  17. .coupon-widget:hover {
  18.     transform: translateY(-5px)
  19. }
  20.  
  21. .coupon-widget:before {
  22.     content: "";
  23.     background-color: #222;
  24.     opacity: 0.8;
  25.     top: 0;
  26.     left: 0;
  27.     display: block;
  28.     height: 100%;
  29.     width: 100%;
  30.     position: absolute;
  31.     border-radius: 4px;
  32.     z-index: 1;
  33. }
  34.  
  35. .coupon-widget a.coupon-top {
  36.     padding: 32px 30px;
  37.     position: relative;
  38.     z-index: 10;
  39.     text-align: center;
  40.     cursor: default;
  41.     display: block;
  42.     cursor: pointer;
  43.     background: rgba(255,255,255,0.07);
  44. }
  45.  
  46. .coupon-widget a.coupon-top h3 {
  47.     font-weight: 600;
  48.     font-size: 21px;
  49.     line-height: 30px;
  50.     text-align: center;
  51.     padding: 0 30px;
  52.     margin: 0;
  53.     font-weight: 600;
  54.     color: #fff;
  55. }
  56.  
  57. .coupon-scissors-icon {
  58.     position: absolute;
  59.     top: -15px;
  60.     left: 35px;
  61.     z-index: 100;
  62.     font-size: 20px;
  63. }
  64. .coupon-scissors-icon:after {
  65.     content: "\f0c4";
  66.     font-family: "FontAwesome";
  67. }
  68.  
  69. .coupon-valid-untill {
  70.     background-color: #fff;
  71.     display: inline-block;
  72.     border-radius: 4px;
  73.     padding: 5px 12px;
  74.     line-height: 20px;
  75.     font-weight: 600;
  76.     font-size: 14px;
  77.     margin-top: 15px;
  78.     color: #333;
  79. }
  80.  
  81. .coupon-how-to-use {
  82.     padding: 0 20px;
  83.     font-size: 14px;
  84.     line-height: 22px;
  85.     margin-top: 15px;
  86.     color: rgba(255,255,255,0.85);
  87. }
  88.  
  89. .coupon-how-to-use strong { color: #fff; }
  90.  
  91. .coupon-widget .coupon-bottom {
  92.     border-top: 2px dashed rgba(255,255,255,0.3);
  93.     padding: 20px;
  94.     margin: 0 0px;
  95.     position: relative;
  96.     z-index: 10;
  97.     text-align: center;
  98.     border-radius: 0 0 4px 4px;
  99. }
  100.  
  101. .coupon-code {
  102.     font-family: "Open Sans", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  103.     font-weight: 500;
  104.     color: #fff;
  105.     font-size: 18px;
  106.     letter-spacing: 2px;
  107.     display: inline-block;
  108.     padding: 7px 20px;
  109.     border-radius: 2px;
  110.     position: relative;
  111.     z-index: 11;
  112.     text-transform: uppercase;
  113.     transition: 0.4s;
  114.     background-color: rgba(255,255,255,0.09);
  115.     border: 2px dashed rgba(255,255,255,0.29);
  116. }
  117.  
  118. .code-button:hover,
  119. .code-button {
  120.     text-align: center;
  121.     border-radius: 50px;
  122.     width: 100%;
  123.     display: block;
  124.     font-size: 15px;
  125.     font-weight: 600;
  126.     padding: 10px;
  127.     line-height: 24px;
  128.     transition: 0.3s;
  129.     background-color: #eee;
  130.     color: #777;
  131.     display: none;
  132. }
  133.  
  134. .code-button:hover {
  135.     background-color: #f91942;
  136.     color: #fff;
  137. }
  138.  
  139. .coupon-link-icon {
  140.     position: absolute;
  141.     top: 15px;
  142.     right: 18px;
  143.     font-size: 16px;
  144. }
  145.  
  146. .coupon-link-icon:before {
  147.     font-family: "FontAwesome";
  148.     content: "\f08e";
  149.     color: #fff;
  150. }
  151.  
  152. .coupon-widget .coupon-bottom:before,
  153. .coupon-widget .coupon-bottom:after {
  154.     content: "";
  155.     width: 22px;
  156.     height: 22px;
  157.     display: inline-block;
  158.     position: absolute;
  159.     top: 0;
  160.     z-index: 10;
  161.     left: 0;
  162.     background-color: #fff;
  163.     border-radius: 100%;
  164.     transform: translate(-50%, -50%);
  165. }
  166.  
  167. .coupon-widget .coupon-bottom:after {
  168.     left: initial;
  169.     right: 0;
  170.     transform: translate(50%, -50%);
  171. }
  172.  
  173. .coupon-widget:before,
  174. .coupon-bottom {
  175.     background-color: #282828;
  176. }
  177.  
  178. @media (max-width: 480px) {
  179.     .coupon-widget a.coupon-top { padding-left: 20px; padding-right: 20px; }
  180. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement