navbar.css 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. header nav {
  2. margin: -8px -15px;
  3. }
  4. .navbar-header {
  5. position: relative;
  6. }
  7. .navbar-brand {
  8. color: #fff;
  9. float: left;
  10. font-size: 18px;
  11. font-weight: bold;
  12. height: 56px;
  13. line-height: 20px;
  14. padding: 17px 15px;
  15. }
  16. .navbar-brand:hover {
  17. color: #fff;
  18. }
  19. .navbar-toggle {
  20. border-radius: 4px;
  21. border: 1px solid #fff;
  22. float: right;
  23. margin-bottom: 8px;
  24. margin-right: 15px;
  25. margin-top: 8px;
  26. padding: 4px 10px;
  27. }
  28. .navbar-nav {
  29. -ms-flex-direction: column;
  30. background-color: #205081;
  31. border-radius: 4px;
  32. border: 1px solid #fff;
  33. display: -ms-flexbox;
  34. display: flex;
  35. flex-direction: column;
  36. left: 15px;
  37. list-style: none;
  38. margin: 0;
  39. padding: 0;
  40. position: absolute;
  41. right: 15px;
  42. top: 47px;
  43. }
  44. .navbar-nav.closed {
  45. display: none;
  46. }
  47. .nav-item {
  48. border-bottom: 1px solid #35689c;
  49. }
  50. .nav-link {
  51. color: #fff;
  52. display: block;
  53. padding: 8px 15px;
  54. }
  55. .nav-link:hover {
  56. color: #fff;
  57. }
  58. @media (min-width: 768px) {
  59. .navbar-toggle {
  60. display: none;
  61. }
  62. .navbar-nav {
  63. background-color: transparent;
  64. border: none;
  65. display: block;
  66. height: 56px;
  67. position: static;
  68. }
  69. .navbar-nav.closed {
  70. display: block;
  71. }
  72. .nav-item {
  73. display: block;
  74. float: left;
  75. height: 56px;
  76. }
  77. .nav-link {
  78. height: 56px;
  79. line-height: 20px;
  80. padding: 17px 15px;
  81. }
  82. }