Personal portfolio website created with bootstrap.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.7 KiB

  1. // Styling for the navbar
  2. #mainNav {
  3. font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  4. font-weight: 700;
  5. text-transform: uppercase;
  6. border: none;
  7. background: $theme-primary;
  8. a:focus {
  9. outline: none;
  10. }
  11. .navbar-brand {
  12. font-size: 1.1rem;
  13. color: white;
  14. &.active,
  15. &:active,
  16. &:focus,
  17. &:hover {
  18. color: white;
  19. }
  20. }
  21. .navbar-nav {
  22. letter-spacing: 1px;
  23. li.nav-item {
  24. a.nav-link {
  25. color: white;
  26. &:hover {
  27. color: $theme-success;
  28. outline: none;
  29. }
  30. &:active,
  31. &:focus {
  32. color: white;
  33. }
  34. }
  35. }
  36. }
  37. .navbar-toggler {
  38. font-size: 14px;
  39. padding: 11px;
  40. text-transform: uppercase;
  41. color: white;
  42. border-color: white;
  43. &:focus,
  44. &:hover {
  45. color: white;
  46. border-color: $theme-success;
  47. background-color: $theme-success;
  48. }
  49. }
  50. }
  51. @media(min-width:992px) {
  52. #mainNav {
  53. padding-top: 25px;
  54. padding-bottom: 25px;
  55. -webkit-transition: padding-top 0.3s, padding-bottom 0.3s;
  56. -moz-transition: padding-top 0.3s, padding-bottom 0.3s;
  57. transition: padding-top 0.3s, padding-bottom 0.3s;
  58. .navbar-brand {
  59. font-size: 2em;
  60. -webkit-transition: all 0.3s;
  61. -moz-transition: all 0.3s;
  62. transition: all 0.3s;
  63. }
  64. .navbar-nav > li.nav-item > a.nav-link.active {
  65. color: white;
  66. border-radius: 3px;
  67. background: $theme-success;
  68. &:active,
  69. &:focus,
  70. &:hover {
  71. color: white;
  72. background: $theme-success;
  73. }
  74. }
  75. }
  76. #mainNav.navbar-shrink {
  77. padding-top: 10px;
  78. padding-bottom: 10px;
  79. .navbar-brand {
  80. font-size: 1.5em;
  81. }
  82. }
  83. }