Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Google fonts */
- @font-face{
- font-family: "Croissant one";
- src: url("fonts/CroissantOne-Regular.ttf");
- }
- html {
- font-size: 18px;
- }
- @media only screen and (max-width: 1000px) {
- html {
- font-size: 16px;
- }
- }
- @media only screen and (max-width: 680px) {
- html {
- font-size: 14px;
- }
- }
- /* Header */
- .header {
- display: flex;
- justify-content: space-around;
- align-items: center;
- height: 4.44rem;
- padding: 0 12%;
- background-color: white;
- box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
- font-family: Verdana, sans-serif;
- font-size: .77rem;
- font-weight: bold;
- }
- .header .logo {
- flex-grow: 1;
- color: #ffb78c;
- }
- .header li {
- display: inline;
- padding-right: 2.22rem;
- }
- .header li a {
- text-decoration: none;
- color: #4a4a4a;
- }
- @media only screen and (max-width: 550px) {
- .header {
- flex-direction: column;
- }
- .header .logo {
- flex-grow: 0;
- }
- }
- /* Banner */
- .banner {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- height: 50rem;
- background: url("https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-6/project-morocco/banner.jpg") center center no-repeat;
- background-size: cover;
- color: #ffb78c;
- }
- .banner h2 {
- padding: .55rem 0;
- border-top: 4px solid #ffb78c;
- border-bottom: 4px solid #ffb78c;
- font-family: "Work Sans", Arial, sans-serif;
- font-size: 1.44rem;
- letter-spacing: 2px;
- font-weight: 500;
- }
- .banner h1 {
- padding-top: 1.11rem;
- /* Mayer "Abril Farface will not be supported as font-family" */
- font-family: "Abril Fatface", sans-serif;
- font-size: 11rem;
- font-weight: 900;
- }
- @media only screen and (max-width: 750px) {
- .banner {
- height: 40rem;
- }
- .banner h1 {
- font-size: 8rem;
- }
- }
- @media only screen and (max-width: 530px) {
- .banner {
- height: 30rem;
- }
- .banner h1 {
- font-size: 6rem;
- }
- }
- /* Journal */
- .journal {
- padding: 0 25% 4rem 25%;
- background-color: rgb(254, 231, 218);
- color: #4a4a4a;
- line-height: 1.4;
- font-family: "Work Sans", serif;
- }
- .photo {
- width: 75%;
- padding: 1.11rem;
- border-radius: 5px;
- margin: 0 auto 4.44rem auto;
- background-color: white;
- }
- .photo .image-container {
- overflow: hidden;
- margin-bottom: 1.11rem;
- }
- .photo .image-container img {
- width: 100%;
- }
- .photo .caption {
- font-style: italic;
- font-family: "Merriweather", serif;
- }
- .photo.first {
- position: relative;
- top: -2.77rem;
- margin-bottom: 1.67rem;
- }
- .journal p {
- padding-bottom: 2.77rem;
- font-size: 1.5rem;
- }
- .journal .first-letter {
- float: left;
- padding-right: 1.4rem;
- font-family: "Abril Fatface", serif;
- font-size: 7.44rem;
- color: #10b0d8;
- line-height: 0.87;
- }
- .quote {
- display: block;
- padding: 4.44rem 0;
- margin-bottom: 3.33rem;
- border-top: 4px solid black;
- border-bottom: 4px solid black;
- text-align: center;
- font-size: 3.55rem;
- font-weight: 800;
- line-height: 1.2;
- }
- @media only screen and (max-width: 680px) {
- .journal {
- padding: 0 10% 4rem 10%;
- }
- }
- /* Footer */
- footer {
- display: flex;
- align-items: center;
- padding: 0 1%;
- background-color: #212121;
- line-height: 1.5;
- font-family: "Croissant One", "Merriweather", serif;
- }
- footer .image-container {
- width: 400px;
- }
- footer .content {
- flex-grow: 1;
- font-style: italic;
- color: #9b9b9b;
- }
- footer p {
- padding-bottom: 1.66rem;
- }
- footer p:last-child {
- padding-bottom: 0;
- }
- footer .author {
- color: #ffb78c;
- }
- footer em {
- color: #cfcfcf;
- }
- @media only screen and (max-width: 750px) {
- footer {
- flex-direction: column;
- padding: 0 10% 2rem 10%;
- }
- footer .image-container {
- height: 300px;
- margin-bottom: 2rem;
- overflow: hidden;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement