Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
87 changes: 80 additions & 7 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@ html {
box-sizing: border-box;
font-size: 16px;
}

*, *:before, *:after {

*,
*: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 All @@ -27,7 +37,7 @@ body, h1, h2, h3, h4, h5, h6, p, ol, ul {
padding: 5px 8px;
font-size: 14px;
}

/* STYLES */

/* Fonts */
Expand Down Expand Up @@ -175,5 +185,68 @@ header {
.btn-blue {
background-color: #007bff;
}

/* Write your CSS below */

/* ----- ITERATION 1 760px ----- */

@media screen and (max-width: 760px) {
.navbar {
flex-direction: column;
}

.navbar li {
width: auto;
border-right: 0px;
border-bottom: 1px solid #fff;
}

.main-article {
flex-direction: column;
}

.main-article img {
width: 100%;
}

.main-article .image {
width: 100%;
}

.main-article .content {
width: 100%;
}

.articles-container {
flex-direction: column;
}

.article {
width: 100%;
margin-bottom: 20px;
}
}

/* ----- ITERATION 2 760px ----- */

@media screen and (min-width: 761px), (max-width: 1024px) {
.navbar {
flex-direction: row;
justify-content: space-evenly;
}

.navbar li {
width: 25%;
height: 40px;
}

.articles-container {
flex-direction: flex-wrap;
padding: 0px;
}

.article {
width: 45%;
margin: 20px;
}
}