common.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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. &>i {
  135. cursor: pointer;
  136. position: absolute;
  137. top: 10px;
  138. width: 16px;
  139. height: 16px;
  140. background-repeat: no-repeat;
  141. background-size: cover;
  142. opacity: .8;
  143. &:hover {
  144. opacity: 1;
  145. }
  146. }
  147. [toast="toast"] {
  148. right: 10px;
  149. background-image: url(./i/all.png);
  150. &:hover {
  151. background-color: #D5E5FF;
  152. }
  153. }
  154. [copy="copy"] {
  155. right: 40px;
  156. background-image: url(./i/cp.png);
  157. &:hover {
  158. background-color: #D5E5FF;
  159. }
  160. }
  161. }
  162. .nut-dialog-content {
  163. text-align: left !important;
  164. [toast="toast"],
  165. [copy="copy"] {
  166. display: none;
  167. }
  168. } // 代码显示
  169. pre {
  170. background: #F2F4F5;
  171. border-radius: 4px;
  172. border: none;
  173. padding: 20px;
  174. }
  175. .kwd {
  176. color: #005cc5;
  177. }
  178. .pln {
  179. color: #a74a4a;
  180. }
  181. .tag {
  182. color: #288cff;
  183. }
  184. .atn {
  185. color: #0dade4;
  186. }
  187. .pun {
  188. color: #8276ff;
  189. }
  190. .atv {
  191. color: #005cc5;
  192. }
  193. .com {
  194. color: #055a2a;
  195. }
  196. .layer {
  197. position: fixed;
  198. top: 0;
  199. left: 0;
  200. width: 100%;
  201. min-height: 100%;
  202. background: #F2F4F5;
  203. z-index: 9999;
  204. .close-box {
  205. color: #fff;
  206. font-size: 24px;
  207. position: absolute;
  208. top: 25px;
  209. right: 14px;
  210. z-index: 30;
  211. width: 28px;
  212. height: 28px;
  213. background: url(../css/i/close.png) no-repeat center;
  214. cursor: pointer;
  215. &:hover {
  216. background: #D5E5FF url(../css/i/close.png) no-repeat center;
  217. }
  218. }
  219. [toast="toast"] {
  220. display: none;
  221. }
  222. pre {
  223. background: none;
  224. padding: 50px 100px 30px 30px;
  225. max-width: 100%;
  226. max-height: 800px;
  227. overflow: auto;
  228. [copy="copy"] {
  229. right: 47px;
  230. }
  231. } // .kwd{
  232. // color:#ffb560;;
  233. // }
  234. // .pln{
  235. // color: #3d74ff;
  236. // }
  237. // .tag{
  238. // color:#288cff;
  239. // }
  240. // .atn{
  241. // color:#0dade4;
  242. // }
  243. // .pun{
  244. // color: #fff;
  245. // }
  246. // .atv{
  247. // color: #005cc5;
  248. // }
  249. // .com{
  250. // color :#055a2a;
  251. // }
  252. // .str{
  253. // color: #fff;
  254. // }
  255. }
  256. pre.prettyprint {
  257. code {
  258. font: 14px/24px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  259. }
  260. }