Skip to content

Commit

Permalink
Nav Added & Styled
Browse files Browse the repository at this point in the history
  • Loading branch information
mooneyclan committed May 17, 2019
1 parent f1af258 commit e3e9a73
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 2 deletions.
15 changes: 15 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,21 @@ img {
width: 100%;
margin: 0 auto;
}
.nav-section {
border-bottom: 2px dashed #C0C0C0;
padding: 30px 0;
}
.nav-section nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-section nav div a {
padding: 20px;
color: black;
text-decoration: none;
font-size: 1.6rem;
}
.footer {
width: 100%;
border-top: 2px dashed silver;
Expand Down
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@
</head>

<body>
<section class="nav-section">
<nav class="container">
<h1>Fun Bus</h1>

<div>
<a href="index.html">Home</a>
<a href="#">About Us</a>
<a href="#">Blog</a>
<a href="#">Contact</a>
</div>
</nav>
</section>


<div class="container home">
Expand Down
7 changes: 6 additions & 1 deletion less/mixins.less
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
// Mixins in here
// Mixins in here
.flex-mixin(@jc: center, @ai: center) {
display: flex;
justify-content: @jc;
align-items: @ai;
}
20 changes: 19 additions & 1 deletion less/navigation.less
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
// Navigation Styles here
// Navigation Styles here

.nav-section {
border-bottom: 2px dashed @navigation-border;
padding: 30px 0;

nav {
.flex-mixin(space-between, center);

div {
a {
padding: 20px;
color: black;
text-decoration: none;
font-size: 1.6rem;
}
}
}
}

0 comments on commit e3e9a73

Please sign in to comment.