Skip to content

Commit 0ca2818

Browse files
author
Leo_Girbig
committed
New Navbar.scss and newnavbar. see on contactpage
1 parent f84b0df commit 0ca2818

File tree

5 files changed

+105
-6
lines changed

5 files changed

+105
-6
lines changed

_includes/navbar.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<nav class="navbar navbar-expand-lg navbar-light bg-light navbar-default">
2-
<div class="container-fluid">
3-
1+
<nav class="navbar navbar-expand-lg fixed-top border-bottom">
2+
<div class="container-fluid justify-content-center">
43
<div class="navbar-header">
54
<a href="index.html">
65
<img class="navbar-brand page-scroll navbar-logo" src="img/techAachen_Logo.svg" alt="TechAachen Logo" title="TechAachen Logo">
@@ -20,5 +19,5 @@
2019
<a class="nav-item nav-link aktive" href="contact.html">Kontakt</a>
2120
</div>
2221
</div>
23-
</div>
22+
</div>
2423
</nav>

_layouts/page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<body id="page-top" class="bg-light">
77

8-
{% include nav-page.html %}
8+
{% include navbar.html %}
99
<div class="container">
1010

1111

_sass/_navbarold.scss

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
.navbar-default {
2+
background-color: white;
3+
border-color: rgba($theme-dark, .5);
4+
@include sans-serif-font;
5+
@include transition-all;
6+
.navbar-header .navbar-brand {
7+
color: $theme-primary;
8+
@include sans-serif-font;
9+
font-weight: 700;
10+
text-transform: uppercase;
11+
&:hover,
12+
&:focus {
13+
color: darken($theme-primary, 10%);
14+
}
15+
}
16+
.nav {
17+
> li {
18+
> a,
19+
> a:focus {
20+
text-transform: uppercase;
21+
font-weight: 700;
22+
font-size: 13px;
23+
color: $theme-dark;
24+
&:hover {
25+
color: $theme-primary;
26+
}
27+
}
28+
&.active {
29+
> a,
30+
> a:focus {
31+
color: $theme-primary !important;
32+
background-color: transparent;
33+
&:hover {
34+
background-color: transparent;
35+
}
36+
}
37+
}
38+
}
39+
}
40+
@media (min-width: 768px) {
41+
background-color: transparent;
42+
border-color: rgba(white, .3);
43+
.navbar-header .navbar-brand {
44+
color: rgba($theme-lightgrey, .7);
45+
&:hover,
46+
&:focus {
47+
color: $theme-primary;
48+
}
49+
}
50+
.nav > li > a,
51+
.nav > li > a:focus {
52+
color: rgba($theme-lightgrey, .7);
53+
&:hover {
54+
color: $theme-darkgrey;
55+
}
56+
}
57+
&.affix {
58+
background-color: white;
59+
border-color: rgba($theme-dark, .5);
60+
.navbar-header .navbar-brand {
61+
color: $theme-primary;
62+
font-size: 14px;
63+
&:hover,
64+
&:focus {
65+
color: darken($theme-primary, 10%);
66+
}
67+
}
68+
.nav > li > a,
69+
.nav > li > a:focus {
70+
color: $theme-dark;
71+
&:hover {
72+
color: $theme-primary;
73+
}
74+
}
75+
}
76+
}
77+
}
78+
79+
.navbar-logo {
80+
padding-top: 5px;
81+
padding-bottom: 10px;
82+
}

_sass/navbar.scss

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.navbar {
2+
background-color: inherit;
3+
.nav-link{
4+
color: $theme-darkgrey;
5+
6+
&:hover {
7+
color: $theme-primary;
8+
}
9+
}
10+
.navbar-brand{
11+
color: $theme-darkgrey;
12+
}
13+
.navbar-logo {
14+
padding-top: 5px;
15+
padding-bottom: 10px;
16+
width: 5%;
17+
}
18+
}

css/main.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $fa-font-path: "../font-awesome/fonts";
1111
@import "mixins";
1212

1313
@import "base";
14+
@import "navbar";
1415
@import "button";
1516
@import "header";
1617
@import "section";
17-
@import "navbar-old";

0 commit comments

Comments
 (0)