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

Refactor CSS #1348

Closed
Tracked by #3311
vikiival opened this issue Nov 30, 2021 · 24 comments · Fixed by #3804
Closed
Tracked by #3311

Refactor CSS #1348

vikiival opened this issue Nov 30, 2021 · 24 comments · Fixed by #3804
Labels
$$ ~51-150usd A-nuxt enhancement New feature or request hacktoberfest koda2 p3 non-core, affecting less than 40% scaffolding

Comments

@vikiival
Copy link
Member

Is your feature request related to a problem?

Currently, we have tons of CSS which I think is either obsolete or already covered in Bulma Helpers.

Moreover, some styles are fighting against each other, so there is inconsistency.

Describe the solution you would like

Have global CSS config for base styles?

Describe alternatives you have considered

UnCSS can be your friend

Screeenshots

KodaDot CSS cat

@roiLeo
Copy link
Contributor

roiLeo commented Dec 16, 2021

In some components the css is defined globally, we have strange behavior on other pages because it overwrite rules.
We will need to move css outside component into a file (styles/global.scss) or make it scoped.

@MubarakSULAYMAN
Copy link
Contributor

@vikiival, I think it is high time there is some sort of instructions on how things should be done. You may add it to CONTRIBUTING.md or even README.md. It will really help guard against how changes affect already existing implementation while the full refactoring is implemented. I suggest all styles should be scoped till then.

@MubarakSULAYMAN
Copy link
Contributor

@vikiival and @roiLeo, what are plans on setting rules for this. Is any one working on it yet?

@vikiival
Copy link
Member Author

Game rules are pretty simple:

  • prefer bulma css over custom css
  • move duplicate css into separate scss files
  • for component which have css use scoped.

@roiLeo have I missed anything?

@roiLeo
Copy link
Contributor

roiLeo commented Jan 14, 2022

I added the "global" comment in some files where the css was duplicated.
There are also many unused css rules that can be removed.

@yangwao
Copy link
Member

yangwao commented Apr 5, 2022

Game rules are pretty simple:

  • prefer bulma css over custom css
  • move duplicate css into separate scss files
  • for component which have css use scoped.

@roiLeo have I missed anything?

@vikiival
Copy link
Member Author

vikiival commented Apr 6, 2022

Still open as the CSS is not refactored yet 😅

@prachi00
Copy link
Member

prachi00 commented Apr 6, 2022

@vikiival i can take up this refactor

@prachi00
Copy link
Member

prachi00 commented Apr 6, 2022

What is the priority for this?

@vikiival vikiival added the p3 non-core, affecting less than 40% label Apr 6, 2022
@vikiival
Copy link
Member Author

vikiival commented Apr 6, 2022

I would give it p3 I think we have more imporant tasks to tackle

@roiLeo roiLeo mentioned this issue May 10, 2022
10 tasks
@prachi00 prachi00 self-assigned this May 26, 2022
@kodabot
Copy link
Collaborator

kodabot commented May 26, 2022

ASSIGNED - @prachi00 🔒 LOCKED -> Friday, May 27th 2022, 13:54:34 UTC -> 36 hours

@kodabot
Copy link
Collaborator

kodabot commented May 27, 2022

ASSIGNMENT EXPIRED - @prachi00 has been unassigned.

@roiLeo
Copy link
Contributor

roiLeo commented Jul 19, 2022

@petersopko petersopko mentioned this issue Jul 19, 2022
20 tasks
@yangwao
Copy link
Member

yangwao commented Aug 16, 2022

👀

@yangwao yangwao added p2 core functionality, or is affecting 60% of app $ ~<50usd $$ ~51-150usd and removed p3 non-core, affecting less than 40% $ ~<50usd labels Aug 16, 2022
@prachi00
Copy link
Member

I can start working on this now, just to confirm, our focus is

  • prefer bulma css over custom css
  • move duplicate css into separate scss files
  • for component which have css use scoped

CC @roiLeo @vikiival

@vikiival
Copy link
Member Author

Yeah,
but be aware that many components have changed (are rewritten via Composition API by @preschian )

This was referenced Aug 22, 2022
@vikiival vikiival linked a pull request Aug 23, 2022 that will close this issue
10 tasks
@roiLeo
Copy link
Contributor

roiLeo commented Aug 23, 2022

Oupsi! not really completed as there is still some light work to be done

if @prachi00 want to take a look

@roiLeo roiLeo reopened this Aug 23, 2022
@prachi00
Copy link
Member

prachi00 commented Sep 7, 2022

is now a good time to start working on this? I dont want to get conflicts with the refactors and stuff? @roiLeo @vikiival @preschian

@roiLeo
Copy link
Contributor

roiLeo commented Sep 7, 2022

is now a good time to start working on this?

I don't think so since major part will be done when refactoring component, refer to #3710
But feel free to help on rewritting component vue3 way and/or with new design (#3844)

@prachi00
Copy link
Member

prachi00 commented Sep 8, 2022

is now a good time to start working on this?

I don't think so since major part will be done when refactoring component, refer to #3710 But feel free to help on rewritting component vue3 way and/or with new design (#3844)

@roiLeo where are we doing the vue3 rewrite?

@roiLeo
Copy link
Contributor

roiLeo commented Sep 8, 2022

@roiLeo where are we doing the vue3 rewrite?

We'll need to rewrite every components, some of them have already been done (#3825, #3771, #3718)

@yangwao
Copy link
Member

yangwao commented Jan 24, 2023

@yangwao yangwao added p3 non-core, affecting less than 40% and removed p2 core functionality, or is affecting 60% of app labels Jan 24, 2023
@prachi00
Copy link
Member

prachi00 commented Mar 9, 2023

@roiLeo can we close this one now?

@roiLeo
Copy link
Contributor

roiLeo commented May 17, 2023

Closing for now, css looks fine

@roiLeo roiLeo closed this as completed May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
$$ ~51-150usd A-nuxt enhancement New feature or request hacktoberfest koda2 p3 non-core, affecting less than 40% scaffolding
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

6 participants