skeleton.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. /* BEM support Func
  2. -------------------------- */
  3. /* Element Chalk Variables */
  4. /* Transition
  5. -------------------------- */
  6. /* Color
  7. -------------------------- */
  8. /* 53a8ff */
  9. /* 66b1ff */
  10. /* 79bbff */
  11. /* 8cc5ff */
  12. /* a0cfff */
  13. /* b3d8ff */
  14. /* c6e2ff */
  15. /* d9ecff */
  16. /* ecf5ff */
  17. /* Link
  18. -------------------------- */
  19. /* Border
  20. -------------------------- */
  21. /* Fill
  22. -------------------------- */
  23. /* Typography
  24. -------------------------- */
  25. /* Size
  26. -------------------------- */
  27. /* z-index
  28. -------------------------- */
  29. /* Disable base
  30. -------------------------- */
  31. /* Icon
  32. -------------------------- */
  33. /* Checkbox
  34. -------------------------- */
  35. /* Radio
  36. -------------------------- */
  37. /* Select
  38. -------------------------- */
  39. /* Alert
  40. -------------------------- */
  41. /* MessageBox
  42. -------------------------- */
  43. /* Message
  44. -------------------------- */
  45. /* Notification
  46. -------------------------- */
  47. /* Input
  48. -------------------------- */
  49. /* Cascader
  50. -------------------------- */
  51. /* Group
  52. -------------------------- */
  53. /* Tab
  54. -------------------------- */
  55. /* Button
  56. -------------------------- */
  57. /* cascader
  58. -------------------------- */
  59. /* Switch
  60. -------------------------- */
  61. /* Dialog
  62. -------------------------- */
  63. /* Table
  64. -------------------------- */
  65. /* Pagination
  66. -------------------------- */
  67. /* Popup
  68. -------------------------- */
  69. /* Popover
  70. -------------------------- */
  71. /* Tooltip
  72. -------------------------- */
  73. /* Tag
  74. -------------------------- */
  75. /* Tree
  76. -------------------------- */
  77. /* Dropdown
  78. -------------------------- */
  79. /* Badge
  80. -------------------------- */
  81. /* Card
  82. --------------------------*/
  83. /* Slider
  84. --------------------------*/
  85. /* Steps
  86. --------------------------*/
  87. /* Menu
  88. --------------------------*/
  89. /* Rate
  90. --------------------------*/
  91. /* DatePicker
  92. --------------------------*/
  93. /* Loading
  94. --------------------------*/
  95. /* Scrollbar
  96. --------------------------*/
  97. /* Carousel
  98. --------------------------*/
  99. /* Collapse
  100. --------------------------*/
  101. /* Transfer
  102. --------------------------*/
  103. /* Header
  104. --------------------------*/
  105. /* Footer
  106. --------------------------*/
  107. /* Main
  108. --------------------------*/
  109. /* Timeline
  110. --------------------------*/
  111. /* Backtop
  112. --------------------------*/
  113. /* Link
  114. --------------------------*/
  115. /* Calendar
  116. --------------------------*/
  117. /* Form
  118. -------------------------- */
  119. /* Avatar
  120. --------------------------*/
  121. /* Empty
  122. -------------------------- */
  123. /* Descriptions
  124. -------------------------- */
  125. /* Skeleton
  126. --------------------------*/
  127. /* Svg
  128. --------------- */
  129. /* Result
  130. -------------------------- */
  131. /* Break-point
  132. --------------------------*/
  133. /* Break-points
  134. -------------------------- */
  135. /* Scrollbar
  136. -------------------------- */
  137. /* Placeholder
  138. -------------------------- */
  139. /* BEM
  140. -------------------------- */
  141. /* Element Chalk Variables */
  142. /* Transition
  143. -------------------------- */
  144. /* Color
  145. -------------------------- */
  146. /* 53a8ff */
  147. /* 66b1ff */
  148. /* 79bbff */
  149. /* 8cc5ff */
  150. /* a0cfff */
  151. /* b3d8ff */
  152. /* c6e2ff */
  153. /* d9ecff */
  154. /* ecf5ff */
  155. /* Link
  156. -------------------------- */
  157. /* Border
  158. -------------------------- */
  159. /* Fill
  160. -------------------------- */
  161. /* Typography
  162. -------------------------- */
  163. /* Size
  164. -------------------------- */
  165. /* z-index
  166. -------------------------- */
  167. /* Disable base
  168. -------------------------- */
  169. /* Icon
  170. -------------------------- */
  171. /* Checkbox
  172. -------------------------- */
  173. /* Radio
  174. -------------------------- */
  175. /* Select
  176. -------------------------- */
  177. /* Alert
  178. -------------------------- */
  179. /* MessageBox
  180. -------------------------- */
  181. /* Message
  182. -------------------------- */
  183. /* Notification
  184. -------------------------- */
  185. /* Input
  186. -------------------------- */
  187. /* Cascader
  188. -------------------------- */
  189. /* Group
  190. -------------------------- */
  191. /* Tab
  192. -------------------------- */
  193. /* Button
  194. -------------------------- */
  195. /* cascader
  196. -------------------------- */
  197. /* Switch
  198. -------------------------- */
  199. /* Dialog
  200. -------------------------- */
  201. /* Table
  202. -------------------------- */
  203. /* Pagination
  204. -------------------------- */
  205. /* Popup
  206. -------------------------- */
  207. /* Popover
  208. -------------------------- */
  209. /* Tooltip
  210. -------------------------- */
  211. /* Tag
  212. -------------------------- */
  213. /* Tree
  214. -------------------------- */
  215. /* Dropdown
  216. -------------------------- */
  217. /* Badge
  218. -------------------------- */
  219. /* Card
  220. --------------------------*/
  221. /* Slider
  222. --------------------------*/
  223. /* Steps
  224. --------------------------*/
  225. /* Menu
  226. --------------------------*/
  227. /* Rate
  228. --------------------------*/
  229. /* DatePicker
  230. --------------------------*/
  231. /* Loading
  232. --------------------------*/
  233. /* Scrollbar
  234. --------------------------*/
  235. /* Carousel
  236. --------------------------*/
  237. /* Collapse
  238. --------------------------*/
  239. /* Transfer
  240. --------------------------*/
  241. /* Header
  242. --------------------------*/
  243. /* Footer
  244. --------------------------*/
  245. /* Main
  246. --------------------------*/
  247. /* Timeline
  248. --------------------------*/
  249. /* Backtop
  250. --------------------------*/
  251. /* Link
  252. --------------------------*/
  253. /* Calendar
  254. --------------------------*/
  255. /* Form
  256. -------------------------- */
  257. /* Avatar
  258. --------------------------*/
  259. /* Empty
  260. -------------------------- */
  261. /* Descriptions
  262. -------------------------- */
  263. /* Skeleton
  264. --------------------------*/
  265. /* Svg
  266. --------------- */
  267. /* Result
  268. -------------------------- */
  269. /* Break-point
  270. --------------------------*/
  271. /* BEM support Func
  272. -------------------------- */
  273. /* Element Chalk Variables */
  274. /* Transition
  275. -------------------------- */
  276. /* Color
  277. -------------------------- */
  278. /* 53a8ff */
  279. /* 66b1ff */
  280. /* 79bbff */
  281. /* 8cc5ff */
  282. /* a0cfff */
  283. /* b3d8ff */
  284. /* c6e2ff */
  285. /* d9ecff */
  286. /* ecf5ff */
  287. /* Link
  288. -------------------------- */
  289. /* Border
  290. -------------------------- */
  291. /* Fill
  292. -------------------------- */
  293. /* Typography
  294. -------------------------- */
  295. /* Size
  296. -------------------------- */
  297. /* z-index
  298. -------------------------- */
  299. /* Disable base
  300. -------------------------- */
  301. /* Icon
  302. -------------------------- */
  303. /* Checkbox
  304. -------------------------- */
  305. /* Radio
  306. -------------------------- */
  307. /* Select
  308. -------------------------- */
  309. /* Alert
  310. -------------------------- */
  311. /* MessageBox
  312. -------------------------- */
  313. /* Message
  314. -------------------------- */
  315. /* Notification
  316. -------------------------- */
  317. /* Input
  318. -------------------------- */
  319. /* Cascader
  320. -------------------------- */
  321. /* Group
  322. -------------------------- */
  323. /* Tab
  324. -------------------------- */
  325. /* Button
  326. -------------------------- */
  327. /* cascader
  328. -------------------------- */
  329. /* Switch
  330. -------------------------- */
  331. /* Dialog
  332. -------------------------- */
  333. /* Table
  334. -------------------------- */
  335. /* Pagination
  336. -------------------------- */
  337. /* Popup
  338. -------------------------- */
  339. /* Popover
  340. -------------------------- */
  341. /* Tooltip
  342. -------------------------- */
  343. /* Tag
  344. -------------------------- */
  345. /* Tree
  346. -------------------------- */
  347. /* Dropdown
  348. -------------------------- */
  349. /* Badge
  350. -------------------------- */
  351. /* Card
  352. --------------------------*/
  353. /* Slider
  354. --------------------------*/
  355. /* Steps
  356. --------------------------*/
  357. /* Menu
  358. --------------------------*/
  359. /* Rate
  360. --------------------------*/
  361. /* DatePicker
  362. --------------------------*/
  363. /* Loading
  364. --------------------------*/
  365. /* Scrollbar
  366. --------------------------*/
  367. /* Carousel
  368. --------------------------*/
  369. /* Collapse
  370. --------------------------*/
  371. /* Transfer
  372. --------------------------*/
  373. /* Header
  374. --------------------------*/
  375. /* Footer
  376. --------------------------*/
  377. /* Main
  378. --------------------------*/
  379. /* Timeline
  380. --------------------------*/
  381. /* Backtop
  382. --------------------------*/
  383. /* Link
  384. --------------------------*/
  385. /* Calendar
  386. --------------------------*/
  387. /* Form
  388. -------------------------- */
  389. /* Avatar
  390. --------------------------*/
  391. /* Empty
  392. -------------------------- */
  393. /* Descriptions
  394. -------------------------- */
  395. /* Skeleton
  396. --------------------------*/
  397. /* Svg
  398. --------------- */
  399. /* Result
  400. -------------------------- */
  401. /* Break-point
  402. --------------------------*/
  403. /* Break-points
  404. -------------------------- */
  405. /* Scrollbar
  406. -------------------------- */
  407. /* Placeholder
  408. -------------------------- */
  409. /* BEM
  410. -------------------------- */
  411. /* Element Chalk Variables */
  412. /* Transition
  413. -------------------------- */
  414. /* Color
  415. -------------------------- */
  416. /* 53a8ff */
  417. /* 66b1ff */
  418. /* 79bbff */
  419. /* 8cc5ff */
  420. /* a0cfff */
  421. /* b3d8ff */
  422. /* c6e2ff */
  423. /* d9ecff */
  424. /* ecf5ff */
  425. /* Link
  426. -------------------------- */
  427. /* Border
  428. -------------------------- */
  429. /* Fill
  430. -------------------------- */
  431. /* Typography
  432. -------------------------- */
  433. /* Size
  434. -------------------------- */
  435. /* z-index
  436. -------------------------- */
  437. /* Disable base
  438. -------------------------- */
  439. /* Icon
  440. -------------------------- */
  441. /* Checkbox
  442. -------------------------- */
  443. /* Radio
  444. -------------------------- */
  445. /* Select
  446. -------------------------- */
  447. /* Alert
  448. -------------------------- */
  449. /* MessageBox
  450. -------------------------- */
  451. /* Message
  452. -------------------------- */
  453. /* Notification
  454. -------------------------- */
  455. /* Input
  456. -------------------------- */
  457. /* Cascader
  458. -------------------------- */
  459. /* Group
  460. -------------------------- */
  461. /* Tab
  462. -------------------------- */
  463. /* Button
  464. -------------------------- */
  465. /* cascader
  466. -------------------------- */
  467. /* Switch
  468. -------------------------- */
  469. /* Dialog
  470. -------------------------- */
  471. /* Table
  472. -------------------------- */
  473. /* Pagination
  474. -------------------------- */
  475. /* Popup
  476. -------------------------- */
  477. /* Popover
  478. -------------------------- */
  479. /* Tooltip
  480. -------------------------- */
  481. /* Tag
  482. -------------------------- */
  483. /* Tree
  484. -------------------------- */
  485. /* Dropdown
  486. -------------------------- */
  487. /* Badge
  488. -------------------------- */
  489. /* Card
  490. --------------------------*/
  491. /* Slider
  492. --------------------------*/
  493. /* Steps
  494. --------------------------*/
  495. /* Menu
  496. --------------------------*/
  497. /* Rate
  498. --------------------------*/
  499. /* DatePicker
  500. --------------------------*/
  501. /* Loading
  502. --------------------------*/
  503. /* Scrollbar
  504. --------------------------*/
  505. /* Carousel
  506. --------------------------*/
  507. /* Collapse
  508. --------------------------*/
  509. /* Transfer
  510. --------------------------*/
  511. /* Header
  512. --------------------------*/
  513. /* Footer
  514. --------------------------*/
  515. /* Main
  516. --------------------------*/
  517. /* Timeline
  518. --------------------------*/
  519. /* Backtop
  520. --------------------------*/
  521. /* Link
  522. --------------------------*/
  523. /* Calendar
  524. --------------------------*/
  525. /* Form
  526. -------------------------- */
  527. /* Avatar
  528. --------------------------*/
  529. /* Empty
  530. -------------------------- */
  531. /* Descriptions
  532. -------------------------- */
  533. /* Skeleton
  534. --------------------------*/
  535. /* Svg
  536. --------------- */
  537. /* Result
  538. -------------------------- */
  539. /* Break-point
  540. --------------------------*/
  541. .el-skeleton__item {
  542. background: #f2f2f2;
  543. display: inline-block;
  544. height: 16px;
  545. border-radius: 4px;
  546. width: 100%; }
  547. .el-skeleton__circle {
  548. border-radius: 50%;
  549. width: 36px;
  550. height: 36px;
  551. line-height: 36px; }
  552. .el-skeleton__circle--lg {
  553. width: 40px;
  554. height: 40px;
  555. line-height: 40px; }
  556. .el-skeleton__circle--md {
  557. width: 28px;
  558. height: 28px;
  559. line-height: 28px; }
  560. .el-skeleton__button {
  561. height: 40px;
  562. width: 64px;
  563. border-radius: 4px; }
  564. .el-skeleton__p {
  565. width: 100%; }
  566. .el-skeleton__p.is-last {
  567. width: 61%; }
  568. .el-skeleton__p.is-first {
  569. width: 33%; }
  570. .el-skeleton__text {
  571. width: 100%;
  572. height: 13px; }
  573. .el-skeleton__caption {
  574. height: 12px; }
  575. .el-skeleton__h1 {
  576. height: 20px; }
  577. .el-skeleton__h3 {
  578. height: 18px; }
  579. .el-skeleton__h5 {
  580. height: 16px; }
  581. .el-skeleton__image {
  582. width: unset;
  583. display: -webkit-box;
  584. display: -ms-flexbox;
  585. display: flex;
  586. -webkit-box-align: center;
  587. -ms-flex-align: center;
  588. align-items: center;
  589. -webkit-box-pack: center;
  590. -ms-flex-pack: center;
  591. justify-content: center;
  592. border-radius: 0; }
  593. .el-skeleton__image svg {
  594. fill: #DCDDE0;
  595. width: 22%;
  596. height: 22%; }
  597. @-webkit-keyframes el-skeleton-loading {
  598. 0% {
  599. background-position: 100% 50%; }
  600. 100% {
  601. background-position: 0 50%; } }
  602. @keyframes el-skeleton-loading {
  603. 0% {
  604. background-position: 100% 50%; }
  605. 100% {
  606. background-position: 0 50%; } }
  607. .el-skeleton {
  608. width: 100%; }
  609. .el-skeleton__first-line {
  610. height: 16px;
  611. margin-top: 16px;
  612. background: #f2f2f2; }
  613. .el-skeleton__paragraph {
  614. height: 16px;
  615. margin-top: 16px;
  616. background: #f2f2f2; }
  617. .el-skeleton.is-animated .el-skeleton__item {
  618. background: -webkit-gradient(linear, left top, right top, color-stop(25%, #f2f2f2), color-stop(37%, #e6e6e6), color-stop(63%, #f2f2f2));
  619. background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  620. background-size: 400% 100%;
  621. -webkit-animation: el-skeleton-loading 1.4s ease infinite;
  622. animation: el-skeleton-loading 1.4s ease infinite; }