summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-26 12:11:39 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-12-25 23:11:39 -0500
commitc0f879546261b445e3232e31c20388d0af1eb816 (patch)
treefe096c228fdf23dceea2235740e844feb0002080 /web_src
parent3e166bd0550eceade275023616a02a8bf12d58c9 (diff)
downloadgitea-c0f879546261b445e3232e31c20388d0af1eb816.tar.gz
gitea-c0f879546261b445e3232e31c20388d0af1eb816.zip
Upgrade lato fonts to v16. (#9498)
* Upgrade lato fonts to v16 * Upgrade lato fonts to v16 * fix bug
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/_base.less88
1 files changed, 70 insertions, 18 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 50911487a7..721863a70f 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -1,33 +1,85 @@
+/* lato-regular - latin */
@font-face {
font-family: 'Lato';
- src: url('../vendor/assets/lato-fonts/lato-regular.eot');
- src: url('../vendor/assets/lato-fonts/lato-regular.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-regular.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-regular.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-regular.ttf') format('truetype');
- font-weight: 400;
font-style: normal;
-}
-
+ font-weight: 400;
+ src: url('../vendor/assets/lato-fonts/lato-v16-latin-regular.eot'); /* IE9 Compat Modes */
+ src:
+ local('Lato Regular'),
+ local('Lato-Regular'),
+ /* IE6-IE8 */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-regular.eot?#iefix') format('embedded-opentype'),
+ /* Super Modern Browsers */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-regular.woff2') format('woff2'),
+ /* Modern Browsers */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-regular.woff') format('woff'),
+ /* Safari, Android, iOS */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-regular.ttf') format('truetype'),
+ /* Legacy iOS */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-regular.svg#Lato') format('svg');
+}
+
+/* lato-italic - latin */
@font-face {
font-family: 'Lato';
- src: url('../vendor/assets/lato-fonts/lato-italic.eot');
- src: url('../vendor/assets/lato-fonts/lato-italic.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-italic.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-italic.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-italic.ttf') format('truetype');
- font-weight: 400;
font-style: italic;
-}
-
+ font-weight: 400;
+ src: url('../vendor/assets/lato-fonts/lato-v16-latin-italic.eot'); /* IE9 Compat Modes */
+ src:
+ local('Lato Italic'),
+ local('Lato-Italic'),
+ /* IE6-IE8 */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-italic.eot?#iefix') format('embedded-opentype'),
+ /* Super Modern Browsers */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-italic.woff2') format('woff2'),
+ /* Modern Browsers */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-italic.woff') format('woff'),
+ /* Safari, Android, iOS */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-italic.ttf') format('truetype'),
+ /* Legacy iOS */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-italic.svg#Lato') format('svg');
+}
+
+/* lato-700 - latin */
@font-face {
font-family: 'Lato';
- src: url('../vendor/assets/lato-fonts/lato-bold.eot');
- src: url('../vendor/assets/lato-fonts/lato-bold.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-bold.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-bold.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-bold.ttf') format('truetype');
- font-weight: 700;
font-style: normal;
-}
-
+ font-weight: 700;
+ src: url('../vendor/assets/lato-fonts/lato-v16-latin-700.eot'); /* IE9 Compat Modes */
+ src:
+ local('Lato Bold'),
+ local('Lato-Bold'),
+ /* IE6-IE8 */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700.eot?#iefix') format('embedded-opentype'),
+ /* Super Modern Browsers */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700.woff2') format('woff2'),
+ /* Modern Browsers */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700.woff') format('woff'),
+ /* Safari, Android, iOS */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700.ttf') format('truetype'),
+ /* Legacy iOS */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700.svg#Lato') format('svg');
+}
+
+/* lato-700italic - latin */
@font-face {
font-family: 'Lato';
- src: url('../vendor/assets/lato-fonts/lato-bolditalic.eot');
- src: url('../vendor/assets/lato-fonts/lato-bolditalic.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-bolditalic.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-bolditalic.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-bolditalic.ttf') format('truetype');
- font-weight: 700;
font-style: italic;
+ font-weight: 700;
+ src: url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.eot'); /* IE9 Compat Modes */
+ src:
+ local('Lato Bold Italic'),
+ local('Lato-BoldItalic'),
+ /* IE6-IE8 */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.eot?#iefix') format('embedded-opentype'),
+ /* Super Modern Browsers */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.woff2') format('woff2'),
+ /* Modern Browsers */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.woff') format('woff'),
+ /* Safari, Android, iOS */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.ttf') format('truetype'),
+ /* Legacy iOS */
+ url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.svg#Lato') format('svg');
}
@font-face {