You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/css/styles.css
+67-65Lines changed: 67 additions & 65 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
justify-content: space-between;
6
6
padding:20px;
7
7
width:100%;
8
-
height:80px;
8
+
height:var(--navbar-height);
9
9
position: fixed;
10
10
top:0;
11
11
background-color:var(--footerDarkBg);
@@ -115,7 +115,12 @@ nav ul li a:focus {
115
115
/* Media Query For Mobile View */
116
116
@media screen and (max-width:867px) and (max-width:767px) {
117
117
navulli {
118
-
padding:46px0;
118
+
/*? 100% divided by the current number of nav links which is 4 so that each nav links have the same height on whatever the height of the screen with the minimum height being 50px */
119
+
height:calc(100%/4);
120
+
min-height:50px;
121
+
display: flex;
122
+
align-items: center;
123
+
background-color: inherit;
119
124
}
120
125
121
126
navullia {
@@ -141,8 +146,9 @@ nav ul li a:focus {
141
146
.nav-list {
142
147
position: absolute;
143
148
right:0;
144
-
height:100vh;
145
-
top:8vh;
149
+
/*? the height of the nav list is 100% - the height of the nav bar, so whatever you set the navbar height variable to, it will automatically be calculated and the nav-list will not shift its position under the navbar. and the top position is also equal to the nav bar height. */
150
+
height:calc(100vh-var(--navbar-height));
151
+
top:var(--navbar-height);
146
152
background-color:var(--footerDarkBg);
147
153
display: flex;
148
154
flex-direction: column;
@@ -163,10 +169,6 @@ nav ul li a:focus {
163
169
}
164
170
165
171
@media screen and (max-width:767px) and (max-width:667px) {
0 commit comments