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

separate All the styles in the css file so that it can override #24

Open
walkwel opened this issue Oct 5, 2018 · 0 comments
Open

separate All the styles in the css file so that it can override #24

walkwel opened this issue Oct 5, 2018 · 0 comments

Comments

@walkwel
Copy link
Contributor

walkwel commented Oct 5, 2018

All the elements have position absolute which makes it difficult to integrate into other designs. Put all the styles into separate CSS file so that they can be overridable to integrate. Below is an example is given for Tournament.js file

Instead of this
<div style={{position:'absolute', zIndex:100, left:'50%', transform:'translate(-50%, 0%)', top:'145px'}}>

Use It as
<div className="tournament__container">

and styles will goes into tournament.css file or style.css

style.css

.tournament__container{
  position: absolute;
   zIndex:100;
  left:50%;
  transform:translate(-50%, 0%);
}

this file can be imported into react component directly.

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