mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-26 00:41:25 -06:00
3e0ae97268
This commit changes how fonts are used. - remove usage of bundled fonts and only system fonts are used instead - by using alias in httpd conf - by using local("Font Name") directive in font-face - removed usage of overpass font - redefined Open Sans font-face declarations. Note: upstream is doing the same change so we will be fine on upgrade. - introduce variable.less for variable definitions and overrides. This file will be very useful when we upgrade to newer RCUE so we will be able to redefine their and bootstrap's variables. Fixes: https://fedorahosted.org/freeipa/ticket/2861
95 lines
2.4 KiB
Plaintext
95 lines
2.4 KiB
Plaintext
//
|
|
// Font face definitions are different than original RCUE ones.
|
|
// Here we supply only ttf variants. Additionally local variant can be
|
|
// used so it can save some load time in some browsers.
|
|
//
|
|
// This approach has a disadvantage:
|
|
// - fonts do not work in IE8 and below
|
|
//
|
|
// Advantage is that it nicely fits into Fedora packaging guidelines
|
|
//
|
|
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
src: local('Open Sans'),
|
|
url('../fonts/open-sans/OpenSans-Regular.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: italic;
|
|
font-weight: normal;
|
|
src: local('Open Sans Italic'),
|
|
url('../fonts/open-sans/OpenSans-Italic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: normal;
|
|
font-weight: 300;
|
|
src: local('Open Sans Light'),
|
|
url('../fonts/open-sans/OpenSans-Light.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: italic;
|
|
font-weight: 300;
|
|
src: local('Open Sans Light Italic'),
|
|
url('../fonts/open-sans/OpenSans-LightItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
src: local('Open Sans Semibold'),
|
|
url('../fonts/open-sans/OpenSans-Semibold.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: italic;
|
|
font-weight: 600;
|
|
src: local('Open Sans Semibold Italic'),
|
|
url('../fonts/open-sans/OpenSans-SemiboldItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: local('Open Sans Bold'),
|
|
url('../fonts/open-sans/OpenSans-Bold.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: italic;
|
|
font-weight: 700;
|
|
src: local('Open Sans Bold Italic'),
|
|
url('../fonts/open-sans/OpenSans-BoldItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: normal;
|
|
font-weight: 900;
|
|
src: local('Open Sans Extrabold'),
|
|
url('../fonts/open-sans/OpenSans-ExtraBold.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: italic;
|
|
font-weight: 900;
|
|
src: local('Open Sans Extrabold Italic'),
|
|
url('../fonts/open-sans/OpenSans-ExtraBoldItalic.ttf') format('truetype');
|
|
}
|
|
|
|
body {
|
|
font-family: 'Open Sans', Helvetica, Arial, sans-serif;
|
|
} |