Skip to content
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
71 changes: 68 additions & 3 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ html {
*, *:before, *:after {
box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
body, h1, h2, h3, h4, h5, h6,p, ol, ul {
margin: 0;
padding: 0;
font-weight: lighter;
}


/* DO NOT REMOVE - Styling for the label showing the viewport width */
.viewport-dimensions {
position: fixed;
Expand Down Expand Up @@ -175,5 +173,72 @@ header {
.btn-blue {
background-color: #007bff;
}


/* Write your CSS below */
@media ( max-width: 760px ) {
/*navbar css*/
.navbar {
display: flex;
flex-direction: column;
align-items: center;
padding: 0;
margin: 0;
width: 100%;
}
.navbar li {
border-right: none;
border-bottom: 1px solid white;
width: 100%;
list-style: none;
text-align: center;
font-size: 17px;

}
/*main-article*/
.main-article {
display: table-column-group;
justify-content: flex-end;
}

.main-article img
{
width: fit-content;
height: 25vh;
}
.main-article .content {
width: 100%;
padding: 10px 16px;
padding-right: 15px;
font-size: 17px;

}
.articles-container {
justify-content: space-around;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
gap: 42px;
}

.article {
width: 100%;
padding: 20px 16px;
}
}

@media (min-width: 760px) and (max-width: 1024px) {
.navbar li {
flex:1;
text-align: center;
}
.articles-container {
display: flex;
flex-wrap: wrap;
}
.article {
width: 45%;
margin-bottom: 20px;
}
}