aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/fonts/open-sans/_open-sans.scss
blob: ca5851a99de35dfe3792073d9cd438a30bcb731b (plain)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
$open-sans-pathPrefix: null;
  
@if $v-relative-paths == false {
  $open-sans-pathPrefix: "../valo/fonts/open-sans/";
}

@mixin font-open-sans-book ($italic: true) {
  @font-face {
    font-family: 'Open Sans';
    src: url('#{$open-sans-pathPrefix}OpenSans-Regular-webfont.eot');
    src: url('#{$open-sans-pathPrefix}OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('#{$open-sans-pathPrefix}OpenSans-Regular-webfont.woff') format('woff'),
         url('#{$open-sans-pathPrefix}OpenSans-Regular-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  @if $italic {
    @font-face {
      font-family: 'Open Sans';
      src: url('#{$open-sans-pathPrefix}OpenSans-Italic-webfont.eot');
      src: url('#{$open-sans-pathPrefix}OpenSans-Italic-webfont.eot?#iefix') format('embedded-opentype'),
           url('#{$open-sans-pathPrefix}OpenSans-Italic-webfont.woff') format('woff'),
           url('#{$open-sans-pathPrefix}OpenSans-Italic-webfont.ttf') format('truetype');
      font-weight: 400;
      font-style: italic;
    }
  }
}




@mixin font-open-sans-light ($italic: true) {
  @font-face {
    font-family: 'Open Sans';
    src: url('#{$open-sans-pathPrefix}OpenSans-Light-webfont.eot');
    src: url('#{$open-sans-pathPrefix}OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
         url('#{$open-sans-pathPrefix}OpenSans-Light-webfont.woff') format('woff'),
         url('#{$open-sans-pathPrefix}OpenSans-Light-webfont.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
  }
  @if $italic {
    @font-face {
      font-family: 'Open Sans';
      src: url('#{$open-sans-pathPrefix}OpenSans-LightItalic-webfont.eot');
      src: url('#{$open-sans-pathPrefix}OpenSans-LightItalic-webfont.eot?#iefix') format('embedded-opentype'),
           url('#{$open-sans-pathPrefix}OpenSans-LightItalic-webfont.woff') format('woff'),
           url('#{$open-sans-pathPrefix}OpenSans-LightItalic-webfont.ttf') format('truetype');
      font-weight: 300;
      font-style: italic;
    }
  }
}





@mixin font-open-sans-semibold ($italic: true) {
  @font-face {
    font-family: 'Open Sans';
    src: url('#{$open-sans-pathPrefix}OpenSans-Semibold-webfont.eot');
    src: url('#{$open-sans-pathPrefix}OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'),
         url('#{$open-sans-pathPrefix}OpenSans-Semibold-webfont.woff') format('woff'),
         url('#{$open-sans-pathPrefix}OpenSans-Semibold-webfont.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
  }
  @if $italic {
    @font-face {
      font-family: 'Open Sans';
      src: url('#{$open-sans-pathPrefix}OpenSans-SemiboldItalic-webfont.eot');
      src: url('#{$open-sans-pathPrefix}OpenSans-SemiboldItalic-webfont.eot?#iefix') format('embedded-opentype'),
           url('#{$open-sans-pathPrefix}OpenSans-SemiboldItalic-webfont.woff') format('woff'),
           url('#{$open-sans-pathPrefix}OpenSans-SemiboldItalic-webfont.ttf') format('truetype');
      font-weight: 600;
      font-style: italic;
    }
  }
}



@mixin font-open-sans-bold ($italic: true) {
  @font-face {
    font-family: 'Open Sans';
    src: url('#{$open-sans-pathPrefix}OpenSans-Bold-webfont.eot');
    src: url('#{$open-sans-pathPrefix}OpenSans-Bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('#{$open-sans-pathPrefix}OpenSans-Bold-webfont.woff') format('woff'),
         url('#{$open-sans-pathPrefix}OpenSans-Bold-webfont.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  @if $italic {
    @font-face {
      font-family: 'Open Sans';
      src: url('#{$open-sans-pathPrefix}OpenSans-BoldItalic-webfont.eot');
      src: url('#{$open-sans-pathPrefix}OpenSans-BoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
           url('#{$open-sans-pathPrefix}OpenSans-BoldItalic-webfont.woff') format('woff'),
           url('#{$open-sans-pathPrefix}OpenSans-BoldItalic-webfont.ttf') format('truetype');
      font-weight: 700;
      font-style: italic;
    }
  }
}





@mixin font-open-sans-extrabold ($italic) {
  @font-face {
    font-family: 'Open Sans';
    src: url('#{$open-sans-pathPrefix}OpenSans-ExtraBold-webfont.eot');
    src: url('#{$open-sans-pathPrefix}OpenSans-ExtraBold-webfont.eot?#iefix') format('embedded-opentype'),
         url('#{$open-sans-pathPrefix}OpenSans-ExtraBold-webfont.woff') format('woff'),
         url('#{$open-sans-pathPrefix}OpenSans-ExtraBold-webfont.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
  }
  @if $italic {
    @font-face {
      font-family: 'Open Sans';
      src: url('#{$open-sans-pathPrefix}OpenSans-ExtraBoldItalic-webfont.eot');
      src: url('#{$open-sans-pathPrefix}OpenSans-ExtraBoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
           url('#{$open-sans-pathPrefix}OpenSans-ExtraBoldItalic-webfont.woff') format('woff'),
           url('#{$open-sans-pathPrefix}OpenSans-ExtraBoldItalic-webfont.ttf') format('truetype');
      font-weight: 900;
      font-style: italic;
    }  
  }
}





@mixin font-open-sans ($italic: false, $light: false, $regular: true, $medium: false, $bold: false, $black: false) {
  @if $light {
    @include font-open-sans-light($italic);
  }
  @if $regular {
    @include font-open-sans-book($italic);
  }
  @if $medium {
    @include font-open-sans-semibold($italic);
  }
  @if $bold {
    @include font-open-sans-bold($italic);
  }
  @if $black {
    @include font-open-sans-extrabold($italic);
  }
}