Closed spitschan closed 3 years ago
@spitschan I should also have mentioned, we've been trying to use Bootstrap v4 CSS classes to do most of the styling on the site rather than custom styles. It's not a big deal if you add a few custom styles, but if you end up adding quite a few, it might be better to try to use Bootstrap CSS classes.
Thanks James. I just wanted to reduce the size, and don’t expect any further cosmetic updates immediately.
All the best,
Manuel
From: James Mead notifications@github.com Reply to: luox-app/luox reply@reply.github.com Date: Friday, 5 February 2021 at 09:59 To: luox-app/luox luox@noreply.github.com Cc: Manuel Spitschan mspits@sas.upenn.edu, Mention mention@noreply.github.com Subject: Re: [luox-app/luox] Update Intro.jsx (#40)
@spitschanhttps://github.com/spitschan I should also have mentioned, we've been trying to use Bootstrap v4https://getbootstrap.com/docs/4.5/getting-started/introduction/ CSS classes to do most of the styling on the site rather than custom styles. It's not a big deal if you add a few custom styles, but if you end up adding quite a few, it might be better to try to use Bootstrap CSS classes.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/luox-app/luox/pull/40#issuecomment-773927942, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAZPZ37GTOJTQBNNSKGPWZ3S5O6OHANCNFSM4XBS2ABQ.
@spitschan
The reason this didn't work is that you were changing HTML inside a JSX file which has slight differences from standard HTML. If you want to make a change like this, here are a couple of ideas to try:
Option 1 - Use JSX to add the style inline
Option 2 - Add a unique DOM ID to the element and use a stylesheet rule to apply the style
In src/stylesheets/application.scss add: