style.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. import {createGlobalStyle} from 'styled-components';
  2. export const GlobalStyle = createGlobalStyle`
  3. ::selection {
  4. background: #A0DAD0;
  5. color: #fff;
  6. }
  7. ::-webkit-scrollbar-track {
  8. background-color: #ffffff;
  9. }
  10. ::-webkit-scrollbar-thumb {
  11. border-radius: 10px;
  12. background-color: #FE9600;
  13. }
  14. ::-webkit-scrollbar {
  15. width: 5px;
  16. height: 8px;
  17. background-color: #B9B9B9;
  18. }
  19. *{
  20. box-sizing: border-box;
  21. }
  22. body{
  23. font-family: 'Noto Serif SC','Source Han Serif SC','Source Han Serif','source-han-serif-sc','PT Serif','SongTi SC','MicroSoft Yahei',Georgia,serif;
  24. cursor: url(${require('./statics/images/normal.cur')}),auto
  25. }
  26. html, body, div, span, applet, object, iframe,
  27. h1, h2, h3, h4, h5, h6, p, blockquote,
  28. a, abbr, acronym, address, big, cite,
  29. del, dfn, em, img, ins, kbd, q, s, samp,
  30. small, strike, strong, sub, sup, tt, var,
  31. b, u, i, center,
  32. dl, dt, dd, ol, ul, li,
  33. fieldset, form, label, legend,
  34. table, caption, tbody, tfoot, thead, tr, th, td,
  35. article, aside, canvas, details, embed,
  36. figure, figcaption, footer, header, hgroup,
  37. menu, nav, output, ruby, section, summary,
  38. time, mark, audio, video {
  39. margin: 0;
  40. padding: 0;
  41. border: 0;
  42. font-size: 100%;
  43. vertical-align: baseline;
  44. }
  45. /* HTML5 display-role reset for older browsers */
  46. article, aside, details, figcaption, figure,
  47. footer, header, hgroup, menu, nav, section {
  48. display: block;
  49. }
  50. .transition-color{
  51. transition: color .2s ease-out,border .2s ease-out,opacity .2s ease-out;
  52. }
  53. a{
  54. transition: color .2s ease-out,border .2s ease-out,opacity .2s ease-out;
  55. cursor: url(${require('./statics/images/ayuda.cur')}),auto;
  56. }
  57. a:hover{
  58. text-decoration: none;
  59. }
  60. ol, ul {
  61. list-style: none;
  62. }
  63. ul,li{
  64. margin:0;
  65. }
  66. .lazyload {
  67. filter: blur(0px);
  68. transition: .3s filter linear,.3s -webkit-filter linear;
  69. }
  70. p{
  71. cursor: url(${require('./statics/images/texto.cur')}),auto;
  72. }
  73. blockquote, q {
  74. quotes: none;
  75. }
  76. blockquote:before, blockquote:after,
  77. q:before, q:after {
  78. content: '';
  79. content: none;
  80. }
  81. table {
  82. border-collapse: collapse;
  83. border-spacing: 0;
  84. }
  85. .flex-items {
  86. display: -webkit-flex; /* Safari */
  87. -webkit-align-items: center; /* Safari 7.0+ */
  88. display: flex;
  89. align-items: center;
  90. }
  91. .flex-start {
  92. display: -webkit-flex; /* Safari */
  93. -webkit-align-items: center; /* Safari 7.0+ */
  94. display: flex;
  95. align-items: center;
  96. flex-wrap: wrap;
  97. }
  98. .cell {
  99. -webkit-box-flex: 1;
  100. -webkit-flex: 1;
  101. -ms-flex: 1;
  102. flex: 1;
  103. width: 0;
  104. }
  105. .align-center {
  106. -webkit-align-self: center;
  107. align-self: center;
  108. }
  109. .ellipsis {
  110. text-overflow: ellipsis;
  111. overflow: hidden;
  112. white-space: nowrap;
  113. }
  114. .ellipsis-two {
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. display: -webkit-box;
  118. -webkit-box-orient: vertical;
  119. -webkit-line-clamp: 2;
  120. }
  121. #player .aplayer-lrc-current {
  122. color: #fe9600;
  123. font-size: 15px;
  124. font-weight: bold;
  125. }
  126. #fireworks{
  127. position: fixed;
  128. left: 0px;
  129. top: 0px;
  130. pointer-events: none;
  131. z-index: 999;
  132. }
  133. `;