Skip to content

Commit 04d0369

Browse files
author
Joe Alves
committed
Making the navbar styling a bit nicer
1 parent 411f161 commit 04d0369

File tree

4 files changed

+35
-17
lines changed

4 files changed

+35
-17
lines changed

generated/browser/scss/about/main.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
width: 1340px;
44
margin: 0 auto;
55
padding: 50px 100px;
6+
@include clearfix;
67

78
p {
89
width: 400px;
@@ -32,4 +33,4 @@
3233
}
3334
}
3435

35-
}
36+
}
Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,47 @@
11
navbar {
22

33
display: block;
4-
background: #a1a1a1;
4+
background: white;
5+
border-bottom: 1px solid black;
6+
box-shadow: 1px 1px 14px -3px black;
7+
8+
.container {
9+
width: 1340px;
10+
padding-top: 20px;
11+
}
512

613
fullstack-logo {
7-
padding-top: 10px;
14+
margin-top: 5px;
815
margin-right: 20px;
9-
width: 30px;
16+
width: 40px;
1017
}
1118

1219
a {
13-
color: white;
14-
&:hover {
15-
color: white;
16-
}
20+
color: black;
21+
font-size: 16px;
1722
}
1823

1924
.nav > li > a {
2025
cursor: pointer;
26+
transition: color 0.2s;
2127
&.active {
22-
color: #f30046;
28+
color: darken(#f31214, 10%);
2329
}
2430
&:hover {
25-
transition: color 0.2s;
31+
background: none;
32+
color: #f31214;
2633
}
2734
&:focus {
28-
color: #f30046;
29-
background: transparent;
35+
background: none;
3036
}
3137
}
3238

3339
.login-button {
3440
float: right;
35-
margin-top: 8px;
41+
border: 1px solid black;
42+
margin-top: 10px;
43+
background: none;
44+
outline: none !important;
3645
}
3746

3847
.welcome {
@@ -47,4 +56,4 @@ navbar {
4756
}
4857
}
4958

50-
}
59+
}

generated/browser/scss/main.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
box-sizing: border-box;
33
}
44

5+
body {
6+
background: #fdfdfd;
7+
}
8+
59
@mixin clearfix {
610
&:after {
711
content: "";
@@ -10,8 +14,12 @@
1014
}
1115
}
1216

17+
#main {
18+
padding-top: 60px;
19+
}
20+
1321
@import 'directives/main';
1422
@import 'home/main';
1523
@import 'about/main';
1624
@import 'tutorial/main';
17-
@import 'login/main';
25+
@import 'login/main';

generated/server/app/views/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
</head>
1515
<body ng-app="FullstackGeneratedApp">
1616
<navbar></navbar>
17-
<div ui-view></div>
17+
<div id="main" ui-view></div>
1818
</body>
19-
</html>
19+
</html>

0 commit comments

Comments
 (0)