RyanEarnshaw

Untitled

Apr 10th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.40 KB | None | 0 0
  1.  
  2. .innercont {
  3. position: relative;
  4. display: inline-block;
  5. float: left;
  6. padding: 5vh 5vw;
  7. box-sizing: border-box;
  8. background-color: #ffffff;
  9. }
  10.  
  11.  
  12. .bodycontainer {
  13. position: relative;
  14. display: inline-block;
  15. margin-top: 80px; /* size of header */
  16. margin-left: 20%; /* size of side-nav */
  17. padding-bottom: 200px;
  18. background-color: #ffffff;
  19. float: left;
  20. width: 80%;
  21. }
  22.  
  23. .innercont .title {
  24. position: relative;
  25. display: inline-block;
  26. float: left;
  27. width: 100%;
  28. margin: 20px 0 40px;
  29. }
  30. .innercont .title h1 {
  31. font-size: 40px;
  32. font-family: 'Work Sans';
  33. font-weight: 100;
  34. color: #8ec640;
  35. }
  36. .innercont .title:after {
  37. content: '';
  38. position: absolute;
  39. bottom: -16px;
  40. width: 0px;
  41. height: 2px;
  42. background-color: #8ec640;
  43. animation: underline_animation 1s 0.5s 1 normal forwards;
  44. -o-animation: underline_animation 1s 0.5s 1 normal forwards;
  45. -moz-animation: underline_animation 1s 0.5s 1 normal forwards;
  46. -webkit-animation: underline_animation 1s 0.5s 1 normal forwards;
  47. }
  48. @keyframes underline_animation {
  49. 0% { width: 0px; }
  50. 100% { width: 100px; }
  51. }
  52. @-webkit-keyframes underline_animation {
  53. 0% { width: 0px; }
  54. 100% { width: 100px; }
  55. }
  56. @-moz-keyframes underline_animation {
  57. 0% { width: 0px; }
  58. 100% { width: 100px; }
  59. }
  60. @-o-keyframes underline_animation {
  61. 0% { width: 0px; }
  62. 100% { width: 100px; }
  63. }
  64. .bodycontainer .intro {
  65. position: relative;
  66. display: inline-block;
  67. float: left;
  68. width: 100%;
  69. margin: 20px 0 20px;
  70. }
  71. .bodycontainer .intro h1 {
  72. position: relative;
  73. font-size: 15px;
  74. font-family: sans-serif;
  75. font-weight: 100;
  76. color: #6b6b6b;
  77. margin: 7px 0;
  78. line-height: 25px;
  79. width: 100%;
  80. float: left;
  81. }
  82. .bodycontainer .achievement {
  83. position: relative;
  84. display: inline-block;
  85. float: left;
  86. width: 100%;
  87. height: 200px;
  88. margin-top: 20px;
  89. border: 1px solid #cccccc;
  90. opacity: 1;
  91. transition: opacity 500ms ease, transform 1s ease;
  92. transform: translateX(0px);
  93. }
  94. .bodycontainer .achievement.hidden { opacity: 0; }
  95. .bodycontainer .achievement.hidden.imageonright { transform: translateX(5vw); }
  96. .bodycontainer .achievement.hidden.imageonleft { transform: translateX(-5vw); }
  97. .bodycontainer .achievement .image {
  98. position: relative;
  99. display: inline-block;
  100. width: 40%;
  101. height: 100%;
  102. overflow: hidden;
  103. }
  104. .bodycontainer .achievement .image img {
  105. position: absolute;
  106. display: inline-block;
  107. top: 0;
  108. right: 0;
  109. bottom: 0;
  110. left: 0;
  111. }
  112. .bodycontainer .achievement.ach1 .image img { width: 100%; height: 100%; }
  113. .bodycontainer .achievement.ach2 .image img { width: 100%; top: -1vw; }
  114. .bodycontainer .achievement.ach3 .image img { width: 100%; top: -2vw; }
  115. .bodycontainer .achievement.ach4 .image img { width: 100%; top: -2vw; }
  116. .bodycontainer .achievement.ach5 .image img { width: 100%; top: -2vw; }
  117. .bodycontainer .achievement.ach6 .image img { width: 100%; height: 100%; }
  118.  
  119. .bodycontainer .achievement.imageonright .image { float: right; }
  120. .bodycontainer .achievement.imageonright .date { left: 0; }
  121. .bodycontainer .achievement.imageonleft .image { float: left; }
  122. .bodycontainer .achievement.imageonleft .date { right: 0; }
  123.  
  124. .bodycontainer .achievement .image .date {
  125. position: absolute;
  126. display: inline-block;
  127. bottom: 0;
  128. background-color: #ffffff;
  129. }
  130.  
  131. .bodycontainer .achievement .image .date h1 {
  132. position: relative;
  133. display: inline-block;
  134. font-size: 16px;
  135. font-family: 'Raleway', sans-serif;
  136. font-weight: 100;
  137. color: #8ec640;
  138. padding: 10px 25px;
  139. }
  140.  
  141. .bodycontainer .achievement .body {
  142. position: relative;
  143. display: inline-block;
  144. float: left;
  145. width: 60%;
  146. height: 100%;
  147. }
  148. .bodycontainer .achievement .body h1 {
  149. position: relative;
  150. display: inline-block;
  151. font-size: 18px;
  152. font-family: 'Raleway', sans-serif;
  153. font-weight: 100;
  154. color: #8ec640;
  155. padding: 20px 0 15px 25px;
  156. width: 96%;
  157. }
  158. .bodycontainer .achievement .body h2 {
  159. position: relative;
  160. display: inline-block;
  161. font-size: 14px;
  162. font-family: 'Raleway', sans-serif;
  163. font-weight: 100;
  164. color: #393939;
  165. padding: 0px 0 10px 25px;
  166. width: 96%;
  167. }
  168. .achievement .socialcontainer {
  169. position: absolute;
  170. display: inline-block;
  171. float: left;
  172. width: 100%;
  173. left: 0;
  174. bottom: 10px;
  175. padding-left: 15px;
  176. }
  177. .bodycontainer .achievement.imageonright .socialcontainer { float: left; }
  178. .bodycontainer .achievement.imageonleft .socialcontainer { float: right; }
  179.  
  180. .achievement .socialcontainer .button {
  181. border: none;
  182. }
  183.  
  184.  
  185.  
  186.  
  187. /* ----------------------------------------------------*/
  188. /* Code That Doesnt Change Between Mobile Resolution */
  189. /* ----------------------------------------------------*/
  190. @media only screen and (min-width : 0px) and (max-width : 992px) {
  191. .bodycontainer .title { width: 100%; margin: 0 }
  192. .bodycontainer
  193. .bodycontainer .achievement { width: 90%; margin: 20px 5%; height: 400px;}
  194. .bodycontainer .achievement .image { width: 100%; height: 50%; }
  195. .bodycontainer .achievement .body { width: 100%; height: 50%; }
  196. .bodycontainer .achievement .body h1 { width: 100%; padding: 20px 5% 15px 5%; box-sizing: border-box; }
  197. .bodycontainer .achievement .body h2 { width: 100%; padding: 20px 5% 15px 5%; box-sizing: border-box; }
  198. }
  199.  
  200.  
  201. /* ----------------------------------------------------*/
  202. /* Custom, iPhone Retina */
  203. /* ----------------------------------------------------*/
  204. @media only screen and (max-width : 320px) {
  205.  
  206. }
  207.  
  208.  
  209. /* ----------------------------------------------------*/
  210. /* Extra Small Devices, Phones */
  211. /* ----------------------------------------------------*/
  212. @media only screen and (min-width : 320px) and (max-width : 480px) {
  213.  
  214. }
  215.  
  216.  
  217. /* ----------------------------------------------------*/
  218. /* Small Devices, Tablets */
  219. /* ----------------------------------------------------*/
  220. @media only screen and (min-width : 480px) and (max-width : 768px) {
  221.  
  222. }
  223.  
  224.  
  225. /* ----------------------------------------------------*/
  226. /* Medium Devices, Desktops */
  227. /* ----------------------------------------------------*/
  228. @media only screen and (min-width : 768px) and (max-width : 992px) {
  229.  
  230. }
  231.  
  232.  
  233. /* ----------------------------------------------------*/
  234. /* Large Devices, Wide Screens */
  235. /* ----------------------------------------------------*/
  236. @media only screen and (min-width : 992px) and (max-width : 1200px) {
  237.  
  238. }
Advertisement
Add Comment
Please, Sign In to add comment