-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
127 lines (108 loc) · 2.04 KB
/
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
:root{
font-family: "Open Sans", sans-serif;
font-size: 16px;
font-weight: 400;
}
*{
margin: 0;
box-sizing: border-box;
}
.page{
min-height: 100vh;
background-color: #fff;
color: #000;
}
.navbar{
position: sticky;
top: 0;
background-color: #212529;
color: #fff;
}
.navbar-inner{
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 64px;
max-width: 1440px;
margin-inline: auto;
padding-inline: 4%;
}
.navbar-toggler,
.navbar-toggler-check{
display: none;
}
.navbar-menu{
display: flex;
flex-direction: row;
gap: 1rem;
}
.navbar-link{
display: block;
padding: .5rem 1.25rem;
text-align: center;
text-decoration: none;
color: rgba(255, 255, 255, .5);
transition: color .15s;
}
.navbar-link:hover{
color: #fff;
}
.navbar-link-active{
color: #fff;
pointer-events: none;
}
.logo{
font-family: "Montserrat", sans-serif;
font-size: 1.75rem;
font-weight: 600;
letter-spacing: 1px;
}
.logo-link{
text-decoration: none;
color: inherit;
}
.button{
display: inline-block;
padding: .5rem 1.75rem;
text-align: center;
text-decoration: none;
background-color: #0d6efd;
color: #fff;
border-radius: 9999px;
transition: filter .15s;
}
.button:hover{
filter: brightness(.9);
}
@media only screen and (max-width:1024px) {
.navbar-menu{
gap: .5rem;
}
.button{
padding-inline: 1.5rem;
}
}
@media only screen and (max-width:768px) {
:root{
font-size: 15px;
}
.navbar-menu{
position: absolute;
top: -100vh;
left: 0;
width: 100%;
flex-direction: column;
padding: .5rem 4% 1rem;
background-color: #212529;
z-index: -1;
transition: top .5s;
}
.navbar-toggler{
display: block;
font-size: 1.5rem;
}
.navbar-toggler-check:checked + .navbar-menu{
top: 64px;
}
}