From fabfc2f5ecf54ef96bb16203421c8fe5301bc2f1 Mon Sep 17 00:00:00 2001 From: Martin Cejp Date: Tue, 15 Feb 2022 21:06:59 +0100 Subject: [PATCH 1/2] css: Remove unused styles for h1, h2 in editor --- css/litegraph-editor.css | 23 ----------------------- editor/style.css | 8 -------- 2 files changed, 31 deletions(-) diff --git a/css/litegraph-editor.css b/css/litegraph-editor.css index 130ac0b97..178c68b95 100755 --- a/css/litegraph-editor.css +++ b/css/litegraph-editor.css @@ -11,29 +11,6 @@ position: relative; } -.litegraph-editor h1 { - font-family: "Metro Light", Tahoma; - color: #ddd; - font-size: 28px; - padding-left: 10px; - /*text-shadow: 0 1px 1px #333, 0 -1px 1px #777;*/ - margin: 0; - font-weight: normal; -} - -.litegraph-editor h1 span { - font-family: "Arial"; - font-size: 14px; - font-weight: normal; - color: #aaa; -} - -.litegraph-editor h2 { - font-family: "Metro Light"; - padding: 5px; - margin-left: 10px; -} - .litegraph-editor * { box-sizing: border-box; -moz-box-sizing: border-box; diff --git a/editor/style.css b/editor/style.css index feb73e77b..2fca23444 100755 --- a/editor/style.css +++ b/editor/style.css @@ -11,14 +11,6 @@ body { font: 14px Tahoma; } -h1 { - font-family: "Metro Light",Tahoma; -} - -h2 { - font-family: "Metro Light"; -} - #main { width: 100%; height: 100%; From 652595ce5892513ba721c3e3cafa5e8cf15ad1a0 Mon Sep 17 00:00:00 2001 From: Martin Cejp Date: Tue, 15 Feb 2022 21:05:59 +0100 Subject: [PATCH 2/2] css: Add generic font callbacks --- css/litegraph-editor.css | 8 ++++---- css/litegraph.css | 12 ++++++------ editor/style.css | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/css/litegraph-editor.css b/css/litegraph-editor.css index 178c68b95..14b13ba08 100755 --- a/css/litegraph-editor.css +++ b/css/litegraph-editor.css @@ -6,7 +6,7 @@ background-color: #333; color: #eee; - font: 14px Tahoma; + font: 14px "Tahoma", sans-serif; position: relative; } @@ -62,7 +62,7 @@ position: absolute; top: 2px; right: 2px; - font-family: "Tahoma"; + font-family: "Tahoma", sans-serif; font-size: 14px; color: #aaa; cursor: pointer; @@ -137,7 +137,7 @@ /* METER *********************/ .litegraph-editor .loadmeter { - font-family: "Tahoma"; + font-family: "Tahoma", sans-serif; color: #aaa; font-size: 12px; border-radius: 2px; @@ -175,7 +175,7 @@ width: 100%; background-color: black; padding: 4px; - font: 16px monospace; + font: 16px "Consolas", monospace; overflow: auto; resize: none; outline: none; diff --git a/css/litegraph.css b/css/litegraph.css index 918858f41..1c11f8211 100755 --- a/css/litegraph.css +++ b/css/litegraph.css @@ -6,7 +6,7 @@ -moz-user-select: none; -webkit-user-select: none; outline: none; - font-family: Tahoma, sans-serif; + font-family: "Tahoma", sans-serif; } .lgraphcanvas * { @@ -14,7 +14,7 @@ } .litegraph.litecontextmenu { - font-family: Tahoma, sans-serif; + font-family: "Tahoma", sans-serif; position: fixed; top: 100px; left: 100px; @@ -50,7 +50,7 @@ } .litegraph .litemenubar ul { - font-family: Tahoma, sans-serif; + font-family: "Tahoma", sans-serif; margin: 0; padding: 0; } @@ -168,7 +168,7 @@ } .litegraph.litesearchbox { - font-family: Tahoma, sans-serif; + font-family: "Tahoma", sans-serif; position: absolute; background-color: rgba(0, 0, 0, 0.5); padding-top: 4px; @@ -200,7 +200,7 @@ } .litegraph.lite-search-item { - font-family: Tahoma, sans-serif; + font-family: "Tahoma", sans-serif; background-color: rgba(0, 0, 0, 0.5); color: white; padding-top: 2px; @@ -284,7 +284,7 @@ .litegraph .dialog .dialog-footer { height: 50px; padding: 10px; border-top: 1px solid #1a1a1a;} .litegraph .dialog .dialog-header .dialog-title { - font: 20px "Arial"; + font: 20px "Arial", sans-serif; margin: 4px; padding: 4px 10px; display: inline-block; diff --git a/editor/style.css b/editor/style.css index 2fca23444..03d99fb7a 100755 --- a/editor/style.css +++ b/editor/style.css @@ -8,7 +8,7 @@ html,body { body { background-color: #333; color: #EEE; - font: 14px Tahoma; + font: 14px "Tahoma", sans-serif; } #main { @@ -123,7 +123,7 @@ label { /*border-radius: 4px;*/ padding: 2px; /*box-shadow: inset 0 0 3px #333; */ - font-family: Verdana; + font-family: "Verdana", sans-serif; width: 250px; }