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

Comment content styles #1704

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Comment content styles #1704

merged 2 commits into from
Jan 18, 2024

Conversation

akellbl4
Copy link
Collaborator

@akellbl4 akellbl4 commented Nov 25, 2023

  • Resolves Long one-line code block causes content to be hidden #1629
  • Composes dark and light theme styles in one place
  • Moves syntax styles into content styles file
  • Adds colors to block with code only when pre > code (the way chroma generates html)
  • Fixes size of text in code block. Previously pre had size 85% and code had 85% from it.
  • Fixes code syntax highlight colors in dark mode (previously colors from light theme were used)
  • Minor syntax highlight colors adjustmests in dark mode for better contrast

Before

Screenshot 2023-11-25 at 3 16 47 AM

After

Screenshot 2023-11-25 at 3 15 51 AM

@@ -1,129 +0,0 @@
.raw-content {
& .root_theme_dark {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wrong nesting, should've been .root_theme_dark &

Copy link

codecov bot commented Nov 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (884b568) 65.20% compared to head (f24d044) 61.47%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1704      +/-   ##
==========================================
- Coverage   65.20%   61.47%   -3.74%     
==========================================
  Files         141      132       -9     
  Lines        3512     2998     -514     
  Branches      824      757      -67     
==========================================
- Hits         2290     1843     -447     
  Misses       1038     1038              
+ Partials      184      117      -67     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Nov 25, 2023

size-limit report 📦

Path Size
public/embed.mjs 2.03 KB (0%)
public/remark.mjs 73.45 KB (-0.03% 🔽)
public/remark.css 8.26 KB (-0.3% 🔽)
public/last-comments.mjs 35.72 KB (-0.05% 🔽)
public/last-comments.css 3.75 KB (-0.86% 🔽)
public/deleteme.mjs 12.07 KB (0%)
public/counter.mjs 751 B (0%)

className={b('comment-form__preview', {
mix: b('raw-content', {}, { theme }),
})}
className="comment-form__preview raw-content"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

theme set to root tag as dark so we don't need additional theming tag

@akellbl4 akellbl4 requested a review from Mavrin November 25, 2023 08:17
Copy link

Pull Request Test Coverage Report for Build 7512286614

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 84.793%

Totals Coverage Status
Change from base Build 7495000583: 0.0%
Covered Lines: 5916
Relevant Lines: 6977

💛 - Coveralls

Copy link
Collaborator

@Mavrin Mavrin left a comment

Choose a reason for hiding this comment

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

👍

@umputun umputun merged commit 82c6178 into master Jan 18, 2024
9 of 11 checks passed
@umputun umputun deleted the ak/raw-content-styles branch January 18, 2024 08:56
@paskal paskal added this to the v1.13.0 milestone Mar 16, 2024
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.

Long one-line code block causes content to be hidden
4 participants