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

Less article level css #1637

Merged
merged 5 commits into from
Jun 22, 2020
Merged

Less article level css #1637

merged 5 commits into from
Jun 22, 2020

Conversation

oliverlloyd
Copy link
Contributor

What does this change?

Deletes the 'global' ul and li css set at the article body level and drops it down to inside the TextBlockComponent

Why?

Because in photo essays the ul and litags are used to denote captions and we want to style them for that but this global pattern creates a css war. Rather than get in a fight I changed the scope of the original overrides to only apply to text blocks.

@PRBuilds
Copy link

PRbuilds results:

💚 AMP validation
amp-report.txt

LightHouse Reporting
1592814206.report.html

--automated message

@github-actions
Copy link

Size Change: -23 B (0%)

Total Size: 514 kB

Filename Size Change
dist/frontend.server.js 188 kB -23 B (0%)
ℹ️ View Unchanged
Filename Size Change
dist/dynamicImport.js 1.89 kB 0 B
dist/dynamicImport.legacy.js 1.94 kB 0 B
dist/ga.js 1.97 kB 0 B
dist/ga.legacy.js 2.46 kB 0 B
dist/GetMatchStats.js 3.44 kB 0 B
dist/GetMatchStats.legacy.js 3.52 kB 0 B
dist/lotame.js 1.08 kB 0 B
dist/lotame.legacy.js 1.07 kB 0 B
dist/MostViewedFooterData.js 5.63 kB 0 B
dist/MostViewedFooterData.legacy.js 5.84 kB 0 B
dist/MostViewedRightWrapper.js 6.25 kB 0 B
dist/MostViewedRightWrapper.legacy.js 6.48 kB 0 B
dist/OnwardsLower.js 10.6 kB 0 B
dist/OnwardsLower.legacy.js 10.9 kB 0 B
dist/OnwardsUpper.js 11.2 kB 0 B
dist/OnwardsUpper.legacy.js 11.4 kB 0 B
dist/ophan.js 5.45 kB 0 B
dist/ophan.legacy.js 5.43 kB 0 B
dist/react.js 91.9 kB 0 B
dist/react.legacy.js 93.7 kB 0 B
dist/sentry.js 18.7 kB 0 B
dist/sentry.legacy.js 18.3 kB 0 B
dist/shimport.js 3.19 kB 0 B
dist/shimport.legacy.js 3.2 kB 0 B

compressed-size-action

Copy link
Contributor

@liywjl liywjl left a comment

Choose a reason for hiding this comment

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

👍

@oliverlloyd
Copy link
Contributor Author

Reduce Global CSS

@oliverlloyd oliverlloyd merged commit 8aeb25f into master Jun 22, 2020
@oliverlloyd oliverlloyd deleted the oliver/less-article-level-css branch June 22, 2020 09:00
@@ -43,42 +43,6 @@ const bodyStyle = (display: Display) => css`
width: 100%;
height: auto;
}

figure {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this completely removed because we don't have a figure used without styling being applied directly to the figure element?

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.

4 participants