a611aec90d0aa1be612139eca09520d46da5f4c4a68954ce4bb0b6caa428b51a6095c331d2b434f592a0b568b57527ded07419b8ae7b4731e779c4252bd3a6 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @import 'mixins/mixins';
  2. @import 'common/var';
  3. @mixin circle-size($size) {
  4. width: $size;
  5. height: $size;
  6. line-height: $size;
  7. }
  8. @include b(skeleton) {
  9. @include e(item) {
  10. background: $--skeleton-color;
  11. display: inline-block;
  12. height: 16px;
  13. border-radius: $--border-radius-base;
  14. width: 100%;
  15. }
  16. @include e(circle) {
  17. border-radius: 50%;
  18. @include circle-size($--avatar-medium-size);
  19. @include m(lg) {
  20. @include circle-size($--avatar-large-size);
  21. }
  22. @include m(md) {
  23. @include circle-size($--avatar-small-size);
  24. }
  25. }
  26. @include e(button) {
  27. height: 40px;
  28. width: 64px;
  29. border-radius: 4px;
  30. }
  31. @include e(p) {
  32. width: 100%;
  33. @include when(last) {
  34. width: 61%;
  35. }
  36. @include when(first) {
  37. width: 33%;
  38. }
  39. }
  40. @include e(text) {
  41. width: 100%;
  42. height: $--font-size-small;
  43. }
  44. @include e(caption) {
  45. height: $--font-size-extra-small;
  46. }
  47. @include e(h1) {
  48. height: $--font-size-extra-large;
  49. }
  50. @include e(h3) {
  51. height: $--font-size-large;
  52. }
  53. @include e(h5) {
  54. height: $--font-size-medium;
  55. }
  56. @include e(image) {
  57. width: unset;
  58. display: flex;
  59. align-items: center;
  60. justify-content: center;
  61. border-radius: 0;
  62. svg {
  63. fill: $--svg-monochrome-grey;
  64. width: 22%;
  65. height: 22%;
  66. }
  67. }
  68. }