main.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. html {
  2. height: 100%;
  3. }
  4. body {
  5. font-size: 14px;
  6. margin: 0;
  7. padding: 0;
  8. width: 100%;
  9. height: 100%;
  10. min-width: 1080px;
  11. min-height: 100%;
  12. }
  13. .page-container {
  14. width: 100%;
  15. min-height: 100vh;
  16. }
  17. .clear {
  18. clear: both;
  19. height: 100px;
  20. }
  21. .nav {
  22. width: 100%;
  23. position: sticky;
  24. height: 60px;
  25. background-color: white;
  26. border: 1px solid #ebeef5;
  27. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  28. top: 0;
  29. z-index: 100;
  30. }
  31. .nav__body {
  32. display: flex;
  33. margin: 0 auto;
  34. width: 1200px;
  35. height: 60px;
  36. align-items: center;
  37. flex-wrap: wrap;
  38. justify-content: space-between;
  39. }
  40. .nav__logo {
  41. height: 36px;
  42. margin-right: 20px;
  43. }
  44. .nav__list {
  45. height: 100%;
  46. display: flex;
  47. align-items: center;
  48. flex-wrap: wrap;
  49. list-style: none;
  50. padding: 0;
  51. }
  52. .nav__list-left {
  53. width: 360px;
  54. justify-content: space-around;
  55. }
  56. .nav__list-right {
  57. width: 300px;
  58. justify-content: flex-end;
  59. }
  60. .nav__list-right .nav__item {
  61. text-align: right;
  62. width: 100px;
  63. }
  64. .nav__search {
  65. width: 240px;
  66. }
  67. .nav__item {
  68. text-align: center;
  69. }
  70. .nav__item a {
  71. text-decoration: none;
  72. color: #333;
  73. font-size: 16px;
  74. }
  75. .nav__item a:hover {
  76. color: #409eff;
  77. }
  78. .nav__item-left a {
  79. font-size: 18px;
  80. font-weight: bold;
  81. }
  82. .nav__photo {
  83. width: 40px;
  84. height: 40px;
  85. border-radius: 20px;
  86. border: 1px solid #ebeef5;
  87. cursor: pointer;
  88. }
  89. .drop-container {
  90. padding: 0;
  91. }
  92. .drop-container .drop-info {
  93. width: 100%;
  94. padding: 10px;
  95. border-bottom: 0.5px #999 solid;
  96. }
  97. .drop-container .drop-info__item {
  98. width: 100%;
  99. text-align: center;
  100. }
  101. .drop-container .drop-info__name {
  102. color: #333;
  103. font-weight: bold;
  104. }
  105. .drop-container .drop-list {
  106. border: 0;
  107. }
  108. .drop-container .drop-list .el-menu-item {
  109. text-align: center;
  110. height: 30px;
  111. line-height: 30px;
  112. }
  113. .drop-container .drop-list .el-menu-item span {
  114. line-height: 30px;
  115. }
  116. .foot {
  117. width: 100%;
  118. background-color: white;
  119. color: #333;
  120. padding: 30px 0 0 0;
  121. border: 1px solid #ebeef5;
  122. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  123. margin-top: 50px;
  124. }
  125. .foot__main {
  126. width: 1200px;
  127. height: 180px;
  128. border-bottom: 0.5px white solid;
  129. display: flex;
  130. flex-wrap: wrap;
  131. justify-content: space-between;
  132. margin: auto;
  133. }
  134. .foot__logo {
  135. width: 360px;
  136. }
  137. .foot__slogan {
  138. margin-top: 10px;
  139. }
  140. .foot a {
  141. font-size: 14px;
  142. color: #666;
  143. text-decoration: none;
  144. display: block;
  145. cursor: pointer;
  146. margin-top: 5px;
  147. }
  148. .foot__right {
  149. width: 450px;
  150. display: flex;
  151. flex-wrap: wrap;
  152. justify-content: space-between;
  153. }
  154. .foot__list {
  155. min-width: 100px;
  156. }
  157. .foot__list-icons a {
  158. display: inline-block;
  159. }
  160. .foot__title {
  161. font-size: 16px;
  162. padding-bottom: 5px;
  163. }
  164. .foot__icon {
  165. margin-top: 10px;
  166. width: 50px;
  167. height: 50px;
  168. border-radius: 10px;
  169. background-size: cover;
  170. background-position: center center;
  171. background-repeat: no-repeat;
  172. border: 1px white solid;
  173. display: inline-block;
  174. margin-right: 5px;
  175. }
  176. .foot__icon-zhihu {
  177. background-image: url("/image/zhihu_icon.jpg");
  178. }
  179. .foot__icon-bilibili {
  180. background-image: url("/image/bilibili_icon.jpg");
  181. }
  182. .foot__bottom {
  183. width: 100%;
  184. text-align: center;
  185. font-size: 12px;
  186. }
  187. h1 h2 h3 {
  188. color: #333;
  189. }