mock平台

defaultTheme.scss 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. html,
  2. body,
  3. h1,
  4. h2,
  5. h3,
  6. h4,
  7. h5,
  8. h6,
  9. p,
  10. blockquote {
  11. margin: 0;
  12. padding: 0;
  13. font-weight: normal;
  14. -webkit-font-smoothing: antialiased;
  15. }
  16. /* 设置滚动条的样式 */
  17. ::-webkit-scrollbar {
  18. width: 6px;
  19. }
  20. /* 外层轨道 */
  21. ::-webkit-scrollbar-track {
  22. -webkit-box-shadow: inset006pxrgba(255, 0, 0, 0.3);
  23. background: rgba(0, 0, 0, 0.1);
  24. }
  25. /* 滚动条滑块 */
  26. ::-webkit-scrollbar-thumb {
  27. border-radius: 4px;
  28. background: rgba(0, 0, 0, 0.2);
  29. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
  30. }
  31. ::-webkit-scrollbar-thumb:window-inactive {
  32. background: rgba(0, 0, 0, 0.2);
  33. }
  34. body {
  35. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
  36. font-size: 13px;
  37. line-height: 25px;
  38. color: #393838;
  39. position: relative;
  40. // overflow-x: hidden;
  41. }
  42. table {
  43. margin: 10px 0 15px 0;
  44. border-collapse: collapse;
  45. }
  46. td,
  47. th {
  48. border: 1px solid #ddd;
  49. padding: 3px 10px;
  50. }
  51. th {
  52. padding: 5px 10px;
  53. }
  54. a, a:link, a:visited {
  55. color: #34495e;
  56. text-decoration: none;
  57. }
  58. a:hover, a:focus {
  59. color: #59d69d;
  60. text-decoration: none;
  61. }
  62. a img {
  63. border: none;
  64. }
  65. p {
  66. padding-left: 10px;
  67. margin-bottom: 9px;
  68. }
  69. h1,
  70. h2,
  71. h3,
  72. h4,
  73. h5,
  74. h6 {
  75. color: #404040;
  76. line-height: 36px;
  77. }
  78. h1 {
  79. color: #2c3e50;
  80. font-weight: 600;
  81. // margin-top: 35px;
  82. margin-bottom: 16px;
  83. font-size: 32px;
  84. padding-bottom: 16px;
  85. border-bottom: 1px solid #ddd;
  86. line-height: 50px;
  87. }
  88. h2 {
  89. font-size: 28px;
  90. padding-top: 10px;
  91. padding-bottom: 10px;
  92. }
  93. h3 {
  94. clear: both;
  95. font-weight: 400;
  96. margin-top: 20px;
  97. margin-bottom: 20px;
  98. border-left: 3px solid #59d69d;
  99. padding-left: 8px;
  100. font-size: 18px;
  101. }
  102. h4 {
  103. font-size: 16px;
  104. }
  105. h5 {
  106. font-size: 14px;
  107. }
  108. h6 {
  109. font-size: 13px;
  110. }
  111. hr {
  112. margin: 0 0 19px;
  113. border: 0;
  114. border-bottom: 1px solid #ccc;
  115. }
  116. blockquote {
  117. padding: 13px 13px 21px 15px;
  118. margin-bottom: 18px;
  119. font-family: georgia, serif;
  120. font-style: italic;
  121. }
  122. blockquote:before {
  123. font-size: 40px;
  124. margin-left: -10px;
  125. font-family: georgia, serif;
  126. color: #eee;
  127. }
  128. blockquote p {
  129. font-size: 14px;
  130. font-weight: 300;
  131. line-height: 18px;
  132. margin-bottom: 0;
  133. font-style: italic;
  134. }
  135. code,
  136. pre {
  137. font-family: Monaco, Andale Mono, Courier New, monospace;
  138. }
  139. code {
  140. background-color: #fee9cc;
  141. color: rgba(0, 0, 0, 0.75);
  142. padding: 1px 3px;
  143. font-size: 12px;
  144. -webkit-border-radius: 3px;
  145. -moz-border-radius: 3px;
  146. border-radius: 3px;
  147. }
  148. pre {
  149. display: block;
  150. padding: 14px;
  151. margin: 0 0 18px;
  152. line-height: 16px;
  153. font-size: 11px;
  154. border: 1px solid #d9d9d9;
  155. white-space: pre-wrap;
  156. word-wrap: break-word;
  157. background: #f6f6f6;
  158. }
  159. pre code {
  160. background-color: #f6f6f6;
  161. color: #737373;
  162. font-size: 11px;
  163. padding: 0;
  164. }
  165. sup {
  166. font-size: 0.83em;
  167. vertical-align: super;
  168. line-height: 0;
  169. }
  170. * {
  171. -webkit-print-color-adjust: exact;
  172. }
  173. @media print {
  174. body,
  175. code,
  176. pre code,
  177. h1,
  178. h2,
  179. h3,
  180. h4,
  181. h5,
  182. h6 {
  183. color: black;
  184. }
  185. table,
  186. pre {
  187. page-break-inside: avoid;
  188. }
  189. }
  190. html,
  191. body {
  192. height: 100%;
  193. }
  194. .table-of-contents {
  195. position: fixed;
  196. top: 61px;
  197. left: 0;
  198. bottom: 0;
  199. overflow-x: hidden;
  200. overflow-y: auto;
  201. width: 260px;
  202. }
  203. .table-of-contents>ul>li>a {
  204. font-size: 20px;
  205. margin-bottom: 16px;
  206. margin-top: 16px;
  207. }
  208. .table-of-contents ul {
  209. // position: fixed;
  210. // top: 80px;
  211. // left: 40px;
  212. overflow: auto;
  213. margin: 0px;
  214. height: 100%;
  215. padding: 0px 0px;
  216. box-sizing: border-box;
  217. list-style-type: none;
  218. }
  219. .table-of-contents ul li {
  220. padding-left: 20px;
  221. }
  222. .table-of-contents a {
  223. padding: 2px 0px;
  224. display: block;
  225. text-decoration: none;
  226. }
  227. .content-right {
  228. // position: relative;
  229. // top: -20px;
  230. max-width: 700px;
  231. margin-left: 290px;
  232. padding-left: 70px;
  233. flex-grow: 1;
  234. h2:target{
  235. padding-top: 80px;
  236. }
  237. }
  238. body>p {
  239. margin-left: 30px;
  240. }
  241. body>table {
  242. margin-left: 30px;
  243. }
  244. body>pre {
  245. margin-left: 30px;
  246. }
  247. .curProject {
  248. position: fixed;
  249. top: 20px;
  250. font-size: 25px;
  251. color: black;
  252. margin-left: -240px;
  253. width: 240px;
  254. padding: 5px;
  255. line-height: 25px;
  256. box-sizing: border-box;
  257. }
  258. .g-doc {
  259. margin-top: 56px;
  260. padding-top: 24px;
  261. display: flex;
  262. }
  263. .curproject-name{
  264. font-size: 42px;
  265. }
  266. .m-header {
  267. background: #32363a;
  268. height: 56px;
  269. line-height: 56px;
  270. padding-left: 60px;
  271. display: flex;
  272. align-items: center;
  273. position: fixed;
  274. z-index: 9;
  275. top: 0;
  276. left: 0;
  277. right: 0;
  278. .title {
  279. font-size: 22px;
  280. color: #fff;
  281. font-weight: normal;
  282. -webkit-font-smoothing: antialiased;
  283. margin: 0;
  284. margin-left: 16px;
  285. padding: 0;
  286. line-height: 56px;
  287. border: none;
  288. }
  289. .nav {
  290. color: #fff;
  291. font-size: 16px;
  292. position: absolute;
  293. right: 32px;
  294. top: 0;
  295. a {
  296. color: #fff;
  297. margin-left: 16px;
  298. padding: 8px;
  299. transition: color .2s;
  300. }
  301. a:hover {
  302. color: #59d69d;
  303. }
  304. }
  305. }
  306. .m-footer {
  307. border-top: 1px solid #ddd;
  308. padding-top: 16px;
  309. padding-bottom: 16px;
  310. }