RyanEarnshaw

Untitled

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