menu.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. #hmenu #menuicon {
  2. display: none;
  3. }
  4. #hmenu #menutit {
  5. display: none;
  6. }
  7. #hmenu {
  8. font-size: 14pt;
  9. background-color: rgba(0,0,0,0.89);
  10. color: white;
  11. position: fixed;
  12. top: 0;
  13. left: 0;
  14. width: 100%;
  15. height: 40px;
  16. margin: 0;
  17. padding: 0;
  18. /*box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);*/
  19. /*padding-left: 40px;*/
  20. z-index: 3;
  21. /*display: none;*/
  22. }
  23. @media (hover: hover) {
  24. #hmenu ul {
  25. margin: 0;
  26. padding: 0;
  27. overflow: visible;
  28. }
  29. #hmenu ul li {
  30. min-width: 95pt;
  31. height: 40px;
  32. text-align: center;
  33. display: table-cell;
  34. vertical-align: middle;
  35. color: #539CDD;
  36. }
  37. #hmenu ul li:hover {
  38. background-color: rgba(255,255,255,0.10);
  39. cursor: default;
  40. }
  41. #hmenu ul li a {
  42. /*width: 95pt;*/
  43. line-height: 40px;
  44. display: block;
  45. color: #539CDD;
  46. }
  47. #hmenu .ula {
  48. position: absolute;
  49. top: 40px;
  50. background-color: rgba(0,0,0,0.89);
  51. border-radius: 0 0 5px 5px;
  52. display: none;
  53. }
  54. #hmenu .ulb {
  55. background-color: rgba(0,0,0,0.89);
  56. left: 95pt;
  57. position: relative;
  58. top: -40px;
  59. border-radius: 5px;
  60. display: none;
  61. }
  62. #hmenu .ula li, #hmenu .ulb li {
  63. display: block;
  64. line-height: 40px;
  65. vertical-align: middle;
  66. white-space: nowrap;
  67. }
  68. #hmenu .ula li:hover, #hmenu .ulb li:hover {
  69. text-decoration: underline;
  70. text-underline-offset: 3px;
  71. text-decoration-thickness: 1px;
  72. }
  73. #hmenu .hil {
  74. line-height: 40px;
  75. vertical-align: middle;
  76. background-color: rgba(255,255,255,0.10);
  77. color: #C0D9F2;
  78. }
  79. #hmenu .hil:hover {
  80. cursor: default;
  81. text-decoration: none;
  82. }
  83. #hmenu .ula li.hil:hover, #hmenu .ulb li.hil:hover {
  84. text-decoration: none;
  85. }
  86. #hmenu .lipd {
  87. background-image: url('../imgs/menudownarr.svg');
  88. background-repeat: no-repeat;
  89. background-position: bottom center;
  90. }
  91. #hmenu .lipr {
  92. background-image: url('../imgs/menurightarr.svg');
  93. background-repeat: no-repeat;
  94. background-position: top right;
  95. }
  96. }
  97. /*@media only screen and (max-width:400pt) {
  98. #hmenu {
  99. font-size: 12pt;
  100. }
  101. #hmenu ul li,
  102. #hmenu ul li a,
  103. #hmenu .ula li,
  104. #hmenu .ulb li {
  105. width: 60pt;
  106. }
  107. #hmenu .ulb {
  108. left: 60pt;
  109. }
  110. }*/
  111. @media (hover: none) {
  112. #hmenu #menuicon {
  113. display: block;
  114. cursor: pointer;
  115. }
  116. #hmenu #menutit {
  117. display: block;
  118. position: absolute;
  119. top: 0;
  120. right: 0;
  121. line-height: 40px;
  122. margin-right: 10px;
  123. color: #539CDD;
  124. }
  125. #hmenu #menu {
  126. position: fixed;
  127. background-color: rgba(0,0,0,0.89);
  128. padding-left: 5px;
  129. padding-right: 10px;
  130. padding-bottom: 5px;
  131. left: 0;
  132. top: 40px;
  133. color: #539CDD;
  134. line-height: 30px;
  135. display: none;
  136. height: calc(100% - 40px);
  137. overflow: auto;
  138. }
  139. #hmenu #menu a {
  140. color: #539CDD;
  141. text-decoration: underline;
  142. }
  143. #hmenu ul {
  144. margin-left: 0;
  145. padding-left: 0;
  146. margin-top: 0;
  147. margin-bottom: 0;
  148. list-style-type: none;
  149. }
  150. #hmenu .ula, #hmenu .ulb {
  151. padding-left: 15px;
  152. }
  153. #hmenu .hil {
  154. color: #C0D9F2;
  155. }
  156. }