Blame view

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