_nav.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Main navigation
  2. //
  3. // Styles for the top `.navbar` and its dropdowns.
  4. .s2-docs-nav {
  5. margin-bottom: 0;
  6. border-color: #eee;
  7. background-color: #f6f6f6;
  8. .navbar-brand {
  9. font-weight: 500;
  10. > img {
  11. display: inline;
  12. margin-right: 4px;
  13. }
  14. }
  15. .navbar-nav > .active > a,
  16. .navbar-nav > .active > a:hover,
  17. .navbar-nav > .active > a:focus {
  18. background-color: #f0f0f0;
  19. color: #000;
  20. }
  21. @media (min-width: 768px) {
  22. .navbar-nav > li > .dropdown-menu:before {
  23. position: absolute;
  24. top: -21px;
  25. left: 24px;
  26. display: block;
  27. width: 0;
  28. height: 0;
  29. border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0.1);
  30. border-style: solid;
  31. border-width: 10px;
  32. content: "";
  33. }
  34. .navbar-nav > li > .dropdown-menu:after {
  35. position: absolute;
  36. top: -20px;
  37. left: 24px;
  38. display: block;
  39. width: 0;
  40. height: 0;
  41. border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #FFF;
  42. border-style: solid;
  43. border-width: 10px;
  44. content: '';
  45. }
  46. .navbar-nav .dropdown-menu {
  47. border-radius: 4px;
  48. border-color: #ddd;
  49. margin-top: -1px;
  50. }
  51. }
  52. }