-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
96 lines (80 loc) · 1.66 KB
/
styles.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
95
96
@import url('https://fonts.googleapis.com/css?family=Raleway');
* {
box-sizing: border-box;
font-family: Raleway;
}
body {
margin: 0;
padding: 0;
background-color: rgb(219, 215, 215);
}
.navbar {
background-color:rgb(110, 107, 107);
color: white;
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar-links > ul {
display: flex;
justify-content: flex-start;
padding: 0;
}
.navbar-links ul li {
text-align: center;
list-style: none;
padding: 0.6rem;
width: 100%;
}
.navbar-links ul li a {
text-decoration: none;
color: white;
}
.navbar-links ul li:hover {
background-color:rgb(161, 156, 156);
}
.toggle-button {
position: absolute;
top: 0.85rem; /* top and right for the toggle-button will override the flex of its container. */
right: 0.5rem;
display: none;;
flex-direction: column;
justify-content: space-between;
height: 1rem;
width: 1.6rem;
}
.toggle-button .bar {
background-color: white;
height: 2px;
width: 100%; /* 100% width of the container, which is toggle-button */
padding: 0.1rem;
border-radius: 0.1rem;
}
.brand-title {
font-size: 1.5rem;
margin: 0.5rem;
}
@media(max-width: 300px){
.toggle-button{
display: flex;
}
.navbar-links {
width: 100%;
display: none;
}
.navbar-links.active {
display: flex;
}
.navbar {
flex-direction: column;
align-items: flex-start;
}
.navbar-links ul {
flex-direction: column;
margin: 0;
width: 100%;
}
.navbar-links ul li {
padding: 0.2rem;
}
}