You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

140 line
2.8 KiB

  1. #nav{
  2. display: flex;
  3. align-items: center;
  4. justify-content: space-between;
  5. background-color: white;
  6. /* padding: 20px 80px; */
  7. box-shadow: 0 5px 15px rgba(0,0 0,0,0.06);
  8. position:fixed;
  9. top: 0px;
  10. width: 100%;
  11. z-index: 9999;
  12. border-bottom: 3px solid #0C489E;
  13. }
  14. #navbar div{
  15. display: flex;
  16. align-items: center;
  17. justify-content: center;
  18. }
  19. #navbar div li{
  20. list-style: none;
  21. padding: 0 20px;
  22. position: relative;
  23. }
  24. #navbar div li a{
  25. text-decoration: none;
  26. font-size: 1.2rem;
  27. font-weight: 600;
  28. font-family: 微軟正黑體;
  29. color: black;
  30. transition: 0.3s ease-in-out;
  31. }
  32. #navbar div li a:hover{
  33. color: #0C489E;
  34. }
  35. #navbar div li a:hover::after,
  36. #navbar div li a:focus::after{
  37. content: "";
  38. width: 80%;
  39. height: 2px;
  40. background:#0C489E;
  41. position: absolute;
  42. bottom: 3px;
  43. left: 20px;
  44. }
  45. #navbar div li ul {
  46. background: white;
  47. visibility: hidden;
  48. opacity: 0;
  49. min-width: 18rem;
  50. position: absolute;
  51. /* transition: all 0.5s ease; */
  52. left: 0;
  53. display: none;
  54. padding-left: 0px;
  55. /* border: 1px solid #0C489E; */
  56. background-clip: padding-box;
  57. border: 1px solid rgba(0,0,0,.15);
  58. border-radius: 0.25rem;
  59. }
  60. #navbar div li:hover > ul,
  61. #navbar div li:focus-within > ul,
  62. #navbar div li ul:hover,
  63. #navbar div li ul:focus {
  64. visibility: visible;
  65. opacity: 1;
  66. display: block
  67. }
  68. #systemTitle{
  69. text-decoration: none;
  70. font-size: 1.3rem;
  71. font-weight: 600;
  72. color: #0C489E;
  73. transition: 0.3s ease-in-out;
  74. font-family: 微軟正黑體;
  75. text-align: center;
  76. }
  77. #mobileTitle{
  78. text-decoration: none;
  79. font-size: 1.2rem;
  80. font-weight: 600;
  81. color: #0C489E;
  82. transition: 0.3s ease-in-out;
  83. font-family: 微軟正黑體;
  84. text-align: center;
  85. }
  86. #sidebar{
  87. font-size: 1.3rem;
  88. font-weight: 600;
  89. font-family: 微軟正黑體;
  90. }
  91. #sidebartop{
  92. align-items: center;
  93. justify-content: center;
  94. padding: 0;
  95. display: flex;
  96. }
  97. #sidebarbottom{
  98. align-items: center;
  99. justify-content: center;
  100. padding: 0;
  101. display: flex;
  102. }
  103. #sidebar li{
  104. list-style: none;
  105. padding: 0 20px;
  106. position: relative;
  107. text-align: left;
  108. }
  109. #sidebar li a{
  110. text-decoration: none;
  111. font-size: 1.3rem;
  112. font-weight: 600;
  113. font-family: 微軟正黑體;
  114. color: black;
  115. transition: 0.3s ease-in-out;
  116. }
  117. #sidebar li a:hover{
  118. color: #0C489E;
  119. }
  120. #sidebar div li ul {
  121. background: white;
  122. visibility: hidden;
  123. opacity: 0;
  124. min-width: 16rem;
  125. position: absolute;
  126. /* transition: all 0.5s ease; */
  127. left: 0;
  128. display: none;
  129. padding-left: 0px;
  130. /* border: 1px solid #0C489E; */
  131. }
  132. #sidebar div li:hover > ul,
  133. #sidebar div li:focus-within > ul,
  134. #sidebar div li ul:hover,
  135. #sidebar div li ul:focus {
  136. visibility: visible;
  137. opacity: 1;
  138. display: block
  139. }