Преглед на файлове

Improve font loading

Include web fonts in loading.
tags/0.3.0
TheoryOfNekomata преди 3 години
родител
ревизия
bfb49948d5
променени са 18 файла, в които са добавени 59 реда и са изтрити 6 реда
  1. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Bold.eot
  2. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Bold.ttf
  3. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Bold.woff
  4. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Bold.woff2
  5. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-BoldItalic.eot
  6. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-BoldItalic.ttf
  7. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-BoldItalic.woff
  8. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-BoldItalic.woff2
  9. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Italic.eot
  10. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Italic.ttf
  11. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Italic.woff
  12. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Italic.woff2
  13. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Regular.eot
  14. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Regular.ttf
  15. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Regular.woff
  16. Двоични данни
      packages/react-common-docs/public/fonts/mononoki/mononoki-Regular.woff2
  17. +57
    -5
      packages/react-common-docs/public/theme.css
  18. +2
    -1
      packages/react-common-docs/src/components/Sidebar/Sidebar.tsx

Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Bold.eot Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Bold.ttf Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Bold.woff Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Bold.woff2 Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-BoldItalic.eot Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-BoldItalic.ttf Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-BoldItalic.woff Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-BoldItalic.woff2 Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Italic.eot Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Italic.ttf Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Italic.woff Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Italic.woff2 Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Regular.eot Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Regular.ttf Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Regular.woff Целия файл


Двоични данни
packages/react-common-docs/public/fonts/mononoki/mononoki-Regular.woff2 Целия файл


+ 57
- 5
packages/react-common-docs/public/theme.css Целия файл

@@ -2,50 +2,102 @@
font-family: 'Encode Sans';
font-stretch: semi-expanded;
font-weight: 400;
font-display: swap;
src:
local('Encode Sans Semi Expanded'),
local('Encode Sans');
local('Encode Sans'),
url(https://fonts.gstatic.com/s/encodesanssemiexpanded/v6/ke83OhAPMEZs-BDuzwftTNJ85JvwMOzE9d9Cca5TO401LgrjKXY.woff2) format('woff2');
}

@font-face {
font-family: 'Encode Sans';
font-stretch: semi-expanded;
font-weight: 700;
font-display: swap;
src:
local('Encode Sans Semi Expanded Bold'),
local('Encode Sans Semi Expanded'),
local('Encode Sans');
local('Encode Sans'),
url(https://fonts.gstatic.com/s/encodesanssemiexpanded/v6/ke8yOhAPMEZs-BDuzwftTNJ85JvwMOzE9d9Cca5TMzYQOyfBJFyUGWQ.woff2) format('woff2');
}

@font-face {
font-family: 'Encode Sans';
font-stretch: condensed;
font-weight: 100;
font-display: swap;
src:
local('Encode Sans Condensed Thin'),
local('Encode Sans Condensed'),
local('Encode Sans');
local('Encode Sans'),
url(https://fonts.gstatic.com/s/encodesanscondensed/v5/j8_76_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-5Z-OJwsnIHKQ.woff2) format('woff2');
}

@font-face {
font-family: 'Encode Sans';
font-stretch: condensed;
font-weight: 200;
font-display: swap;
src:
local('Encode Sans Condensed ExtraLight'),
local('Encode Sans Condensed Extra Light'),
local('Encode Sans Condensed'),
local('Encode Sans');
local('Encode Sans'),
url(https://fonts.gstatic.com/s/encodesanscondensed/v5/j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-SY6ZAC4ICHiYFQ.woff2) format('woff2');
}

@font-face {
font-family: 'Encode Sans';
font-stretch: condensed;
font-weight: 300;
font-display: swap;
src:
local('Encode Sans Condensed Light'),
local('Encode Sans Condensed'),
local('Encode Sans');
local('Encode Sans'),
url(https://fonts.gstatic.com/s/encodesanscondensed/v5/j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-LY2ZAC4ICHiYFQ.woff2) format('woff2');
}

@font-face {
font-family: 'mononoki';
font-weight: 400;
font-style: normal;
font-display: swap;
src:
local('mononoki'),
url(fonts/mononoki/mononoki-Regular.woff2) format('woff2');
}

@font-face {
font-family: 'mononoki';
font-weight: 700;
font-style: normal;
font-display: swap;
src:
local('mononoki Bold'),
local('mononoki'),
url(fonts/mononoki/mononoki-Bold.woff2) format('woff2');
}

@font-face {
font-family: 'mononoki';
font-weight: 400;
font-style: italic;
font-display: swap;
src:
local('mononoki'),
url(fonts/mononoki/mononoki-Italic.woff2) format('woff2');
}

@font-face {
font-family: 'mononoki';
font-weight: 700;
font-style: italic;
font-display: swap;
src:
local('mononoki Bold'),
local('mononoki'),
url(fonts/mononoki/mononoki-BoldItalic.woff2) format('woff2');
}

:root {


+ 2
- 1
packages/react-common-docs/src/components/Sidebar/Sidebar.tsx Целия файл

@@ -78,9 +78,10 @@ const SidebarToggle = styled('a')({

const Actions = styled('div')({
marginBottom: '4rem',
display: 'flex',
display: 'grid',
gap: '1rem',
alignItems: 'center',
gridTemplateColumns: 'auto auto',
})

const NavWrapper = styled('nav')({


Зареждане…
Отказ
Запис