Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 378cfc9

Browse files
committed
making the app faster by not using google font, and minify css
1 parent 648e8d9 commit 378cfc9

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

gcode/index.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
<!-- <section id="GcodeSnippet">a</section> -->
1414
</div>
1515

16-
<style>
17-
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
18-
@import url("./src/CSS/main.css");
19-
</style>
20-
2116
<script type="module" src="/main.js"></script>
2217
</body>
2318
</html>

gcode/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import css from "./style.css"
2+
// import GcodeAPI from "./src/API/GcodeApi/GcodeAPI_main/GcodeAPI.js";
3+
14
const t0 = performance.now();
2-
import GcodeAPI from "./src/API/GcodeApi/GcodeAPI_main/GcodeAPI.js";
35

46
import G0 from "./src/API/GcodeApi/Gcommands/G/G0.js";
57
import Gcss from "./src/API/GcodeApi/Gsimulator/Gcss/Gcss.js";

gcode/src/API/GcodeApi/Gsimulator/Gcss/CssFloatPopup/other/Methods/getPopupSpanHtml/getPopupSpanHtml.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function getPopupSpanHtml(_this) {
22
return `
3-
<div style="display: flex; align-items: center; gap: 1rem; width: min-content; font-family: poppins;">
3+
<div style="display: flex; align-items: center; gap: 1rem; width: min-content; font-family: poppins, system-ui;">
44
<div>
55
<div style="display: flex; align-items: center; font-size: 1rem; gap: 0.5rem;">
66
<div style="font-size: 1rem; font-weight: bold;">X</div>
@@ -35,7 +35,7 @@ export default function getPopupSpanHtml(_this) {
3535
</div>
3636
3737
<div style="display: flex; align-items: center; font-size: 1rem; gap: 0.5rem;">
38-
<div style="font-size: 1rem; font-weight: bold;">ANGLE&nbsp;&nbsp;&nbsp;</div>
38+
<div style="font-size: 1rem; font-weight: bold;">ANGLE&nbsp;&nbsp;</div>
3939
<div style="display: flex; align-items: baseline;">
4040
<div>${JSON.parse(_this.button.dataset.line).angle.split(".")[0]}</div>
4141
<div style="font-size: 0.7rem;">.${
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#tooltip {
22
padding: 0.5rem;
33
font-size: 1rem;
4-
font-family: poppins;
4+
font-family: poppins, system-ui;
55
}
66

77
#tooltip {
88
border: 0.1rem solid var(--sky-200);
99
background-color: var(--sky-50);
1010
border-radius: 0.5rem;
1111
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
12-
}
12+
}

gcode/src/CSS/demo/btn.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#btn {
22
font-size: 5vw;
3-
font-family: poppins;
3+
font-family: poppins, system-ui;
44
padding: 2vw 4vw;
55
background-color: var(--sky-50);
66
border: none;
@@ -10,11 +10,10 @@
1010
}
1111

1212
#btn:not(:disabled):hover {
13-
box-shadow: inset 0 1vw 6vw var(--sky-200),
14-
0 1vw 5vw rgba(0, 0, 0, 0.2);
13+
box-shadow: inset 0 1vw 6vw var(--sky-200), 0 1vw 5vw rgba(0, 0, 0, 0.2);
1514
transform: scale(1.5) rotate(5deg);
1615
}
1716

1817
#btn:disabled {
1918
display: none;
20-
}
19+
}

gcode/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import url("./src/CSS/main.css");

0 commit comments

Comments
 (0)