Skip to content

Commit

Permalink
move all vendor css to new css file
Browse files Browse the repository at this point in the history
  • Loading branch information
fehmer committed Jan 27, 2025
1 parent 380be3a commit 9fff86d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"@monkeytype/funbox": "workspace:*",
"@monkeytype/util": "workspace:*",
"@ts-rest/core": "3.51.0",
"balloon-css": "1.2.0",
"canvas-confetti": "1.5.1",
"chart.js": "3.7.1",
"chartjs-adapter-date-fns": "3.0.0",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/html/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@
<meta name="twitter:card" content="summary_large_image" />
<meta name="darkreader-lock" />
<meta http-equiv="Cache-Control" content="no-store" />
<link rel="stylesheet" href="/styles/vendor.scss" type="text/css" />
<link rel="stylesheet" href="styles/index.scss" />
</head>
2 changes: 2 additions & 0 deletions frontend/src/styles/core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
var(--caret-color) 20%,
transparent
);

--balloon-font-size: 1rem;
}

::placeholder {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/styles/inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ select:-webkit-autofill:focus {
}

// slim-select styles
@import "slim-select/styles";
.ss-main {
border-radius: var(--roundness);
outline: none;
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/styles/vendor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import "slim-select/styles";
@import "balloon-css/src/balloon";
2 changes: 0 additions & 2 deletions frontend/src/ts/ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import { loadPromise } from "./config";

$(async (): Promise<void> => {
await loadPromise;
Misc.loadCSS("/css/balloon.min.css", true);

CookiesModal.check();

//this line goes back to pretty much the beginning of the project and im pretty sure its here
Expand Down
1 change: 0 additions & 1 deletion frontend/static/css/balloon.min.css

This file was deleted.

8 changes: 8 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 9fff86d

Please sign in to comment.