Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CS2102-section-5-Team-2/styles.css
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
167 lines (126 sloc)
2.81 KB
This file contains 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
:root { | |
--red: #f9032f; | |
--navyblue: #000080; | |
--white: #fff; | |
} | |
*{ | |
box-sizing:border-box; | |
margin:0; | |
padding:0; | |
font-family:"Arial", sans-seri; | |
} | |
.navbar { | |
background: var(--navyblue); | |
height:60px; | |
padding:0.5rem calc((100vw-1200px)/ 2); | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
position: relative; | |
} | |
.navbar__logo { | |
color: var(--white); | |
text-decoration: none; | |
padding-left: 1rem; | |
font-size: 1.5 rem; | |
} | |
.navbar__link { | |
color: var(--white); | |
text-decoration: none; | |
padding: 0rem 1rem; | |
} | |
.navbar__link:hover { | |
color: var(--red); | |
} | |
@media screen and (max-width: 768px){ | |
body.active{ | |
overflow-y:hidden; | |
overflow-x:hidden; | |
} | |
.navbar__link { | |
display: flex; | |
align-items:center; | |
justify-content:center; | |
} | |
.navbar__menu { | |
display: grid; | |
grid-template-columns: 1fr; | |
grid-template-rows: repeat(4,100px); | |
position: absolute; | |
width: 100%; | |
top: -1000px; | |
} | |
.navbar__menu.active { | |
top: 100%; | |
opacity: 1; | |
z-index:99; | |
height:100vh; | |
font-size: 1.5rem; | |
background: var(--black); | |
} | |
.navbar__toggle .bar{ | |
width: 25px; | |
height: 3px; | |
margin: 5px auto; | |
transition: all 0.3s ease-in-out; | |
background: var(--white); | |
display:block; | |
cursor:pointer; | |
} | |
#mobile-menu { | |
position: absolute; | |
top: 15%; | |
right: 5%; | |
transform: translate(5%, 20%); | |
} | |
#mobile-menu.is-active .bar:nth-child(2){ | |
opacity: 0; | |
} | |
#mobile-menu.is-active .bar:nth-child(1){ | |
transform: translateY(8px) rotate(45deg); | |
} | |
#mobile-menu.is-active .bar:nth-child(3){ | |
transform: translateY(-8px) rotate(-45deg); | |
} | |
} | |
/* Hero Section */ | |
.hero { | |
background: linear-gradient(to right,rgba(0,0,0,0.4),rgba(0,0,0,0.1)),url('./images/image1uconn.jpg'); | |
height: 100vh; | |
background-position: center; | |
background-size: cover; | |
padding: 0.5 rem calc((100vw - 1200px)/ 2); | |
display: flex; | |
justify-content: flex-start; | |
align-items: center; | |
} | |
.hero__content { | |
color: var(--white); | |
padding: 3rem 1 rem; | |
line-height: 1; | |
} | |
.hero__content h1{ | |
font-size: clamp(3rem, 8vw, 7rem); | |
text-transform: uppercase; | |
margin-bottom: 0.5 rem; | |
} | |
.hero__content p { | |
font-size: clamp(1rem, 4vw, 2.5rem); | |
margin-bottom: 3rem; | |
} | |
.button { | |
padding: 1rem 3rem; | |
border: none; | |
background: var(--red); | |
color: var(--white); | |
font-size: 1rem; | |
cursor: pointer; | |
outline: none; | |
transition: 0.3 ease; | |
text-decoration: none; | |
border-radius: 4px; | |
} | |
.button:hover { | |
background: var(--black); | |
} | |
/* Services Section */ | |