Created
May 10, 2020 22:43
-
-
Save wc-tph/452438edf464f9937e7ef7f0153df027 to your computer and use it in GitHub Desktop.
travel.css for 13DTM (non-responsive)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
font-family: 'Roboto', sans-serif; | |
} | |
/* This clears any float properties that cause issues for other elements */ | |
.clearfix::after { | |
content: ""; | |
clear: both; | |
display: table; | |
} | |
.container { | |
width: 60%; | |
margin: auto; | |
} | |
main { | |
padding: 2rem 0 0 0; | |
margin: 0 0 3rem 0; | |
} | |
h3 { | |
font-size: 2.5rem; | |
text-align: center; | |
margin: 0 0 1rem 0; | |
} | |
img { | |
max-width: 100%; | |
} | |
p { | |
margin-bottom: 0.7rem; | |
} | |
/** | |
NAVIGATION STYLES | |
**/ | |
nav { | |
background-color: #eee; | |
font-family: 'Fira Code', monospace; | |
} | |
nav a { | |
margin: 0 1rem; | |
text-decoration: none; | |
padding: 0.3rem; | |
color: #111; | |
} | |
#logo { | |
width: 25%; | |
font-size: 2rem; | |
float: left; | |
padding: 1rem; | |
font-weight: 300; | |
} | |
#links { | |
width: 50%; | |
float: left; | |
padding: 1.5rem; | |
text-align: center; | |
font-size: 1rem; | |
} | |
#links a:hover { | |
color: dodgerblue; | |
} | |
/** | |
JUMBOTRON STYLES | |
**/ | |
.jumbotron { | |
border: 1px solid hotpink; | |
background-color: #eee; | |
height: 50vh; | |
text-align: center; | |
padding: 5rem; | |
} | |
.jumbotron h1, .jumbotron h2 { | |
background-color: white; | |
display: inline-block; | |
margin-top: 0.2rem; | |
padding: 0 0.2rem; | |
} | |
#home-jumbo { | |
background: url('../images/boat.jpg') no-repeat center center fixed; | |
background-size: cover; | |
} | |
#about-jumbo { | |
background: url('../images/italy.jpg') no-repeat center center fixed; | |
background-size: cover; | |
} | |
#contact-jumbo { | |
background: url('../images/mountains.jpg') no-repeat center center fixed; | |
background-size: cover; | |
} | |
#gallery-jumbo { | |
background: url('../images/nice.jpg') no-repeat center center fixed; | |
background-size: cover; | |
} | |
/** | |
SUBSCRIBE BAR STYLES | |
**/ | |
#subscribe-bar { | |
padding: 3rem 0; | |
background-color: #eee; | |
} | |
#subscribe-bar p { | |
display: inline; | |
} | |
#subscribe-bar form { | |
display: inline; | |
float: right; | |
} | |
#subscribe-bar input { | |
padding: 0.5rem; | |
} | |
#subscribe-email { | |
width: 20rem; | |
} | |
#subscribe-button { | |
background-color: #3498db; | |
border: 1px solid #3498db; | |
} | |
#subscribe-button:hover { | |
background-color: #2980b9; | |
} | |
/** | |
LAYOUT STYLES | |
**/ | |
.text-column { | |
width: 75%; | |
float: left; | |
padding: 0.1rem; | |
} | |
.image-column { | |
width: 25%; | |
float: left; | |
padding: 0.1rem; | |
} | |
/** | |
HOME PAGE STYLES | |
**/ | |
.blog-post { | |
border: 1px solid #eee; | |
margin-bottom: 0.6rem; | |
padding: 1rem; | |
} | |
.blog-post>h4 { | |
font-size: 1.8rem; | |
text-align: center; | |
} | |
.blog-post>img { | |
width: 20%; | |
float: right; | |
} | |
/** | |
CONTACT FORM STYLES | |
**/ | |
input, textarea { | |
font-size: 1rem; | |
border-radius: 0.3rem; | |
} | |
#contact-form { | |
width: 60%; | |
margin: auto; | |
background-color: #efefef; | |
padding: 0.5rem; | |
} | |
.form-group { | |
margin-bottom: 0.5rem; | |
} | |
.form-group>label { | |
width: 30%; | |
float: left; | |
padding: 0.3rem; | |
} | |
.form-group>input, .form-group>textarea { | |
width: 70%; | |
float: left; | |
padding: 0.3rem; | |
} | |
#send-button { | |
background-color: #3498db; | |
border: 1px solid #3498db; | |
padding: 0.3rem; | |
} | |
#send-button:hover { | |
background-color: #2980b9; | |
} | |
#reset-button { | |
background-color: #e74c3c; | |
border: 1px solid #e74c3c; | |
padding: 0.3rem; | |
} | |
#reset-button:hover { | |
background-color: #c0392b; | |
} | |
#button-group { | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment