Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .innercont {
- position: relative;
- display: inline-block;
- float: left;
- padding: 5vh 5vw;
- box-sizing: border-box;
- background-color: #ffffff;
- }
- .bodycontainer {
- position: relative;
- display: inline-block;
- margin-top: 80px; /* size of header */
- margin-left: 20%; /* size of side-nav */
- padding-bottom: 200px;
- background-color: #ffffff;
- float: left;
- width: 80%;
- }
- .innercont .title {
- position: relative;
- display: inline-block;
- float: left;
- width: 100%;
- margin: 20px 0 40px;
- }
- .innercont .title h1 {
- font-size: 40px;
- font-family: 'Work Sans';
- font-weight: 100;
- color: #8ec640;
- }
- .innercont .title:after {
- content: '';
- position: absolute;
- bottom: -16px;
- width: 0px;
- height: 2px;
- background-color: #8ec640;
- animation: underline_animation 1s 0.5s 1 normal forwards;
- -o-animation: underline_animation 1s 0.5s 1 normal forwards;
- -moz-animation: underline_animation 1s 0.5s 1 normal forwards;
- -webkit-animation: underline_animation 1s 0.5s 1 normal forwards;
- }
- @keyframes underline_animation {
- 0% { width: 0px; }
- 100% { width: 100px; }
- }
- @-webkit-keyframes underline_animation {
- 0% { width: 0px; }
- 100% { width: 100px; }
- }
- @-moz-keyframes underline_animation {
- 0% { width: 0px; }
- 100% { width: 100px; }
- }
- @-o-keyframes underline_animation {
- 0% { width: 0px; }
- 100% { width: 100px; }
- }
- .bodycontainer .intro {
- position: relative;
- display: inline-block;
- float: left;
- width: 100%;
- margin: 20px 0 20px;
- }
- .bodycontainer .intro h1 {
- position: relative;
- font-size: 15px;
- font-family: sans-serif;
- font-weight: 100;
- color: #6b6b6b;
- margin: 7px 0;
- line-height: 25px;
- width: 100%;
- float: left;
- }
- .bodycontainer .achievement {
- position: relative;
- display: inline-block;
- float: left;
- width: 100%;
- height: 200px;
- margin-top: 20px;
- border: 1px solid #cccccc;
- opacity: 1;
- transition: opacity 500ms ease, transform 1s ease;
- transform: translateX(0px);
- }
- .bodycontainer .achievement.hidden { opacity: 0; }
- .bodycontainer .achievement.hidden.imageonright { transform: translateX(5vw); }
- .bodycontainer .achievement.hidden.imageonleft { transform: translateX(-5vw); }
- .bodycontainer .achievement .image {
- position: relative;
- display: inline-block;
- width: 40%;
- height: 100%;
- overflow: hidden;
- }
- .bodycontainer .achievement .image img {
- position: absolute;
- display: inline-block;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- }
- .bodycontainer .achievement.ach1 .image img { width: 100%; height: 100%; }
- .bodycontainer .achievement.ach2 .image img { width: 100%; top: -1vw; }
- .bodycontainer .achievement.ach3 .image img { width: 100%; top: -2vw; }
- .bodycontainer .achievement.ach4 .image img { width: 100%; top: -2vw; }
- .bodycontainer .achievement.ach5 .image img { width: 100%; top: -2vw; }
- .bodycontainer .achievement.ach6 .image img { width: 100%; height: 100%; }
- .bodycontainer .achievement.imageonright .image { float: right; }
- .bodycontainer .achievement.imageonright .date { left: 0; }
- .bodycontainer .achievement.imageonleft .image { float: left; }
- .bodycontainer .achievement.imageonleft .date { right: 0; }
- .bodycontainer .achievement .image .date {
- position: absolute;
- display: inline-block;
- bottom: 0;
- background-color: #ffffff;
- }
- .bodycontainer .achievement .image .date h1 {
- position: relative;
- display: inline-block;
- font-size: 16px;
- font-family: 'Raleway', sans-serif;
- font-weight: 100;
- color: #8ec640;
- padding: 10px 25px;
- }
- .bodycontainer .achievement .body {
- position: relative;
- display: inline-block;
- float: left;
- width: 60%;
- height: 100%;
- }
- .bodycontainer .achievement .body h1 {
- position: relative;
- display: inline-block;
- font-size: 18px;
- font-family: 'Raleway', sans-serif;
- font-weight: 100;
- color: #8ec640;
- padding: 20px 0 15px 25px;
- width: 96%;
- }
- .bodycontainer .achievement .body h2 {
- position: relative;
- display: inline-block;
- font-size: 14px;
- font-family: 'Raleway', sans-serif;
- font-weight: 100;
- color: #393939;
- padding: 0px 0 10px 25px;
- width: 96%;
- }
- .achievement .socialcontainer {
- position: absolute;
- display: inline-block;
- float: left;
- width: 100%;
- left: 0;
- bottom: 10px;
- padding-left: 15px;
- }
- .bodycontainer .achievement.imageonright .socialcontainer { float: left; }
- .bodycontainer .achievement.imageonleft .socialcontainer { float: right; }
- .achievement .socialcontainer .button {
- border: none;
- }
- /* ----------------------------------------------------*/
- /* Code That Doesnt Change Between Mobile Resolution */
- /* ----------------------------------------------------*/
- @media only screen and (min-width : 0px) and (max-width : 992px) {
- .bodycontainer .title { width: 100%; margin: 0 }
- .bodycontainer
- .bodycontainer .achievement { width: 90%; margin: 20px 5%; height: 400px;}
- .bodycontainer .achievement .image { width: 100%; height: 50%; }
- .bodycontainer .achievement .body { width: 100%; height: 50%; }
- .bodycontainer .achievement .body h1 { width: 100%; padding: 20px 5% 15px 5%; box-sizing: border-box; }
- .bodycontainer .achievement .body h2 { width: 100%; padding: 20px 5% 15px 5%; box-sizing: border-box; }
- }
- /* ----------------------------------------------------*/
- /* Custom, iPhone Retina */
- /* ----------------------------------------------------*/
- @media only screen and (max-width : 320px) {
- }
- /* ----------------------------------------------------*/
- /* Extra Small Devices, Phones */
- /* ----------------------------------------------------*/
- @media only screen and (min-width : 320px) and (max-width : 480px) {
- }
- /* ----------------------------------------------------*/
- /* Small Devices, Tablets */
- /* ----------------------------------------------------*/
- @media only screen and (min-width : 480px) and (max-width : 768px) {
- }
- /* ----------------------------------------------------*/
- /* Medium Devices, Desktops */
- /* ----------------------------------------------------*/
- @media only screen and (min-width : 768px) and (max-width : 992px) {
- }
- /* ----------------------------------------------------*/
- /* Large Devices, Wide Screens */
- /* ----------------------------------------------------*/
- @media only screen and (min-width : 992px) and (max-width : 1200px) {
- }
Advertisement
Add Comment
Please, Sign In to add comment