RyanEarnshaw

Untitled

Apr 11th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.05 KB | None | 0 0
  1. .bodycontainer {
  2. position: relative;
  3. display: inline-block;
  4. margin-top: 80px; /* size of header */
  5. margin-left: 20%; /* size of side-nav */
  6. /* padding-bottom: 200px; */
  7. background-color: #ffffff;
  8. float: left;
  9. width: 80%;
  10. }
  11. .headerimage {
  12. position: relative;
  13. display: inline-block;
  14. width: 100%;
  15. height: 300px;
  16. margin: 0;
  17. padding: 0;
  18. overflow: hidden;
  19. }
  20. .headerimage img {
  21. position: absolute;
  22. display: inline-block;
  23. width: 100%;
  24. min-height: 100%;
  25. top: 50%;
  26. transform: translateY(-50%);
  27. right: 0;
  28. }
  29. .headerimage .text {
  30. position: absolute;
  31. display: inline-block;
  32. bottom: 10px;
  33. left: 20px;
  34. width; 100%;
  35. }
  36. .headerimage h1 {
  37. position: relative;
  38. display: inline-block;
  39. width: 100%;
  40. font-size: 40px;
  41. font-family: 'Work Sans';
  42. font-weight: 400;
  43. color: #8ec640;
  44. margin: 20px 0 0 20px;
  45. }
  46. .headerimage h1:after {
  47. content: '';
  48. position: absolute;
  49. bottom: -10px;
  50. left: 0;
  51. width: 0px;
  52. height: 2px;
  53. background-color: #8ec640;
  54. animation: underline_animation 1s 0.5s 1 normal forwards;
  55. -o-animation: underline_animation 1s 0.5s 1 normal forwards;
  56. -moz-animation: underline_animation 1s 0.5s 1 normal forwards;
  57. -webkit-animation: underline_animation 1s 0.5s 1 normal forwards;
  58. }
  59. @keyframes underline_animation {
  60. 0% { width: 0px; }
  61. 100% { width: 100px; }
  62. }
  63. @-webkit-keyframes underline_animation {
  64. 0% { width: 0px; }
  65. 100% { width: 100px; }
  66. }
  67. @-moz-keyframes underline_animation {
  68. 0% { width: 0px; }
  69. 100% { width: 100px; }
  70. }
  71. @-o-keyframes underline_animation {
  72. 0% { width: 0px; }
  73. 100% { width: 100px; }
  74. }
  75. .headerimage h2 {
  76. position: relative;
  77. display: inline-block;
  78. width: 30%;
  79. font-size: 24px;
  80. font-family: 'Work Sans';
  81. font-weight: 400;
  82. margin: 30px 0 0 20px;
  83. color: #000000;
  84. }
  85. .innercont {
  86. position: relative;
  87. display: inline-block;
  88. float: left;
  89. padding: 0vh 5vw 5vh 5vw;
  90. box-sizing: border-box;
  91. background-color: #ffffff;
  92. }
  93.  
  94.  
  95.  
  96. .split-1 {
  97. position: relative;
  98. display: inline-block;
  99. width: 30%;
  100. float: left;
  101. }
  102. .split-2 {
  103. position: relative;
  104. display: inline-block;
  105. width: 70%;
  106. float: left;
  107. }
  108. .split-1 h1 {
  109. position: relative;
  110. font-size: 25px;
  111. font-family: 'Work Sans';
  112. font-weight: 100;
  113. color: #8ec640;
  114. margin: 7px 0;
  115. line-height: 25px;
  116. width: 100%;
  117. float: left;
  118. }
  119.  
  120.  
  121. .innercont .body {
  122. position: relative;
  123. display: inline-block;
  124. float: left;
  125. width: 100%;
  126. }
  127. .innercont .body .column {
  128. position: relative;
  129. display: inline-block;
  130. height: 100%;
  131. float: left;
  132. }
  133. .innercont .body .column.c1 { width: 30%; margin-right: 5%; }
  134. .innercont .body .column.c2 { width: 65% }
  135. .innercont .body .column.c3 { width: 100% }
  136.  
  137. .innercont .body h2 {
  138. position: relative;
  139. font-size: 17px;
  140. font-family: 'Work Sans';
  141. font-weight: 100;
  142. color: #6b6b6b;
  143. margin: 7px 0;
  144. line-height: 25px;
  145. width: 100%;
  146. float: left;
  147. }
  148. .innercont .body .first-text {
  149. margin: 50px 0;
  150. }
  151. .innercont .body .column.c1 h2 {
  152. font-size: 22px;
  153. }
  154. .innercont .body h2 a {
  155. font-weight: 600;
  156. color: #8ec640;
  157. text-decoration: none;
  158. }
  159. .innercont .body h2 span {
  160. font-size: 24px;
  161. font-family: 'Raleway';
  162. font-weight: 200;
  163. color: #83c640;
  164. }
  165.  
  166. .innercont .body .quote {
  167. position: relative;
  168. display: inline-block;
  169. padding: 40px 0px;
  170. width: 100%;
  171. }
  172. .innercont .body .quote h2 {
  173. position: relative;
  174. display: inline-block;
  175. width: 100%;
  176. line-height: 25px;
  177. font-family: 'Work Sans';
  178. font-size: 23px;
  179. font-weight: 300;
  180. margin-top: 10px;
  181. color: #000000;
  182. text-align: center;
  183. }
  184.  
  185. .body .icons {
  186. position: relative;
  187. display: inline-block;
  188. width: 100%;
  189. float: left;
  190. margin: 0;
  191. }
  192. .body .icons .icon {
  193. position: relative;
  194. display: inline-block;
  195. width: 33%;
  196. padding: 0 2%;
  197. box-sizing: border-box;
  198. float: left;
  199. }
  200. .body .icons .icon img {
  201. position: relative;
  202. display: inline-block;
  203. width: 100%;
  204. padding: 0;
  205. float: left;
  206. }
  207. .body .icons .icon h2 {
  208. position: relative;
  209. display: inline-block;
  210. width: 100%;
  211. font-size: 14px;
  212. font-family: sans-serif;
  213. font-weight: bold;
  214. text-align: center;
  215. line-height: 20px;
  216. color: #7c7c7c;
  217. float: left;
  218. }
  219.  
  220. .innercont .body .grey-container {
  221. position: relative;
  222. display: inline-block;
  223. width: 100%;
  224. padding: 30px 5vw;
  225. margin-left: -5vw;
  226. background-color: #e3e3e3;
  227. }
  228.  
  229. .body .bottom-container {
  230. position: relative;
  231. display: inline-block;
  232. width: 50%;
  233. float: left;
  234. }
  235. .body .bottom-container.left { width: 30%; }
  236. .body .bottom-container.right { width: 70%; }
  237. .body .bottom-container .mainimage {
  238. position: relative;
  239. display: inline-block;
  240. max-width: 90%;
  241. max-height: 90%;
  242. }
  243. .body .bottom-container .icons-2{
  244. position: relative;
  245. display: inline-block;
  246. width: 100%;
  247. }
  248. .body .bottom-container .icons-2 .piece {
  249. position: relative;
  250. display: inline-block;
  251. float: left;
  252. width: 25%;
  253. }
  254.  
  255.  
  256. /* MEDIA QUERIES */
  257.  
  258.  
  259.  
  260. /* ----------------------------------------------------*/
  261. /* Code That Doesnt Change Between Mobile Resolution */
  262. /* ----------------------------------------------------*/
  263. @media only screen and (min-width : 0px) and (max-width : 992px) {
  264. .innercont .body .column.c1 { width: 100%; margin-right: 0; }
  265. .innercont .body .column.c2 { width: 100% }
  266. .headerimage img {
  267. height: 100%;
  268. width: auto;
  269. }
  270. .headerimage .text {
  271. bottom: 0;
  272. }
  273. .headerimage h2 {
  274. left: -20px;
  275. margin-left: 0;
  276. width: 100%;
  277. padding-top: 10px;
  278. padding-left: 5vw;
  279. background-color: #ffffff;
  280. }
  281. .split-1 { width: 100%; }
  282. .split-2 { width: 100%; margin-top: 30px; }
  283. }
  284.  
  285.  
  286. /* ----------------------------------------------------*/
  287. /* Custom, iPhone Retina */
  288. /* ----------------------------------------------------*/
  289. @media only screen and (max-width : 320px) {
  290.  
  291. }
  292.  
  293.  
  294. /* ----------------------------------------------------*/
  295. /* Extra Small Devices, Phones */
  296. /* ----------------------------------------------------*/
  297. @media only screen and (min-width : 320px) and (max-width : 480px) {
  298. .headerimage img {
  299. right: auto;
  300. left: -50%;
  301. }
  302. .body .bottom-container.left { width: 100%; }
  303. .body .bottom-container.right { width: 100%; }
  304. .body .icons .icon { width: 50%; margin-top: 20px; height: 170px;}
  305. }
  306.  
  307.  
  308. /* ----------------------------------------------------*/
  309. /* Small Devices, Tablets */
  310. /* ----------------------------------------------------*/
  311. @media only screen and (min-width : 480px) and (max-width : 768px) {
  312.  
  313. }
  314.  
  315.  
  316. /* ----------------------------------------------------*/
  317. /* Medium Devices, Desktops */
  318. /* ----------------------------------------------------*/
  319. @media only screen and (min-width : 768px) and (max-width : 992px) {
  320.  
  321. }
  322.  
  323.  
  324. /* ----------------------------------------------------*/
  325. /* Large Devices, Wide Screens */
  326. /* ----------------------------------------------------*/
  327. @media only screen and (min-width : 992px) and (max-width : 1200px) {
  328.  
  329. }
Advertisement
Add Comment
Please, Sign In to add comment