custom.css 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. /*This is modifying the btn-primary colors but you could create your own .btn-something class as well*/
  24. .btn-primary {
  25. color: #fff;
  26. background-color: rgba(38, 41, 50, 0.9);
  27. border-color: #9dadbb; /*set the color you want here*/
  28. }
  29. .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open>.dropdown-toggle.btn-primary {
  30. color: #8a3b3b;
  31. background-color: rgba(58, 20, 20, 0.9);
  32. border-color: rgb(142, 40, 40); /*set the color you want here*/
  33. }
  34. /* When you mouse over the navigation links, change their color */
  35. .sidenav a:hover {
  36. color: #f1f1f1;
  37. }
  38. /* Position and style the close button (top right corner) */
  39. .sidenav .closebtn {
  40. position: absolute;
  41. top: 0;
  42. right: 25px;
  43. font-size: 36px;
  44. margin-left: 50px;
  45. }
  46. /* Style page content - use this if you want to push the page content to the right when you open the side navigation */
  47. #main {
  48. transition: margin-left .5s;
  49. }
  50. /* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
  51. @media screen and (max-height: 450px) {
  52. .sidenav {padding-top: 15px;}
  53. .sidenav a {font-size: 18px;}
  54. }