main.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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: 480px;
  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: 20px 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. //position: fixed;
  130. //bottom: 0;
  131. &__main{
  132. width: 1200px;
  133. height: 180px;
  134. border-bottom: 0.5px white solid;
  135. display: flex;
  136. flex-wrap: wrap;
  137. justify-content: space-between;
  138. margin: auto;
  139. }
  140. &__logo{
  141. width: 360px;
  142. }
  143. &__slogan{
  144. margin-top: 10px;
  145. }
  146. & a{
  147. font-size: 14px;
  148. color: $sub-color;
  149. text-decoration: none;
  150. display: block;
  151. cursor: pointer;
  152. margin-top: 5px;
  153. }
  154. &__right{
  155. width: 450px;
  156. display: flex;
  157. flex-wrap: wrap;
  158. justify-content: space-between;
  159. }
  160. &__list{
  161. min-width: 100px;
  162. &-icons a{
  163. display: inline-block;
  164. }
  165. }
  166. &__title{
  167. font-size: 16px;
  168. padding-bottom: 5px;
  169. }
  170. &__icon{
  171. margin-top: 10px;
  172. width: 50px;
  173. height: 50px;
  174. border-radius: 10px;
  175. background-size: cover;
  176. background-position: center center;
  177. background-repeat: no-repeat;
  178. border: 1px white solid;
  179. display: inline-block;
  180. margin-right: 5px;
  181. &-zhihu{
  182. background-image: url('/image/zhihu_icon.jpg');
  183. }
  184. &-bilibili{
  185. background-image: url('/image/bilibili_icon.jpg');
  186. }
  187. }
  188. &__bottom{
  189. width: 100%;
  190. text-align: center;
  191. font-size: 12px;
  192. }
  193. }
  194. h1 h2 h3{
  195. color: $common-color;
  196. }
  197. //h1{
  198. // font-size: 34px;
  199. //}
  200. //
  201. //h2{
  202. // font-size: 28px;
  203. //}
  204. //
  205. //h3{
  206. // font-size: 22px;
  207. //}