-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathuser_navbar_style.css
94 lines (83 loc) · 1.96 KB
/
user_navbar_style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
@import url("fonts.css");
.nav-wrapper {
height: 53px;
background: #333;
}
/* Add a black background color to the top navigation */
.nav-wrapper .topnav {
background-color: #263238;
overflow: hidden;
height: 53px;
}
.topnav a[id="hamburger"] {
display: none;
}
/* Style the Welcome User */
.topnav a[id="user"] {
float: left;
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 27px;
font-family: Roboto-Light;
}
/* Style the links inside the navigation bar */
.topnav a[id="profile"] {
float: right;
display: block;
color: white;
text-align: center;
padding: 17px 17px;
text-decoration: none;
font-size: 17px;
font-family: OpenSans-Bold;
background-color: #0D47A1;
border-top-left-radius: 3px;
}
.topnav a[id="logout"] {
float: right;
display: block;
color: white;
text-align: center;
padding: 17px 17px;
text-decoration: none;
font-size: 17px;
font-family: OpenSans-Bold;
background-color: #b71c1c;
border-top-right-radius: 3px;
}
/* Change the color of links on hover */
.topnav a[id="profile"]:hover {
color: white;
background-color: #2196F3;
}
.topnav a[id="logout"]:hover {
color: white;
background-color: #f44336;
}
/* When the screen is less than 855 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 855px) {
.topnav a[id="user"] {
display: none;
}
.topnav a[id="hamburger"] {
float: left;
display: block;
color: white;
text-align: center;
padding: 0px 16px;
text-decoration: none;
font-size: 45px;
font-family: Roboto-Light;
}
}
/* Used to make the navbar sticky */
.nav-wrapper .navbar-fixed {
top: 0;
left: 0;
right: 0;
z-index: 10;
position: fixed;
}