_navbar.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Styling for the navbar
  2. #mainNav {
  3. border-bottom: 1px solid fade-out($gray-900, .9);
  4. background-color: $white;
  5. @include sans-serif-font;
  6. @include transition-all;
  7. .navbar-brand {
  8. font-weight: 700;
  9. text-transform: uppercase;
  10. color: $primary;
  11. @include sans-serif-font;
  12. &:focus,
  13. &:hover {
  14. color: darken($primary, .1);
  15. }
  16. }
  17. .navbar-nav {
  18. > li.nav-item {
  19. > a.nav-link,
  20. > a.nav-link:focus {
  21. font-size: .9rem;
  22. font-weight: 700;
  23. text-transform: uppercase;
  24. color: $gray-900;
  25. &:hover {
  26. color: $primary;
  27. }
  28. &.active {
  29. color: $primary !important;
  30. background-color: transparent;
  31. &:hover {
  32. background-color: transparent;
  33. }
  34. }
  35. }
  36. }
  37. }
  38. @media (min-width: 992px) {
  39. border-color: transparent;
  40. background-color: transparent;
  41. .navbar-brand {
  42. color: fade-out($white, .3);
  43. &:focus,
  44. &:hover {
  45. color: $white;
  46. }
  47. }
  48. .navbar-nav > li.nav-item > a.nav-link {
  49. padding: 0.5rem 1rem;
  50. }
  51. .navbar-nav > li.nav-item > a.nav-link,
  52. .navbar-nav > li.nav-item > a.nav-link:focus {
  53. color: fade-out($white, .3);
  54. &:hover {
  55. color: $white;
  56. }
  57. }
  58. &.navbar-shrink {
  59. border-bottom: 1px solid fade-out($gray-900, .9);
  60. background-color: $white;
  61. .navbar-brand {
  62. color: $primary;
  63. &:focus,
  64. &:hover {
  65. color: darken($primary, .1);
  66. }
  67. }
  68. .navbar-nav > li.nav-item > a.nav-link,
  69. .navbar-nav > li.nav-item > a.nav-link:focus {
  70. color: $gray-900;
  71. &:hover {
  72. color: $primary;
  73. }
  74. }
  75. }
  76. }
  77. }