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
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<header>
<h1 class="newspaper-name">Ironhack News</h1>
<img id="burger-menu" src="./images/menu-icon.png" />
<nav>
<ul class="navbar">
<li><a href="#">Home</a></li>
Expand Down Expand Up @@ -71,7 +72,6 @@ <h2>Article 3</h2>
</section>
</main>


<!-- DO NOT REMOVE - viewport width label -->
<span class="viewport-dimensions"></span>
<!-- DO NOT REMOVE - A simple JS script used to display the viewport width label -->
Expand Down
114 changes: 107 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 @@ -76,6 +86,10 @@ header {
border-bottom: 1px solid white;
}

#burger-menu {
display: none;
}

.navbar {
list-style-type: none;
width: 100%;
Expand Down Expand Up @@ -175,5 +189,91 @@ header {
.btn-blue {
background-color: #007bff;
}

/* Write your CSS below */
@media screen and (max-width: 760px) {
.navbar {
flex-direction: column;
}

.navbar li {
width: 100%;
border-right: none;
border-bottom: 1px solid #ffffff;
}

.navbar li:last-child {
border-bottom: none;
}

.articles-container {
padding: 0px;
}

main {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}

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

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

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

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

.main-article h2 {
margin-top: 10px;
}
}

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

.navbar li {
border-right: 1px solid #ffffff;
border-bottom: none;
width: 100%;
}

.navbar li:last-child {
border-right: none;
}

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

@media screen and (max-width: 480px) {
.newspaper-name {
border: none;
}

nav {
display: none;
}

#burger-menu {
display: block;
margin-left: 45%;
padding-bottom: 10px;
}
}