Skip to content

Commit

Permalink
deps: integrate fonts via packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Kiefer committed Dec 15, 2022
1 parent 8601b85 commit 946beda
Show file tree
Hide file tree
Showing 24 changed files with 120 additions and 2,872 deletions.
Binary file not shown.
2,731 changes: 0 additions & 2,731 deletions assets/font-awesome-5/29f589f173dcc69ef6c805b711894998.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-Bold.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-BoldItalic.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-ExtraLight.ttf
Binary file not shown.
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-Italic.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-Light.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-LightItalic.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-Medium.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-MediumItalic.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-Regular.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-SemiBold.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-SemiBoldItalic.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-Thin.ttf
Binary file not shown.
Binary file removed assets/ibm-plex-font/IBMPlexSans-ThinItalic.ttf
Binary file not shown.
93 changes: 0 additions & 93 deletions assets/ibm-plex-font/OFL.txt

This file was deleted.

43 changes: 12 additions & 31 deletions assets/postit-js.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
@font-face {
font-family: "IBM Plex";
src: url("./ibm-plex-font/IBMPlexSans-Regular.ttf");
font-display: swap;
}

@font-face {font-family: "Font Awesome 5 Free Solid";
src: url("./font-awesome-5/29f589f173dcc69ef6c805b711894998.eot"); /* IE9*/
src: url("./font-awesome-5/29f589f173dcc69ef6c805b711894998.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
url("./font-awesome-5/29f589f173dcc69ef6c805b711894998.woff2") format("woff2"), /* chrome、firefox */
url("./font-awesome-5/29f589f173dcc69ef6c805b711894998.woff") format("woff"), /* chrome、firefox */
url("./font-awesome-5/29f589f173dcc69ef6c805b711894998.ttf") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
url("./font-awesome-5/29f589f173dcc69ef6c805b711894998.svg#Font Awesome 5 Free Solid") format("svg"); /* iOS 4.1- */
}

@import '../node_modules/diagram-js/assets/diagram-js.css';
@import '../node_modules/bpmn-font/dist/css/bpmn.css';
@import '../node_modules/@ibm/plex/css/ibm-plex.min.css';
@import '../node_modules/@fortawesome/fontawesome-free/css/all.min.css';


/* OVERWRITING Diagram.js */
Expand Down Expand Up @@ -238,18 +225,13 @@ button:hover, a:hover {
}

[class*=" pjs-general-icon"]::before {
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
text-align: center;
font-variant: normal;
text-transform: none;
display: inline-block;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
}

.pjs-general-icon {
font-family: "Font Awesome 5 Free Solid";
font-family: "Font Awesome 5 Free";
line-height: 1.2em;
}

Expand Down Expand Up @@ -407,19 +389,18 @@ input, textarea {
}

.pjs-image-dialog-upload-icon-warning::before {
content:'\F071'; /*\f093*/
display: inline-block;
color: #CCCC00;
font: var(--fa-font-solid);
content:'\f071';
}

.pjs-image-dialog-upload-icon::before {
content:'\F574'; /*\f093*/
display: inline-block;
font: var(--fa-font-solid);
content:'\f574';
}

.pjs-image-dialog-upload-icon-error::before {
content:'\F057';
display: inline-block;
font: var(--fa-font-solid);
content:'\f057';
color: #ff0000;
}

Expand Down
2 changes: 1 addition & 1 deletion example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
},
{
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
use: [ 'file-loader' ],
type: 'asset/resource'
},
{
test: /\.less$/i,
Expand Down
121 changes: 105 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 946beda

Please sign in to comment.