No Description
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.

_nav.scss 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. //
  2. // Main navbar
  3. //
  4. .ct-navbar {
  5. background-color: $ct-primary;
  6. box-shadow: rgba(116, 129, 141, 0.1) 0px 1px 1px 0px;
  7. padding-top: .5rem;
  8. padding-bottom: .5rem;
  9. @include media-breakpoint-down(md) {
  10. padding-right: .5rem;
  11. padding-left: .5rem;
  12. .navbar-nav-scroll {
  13. max-width: 100%;
  14. height: 2.5rem;
  15. margin-top: .25rem;
  16. overflow: hidden;
  17. font-size: .875rem;
  18. .navbar-nav {
  19. padding-bottom: 2rem;
  20. overflow-x: auto;
  21. white-space: nowrap;
  22. -webkit-overflow-scrolling: touch;
  23. }
  24. }
  25. }
  26. @include media-breakpoint-up(md) {
  27. @supports (position: sticky) {
  28. position: sticky;
  29. top: 0;
  30. z-index: 1071; // over everything in bootstrap
  31. }
  32. }
  33. .navbar-nav {
  34. .nav-link {
  35. padding-right: .5rem;
  36. padding-left: .5rem;
  37. color: $ct-primary-light !important;
  38. &.active,
  39. &:hover {
  40. color: #fff !important;
  41. background-color: transparent !important;
  42. }
  43. &.active {
  44. font-weight: 500;
  45. }
  46. }
  47. }
  48. .navbar-nav-svg {
  49. display: inline-block;
  50. width: 1rem;
  51. height: 1rem;
  52. vertical-align: text-top;
  53. }
  54. .dropdown-menu {
  55. font-size: .875rem;
  56. }
  57. .dropdown-item.active {
  58. font-weight: 500;
  59. color: $gray-900;
  60. background-color: transparent;
  61. background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23292b2c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
  62. background-repeat: no-repeat;
  63. background-position: .4rem .87rem;
  64. background-size: .75rem .75rem;
  65. padding-left: 25px;
  66. }
  67. }
  68. // Github corner
  69. .github-corner {
  70. position: fixed;
  71. right: 0;
  72. z-index: 1080;
  73. &:hover {
  74. .octo-arm {
  75. animation: octocat-wave 560ms ease-in-out
  76. }
  77. }
  78. svg {
  79. fill: $white;
  80. color: $ct-primary;
  81. }
  82. }
  83. @keyframes octocat-wave {
  84. 0%,
  85. 100% {
  86. transform: rotate(0)
  87. }
  88. 20%,
  89. 60% {
  90. transform: rotate(-25deg)
  91. }
  92. 40%,
  93. 80% {
  94. transform: rotate(10deg)
  95. }
  96. }