Blame view

assets/plugins/weather-icons-master/less/weather-icons-core.less 1.86 KB
cf76164e6   Ting Chan   20190709
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
  // Base Variables
  @wi-path:                        "../font";
  @wi-version:                     "2.0";
  @wi-css-prefix:                  wi;
  @wi-font-family:                 weathericons;
  
  @font-face {
      font-family: '@{wi-font-family}';
      src: url('@{wi-path}/@{wi-font-family}-regular-webfont.eot');
      src: url('@{wi-path}/@{wi-font-family}-regular-webfont.eot?#iefix') format('embedded-opentype'),
           url('@{wi-path}/@{wi-font-family}-regular-webfont.woff2') format('woff2'),
           url('@{wi-path}/@{wi-font-family}-regular-webfont.woff') format('woff'),
           url('@{wi-path}/@{wi-font-family}-regular-webfont.ttf') format('truetype'),
           url('@{wi-path}/@{wi-font-family}-regular-webfont.svg#weather_iconsregular') format('svg');
      font-weight: normal;
      font-style: normal;
  }
  
  .@{wi-css-prefix} {
    display: inline-block;
    font-family: '@{wi-font-family}';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .@{wi-css-prefix}-fw {
    text-align: center;
    width: 1.4em;
  }
  
  .wi-icon-rotate(@degrees, @rotation) {
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
    -webkit-transform: rotate(@degrees);
        -ms-transform: rotate(@degrees);
            transform: rotate(@degrees);
  }
  
  .wi-icon-flip(@horiz, @vert, @rotation) {
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1);
    -webkit-transform: scale(@horiz, @vert);
        -ms-transform: scale(@horiz, @vert);
            transform: scale(@horiz, @vert);
  }
  
  .@{wi-css-prefix}-rotate-90  { .wi-icon-rotate(90deg, 1);  }
  .@{wi-css-prefix}-rotate-180 { .wi-icon-rotate(180deg, 2); }
  .@{wi-css-prefix}-rotate-270 { .wi-icon-rotate(270deg, 3); }
  
  .@{wi-css-prefix}-flip-horizontal { .wi-icon-flip(-1, 1, 0); }
  .@{wi-css-prefix}-flip-vertical   { .wi-icon-flip(1, -1, 2); }