navbar.css 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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.closed {
  47. display: none;
  48. }
  49. .nav-item {
  50. border-bottom: 1px solid #35689c;
  51. }
  52. .nav-item:last-child {
  53. border-bottom: none;
  54. }
  55. .nav-link {
  56. color: rgba(255, 255, 255, .5);
  57. display: block;
  58. padding: 8px 15px;
  59. text-decoration: none;
  60. }
  61. .nav-link:hover {
  62. color: rgba(255, 255, 255, .75);
  63. text-decoration: none;
  64. }
  65. @media (min-width: 768px) {
  66. .navbar-toggle {
  67. display: none;
  68. }
  69. .navbar-nav {
  70. background-color: transparent;
  71. border: none;
  72. display: block;
  73. height: 56px;
  74. position: static;
  75. }
  76. .navbar-nav.closed {
  77. display: block;
  78. }
  79. .nav-item {
  80. display: block;
  81. float: left;
  82. height: 56px;
  83. }
  84. .nav-link {
  85. height: 56px;
  86. line-height: 20px;
  87. padding: 17px 15px;
  88. }
  89. }