Skip to content

Commit

Permalink
base styling
Browse files Browse the repository at this point in the history
  • Loading branch information
trodrigues committed Apr 11, 2016
1 parent b6d2f83 commit 133910f
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 9 deletions.
1 change: 1 addition & 0 deletions contentful.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 15 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@
<base href='' />
<head>
<meta charset="utf-8">
<title></title>
<title>Product Catalogue</title>
<link href="./styles.css" rel="stylesheet" />
</head>
<body>
<main>
<nav>
<ul>
<li><a href="/" data-nav>Products</a></li>
<li><a href="/categories" data-nav>Categories</a></li>
<li><a href="/about" data-nav>About</a></li>
</ul>
</nav>
<div id="content">
<div class="app-container">
<nav>
<div class="nav-container">
<img src="./contentful.svg" width="157" height="32"/>
<ul>
<li><a href="/" data-nav>Products</a></li>
<li><a href="/categories" data-nav>Categories</a></li>
<li><a href="/about" data-nav>About</a></li>
</ul>
</div>
</nav>
<div id="content" class="content-container">
</div>
</div>
</main>
<script>
Expand Down
78 changes: 78 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
* {
box-sizing: border-box;
padding: 0;
margin: 0;
border: 0;
}

body {
padding: 0;
margin: 0;
border: none;
font-family: 'Avenir', sans-serif;
}

main {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}

a {
border-bottom: 1px dotted #5B9FEF;
color: #4A90E2;
text-decoration: none;
}

.app-container {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
flex-direction: column;
justify-content: flex-start;
}

.app-container nav {
background: #192532;
}

.content-container {
padding-top: 40px;
width: 1000px;
margin: 0 auto;
}

.nav-container {
width: 1000px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}

.app-container nav ul {
display: flex;
justify-content: center;
padding-top: 2px;
padding: 20px 0px;
}

.app-container nav li {
list-style: none;
margin-left: 20px;
}

.app-container nav a {
display: inline-block;
color: rgba(255,255,255,0.75);
border-bottom: none;
}

.app-container nav a:hover {
color: white;
}

0 comments on commit 133910f

Please sign in to comment.