Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. /*
  2. FONT-FAMILIES:
  3. --------------------------------------
  4. font-family: 'Montserrat', sans-serif;
  5. font-family: 'Coming Soon', cursive;
  6. font-family: 'Dancing Script', cursive;
  7.  
  8. COLOURS:
  9. --------------------------------------
  10. #082e47 - dark
  11. #13405e - medium
  12. #336687 - light
  13. rgba(19, 64, 94, 0.53) - header overlay colour
  14. rgba(0, 0, 0, 0.75); - h1 background
  15. rgba(15, 32, 44, 0.83) - h1 background on medium screen size
  16. rgba(0, 0, 0, 0.35); - banner image shadow, strip shadow
  17. #333 - speech bubble borders and font color
  18. */
  19.  
  20. html {
  21. font-size: 16px;
  22. }
  23.  
  24. body {
  25. background-color: #13405e;
  26. font-family: 'Montserrat', sans-serif;
  27. color: #fff;
  28. }
  29.  
  30. header {
  31. height: 50vh;
  32. background-image: url("../assets/comics-extract.gif");
  33. background-size: cover;
  34. background-position: center center;
  35. position: relative;
  36. padding-top: 5vh;
  37. }
  38.  
  39. header:before{
  40. content: "";
  41. background-color: rgba(19,64,94,0.53);
  42. position: absolute;
  43. left:0;
  44. right:0;
  45. top:0;
  46. bottom:0;
  47. }
  48.  
  49. header .content-wrapper {
  50. background-image: url("../assets/mary-jane-banner.jpg");
  51. background-size: cover;
  52. height: 40vh;
  53. box-shadow: 0 0 4px 4px rgba(0,0,0,0.3);
  54. position: relative;
  55. }
  56.  
  57. h1 {
  58. font-weight: bold;
  59. font-size: 3rem;
  60. text-align: center;
  61. padding: 1rem;
  62. background-color: rgba(0,0,0,0.75);
  63. position: absolute;
  64. left:0;
  65. right:0;
  66. bottom: 1rem;
  67. }
  68.  
  69. .content-wrapper {
  70. width: 90%;
  71. max-width: 810px;
  72. margin: 0 auto;
  73. }
  74.  
  75. .portrait {
  76. background-color: yellow;
  77. width: 10rem;
  78. height: 10rem;
  79. border-radius: 50%;
  80. border: 8px solid #fff;
  81. background-size: cover;
  82. margin: auto auto 2rem auto;
  83. position: relative;
  84. }
  85.  
  86.  
  87. .gwen .portrait{
  88. background-image: url("../assets/gwen.jpg");
  89. }
  90.  
  91. .mj .portrait{
  92. background-image: url("../assets/mary-jane.jpg");
  93. }
  94.  
  95. .felicia .portrait{
  96. background-image: url("../assets/felicia.jpg");
  97. }
  98.  
  99. #lovers::after {
  100. content:"";
  101. display:block;
  102. clear: both;
  103. }
  104.  
  105. .lover {
  106. float: left;
  107. width: 33.33333%;
  108. padding-top: 5rem;
  109. padding-bottom: 5rem;
  110. text-align: center;
  111. transition: background-color 0.15s;
  112. }
  113.  
  114. .greeting{
  115. z-index:1;
  116. position: absolute;
  117. left: 3rem;
  118. top:0;
  119.  
  120. opacity: 0;
  121. color:#333;
  122. background: #fff;
  123. border:2px solid #333;
  124. text-transform: uppercase;
  125. font-family: 'Coming Soon', cursive;
  126. padding: 1rem;
  127. width: 16rem;
  128. border-radius: 8%/50%;
  129. transition: top 0.3s, opacity 0.3s;
  130. }
  131.  
  132. .greeting:after{
  133. content:"";
  134. display:block;
  135. width: 32px;
  136. height: 36px;
  137. background-image: url("../assets/speech-bubble-leg.png");
  138. position: absolute;
  139. left: 3rem;
  140. top:100%;
  141. }
  142.  
  143. .lover:hover{
  144. background-color: #082e47;
  145. cursor: pointer;
  146. }
  147.  
  148. .lover:hover .greeting{
  149. top: -3.5rem;
  150. opacity: 1;
  151. }
  152.  
  153. #strip {
  154. background-color: #336687;
  155. height: 75px;
  156. }
  157.  
  158. hr {
  159. border: 2px solid #fff;
  160. width: 40%;
  161. margin-bottom: 2rem;
  162. position: relative;
  163. top:0;
  164. transition: top 0.3s;
  165. }
  166.  
  167. h2 {
  168. text-transform: uppercase;
  169. font-size: 1.5rem;
  170. font-weight: bold;
  171. text-align: center;
  172. margin-bottom: 1rem;
  173. position: relative;
  174. top:0;
  175. transition: top 0.3s;
  176. }
  177.  
  178. aside {
  179. font-family: 'Dancing Script', cursive;
  180. font-size: 1.5rem;
  181. text-align: center;
  182. position: relative;
  183. top:0;
  184. }
  185.  
  186. .lover:hover h2{
  187. top:-40px;
  188. }
  189.  
  190. .lover:hover hr{
  191. top: 40px;
  192. }
  193.  
  194. .details {
  195. line-height: 1.4;
  196. font-size: 0.8rem;
  197. }
  198.  
  199. #more {
  200. padding: 3rem 0;
  201. background-color: #336687;
  202. }
  203.  
  204. li {
  205. line-height: 1.5;
  206. font-size: 0.8rem;
  207. margin: 1rem 0;
  208. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement