Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsiveness added to the css file #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 65 additions & 7 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap');

* {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -44,6 +43,28 @@ ul li a:hover {
padding: 0.5rem;
}

@media screen and (max-width: 768px) {
div.nav-bar {
display: flex;
justify-content: space-between;
padding: 1rem;
width: 100vw;
}
div.logo {
font-size: 1.3rem;
}
ul.nav-links {
flex-direction: column;
}
ul li {
margin: 0;
font-size: 1rem;
}
ul li a {
display: block;
}
}

div.hero-section {
background: #304353;
padding: 10rem;
Expand Down Expand Up @@ -130,6 +151,28 @@ div.hero-background-pos {
box-shadow: 2px 2px 15px 0 rgb(135 135 135 / 40%);
}

@media screen and (max-width: 768px) {
div.hero-background {
padding: 3rem;
}
div.background {
padding: 10px 30px;
width: 300px;
height: 250px;
}
div.background h4 {
padding: 1rem;
font-size: 1rem;
}
div.background p {
padding-left: 1rem;
font-size: 0.8rem;
}
div.hero-background-pos {
display: none;
}
}

div.snapshot-team {
background: #f0f0f0;
text-align: center;
Expand Down Expand Up @@ -198,7 +241,6 @@ div.circle {
border-radius: 50%;
background: #bcc3c7;
margin-top: 2rem;

}

div.box1 h5 {
Expand Down Expand Up @@ -232,10 +274,10 @@ div.gallery-content p {
}

div.gallery-img {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding-top: 3rem;
display: flex;
flex-wrap: wrap;
justify-content: center;
padding-top: 3rem;
}

div.img {
Expand All @@ -247,6 +289,22 @@ div.img img {
height: 180px;
}

@media screen and (max-width: 768px) {
div.gallery-section {
padding: 2rem;
}
div.img img {
width: 300px;
height: 100px;
}
div.gallery-content h4 {
font-size: 1.2rem;
}
div.gallery-content p {
font-size: 0.8rem;
}
}

div.footer {
background: #304353;
padding: 3rem;
Expand Down Expand Up @@ -344,4 +402,4 @@ div.footer h6 {
color: #88949B;
font-size: 1rem;
padding-top: 6rem;
}
}