common.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. @charset "utf-8";
  2. html,
  3. body,
  4. div,
  5. span,
  6. iframe,
  7. h1,
  8. h2,
  9. h3,
  10. h4,
  11. h5,
  12. h6,
  13. p,
  14. em,
  15. img,
  16. s,
  17. strong,
  18. b,
  19. u,
  20. i,
  21. dl,
  22. dt,
  23. dd,
  24. ol,
  25. ul,
  26. li,
  27. fieldset,
  28. form,
  29. label,
  30. table,
  31. caption,
  32. tbody,
  33. tfoot,
  34. thead,
  35. tr,
  36. th,
  37. td,
  38. article,
  39. aside,
  40. canvas,
  41. details,
  42. embed,
  43. figure,
  44. figcaption,
  45. footer,
  46. header,
  47. hgroup,
  48. menu,
  49. nav,
  50. section,
  51. time,
  52. audio,
  53. video {
  54. margin: 0;
  55. padding: 0;
  56. border: 0;
  57. font: inherit;
  58. }
  59. ol,
  60. ul {
  61. list-style: none;
  62. }
  63. table {
  64. border-collapse: collapse;
  65. border-spacing: 0;
  66. }
  67. html,
  68. body {
  69. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  70. -webkit-font-smoothing: antialiased;
  71. }
  72. .qrcode {
  73. position: relative;
  74. display: inline-block;
  75. margin-left: 30px;
  76. line-height: 0;
  77. width: 22px;
  78. height: 22px;
  79. opacity: .6;
  80. background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896' data-icon='qrcode' width='1em' height='1em' fill='#666666' aria-hidden='true'%3E %3Cpath d='M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'/%3E %3C/svg%3E") no-repeat 1px 1px;
  81. background-size: cover;
  82. z-index: 9;
  83. a {
  84. position: absolute; //display: none;
  85. top: 24px;
  86. width: 200px;
  87. height: 230px;
  88. opacity: 0;
  89. transform: scale(0.5);
  90. transform-origin: 50% top 0;
  91. transition: all 100ms ease-in-out 50ms;
  92. background: url('./i/kuang.png') no-repeat;
  93. background-size: 200px;
  94. text-decoration: none;
  95. font-style: normal;
  96. text-align: center;
  97. left: -88px;
  98. overflow: hidden;
  99. pointer-events: none;
  100. span {
  101. display: block;
  102. overflow: hidden;
  103. color: #666;
  104. font-size: 15px;
  105. text-align: center;
  106. height: 47px;
  107. width: 100%;
  108. line-height: 74px;
  109. }
  110. img {
  111. width: 170px;
  112. height: 170px;
  113. }
  114. }
  115. &:hover {
  116. opacity: 1;
  117. a {
  118. display: inline-block;
  119. opacity: 1;
  120. transform: scale(1);
  121. }
  122. } // img{
  123. // width: 100%;
  124. // height: 100%;
  125. // }
  126. // &:hover{
  127. // transform: scale(2);
  128. // }
  129. }
  130. pre {
  131. position: relative;
  132. max-width: 100%;
  133. overflow: auto;
  134. margin
  135. .code-wrapper{
  136. width:100%;
  137. overflow:auto;
  138. }
  139. [toast="toast"],
  140. [copy="copy"] {
  141. cursor: pointer;
  142. position: absolute;
  143. top: 10px;
  144. width: 16px;
  145. height: 16px;
  146. background-repeat: no-repeat;
  147. background-size: cover;
  148. opacity: .8;
  149. &:hover {
  150. opacity: 1;
  151. }
  152. }
  153. [toast="toast"] {
  154. right: 10px;
  155. background-image: url(./i/all.png);
  156. &:hover {
  157. background-color: #D5E5FF;
  158. }
  159. }
  160. [copy="copy"] {
  161. right: 40px;
  162. background-image: url(./i/cp.png);
  163. &:hover {
  164. background-color: #D5E5FF;
  165. }
  166. }
  167. }
  168. .nut-dialog-content {
  169. text-align: left !important;
  170. [toast="toast"],
  171. [copy="copy"] {
  172. display: none;
  173. }
  174. } // 代码显示
  175. pre {
  176. position: relative;
  177. background: #F2F4F5;
  178. border-radius: 4px;
  179. border: none;
  180. padding: 20px;
  181. margin: 0;
  182. &>span {
  183. position: absolute;
  184. right: 5px;
  185. bottom: 5px;
  186. font-style: italic;
  187. font-size: 12px;
  188. color: #999;
  189. text-shadow: 1px 1px #FFF;
  190. user-select: none;
  191. }
  192. }
  193. .kwd {
  194. color: #005cc5;
  195. }
  196. .pln {
  197. color: #a74a4a;
  198. }
  199. .tag {
  200. color: #288cff;
  201. }
  202. .atn {
  203. color: #0dade4;
  204. }
  205. .pun {
  206. color: #8276ff;
  207. }
  208. .atv {
  209. color: #005cc5;
  210. }
  211. .com {
  212. color: #055a2a;
  213. }
  214. .layer {
  215. position: fixed;
  216. top: 0;
  217. left: 0;
  218. width: 100%;
  219. min-height: 100%;
  220. background: #F2F4F5;
  221. z-index: 9999;
  222. .close-box {
  223. color: #fff;
  224. font-size: 24px;
  225. position: absolute;
  226. top: 10px;
  227. right: 14px;
  228. z-index: 30;
  229. width: 16px;
  230. height: 16px;
  231. background: url(../css/i/close.png) no-repeat center;
  232. background-size: cover;
  233. cursor: pointer;
  234. &:hover {
  235. background-color: #D5E5FF;
  236. background-image: url(../css/i/close.png);
  237. }
  238. }
  239. [toast="toast"] {
  240. display: none;
  241. }
  242. pre {
  243. background: none;
  244. padding: 0 30px;
  245. max-width: 100%;
  246. max-height: 800px;
  247. overflow: auto;
  248. &>i,.lang {
  249. display: none;
  250. }
  251. } // .kwd{
  252. // color:#ffb560;;
  253. // }
  254. // .pln{
  255. // color: #3d74ff;
  256. // }
  257. // .tag{
  258. // color:#288cff;
  259. // }
  260. // .atn{
  261. // color:#0dade4;
  262. // }
  263. // .pun{
  264. // color: #fff;
  265. // }
  266. // .atv{
  267. // color: #005cc5;
  268. // }
  269. // .com{
  270. // color :#055a2a;
  271. // }
  272. // .str{
  273. // color: #fff;
  274. // }
  275. }
  276. pre.prettyprint {
  277. code {
  278. font: 13px/24px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  279. }
  280. }
  281. // 书签样式
  282. .markList{
  283. position: fixed;
  284. right: 10px;
  285. top: 100px;
  286. background: #fff;
  287. border:1px solid #efefef;
  288. padding:10px 10px 10px 20px!important;
  289. border-right: none;
  290. li:before{
  291. display: none!important;
  292. }
  293. }