88
88
/* Create & style a 3x3 grid wrapper */
89
89
.grid {
90
90
display : grid ;
91
- gap : 1 px ;
92
- grid-template-columns : repeat ( 3 , 1 fr ) ;
91
+ grid-template-columns : repeat ( auto-fit , minmax ( 300 px , 1 fr )) ;
92
+ grid-gap : .3 rem ;
93
93
94
94
h4 .grid_title {
95
95
font-size : 1.4em ;
@@ -199,23 +199,12 @@ nav bar: POSITION:relative to ensure it stays at the top */
199
199
max-width : 25% ;
200
200
}
201
201
202
- .nav__links.vertical .dropdown .dropdown-content {
203
- position : relative !important ;
204
- width : 100% ;
205
- }
206
- /* button also needs to be 100% */
207
- .nav__links.vertical .dropbtn {
208
- width : 100% ;
209
- text-align : left ;
210
- }
211
202
212
- /* drop down should be the entire width of the ul block not just the
213
- parent text width */
214
- .nav__links.vertical .dropdown-content {
215
- min-width : 100% ;
216
- }
203
+ /* Upon click the menu should turn into a vertical stacked menu with a soft
204
+ drop shadow
217
205
218
- // Upon click the menu should turn into a vertical stacked menu with a soft drop shadow
206
+ TODO check for redundant styles
207
+ */
219
208
.nav__links.vertical {
220
209
position : absolute ;
221
210
display : flex ;
@@ -230,13 +219,42 @@ parent text width */
230
219
z-index : 1 ;
231
220
border : 1px solid #f2f3f3 ;
232
221
border-radius : 4px ;
233
- background : #fff ;
234
222
-webkit-box-shadow : 0 2px 4px 0 rgba (0 ,0 ,0 ,0.16 ),0 2px 10px 0 rgba (0 ,0 ,0 ,0.12 );
235
223
box-shadow : 0 2px 4px 0 rgba (0 ,0 ,0 ,0.16 ),0 2px 10px 0 rgba (0 ,0 ,0 ,0.12 );
236
- }
237
224
238
- .nav__links.vertical li {
239
- width : 100% ;
225
+ li {
226
+ width : 100% ;
227
+ }
228
+
229
+ .dropdown-content {
230
+ min-width : 100% ;
231
+ }
232
+ .dropbtn {
233
+ width : 100% ;
234
+ text-align : left ;
235
+ }
236
+
237
+ a {
238
+ float : none ;
239
+ display : block ;
240
+ text-align : left ;
241
+ }
242
+ .dropdown {
243
+ float : none ;
244
+ }
245
+
246
+ .dropdown-content {position : relative ;}
247
+
248
+ .dropdown .dropbtn {
249
+ display : block ;
250
+ width : 100% ;
251
+ text-align : left ;
252
+ }
253
+
254
+ .dropdown .dropdown-content {
255
+ position : relative !important ;
256
+ width : 100% ;
257
+ }
240
258
}
241
259
/* End nav links bar styles */
242
260
@@ -279,7 +297,6 @@ parent text width */
279
297
280
298
/* Begin burger styling: actual hamburger element (the horiz lines)*/
281
299
.burger__icon {
282
- /* //opacity: 0; */
283
300
position : relative ;
284
301
width : 1.5rem ;
285
302
height : .25rem ;
@@ -337,8 +354,6 @@ parent text width */
337
354
width : 1.5rem ;
338
355
}
339
356
340
- /* End burger styling */
341
-
342
357
.visually-hidden {
343
358
position : absolute !important ;
344
359
clip : rect (1px , 1px , 1px , 1px );
@@ -347,9 +362,7 @@ parent text width */
347
362
border : 0 !important ;
348
363
overflow : hidden ;
349
364
}
350
-
351
- /* end ham */
352
-
365
+ /* end burger */
353
366
354
367
/* Dropdown container for nav links */
355
368
.dropdown {
@@ -367,12 +380,9 @@ parent text width */
367
380
}
368
381
}
369
382
370
-
371
383
/* Style the dropdown content (hidden by default) */
372
384
.dropdown-content {
373
385
display : none ;
374
- // opacity: 0; /* here */
375
- // position: absolute;
376
386
background-color : #fff ;
377
387
min-width : 160px ;
378
388
box-shadow : 0px 8px 16px 0px rgba (0 ,0 ,0 ,0.2 );
@@ -397,15 +407,8 @@ parent text width */
397
407
color : $nav-hover-color ;
398
408
}
399
409
400
- /* Show the dropdown menu when the user hovers over the dropdown
401
- button. What's most accessible, click only or click and hover both?
402
- Right now hover is removed
403
- */
404
- /* .dropdown:hover .dropdown-content, */
405
410
.dropdown .dropdown-content.open {
406
411
display : block ;
407
- /* transform: translateY(0);
408
- opacity: 1; */
409
412
}
410
413
/* This style may be removed ultimately - it is the fancy underline */
411
414
@@ -414,7 +417,7 @@ Right now hover is removed
414
417
position : relative ;
415
418
color : #0087ca ;
416
419
}
417
- /* Make sure the line is 100% of text */
420
+
418
421
.hover-underline {
419
422
width : 100% ;
420
423
text-align : left !important ;
@@ -441,38 +444,15 @@ Right now hover is removed
441
444
transform : scaleX (1 ); // reveal
442
445
}
443
446
444
-
445
447
/* Add an active class to highlight the current page - might want to reinstate this */
446
448
.active {
447
449
background-color : #04AA6D ;
448
450
color : white ;
449
451
}
450
452
451
-
452
-
453
- /* When the screen is less than 600 pixels wide, hide all links, except for the
454
- first one ("Home"). Show the link that contains should open and close the nav__links (.icon) */
455
-
456
-
457
- @media screen and (max-width : 600px ) {
458
-
459
- .grid {
460
- display : grid ;
461
- gap : 1px ;
462
- grid-template-columns : repeat (1 , 1fr );
463
- }
464
- }
465
-
466
-
467
453
/* 768 px */
468
454
@media screen and (max-width : 768px ) {
469
455
470
- .grid {
471
- display : grid ;
472
- gap : 1px ;
473
- grid-template-columns : repeat (2 , 1fr );
474
- }
475
-
476
456
.hamburger__btn-toggle {
477
457
// position: fixed; // not sure if this will help?
478
458
display : block ;
@@ -481,62 +461,21 @@ first one ("Home"). Show the link that contains should open and close the nav__l
481
461
right : 5% ;}
482
462
483
463
burger __icon , burger __icon ::before , burger __icon ::after {
484
- display : block ;
485
-
486
- }
464
+ display : block ; }
487
465
488
466
/* Hide horizontal drop down links at 48em / 768px */
489
- .nav__links {
490
- display : none ;
491
- }
492
- .nav__links {
493
- a :not (:first-child ), li , .dropdown .dropbtn {
494
-
495
- }
496
-
497
- a .icon {
498
- float : right ;
499
- display : block ;
500
- font-size : 2em ;
501
- padding-right : 1em ;
502
- padding-top : 0 ;
503
- }
504
- }
467
+ .nav__links { display : none ;}
505
468
506
469
/* Nav links goes vertical in responsive mode */
507
470
.nav__links .vertical {
508
471
position : absolute ;
509
472
display : flex ;
510
473
flex-direction : column ;
511
474
align-items : flex-start ;
512
- padding-top : 2em ;
475
+ /* padding-top: 2em;
513
476
top: 50%;
514
477
left: 70%;
515
- background-color : #fff ;
516
-
517
- a .icon {
518
- font-size : 2em ;
519
- position : absolute ;
520
- right : 0 ;
521
- top : 0 ;
522
- padding-right : 1em ;
523
- }
524
- a {
525
- float : none ;
526
- display : block ;
527
- text-align : left ;
528
- }
529
- .dropdown {
530
- float : none ;
531
- }
532
-
533
- .dropdown-content {position : relative ;}
534
-
535
- .dropdown .dropbtn {
536
- display : block ;
537
- width : 100% ;
538
- text-align : left ;
539
- }
478
+ background-color: #fff; */
540
479
}
541
480
/* position search toggle by burger */
542
481
.search__toggle {
@@ -547,7 +486,6 @@ first one ("Home"). Show the link that contains should open and close the nav__l
547
486
}
548
487
}
549
488
550
-
551
489
/* End media query 48em / 768 px */
552
490
553
491
/* package cards splash */
@@ -563,10 +501,6 @@ first one ("Home"). Show the link that contains should open and close the nav__l
563
501
font-size : 1.2em ;
564
502
}
565
503
566
- // h3 {
567
- // font-size: 1.3em;
568
- // }
569
-
570
504
h3 .card__title.no_toc {
571
505
margin-top : .3em ;
572
506
font-size : 1.5em ;
0 commit comments