question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refactor main stylesheet

See original GitHub issue

I am already customizing the theme by using a custom theme variant. While customizing the theme using theme variant, I realized that the CSS could be improved.

Here are the things I have noticed about the stylesheet theme.css

  • Way too many !important rules (64 times). Here is an example. This is mainly due to how the stylesheet is organized / structured.
  • Inconsistent indentation / formatting, making it hard to read.
  • No CSS variables in main stylesheet. If the variables were defined in the main stylesheet, then the theme variants would be way easier to created…

If you want I can try to create a PR

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
W-Floydcommented, Sep 6, 2017

I’m interested in this also. I’m thinking of trying it in SASS/SCSS. Not promising anything (haven’t got much experience in SASS), so don’t hold your breath, but would that be okay for a PR if I ever get anywhere?

0reactions
vjeantetcommented, Sep 19, 2017

W-Floyd scss PR merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

Refactoring CSS: Introduction (Part 1) - Smashing Magazine
Refactoring is a recommended approach for incrementally improving the CSS codebase while maintaining the current look and feel (design). Team ...
Read more >
How to Refactor CSS - A Guide - Hongkiat
How to Refactor CSS – A Guide · 1. Conduct an Initial Audit · 2. Set Up a Manageable Plan · 3. Track...
Read more >
Refactoring CSS. What to keep in mind when thinking… | Inktrap
Having a style guide, an outline of the project, a plan for approaching it, a proper directory structure, and naming convention are still ......
Read more >
Refactorings for CSS | ReSharper Documentation - JetBrains
Refactorings for CSS styles help you quickly move CSS styles to and between stylesheets and HTML files or create a new stylesheet on...
Read more >
CSS Architectures: Refactor Your CSS - SitePoint
In this tutorial you will learn about MetaCoax CSS refactoring process.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found