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

Optimize CSS #104

Open
captainbrosset opened this issue Nov 20, 2023 · 0 comments
Open

Optimize CSS #104

captainbrosset opened this issue Nov 20, 2023 · 0 comments

Comments

@captainbrosset
Copy link
Owner

Three possible improvements:

  • Minify at build-time.
  • Split into two main css files: lists of tips, content of a tip. These things aren't displayed at the same time, but we're always loading everything on all pages.
  • Removed unused CSS. There's probably some of it somewhere, like
    .tips .tip.highlighted .highlight {
      background: var(--accent-color);
    }
    .tips.searching .tip:not(.highlighted) {
      display: none;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant