Blame view

pc-master/src/styles/mixin.scss 673 Bytes
3f535f30   杨鑫   '初始'
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
  // 混淆函数
  
  // 处理倍图
  @mixin bg-image ($url) {
    background-image: url($url + "@2x.png");
    //@media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
    //  background-image: url($url + "@3x.png");
    //}
  }
  
  // 清除浮动
  @mixin clearfix {
    &:after {
      visibility: hidden;
      display: block;
      font-size: 0;
      content: " ";
      clear: both;
      height: 0;
    }
  }
  
  // 超出省略号
  @mixin ellipsis {
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
  }
  
  // 多行超出省略号
  @mixin ellipsisLine ($line:2) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $line;
    overflow: hidden;
  }