navbar.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. .dropdown-item {
  71. border-top: 1px solid #35689c;
  72. color: rgba(255, 255, 255, .75);
  73. display: block;
  74. padding: 8px 15px;
  75. padding-left: 30px;
  76. }
  77. .dropdown-item:hover {
  78. color: rgba(255, 255, 255, 1);
  79. text-decoration: none;
  80. }
  81. .dropdown-divider {
  82. display: none;
  83. }
  84. @media (min-width: 768px) {
  85. .navbar-toggle {
  86. display: none;
  87. }
  88. .navbar-nav {
  89. background-color: transparent;
  90. border: none;
  91. display: block;
  92. height: 56px;
  93. position: static;
  94. }
  95. .navbar-nav.closed {
  96. display: block;
  97. }
  98. .nav-item {
  99. display: block;
  100. float: left;
  101. height: 56px;
  102. }
  103. .nav-item.right {
  104. float: right;
  105. }
  106. .nav-link {
  107. height: 56px;
  108. line-height: 20px;
  109. padding: 17px 15px;
  110. }
  111. .dropdown {
  112. position: relative;
  113. }
  114. .dropdown-menu {
  115. background-clip: padding-box;
  116. background-color: #fff;
  117. border-radius: 0.25rem;
  118. border: 1px solid rgba(0, 0, 0, .15);
  119. color: #212529;
  120. display: none;
  121. font-size: 1rem;
  122. margin-left: 15px;
  123. margin-top: -15px;
  124. min-width: 10rem;
  125. padding-left: 0px;
  126. padding: 0.5rem 0;
  127. position: absolute;
  128. text-align: left;
  129. top: 100%;
  130. z-index: 1000;
  131. }
  132. .dropdown:hover .dropdown-menu {
  133. display: block;
  134. }
  135. .dropdown-item {
  136. background-color: transparent;
  137. border: 0;
  138. clear: both;
  139. color: #1e375a;
  140. display: block;
  141. font-weight: 400;
  142. padding: 0.25rem 1.5rem;
  143. text-align: inherit;
  144. white-space: nowrap;
  145. width: 100%;
  146. }
  147. .dropdown-item:hover {
  148. background-color: #eee;
  149. color: #1e375a;
  150. text-decoration: none;
  151. }
  152. .dropdown-divider {
  153. border-top: 1px solid #e9ecef;
  154. display: block;
  155. height: 0;
  156. margin: 0.5rem 0;
  157. overflow: hidden;
  158. }
  159. .right .dropdown-menu {
  160. left: auto;
  161. margin-left: 0;
  162. margin-right: 15px;
  163. right: 0;
  164. }
  165. }