custom.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* The side navigation menu */
  2. .sidenav {
  3. height: 100%; /* 100% Full-height */
  4. width: 0; /* 0 width - change this with JavaScript */
  5. position: fixed; /* Stay in place */
  6. z-index: 1; /* Stay on top */
  7. top: 0; /* Stay at the top */
  8. left: 0;
  9. background-color: #111; /* Black*/
  10. overflow-x: hidden; /* Disable horizontal scroll */
  11. padding-top: 60px; /* Place content 60px from the top */
  12. transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
  13. }
  14. /* The navigation menu links */
  15. .sidenav a {
  16. padding: 8px 8px 8px 32px;
  17. text-decoration: none;
  18. font-size: 25px;
  19. color: #818181;
  20. display: block;
  21. transition: 0.3s;
  22. }
  23. /* When you mouse over the navigation links, change their color */
  24. .sidenav a:hover {
  25. color: #f1f1f1;
  26. }
  27. /* Position and style the close button (top right corner) */
  28. .sidenav .closebtn {
  29. position: absolute;
  30. top: 0;
  31. right: 25px;
  32. font-size: 36px;
  33. margin-left: 50px;
  34. }
  35. /* Style page content - use this if you want to push the page content to the right when you open the side navigation */
  36. #main {
  37. transition: margin-left .5s;
  38. }
  39. /* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
  40. @media screen and (max-height: 450px) {
  41. .sidenav {padding-top: 15px;}
  42. .sidenav a {font-size: 18px;}
  43. }