Noteslify icon indicating copy to clipboard operation
Noteslify copied to clipboard

Refactoring CSS

Open devarshishimpi opened this issue 2 years ago • 12 comments

Kindly note this issue is not assigned to anyone. This issue will be handled by Noteslify Team.

devarshishimpi avatar Oct 04 '22 14:10 devarshishimpi

@khushi818 You remember the issues you were talking about using classes? This issue is for the same.

devarshishimpi avatar Oct 04 '22 14:10 devarshishimpi

Yes I am doing it

khushi818 avatar Oct 04 '22 15:10 khushi818

Partial Fix in https://github.com/dvstechlabs/Noteslify/pull/89

devarshishimpi avatar Oct 09 '22 06:10 devarshishimpi

Hi! I just started looking at app styles and I see in "Noteslify/frontend/src/" two main files: App.css and index.css. What are we using each one for?

pedropcamellon avatar Oct 09 '22 14:10 pedropcamellon

@Pcamellon hi We are using App.cs to declare global CSS and index.css for toggle purpose for now. This has to be changed. We will be doing it.

khushi818 avatar Oct 10 '22 02:10 khushi818

I agree. I will be glad to help

pedropcamellon avatar Oct 10 '22 14:10 pedropcamellon

I think we can move most of the rules, or all of them, in LandingPage.css to index.css.

pedropcamellon avatar Oct 10 '22 16:10 pedropcamellon

I think we can move most of the rules, or all of them, in LandingPage.css to index.css.

You can discuss the same with @khushi818 as this issue will be handled by her.

devarshishimpi avatar Oct 10 '22 16:10 devarshishimpi

I will be listing here some personal suggestions:

  • Change:
.p-x {
    padding: 4rem 0;
}

to

.p-x {
    padding: xrem;
}
  • Change:
.py-x {
    padding: xrem;
}

to

.py-x {
    padding-block: xrem;    // Same as padding: xrem 0;
}
  • Add this to index.css:
.mb-x {
    margin-bottom: xrem;
}
  • Add this to index.css:
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}
  • flex class is defined like this:
.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

I prefer:

.flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

pedropcamellon avatar Oct 10 '22 17:10 pedropcamellon

@khushi818

devarshishimpi avatar Oct 10 '22 17:10 devarshishimpi

@pedropcamellon sorry for the late reply I really like the things you listed. It would be nice to do it this way. I will appreciate your suggestions even more. Thank you for contributing.

khushi818 avatar Oct 11 '22 12:10 khushi818

@khushi818 Work with the font size on the landing page

devarshishimpi avatar Oct 28 '22 07:10 devarshishimpi

Issue worked in https://github.com/dvstechlabs/Noteslify/issues/237

devarshishimpi avatar Nov 14 '22 12:11 devarshishimpi