Skip to content

Conversation

@ajefts
Copy link
Member

@ajefts ajefts commented Aug 1, 2017

No description provided.

It contains a bunch of updates around the codebase, as it seems that the
new version of ESLint and AirBnB ESLint config use somewhat different
rules for code indendation in some cases.
Originally, there was a need for a quick fix to ensure that buttons
(Register / Unregister, Submit, etc.) in the upper part of the New
Challenge Details page work properly. As it turned out, the markup and
SCSS styling around these buttons is messy, there was a need to refactor
related styling; in turn it was noted that some related global SCSS
styles are messy. Thus, it resulted in quite a large fix, and the actual
fix of the New Challenge Details page will be in the follow-up commit.

In global SCSS styles:

- _tc-includes.scss was removed (it had just two imports, which were
moved directly to _tc-styles, to avoid confusion, which one of them
should be typically imported into .scss files);

- mixins/_media.scss was enhanced in few ways: (a) breakpoint constants
were moved into _variables.scss (actually, they were already defined
there, but with different values, and were not used anywhere in code -
thus, this change ensures consistency); (b) few new media mixins were
added; (c) ensures that for all mixins the name A-to-B means "the sizes
from A to B, both inclusive".

- slight modification of color values in _variables.scss: some of the
color values were slightly different from the values stated on Topcoder
Brand Guidelines page
(https://www.topcoder.com/about-topcoder/brand-guidelines/), they were
updated to match.

New Challenge Details page:

- Custom colors replaced by close colors already present in
_variables.scss
The new button component(s) allows to create buttons and button-like
links in a convenient and consistent way. It also allows to style such
buttons using react-css-themr.

See the demo at /examples/buttons/ endpoint
Now register / unregister / submit buttons work properly.
View Submission button also should work, but it is not possible to test
at the moment, as Submission Management Page is temporarly broken.
This commit mostly fixes the problem (there are still a few minor
styling problems, to be handled separately).

Fixes #130
for a better consistency with other ones, and also as a part of fix for
Submissions Management Page.
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

Successfully merging this pull request may close these issues.

3 participants