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

done #367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

done #367

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
94 changes: 94 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,97 @@ header {
}

/* Write your CSS below */
@media(max-width:760px) {
.navbar {
list-style-type: none;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.navbar li {
width: 100vw;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-bottom: 1px solid #ffffff;
border-right: none;
}
.articles-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
flex-direction: column;
align-items: center;
padding: 20px;
}
.article {
width: 100%;
padding: 20px;
border: 1px solid #ccc;
margin-bottom: 30px;
}

.articles-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
flex-direction: row;
align-items: center;
padding: 20px;
}
.main-article {
margin: 20px;
padding: 20px;
border: 1px solid #ccc;
display: flex;
flex-direction: column;
align-items: center;
flex-wrap: wrap;
}
.main-article .content {
width: 100%;
padding: 0 20px;
height: auto;
}
.main-article .image {
width: 100%;
padding: 0 20px;
height: auto;
}

}

@media (min-width:760px) and (max-width:1024px){
.navbar {
list-style-type: none;
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
}
.navbar li {
width: 100vw;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-bottom: 1px solid #ffffff;
border-right: 1px solid;
}
.articles-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 50px
}

.article {
width: 100%;
padding: 20px;
border: 1px solid #ccc;

}
}