follow-up

This commit is contained in:
yzhang 2020-08-11 07:59:43 +08:00
parent 3c2dcf88f1
commit b3a59b8c95
5 changed files with 5 additions and 5 deletions

View file

@ -240,7 +240,7 @@ GitVisuals.prototype.finishAnimation = function(speed) {
opacity: 0, opacity: 0,
'font-weight': 500, 'font-weight': 500,
'font-size': '32pt', 'font-size': '32pt',
'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', \'Courier New\', monospace', 'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', monospace',
stroke: '#000', stroke: '#000',
'stroke-width': 2, 'stroke-width': 2,
fill: '#000' fill: '#000'

View file

@ -410,7 +410,7 @@ var VisBranch = VisBase.extend({
var text = paper.text(textPos.x, textPos.y, String(name)); var text = paper.text(textPos.x, textPos.y, String(name));
text.attr({ text.attr({
'font-size': 14, 'font-size': 14,
'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', \'Courier New\', monospace', 'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', monospace',
opacity: this.getTextOpacity() opacity: this.getTextOpacity()
}); });
this.set('text', text); this.set('text', text);

View file

@ -451,7 +451,7 @@ var VisNode = VisBase.extend({
text.attr({ text.attr({
'font-size': this.getFontSize(this.get('id')), 'font-size': this.getFontSize(this.get('id')),
'font-weight': 'bold', 'font-weight': 'bold',
'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', \'Courier New\', monospace', 'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', monospace',
opacity: this.getOpacity() opacity: this.getOpacity()
}); });

View file

@ -254,7 +254,7 @@ var VisTag = VisBase.extend({
var text = paper.text(textPos.x, textPos.y, String(name)); var text = paper.text(textPos.x, textPos.y, String(name));
text.attr({ text.attr({
'font-size': 14, 'font-size': 14,
'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', \'Courier New\', monospace', 'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', monospace',
opacity: this.getTextOpacity(), opacity: this.getTextOpacity(),
'text-anchor': 'start' 'text-anchor': 'start'
}); });

View file

@ -10,7 +10,7 @@ body {
} }
html, body { html, body {
font-family: Monaco, Courier, monospace; font-family: Menlo, Monaco, Consolas, 'Droid Sans Mono', monospace;
color: #eee; color: #eee;
} }