Create Separate Stylesheet for Styled HTML Export

Open Beginner friendly
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
css, javascript
Domain
frontend, web-dev

Research direction

Start in plugins/core/core.js around line 91, where styled HTML currently uses app.css. Trace how the stylesheet is included in the generated HTML, then add the separate styled-html.css requested by the issue. Done means styled exports load that stylesheet and apply 5% body padding without relying on app.css.

Written by the indexing model from the issue text.

Description

Feature Request

When I export to styled HTML I want to have a 5% padding applied to the body.

Right now, the styled HTML only pulls from the app.css file.

https://github.com/joemccann/dillinger/blob/master/plugins/core/core.js#L91

We need to have a styled-html.css that is applied to the generated HTML that is separate so we can add the padding and any other style tweaks.

Dominant language
TypeScript
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from joemccann/dillinger

All issues in joemccann/dillinger

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.