Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .bodycontainer {
- position: relative;
- display: inline-block;
- margin-top: 140px; /* size of header */
- margin-left: 20%; /* size of side-nav */
- padding-bottom: 200px;
- background-color: #ffffff;
- float: left;
- width: 80%;
- }
- .bodycontainer .title {
- position: relative;
- display: inline-block;
- float: left;
- width: 80%;
- margin: 10px 0 0 10%;
- padding: 30px 0;
- }
- .bodycontainer .title h1 {
- font-size: 32px;
- font-family: sans-serif;
- font-weight: 100;
- color: #383838;
- }
- .bodycontainer .achievement {
- position: relative;
- display: inline-block;
- float: left;
- width: 80%;
- height: 200px;
- margin: 20px 0 0 10%;
- 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;
- }
- .achievement .socialcontainer .socialbuttons {
- position: relative;
- display: inline-block;
- width: auto;
- margin: 0 10px;
- }
- .bodycontainer .achievement.imageonright .socialbuttons { float: left; }
- .bodycontainer .achievement.imageonleft .socialbuttons { float: right; }
- .achievement .socialcontainer .socialbuttons .button {
- position: relative;
- display: inline-block;
- width: 30px;
- height: 30px;
- background-color: transparent;
- float: left;
- padding: 0 2px;
- border: none;
- }
- .achievement .socialcontainer .socialbuttons .button img {
- width: 16px;
- height: 16px;
- float: left;
- position: absolute;
- left: 12px;
- top: 7px;
- }
- /* ----------------------------------------------------*/
- /* 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 .title h1 { text-align: center; }
- .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