main.less 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. @import './color.less';
  2. @font-face {
  3. font-family: Roboto-Bold;
  4. src: url('//static.hoolihome.com/pc/3.0.0/fonts/roboto/Roboto-Bold.ttf');
  5. font-weight: 400;
  6. font-style: normal;
  7. font-display: swap;
  8. }
  9. @font-face {
  10. font-family: Roboto-Medium;
  11. src: url('//static.hoolihome.com/pc/3.0.0/fonts/roboto/Roboto-Medium.ttf');
  12. font-weight: 400;
  13. font-style: normal;
  14. font-display: swap;
  15. }
  16. @font-face {
  17. font-family: Roboto-Regular;
  18. src: url('//static.hoolihome.com/pc/3.0.0/fonts/roboto/Roboto-Regular.ttf');
  19. font-weight: 400;
  20. font-style: normal;
  21. font-display: swap;
  22. }
  23. *,
  24. *:before,
  25. *:after {
  26. margin: 0;
  27. padding: 0;
  28. box-sizing: border-box;
  29. }
  30. input::-webkit-autofill,
  31. textarea::-webkit-autofill,
  32. select::-webkit-autofill {
  33. -webkit-box-shadow: 0 0 0px 1000px white inset;
  34. box-shadow: 0 0 0px 1000px white inset;
  35. }
  36. input::-webkit-outer-spin-button,
  37. input::-webkit-inner-spin-button {
  38. -webkit-appearance: none;
  39. }
  40. input[type='number'] {
  41. -moz-appearance: textfield;
  42. }
  43. ul,
  44. li {
  45. list-style: none;
  46. }
  47. a {
  48. text-decoration: none;
  49. }
  50. input,
  51. textarea {
  52. outline: none;
  53. }
  54. html,
  55. body {
  56. width: 100%;
  57. height: 100%;
  58. color: #000000;
  59. font-family: PingFangSC-Regular, 'Microsoft YaHei', 'SimHei', 'Avenir',
  60. 'Source Sans Pro', Helvetica, Arial, sans-serif;
  61. background-color: #ffffff;
  62. }
  63. #__nuxt,
  64. #__layout {
  65. height: 100%;
  66. }
  67. .page-enter-active,
  68. .page-leave-active {
  69. transition: opacity 0.5s;
  70. -webkit-transition: opacity 0.5s;
  71. -moz-transition: opacity 0.5s;
  72. -ms-transition: opacity 0.5s;
  73. -o-transition: opacity 0.5s;
  74. }
  75. .page-enter,
  76. .page-leave-active {
  77. opacity: 0;
  78. }
  79. .singleline {
  80. overflow: hidden;
  81. text-overflow: ellipsis;
  82. white-space: nowrap;
  83. }
  84. .clearfix:after {
  85. display: block;
  86. content: " ";
  87. clear: both;
  88. height: 0;
  89. font-size: 0;
  90. visibility: hidden;
  91. }
  92. .fl {
  93. float: left;
  94. }
  95. .fr {
  96. float: right;
  97. }
  98. .bg-cover {
  99. background-size: cover;
  100. background-repeat: no-repeat;
  101. background-position: center center;
  102. }
  103. .ql-container .ql-editor img {
  104. max-width: 100% !important;
  105. }
  106. /* animate */
  107. @keyframes rubberBand {
  108. from {
  109. -webkit-transform: scale3d(1, 1, 1);
  110. transform: scale3d(1, 1, 1);
  111. }
  112. 30% {
  113. -webkit-transform: scale3d(1.25, 0.75, 1);
  114. transform: scale3d(1.25, 0.75, 1);
  115. }
  116. 40% {
  117. -webkit-transform: scale3d(0.75, 1.25, 1);
  118. transform: scale3d(0.75, 1.25, 1);
  119. }
  120. 50% {
  121. -webkit-transform: scale3d(1.15, 0.85, 1);
  122. transform: scale3d(1.15, 0.85, 1);
  123. }
  124. 65% {
  125. -webkit-transform: scale3d(0.95, 1.05, 1);
  126. transform: scale3d(0.95, 1.05, 1);
  127. }
  128. 75% {
  129. -webkit-transform: scale3d(1.05, 0.95, 1);
  130. transform: scale3d(1.05, 0.95, 1);
  131. }
  132. to {
  133. -webkit-transform: scale3d(1, 1, 1);
  134. transform: scale3d(1, 1, 1);
  135. }
  136. }
  137. @keyframes arrow {
  138. 0% {
  139. -webkit-transform: translateX(-10px);
  140. -moz-transform: translateX(-10px);
  141. -ms-transform: translateX(-10px);
  142. transform: translateX(-10px);
  143. opacity: 0
  144. }
  145. 10% {
  146. -webkit-transform: translateX(0px);
  147. -moz-transform: translateX(0px);
  148. -ms-transform: translateX(0px);
  149. transform: translateX(0px);
  150. opacity: 1
  151. }
  152. 100% {
  153. -webkit-transform: translateX(10px);
  154. -moz-transform: translateX(10px);
  155. -ms-transform: translateX(10px);
  156. transform: translateX(10px);
  157. opacity: 0
  158. }
  159. }
  160. @keyframes arrow2 {
  161. 0% {
  162. -webkit-transform: translate(-10px, -10px) rotate(45deg);
  163. -moz-transform: translate(-10px, -10px) rotate(45deg);
  164. -ms-transform: translate(-10px, -10px) rotate(45deg);
  165. transform: translate(-10px, -10px) rotate(45deg);
  166. opacity: 0
  167. }
  168. 10% {
  169. -webkit-transform: translate(0, 0) rotate(45deg);
  170. -moz-transform: translate(0, 0) rotate(45deg);
  171. -ms-transform: translate(0, 0) rotate(45deg);
  172. transform: translate(0, 0) rotate(45deg);
  173. opacity: 1
  174. }
  175. 100% {
  176. -webkit-transform: translate(10px, 10px) rotate(45deg);
  177. -moz-transform: translate(10px, 10px) rotate(45deg);
  178. -ms-transform: translate(10px, 10px) rotate(45deg);
  179. transform: translate(10px, 10px) rotate(45deg);
  180. opacity: 0
  181. }
  182. }
  183. a.arrow-links {
  184. padding-left: 40px;
  185. padding-right: 40px;
  186. position: relative;
  187. color: #FFF;
  188. transition: all 400ms cubic-bezier(0.165, 0.84, 0.44, 1);
  189. transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  190. transition-property: color, background-color
  191. }
  192. a.arrow-links:before {
  193. content: "";
  194. position: absolute;
  195. right: 15px;
  196. top: 54%;
  197. width: 15px;
  198. margin-left: -10px;
  199. margin-top: -1px;
  200. height: 1px;
  201. background: #FFF
  202. }
  203. a.arrow-links:after {
  204. content: "";
  205. position: absolute;
  206. right: 15px;
  207. top: 54%;
  208. width: 8px;
  209. margin-top: -1px;
  210. margin-left: -2px;
  211. height: 1px;
  212. background: #FFF;
  213. transform: rotate(45deg);
  214. transform-origin: right bottom
  215. }
  216. a.arrow-links:hover,
  217. a.arrow-links:focus,
  218. a.arrow-links:active {
  219. text-decoration: none
  220. }
  221. a.arrow-links:hover:before,
  222. a.arrow-links:focus:before,
  223. a.arrow-links:active:before {
  224. transition: all 400ms cubic-bezier(0.165, 0.84, 0.44, 1);
  225. transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  226. animation: arrow 2.6s cubic-bezier(1, 0, 0, 1) 0s infinite;
  227. animation-fill-mode: both
  228. }
  229. a.arrow-links:hover:after,
  230. a.arrow-links:focus:after,
  231. a.arrow-links:active:after {
  232. transition: all 400ms cubic-bezier(0.165, 0.84, 0.44, 1);
  233. transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  234. animation: arrow2 2.6s cubic-bezier(1, 0, 0, 1) 0.2s infinite;
  235. animation-fill-mode: both
  236. }
  237. a.arrow-links.btns-inverse {
  238. transition-property: color, background-color
  239. }
  240. .animated {
  241. animation-duration: 1s;
  242. animation-fill-mode: both;
  243. }
  244. @keyframes shake {
  245. 0%,
  246. to {
  247. transform: translateZ(0);
  248. }
  249. 10%,
  250. 30%,
  251. 50%,
  252. 70%,
  253. 90% {
  254. transform: translate3d(-10px, 0, 0);
  255. }
  256. 20%,
  257. 40%,
  258. 60%,
  259. 80% {
  260. transform: translate3d(10px, 0, 0);
  261. }
  262. }
  263. .shake {
  264. animation-name: shake;
  265. }
  266. .login-register {
  267. input {
  268. width: 100%;
  269. height: 38px;
  270. padding: 0 20px;
  271. color: #666666;
  272. font-size: 14px;
  273. border: 1px #cccccc solid;
  274. border-radius: 2px;
  275. &::-webkit-input-placeholder {
  276. font-size: 14px;
  277. font-family: PingFangSC-Regular;
  278. font-weight: 400;
  279. color: rgba(204, 204, 204, 1);
  280. }
  281. &:-moz-placeholder {
  282. font-size: 14px;
  283. font-family: PingFangSC-Regular;
  284. font-weight: 400;
  285. color: rgba(204, 204, 204, 1);
  286. }
  287. &::-moz-placeholder {
  288. font-size: 14px;
  289. font-family: PingFangSC-Regular;
  290. font-weight: 400;
  291. color: rgba(204, 204, 204, 1);
  292. }
  293. &:-ms-input-placeholder {
  294. font-size: 14px;
  295. font-family: PingFangSC-Regular;
  296. font-weight: 400;
  297. color: rgba(204, 204, 204, 1);
  298. }
  299. }
  300. }