_subnav.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .bd-subnavbar {
  2. // The position and z-index are needed for the dropdown to stay on top of the content
  3. position: relative;
  4. z-index: $zindex-sticky;
  5. background-color: rgba($white, .95);
  6. box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .15);
  7. .dropdown-menu {
  8. @include font-size(.875rem);
  9. box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05);
  10. }
  11. .dropdown-item.current {
  12. font-weight: 600;
  13. background-image: escape-svg($dropdown-active-icon);
  14. background-repeat: no-repeat;
  15. background-position: right $dropdown-item-padding-x top .6rem;
  16. background-size: .75rem .75rem;
  17. }
  18. @include media-breakpoint-up(md) {
  19. position: sticky;
  20. top: 0;
  21. }
  22. }
  23. .bd-search {
  24. position: relative;
  25. &::after {
  26. position: absolute;
  27. top: .4rem;
  28. right: .4rem;
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. height: 1.5rem;
  33. padding-right: .25rem;
  34. padding-left: .25rem;
  35. @include font-size(.75rem);
  36. color: $gray-600;
  37. content: "Ctrl + /";
  38. border: $border-width solid $border-color;
  39. @include border-radius(.125rem);
  40. }
  41. @include media-breakpoint-down(md) {
  42. width: 100%;
  43. }
  44. .form-control {
  45. padding-right: 3.75rem;
  46. &:focus {
  47. border-color: $bd-purple-bright;
  48. box-shadow: 0 0 0 3px rgba($bd-purple-bright, .25);
  49. }
  50. }
  51. }
  52. .bd-sidebar-toggle {
  53. color: $text-muted;
  54. &:hover,
  55. &:focus {
  56. color: $bd-purple-bright;
  57. }
  58. &:focus {
  59. box-shadow: 0 0 0 3px rgba($bd-purple-bright, .25);
  60. }
  61. .bi-collapse { display: none; }
  62. &:not(.collapsed) {
  63. .bi-expand { display: none; }
  64. .bi-collapse { display: inline-block; }
  65. }
  66. }