main.scss 3.5 KB

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