-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtNav.css
More file actions
131 lines (110 loc) · 2.6 KB
/
Copy pathtNav.css
File metadata and controls
131 lines (110 loc) · 2.6 KB
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
128
129
130
131
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300&display=swap');
nav {
/* font-family: 'Raleway', sans-serif; */
font-family: 'Rubik', sans-serif;
justify-content: space-around;
align-items: center;
display: flex;
/* color: #9900ff; */
margin-left: 20px;
margin-right: 20px;
min-height: 10vh;
}
.logo {
text-transform: uppercase;
letter-spacing: 1.5px;
font-size: 24px;
padding: 10px;
}
.home a {
background-color: #cbcbcb;
transition: all 0.5s ease-in;
}
/* English and Russian versions */
.topnav-links {
margin-right: 20px;
font-family: 'Rubik', sans-serif;
font-weight: bold;
/* color: #9900ff; */
display: flex;
justify-content: center;
}
.topnav-links a {
margin-left: 20px;
letter-spacing: 2px;
font-size: 16px;
}
.topnav-links a:hover {
border-bottom: 2px solid rgba(0, 0, 0, 0.8);
transition: all 0.15s linear;
}
/* Arabic version */
.topnav-links-ar {
margin-right: 20px;
font-family: 'Raleway', sans-serif;
font-weight: lighter;
display: flex;
justify-content: center;
}
.topnav-links-ar a {
margin-left: 20px;
/* letter-spacing: 2px; */
font-size: 16px;
}
.topnav-links-ar a:hover {
border-bottom: 2px solid rgba(0, 0, 0, 0.8);
transition: all 0.15s linear;
}
/* Dropdown Button */
.dropbtn {
color: black;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 60px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
margin-left: 0px;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}
/* Change the background color of the dropdown button when the dropdown content is shown */
/* .dropdown:hover .dropbtn {background-color: #3e8e41;} */
@media screen and (max-width: 768px) {
nav {
justify-content: center;
display: block;
margin: 0;
min-height: 8vh;
}
.logo {
text-align: center;
font-size: 24px;
padding: 8px;
}
.topnav-links {
justify-content: center;
width: 100%;
}
.topnav-links a {
font-size: 14px;
white-space: nowrap;
}
}