_navbar.scss 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // Styling for the navbar
  2. /*====================================================
  3. NAVBAR
  4. ======================================================*/
  5. #mainNav {
  6. background-color: $gray-900;
  7. .navbar-toggler {
  8. font-size: 12px;
  9. right: 0;
  10. padding: 13px;
  11. text-transform: uppercase;
  12. color: white;
  13. border: 0;
  14. background-color: $primary-col;
  15. @include heading-font;
  16. }
  17. .navbar-brand {
  18. img {
  19. max-height: 45px;
  20. }
  21. }
  22. .navbar-nav {
  23. .nav-item {
  24. .nav-link {
  25. font-size: 90%;
  26. font-weight: 400;
  27. padding: 0.75em 0;
  28. letter-spacing: 1px;
  29. color: white;
  30. }
  31. }
  32. }
  33. }
  34. @media(min-width:992px) {
  35. #mainNav {
  36. padding-bottom: 25px;
  37. -webkit-transition: padding-top 0.3s, padding-bottom 0.3s;
  38. -moz-transition: padding-top 0.3s, padding-bottom 0.3s;
  39. transition: padding-top 0.3s, padding-bottom 0.3s;
  40. border: none;
  41. background-color: transparent;
  42. .navbar-brand {
  43. font-size: 2.15em;
  44. -webkit-transition: all 0.3s;
  45. -moz-transition: all 0.3s;
  46. transition: all 0.3s;
  47. }
  48. .navbar-nav {
  49. .nav-item {
  50. .nav-link {
  51. padding: 1.1em 1em !important;
  52. @include text-roboto-font;
  53. }
  54. }
  55. }
  56. &.navbar-shrink {
  57. padding-top: 0;
  58. padding-bottom: 0;
  59. background-color: $gray-100;
  60. box-shadow: 0px 1px 5px 1px rgba(179, 174, 174, 0.5);
  61. .navbar-brand {
  62. font-size: 1.55em;
  63. padding: 12px 0;
  64. }
  65. .navbar-nav {
  66. .nav-item {
  67. .nav-link {
  68. font-size: 80%;
  69. font-weight: 600;
  70. padding: 0.75em 0;
  71. letter-spacing: 0px;
  72. color: $gray-600 ;
  73. a { font-size:14px; }
  74. @include text-roboto-font;
  75. &.active,
  76. &:hover {
  77. color: $primary-col;
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }