main.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. display: flex;
  27. position: sticky;
  28. padding: 0 50px;
  29. align-items: center;
  30. flex-wrap: wrap;
  31. justify-content: space-between;
  32. height: 60px;
  33. background-color: white;
  34. border-bottom: 1px solid $focus-color;
  35. &__logo{
  36. height: 48px;
  37. }
  38. &__list{
  39. height: 100%;
  40. display: flex;
  41. align-items: center;
  42. flex-wrap: wrap;
  43. justify-content: space-between;
  44. list-style:none;
  45. &-left{
  46. width: 360px;
  47. font-weight: bold;
  48. }
  49. &-right{
  50. width: 160px;
  51. justify-content: space-between;
  52. }
  53. }
  54. &__search{
  55. width: 200px;
  56. }
  57. &__item{
  58. & a{
  59. text-decoration: none;
  60. color: $common-color;
  61. font-size: 16px;
  62. &:hover{
  63. color: $focus-color;
  64. }
  65. }
  66. }
  67. }
  68. .foot{
  69. width: 100%;
  70. background-color: white;
  71. color: $common-color;
  72. padding: 30px 50px 0 50px;
  73. border: 1px solid #ebeef5;
  74. box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  75. &__main{
  76. width: 100%;
  77. height: 180px;
  78. border-bottom: 0.5px white solid;
  79. display: flex;
  80. flex-wrap: wrap;
  81. justify-content: space-between;
  82. }
  83. &__logo{
  84. width: 200px;
  85. }
  86. &__slogan{
  87. margin-top: 10px;
  88. }
  89. & a{
  90. font-size: 14px;
  91. color: $sub-color;
  92. text-decoration: none;
  93. display: block;
  94. cursor: pointer;
  95. margin-top: 5px;
  96. }
  97. &__right{
  98. width: 450px;
  99. display: flex;
  100. flex-wrap: wrap;
  101. justify-content: space-between;
  102. }
  103. &__list{
  104. min-width: 100px;
  105. &-icons a{
  106. display: inline-block;
  107. }
  108. }
  109. &__title{
  110. font-size: 16px;
  111. padding-bottom: 5px;
  112. }
  113. &__icon{
  114. margin-top: 10px;
  115. width: 50px;
  116. height: 50px;
  117. border-radius: 10px;
  118. background-size: cover;
  119. background-position: center center;
  120. background-repeat: no-repeat;
  121. border: 1px white solid;
  122. display: inline-block;
  123. margin-right: 5px;
  124. &-zhihu{
  125. background-image: url('/image/zhihu_icon.jpg');
  126. }
  127. &-bilibili{
  128. background-image: url('/image/bilibili_icon.jpg');
  129. }
  130. }
  131. &__bottom{
  132. width: 100%;
  133. text-align: center;
  134. font-size: 12px;
  135. }
  136. }
  137. h1 h2 h3{
  138. color: $common-color;
  139. }
  140. //h1{
  141. // font-size: 34px;
  142. //}
  143. //
  144. //h2{
  145. // font-size: 28px;
  146. //}
  147. //
  148. //h3{
  149. // font-size: 22px;
  150. //}