Blame view

src/styles/mixins/size.less 476 Bytes
7fa943eb   梁灏   init
1
2
3
4
5
6
7
8
  .size(@width; @height) {
      width: @width;
      height: @height;
  }
  
  .square(@size) {
      .size(@size; @size);
  }
95436eeb   梁灏   add InputNumber UI
9
10
11
12
13
14
15
  
  // fix chrome 12px bug, support ie
  .iconfont-size-under-12px(@size, @rotate: 0deg) {
      display: inline-block;
      @font-scale: unit(@size / @font-size-base);
      font-size: @font-size-base;
      font-size: ~"@{size} \9"; // ie8-9
e2645048   jingsam   :fire: remove tra...
16
      transform: scale(@font-scale) rotate(@rotate);
95436eeb   梁灏   add InputNumber UI
17
18
19
      :root & {
          font-size: @font-size-base; // reset ie9 and above
      }
e2645048   jingsam   :fire: remove tra...
20
  }