navbar.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. text-decoration: none;
  16. }
  17. .navbar-brand:hover {
  18. color: #fff;
  19. text-decoration: none;
  20. }
  21. .navbar-toggle {
  22. border-radius: 4px;
  23. border: 1px solid #fff;
  24. float: right;
  25. margin-bottom: 8px;
  26. margin-right: 15px;
  27. margin-top: 8px;
  28. padding: 4px 10px;
  29. }
  30. .navbar-nav {
  31. -ms-flex-direction: column;
  32. background-color: #205081;
  33. border-radius: 4px;
  34. border: 1px solid #fff;
  35. display: -ms-flexbox;
  36. display: flex;
  37. flex-direction: column;
  38. left: 15px;
  39. list-style: none;
  40. margin: 0;
  41. padding: 0;
  42. position: absolute;
  43. right: 15px;
  44. top: 47px;
  45. }
  46. .navbar-nav ul {
  47. list-style: none;
  48. margin: 0;
  49. padding: 0;
  50. }
  51. .navbar-nav.closed {
  52. display: none;
  53. }
  54. .nav-item {
  55. border-bottom: 1px solid #35689c;
  56. }
  57. .nav-item:last-child {
  58. border-bottom: none;
  59. }
  60. .nav-link {
  61. color: rgba(255, 255, 255, .75);
  62. display: block;
  63. padding: 8px 15px;
  64. text-decoration: none;
  65. }
  66. .nav-link:hover {
  67. color: rgba(255, 255, 255, 1);
  68. text-decoration: none;
  69. }
  70. @media (min-width: 768px) {
  71. .navbar-toggle {
  72. display: none;
  73. }
  74. .navbar-nav {
  75. background-color: transparent;
  76. border: none;
  77. display: block;
  78. height: 56px;
  79. position: static;
  80. }
  81. .navbar-nav.closed {
  82. display: block;
  83. }
  84. .nav-item {
  85. display: block;
  86. float: left;
  87. height: 56px;
  88. }
  89. .nav-item.right {
  90. float: right;
  91. }
  92. .nav-link {
  93. height: 56px;
  94. line-height: 20px;
  95. padding: 17px 15px;
  96. }
  97. }