common.scss 5.8 KB

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