common.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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: 0.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")
  81. no-repeat 1px 1px;
  82. background-size: cover;
  83. z-index: 9;
  84. a {
  85. position: absolute; //display: none;
  86. top: 24px;
  87. width: 200px;
  88. height: 230px;
  89. opacity: 0;
  90. transform: scale(0.5);
  91. transform-origin: 50% top 0;
  92. transition: all 100ms ease-in-out 50ms;
  93. background: url('./i/kuang.png') no-repeat;
  94. background-size: 200px;
  95. text-decoration: none;
  96. font-style: normal;
  97. text-align: center;
  98. left: -88px;
  99. overflow: hidden;
  100. pointer-events: none;
  101. span {
  102. display: block;
  103. overflow: hidden;
  104. color: #666;
  105. font-size: 15px;
  106. text-align: center;
  107. height: 47px;
  108. width: 100%;
  109. line-height: 74px;
  110. }
  111. img {
  112. width: 170px;
  113. height: 170px;
  114. }
  115. }
  116. &:hover {
  117. opacity: 1;
  118. a {
  119. display: inline-block;
  120. opacity: 1;
  121. transform: scale(1);
  122. }
  123. } // img{
  124. // width: 100%;
  125. // height: 100%;
  126. // }
  127. // &:hover{
  128. // transform: scale(2);
  129. // }
  130. }
  131. pre {
  132. position: relative;
  133. max-width: 100%;
  134. overflow: auto;
  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: 0.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,
  249. .lang {
  250. display: none;
  251. }
  252. }
  253. }
  254. pre.prettyprint {
  255. code {
  256. font: 13px/24px 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  257. }
  258. }
  259. // 书签样式
  260. .markList {
  261. position: fixed;
  262. right: 10px;
  263. top: 100px;
  264. background: #fff;
  265. border-left: 1px solid #efefef;
  266. padding: 0 10px 0 20px !important;
  267. li:before {
  268. display: none !important;
  269. }
  270. }