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
}
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1 class="newspaper-name">Ironhack News</h1>
<li><a href="#">Tech</a></li>
<li><a href="#">Sports</a></li>
</ul>
<img src="images/menu-icon.png" alt="Menu" class="menu">
</nav>
</header>

Expand Down
136 changes: 130 additions & 6 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@ 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;
Expand All @@ -27,7 +38,7 @@ body, h1, h2, h3, h4, h5, h6, p, ol, ul {
padding: 5px 8px;
font-size: 14px;
}

/* STYLES */

/* Fonts */
Expand Down Expand Up @@ -102,6 +113,10 @@ header {
font-weight: bold;
}

.menu {
display: none;
}

/* Articles */
.main-article {
margin: 20px;
Expand Down Expand Up @@ -175,5 +190,114 @@ header {
.btn-blue {
background-color: #007bff;
}

/* Write your CSS below */

@media (max-width: 480px) {

.navbar {
display: none;
}

.menu {
display:flex;
margin: 10px auto;

}

}


@media (max-width: 760px) {
.navbar {
flex-direction: column;
align-items: center;
}

.navbar li {
width: 760px;
border-right: 0px solid #ffffff;
border-bottom: 1px solid white;
}

.main-article {
margin: 10px;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}

.main-article img {
width: 100%;
height: auto;
margin-bottom: 10px;
}

.main-article .image {
width: 100%;
padding: 0 0px;
height: auto;
}

.main-article .content {
width: 100%;
padding: 0 0px;
height: auto;
}

.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;
}

}

@media (min-width: 760px) and (max-width: 1024px) {
.navbar {
list-style-type: none;
width: 100%;
display: flex;
justify-content: space-evenly;
align-items: center;
}

.navbar li {
width: 130px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-right: 0px;
border-left: 1px solid #ffffff;
}


.articles-container {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-items:flex-start ;
flex-direction: row;
padding: 20px;
}

.article {
width: 40%;
padding: 20px;
margin: 20px;
border: 1px solid #ccc;
}


}