Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added frontend/public/fonts/hack-bold.woff
Binary file not shown.
Binary file added frontend/public/fonts/hack-bold.woff2
Binary file not shown.
Binary file added frontend/public/fonts/hack-bolditalic.woff
Binary file not shown.
Binary file added frontend/public/fonts/hack-italic.woff
Binary file not shown.
Binary file added frontend/public/fonts/hack-italic.woff2
Binary file not shown.
Binary file added frontend/public/fonts/hack-regular.woff
Binary file not shown.
Binary file added frontend/public/fonts/hack-regular.woff2
Binary file not shown.
4 changes: 0 additions & 4 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Gitbase Playground</title>

<!-- TODO @carlosms download and serve fonts from our server -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css">
</head>
<body>
<noscript>
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/App.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import './variables.less';
@import './fonts.less';

html,
body,
Expand Down Expand Up @@ -89,7 +90,7 @@ body {

&:before {
display: block;
content: "●\A●\A●";
content: '●\A●\A●';
white-space: pre;
text-align: center;
line-height: 1em;
Expand Down Expand Up @@ -178,6 +179,6 @@ body {
}

.uast-item.hovered {
background-color: fade(@secondary, 7%)
background-color: fade(@secondary, 7%);
}
}
118 changes: 118 additions & 0 deletions frontend/src/fonts.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/*!
* Hack typeface https://github.com/source-foundry/Hack
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
*/
/* FONT PATHS
* -------------------------- */
@font-face {
font-family: 'Hack';
src: url('/fonts/hack-regular.woff2') format('woff2'),
url('/fonts/hack-regular.woff') format('woff');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('/fonts/hack-bold.woff2') format('woff2'),
url('/fonts/hack-bold.woff') format('woff');
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('/fonts/hack-italic.woff2') format('woff2'),
url('/fonts/hack-italic.woff') format('woff');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'Hack';
src: url('/fonts/hack-bolditalic.woff2') format('woff2'),
url('/fonts/hack-bolditalic.woff') format('woff');
font-weight: 700;
font-style: italic;
}

/*!
* Source Sans Pro typeface https://fonts.google.com/specimen/Source+Sans+Pro
* License: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL_web
*/
/* FONT PATHS
* -------------------------- */

/* cyrillic-ext */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
url(/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lujVj9_mf.woff2)
format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,
U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
url(/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qPK7lujVj9_mf.woff2)
format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
url(/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNK7lujVj9_mf.woff2)
format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
url(/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qO67lujVj9_mf.woff2)
format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
url(/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qN67lujVj9_mf.woff2)
format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
url(/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lujVj9_mf.woff2)
format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
url(/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
U+2215, U+FEFF, U+FFFD;
}