Skip to content
Closed
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
32 changes: 32 additions & 0 deletions css/gantt.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,38 @@
* -------------------------------------------------------------------------
*/

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

@font-face {
font-family: 'Inter';
src: url('../fonts/Inter18pt-Medium.woff2') format('woff2');
font-weight: 500;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Inter';
src: url('../fonts/Inter18pt-SemiBold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}

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

@keyframes spin {
100% {
transform: rotate(360deg);
Expand Down
Binary file added fonts/Inter18pt-Bold.woff2
Binary file not shown.
Binary file added fonts/Inter18pt-Medium.woff2
Binary file not shown.
Binary file added fonts/Inter18pt-Regular.woff2
Binary file not shown.
Binary file added fonts/Inter18pt-SemiBold.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function plugin_init_gantt()
$PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['gantt'][] = 'public/lib/libs.js';
$PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['gantt'][] = 'js/gantt-helper.js';

$PLUGIN_HOOKS[Hooks::ADD_CSS]['gantt'][] = 'css/gantt.scss';
$PLUGIN_HOOKS[Hooks::ADD_CSS]['gantt'][] = Plugin::getWebDir('gantt') . 'css/gantt.scss';

$PLUGIN_HOOKS[Hooks::REDEFINE_MENUS]['gantt'] = [
'GlpiPlugin\Gantt\ProjectTab',
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = [
use: ['style-loader', 'css-loader'],
},
{
test: /\.ttf$/,
test: /\.(ttf|woff|woff2)$/,
use: ['file-loader']
},
],
Expand Down