Skip to content

Commit 738a465

Browse files
committed
Remove Roboto font
1 parent a37427e commit 738a465

29 files changed

Lines changed: 61 additions & 65 deletions

File tree

docs/src/components/Demo/styles.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
.timecontrols span {
5656
text-align: end;
5757
width: 80px;
58-
font-family: "Roboto Mono";
58+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
59+
"Consolas", "Liberation Mono", monospace;
5960
opacity: 0.5;
6061
font-size: 12px;
6162
}

docs/src/css/regular_table_reset.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ tbody,
1818
table thead {
1919
border: 0;
2020
font-size: 12px;
21-
font-family: "Roboto Mono";
21+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
22+
"Consolas", "Liberation Mono", monospace;
2223
margin: 0;
2324
padding: 0;
2425
vertical-align: middle;

examples/blocks/src/fractal/index.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ perspective-viewer[theme="Pro Dark"] {
8080
span,
8181
input,
8282
button {
83-
font-family: "Roboto Mono";
83+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
84+
"Consolas", "Liberation Mono", monospace;
8485
font-size: 12px;
8586
background: none;
8687
margin: 0px;
@@ -103,7 +104,8 @@ input {
103104
}
104105

105106
input[type="number"] {
106-
font-family: "Roboto Mono";
107+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
108+
"Consolas", "Liberation Mono", monospace;
107109
}
108110

109111
input:focus {

examples/blocks/src/market/index.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
body {
1515
background: #242526;
1616
color: white;
17-
font-family: "Roboto Mono";
17+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
18+
"Consolas", "Liberation Mono", monospace;
1819
touch-action: none;
1920
}
2021

@@ -63,8 +64,10 @@ img {
6364
margin-left: 14px;
6465
}
6566

66-
select, button {
67-
font-family: "Roboto Mono";
67+
select,
68+
button {
69+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
70+
"Consolas", "Liberation Mono", monospace;
6871
font-size: 12px;
6972
appearance: none;
7073
background-color: transparent;
@@ -78,12 +81,13 @@ select, button {
7881
outline: none;
7982
user-select: none;
8083
height: 32px;
81-
margin-top: 8px;
84+
margin-top: 8px;
8285
margin-bottom: 8px;
8386
}
8487

85-
select:hover, button:hover {
88+
select:hover,
89+
button:hover {
8690
color: #242526;
8791
background-color: #f4f5f6;
8892
border-color: #f4f5f6;
89-
}
93+
}

examples/blocks/src/webcam/index.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
body {
1515
background: #242526;
1616
color: white;
17-
font-family: "Roboto Mono";
17+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
18+
"Consolas", "Liberation Mono", monospace;
1819
touch-action: none;
1920
}
2021

@@ -63,8 +64,10 @@ img {
6364
margin-left: 14px;
6465
}
6566

66-
select, button {
67-
font-family: "Roboto Mono";
67+
select,
68+
button {
69+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
70+
"Consolas", "Liberation Mono", monospace;
6871
font-size: 12px;
6972
appearance: none;
7073
background-color: transparent;
@@ -78,12 +81,13 @@ select, button {
7881
outline: none;
7982
user-select: none;
8083
height: 32px;
81-
margin-top: 8px;
84+
margin-top: 8px;
8285
margin-bottom: 8px;
8386
}
8487

85-
select:hover, button:hover {
88+
select:hover,
89+
button:hover {
8690
color: #242526;
8791
background-color: #f4f5f6;
8892
border-color: #f4f5f6;
89-
}
93+
}

packages/perspective-workspace/build.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ async function build_all() {
110110
);
111111

112112
const builder = new BuildCss("./src/themes");
113-
add(
114-
builder,
115-
"fonts.less",
116-
"@finos/perspective-viewer/src/themes/fonts.less"
117-
);
118113
add(
119114
builder,
120115
"icons.less",
@@ -125,11 +120,6 @@ async function build_all() {
125120
fs.writeFileSync("dist/css/pro.css", builder.compile().get("output.css"));
126121

127122
const builder2 = new BuildCss("./src/themes");
128-
add(
129-
builder2,
130-
"fonts.less",
131-
"@finos/perspective-viewer/src/themes/fonts.less"
132-
);
133123
add(
134124
builder2,
135125
"icons.less",

packages/perspective-workspace/src/less/menu.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@
108108

109109
.p-Menu-itemIcon:before {
110110
content: attr(content);
111-
font-family: "Roboto Mono";
111+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
112+
"Consolas", "Liberation Mono", monospace;
112113
}
113114

114115
[data-type="submenu"] .lm-Menu-itemSubmenuIcon:before {
115116
content: ">";
116-
font-family: "Roboto Mono";
117+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
118+
"Consolas", "Liberation Mono", monospace;
117119
height: 18px;
118120
}
119121

packages/perspective-workspace/src/themes/pro-dark.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ perspective-viewer[theme="Pro Dark"].workspace-master-widget {
6363
}
6464

6565
.p-Menu {
66-
// font-family: "Roboto Mono";
66+
// font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
6767
// font-weight: 300 !important;
6868
background: @grey700 !important;
6969
color: white !important;
7070
border: 1px solid @grey500 !important;
7171

72-
font-family: "Roboto Mono";
72+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
7373
font-weight: 300;
7474
}

packages/perspective-workspace/src/themes/pro.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ perspective-viewer[theme="Pro Light"].workspace-master-widget {
5656
}
5757

5858
@mixin perspective-workspace-pro-base {
59-
font-family: "Roboto Mono";
59+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
6060
--open-settings-button--content: "expand_more";
6161
--close-settings-button--content: "expand_less";
6262
--close-button--content: "\2715";
@@ -84,7 +84,7 @@ perspective-viewer[theme="Pro Light"].workspace-master-widget {
8484
}
8585

8686
.p-Menu {
87-
font-family: "Roboto Mono";
87+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
8888
font-weight: 300;
8989
color: #161616;
9090
}

rust/perspective-viewer/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ fn main() -> Result<(), anyhow::Error> {
5757
let mut build = BuildCss::new("./src/themes");
5858
if !cfg!(feature = "define_custom_elements_async") {
5959
build.add_file("variables.less");
60-
build.add_file("fonts.less");
6160
build.add_file("icons.less");
6261
build.add_file("pro.less");
6362
build.add_file("pro-dark.less");

0 commit comments

Comments
 (0)