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