Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove confetti from print preview #27

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 24 additions & 18 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,46 @@
@tailwind utilities;

@font-face {
font-family: "Berlin";
font-style: normal;
font-weight: 400;
src: url("/fonts/BerlinTypeWeb-Regular.woff2");
font-family: "Berlin";
font-style: normal;
font-weight: 400;
src: url("/fonts/BerlinTypeWeb-Regular.woff2");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops. thanks for fixing this! I didn't know my config for prettier was ignoring css files.

}

@font-face {
font-family: "Berlin";
font-style: normal;
font-weight: 700;
src: url("/fonts/BerlinTypeWeb-Bold.woff2");
font-family: "Berlin";
font-style: normal;
font-weight: 700;
src: url("/fonts/BerlinTypeWeb-Bold.woff2");
}

progress[value] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}

progress[value] {
--color: #4f90cd;
--background: #e6e6e6;
border: none; /* Firefox add a default border */
background: var(--background);
--color: #4f90cd;
--background: #e6e6e6;
border: none; /* Firefox add a default border */
background: var(--background);
}

progress[value]::-moz-progress-bar {
background: var(--color);
background: var(--color);
}

progress[value]::-webkit-progress-bar {
background: var(--background);
background: var(--background);
}

progress[value]::-webkit-progress-value {
background: var(--color);
background: var(--color);
}

@media print {
canvas {
display: none !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question out of curiosity, why is the !important property necessary here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point - it's not necessary. I will take it out.

}
}
Loading