Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. //
  2. // Pages » Event Card White
  3. //
  4. // -----------------------------------------
  5. //
  6. // Table of Contents:
  7. //
  8. // - Event Card Anchor Wrapper
  9. // - Events Card White
  10. // - Events Card White - Date
  11. // - Events Card White - Image
  12. // - Events Card White - Details
  13. // - Events Card White - Registration
  14. //
  15. // -----------------------------------------
  16.  
  17. .event-card__anchor-wrapper {
  18. color: #000;
  19. &:hover {
  20. color: #000;
  21. }
  22. }
  23.  
  24. // - Event Card White
  25. //
  26. // ---------
  27.  
  28. .event-card--white {
  29. text-align: center;
  30. margin-bottom: 20px;
  31. max-width: 95%;
  32. .flex-display();
  33. .flex-direction(column);
  34.  
  35. @media (min-width: @tablet) {
  36. text-align: left;
  37. .flex-direction(row);
  38. }
  39.  
  40. @media (min-width: @laptop) {
  41. max-width: 100%;
  42. }
  43.  
  44. // - Event Card Date
  45. //
  46. // ---------
  47.  
  48. .event-card__date {
  49. text-align: center;
  50. background: @baseGray;
  51. color: darken(@baseGray, 70%);
  52. padding: 16px 0;
  53. .flex-direction(row);
  54. .justify-content(center);
  55. .flex-wrap(wrap);
  56.  
  57. }
  58.  
  59. .event-card__day,
  60. .event-card__month {
  61. font-weight: bold;
  62. }
  63.  
  64. .event-card__day,
  65. .event-card__weekday,
  66. .event-card__month {
  67. margin: 0 5px;
  68. }
  69.  
  70. @media (min-width: @tablet) {
  71. .event-card__date {
  72. padding: 20px 10px;
  73. .flex-basis(15%);
  74. }
  75.  
  76. .event-card__day {
  77. .font-size(50);
  78. }
  79.  
  80. .event-card__day,
  81. .event-card__weekday,
  82. .event-card__month {
  83. width: 100%;
  84. }
  85.  
  86. }
  87.  
  88. @media (min-width: @laptop) {
  89. .event-card__date {
  90. padding: 30px 10px;
  91. .flex-basis(12%);
  92. }
  93. }
  94.  
  95. // - Event Card Image
  96. //
  97. // ---------
  98.  
  99. .event-card__image-container {
  100. overflow: hidden;
  101. width: 100%;
  102. height: 175px;
  103. position: relative;
  104. }
  105.  
  106. .event-card__image {
  107. min-width: 120%;
  108. position: absolute;
  109. left:50%;
  110. margin-left: -60%;
  111. }
  112.  
  113. @media (min-width: @tablet) {
  114. .event-card__image-container {
  115. height: 165px;
  116. width: auto;
  117. .flex-basis(25%);
  118. }
  119.  
  120. .event-card__image {
  121. height: 100%;
  122. min-width: auto;
  123. width: auto;
  124. left: 0;
  125. margin-left: 0;
  126. }
  127. }
  128.  
  129. // - Event Card Description
  130. //
  131. // ---------
  132.  
  133. .event-card__description {
  134. padding: @leading 16px;
  135. border-bottom: 1px solid @baseGray;
  136. margin-bottom: 0;
  137.  
  138. .event-card__title {
  139. margin-bottom: 24px;
  140. .font-size(19);
  141. }
  142.  
  143. .event-card__location {
  144. margin-top: 10px;
  145. margin-bottom: 15px;
  146. text-align: center;
  147. text-transform: uppercase;
  148. font-weight: bold;
  149. letter-spacing: 3px;
  150.  
  151. &--blue {
  152. color: @hrBlue;
  153. }
  154.  
  155. &--orange {
  156. color: @hrOrange;
  157. }
  158.  
  159. &--claret {
  160. color: @hrClaret;
  161. }
  162.  
  163. &--gold {
  164. color: @hrGold;
  165. }
  166. }
  167.  
  168. .event-card__time {
  169.  
  170. &:before {
  171. content: "";
  172. width: 16px;
  173. height: 16px;
  174. position: absolute;
  175. left: -25px;
  176. bottom: 3px;
  177. background-image: url('/assets/images/icons/clock.png');
  178. background-repeat: no-repeat;
  179. background-size: contain;
  180. .inline-block()
  181. }
  182. }
  183.  
  184. @media (min-width: @tablet) {
  185. position: relative;
  186. padding: 10px @leading;
  187. border-bottom: none;
  188. border-right: 1px solid @baseGray;
  189. .flex-basis(60%);
  190.  
  191. .event-card__location {
  192. margin-bottom: 0;
  193. letter-spacing: 1px;
  194. text-align: left;
  195. }
  196.  
  197. .event-card__time {
  198. position: absolute;
  199. bottom: 15px;
  200. left: 50px;
  201. }
  202.  
  203. .event-card__title {
  204. .line-height(28);
  205. }
  206. }
  207.  
  208. @media (min-width: @laptop) {
  209. .event-card__location {
  210. margin-top: 16px;
  211. }
  212. }
  213. }
  214.  
  215. // - Event Card White Registration
  216. //
  217. // ---------
  218.  
  219. .event-card__registration {
  220. .flex-display();
  221. .flex-direction(column);
  222. .justify-content(flex-start);
  223.  
  224. @media (min-width: @tablet) {
  225. padding: 20px 36px;
  226. }
  227.  
  228. @media (min-width: @laptop) {
  229. padding: 30px 36px;
  230. }
  231. }
  232.  
  233. .event-card__cost {
  234. margin: 0 0 15px 0;
  235. text-transform: uppercase;
  236. color: @hrBlue;
  237. font-weight: bold;
  238. }
  239.  
  240. .event-card__cta {
  241. font-weight: bold;
  242. color: @hrGold;
  243.  
  244. &:hover {
  245. color: lighten(@hrGold, 10%)
  246. }
  247. }
  248. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement