Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Remove unused styles in legacy css. For #126 #130

Merged
merged 3 commits into from
Jun 20, 2016

Conversation

housseindjirdeh
Copy link
Contributor

Unused styles removed from legacy.css (all the other styles except these two are being used at least once).

  • +space-children appears in episodes page but is not used
  • +font-smaller isn't used anywhere in the site

Migrating to aphrodite shouldn't be too difficult. In all of the pages where the styles appear, the .container class is enclosing and there's not many styles to reference. Just need to replicate the styles in-line for each of the pages then we can remove legacy.css 👍

@@ -22,7 +22,7 @@ function SponsorGroup({sponsors, title}) {
{
chunkedSponsors.map((rowSponsors, index) => {
return (
<div className={`${css(styles.group)} +space-children`} key={index}>
<div className={css(styles.group)} key={index}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure nothing changes by removing this class? I would expect the sponsors get closer together. Could you please provide a screenshot? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the class isn't doing anything here for some reason.

With class:
sponsors previous

Class removed:
sponsors class-removed


With class on mobile:
sponsors-mobile previous

Class removed on mobile:
sponsors-mobile class-removed

@kentcdodds
Copy link
Member

Thanks for working on this!

@housseindjirdeh
Copy link
Contributor Author

No worries at all!

And my apologies, on the episodes page the +space-children class was actually adding a little spacing between the person notes and image, hence why I added it back to the css file and to that page. My bad I missed it earlier

@kentcdodds kentcdodds merged commit 1f054cc into javascriptair:master Jun 20, 2016
@kentcdodds
Copy link
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants