TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Gutenberg – Modern CSS framework to print the web correctly

305 点作者 BafS大约 8 年前

14 条评论

Jaruzel大约 8 年前
Wow, today I learned (via this) about:<p><pre><code> page-break-before: page-break-after:</code></pre> Did not know these were in CSS3 !<p>It&#x27;s always worth poking around in others peoples code...
评论 #13772923 未加载
评论 #13773218 未加载
评论 #13772918 未加载
hoschicz大约 8 年前
Where are word breaks (word splitting if not fit for page), justify alignment? Variable spaces between letters?<p>Is this possible with CSS? I&#x27;m trying to typeset a long text on the web and I&#x27;m not happy about how it looks compared to LaTeX and PDF. (it&#x27;s straight out awful)
评论 #13773427 未加载
评论 #13773435 未加载
评论 #13773115 未加载
Klathmon大约 8 年前
This just gave me an idea.<p>It might be useful to do some heuristics and see if a page has a good &quot;print layout&quot; and activate that for a reader mode in the browser via a plugin.
teekno大约 8 年前
Is there any relation to <a href="https:&#x2F;&#x2F;github.com&#x2F;matejlatin&#x2F;Gutenberg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;matejlatin&#x2F;Gutenberg</a>?
jehna1大约 8 年前
It makes a pretty good layout even on screen:<p><a href="http:&#x2F;&#x2F;jsbin.com&#x2F;relaranujo&#x2F;2" rel="nofollow">http:&#x2F;&#x2F;jsbin.com&#x2F;relaranujo&#x2F;2</a>
wkoszek大约 8 年前
That&#x27;s nice. I find that printing and reviewing my own blog articles helps a lot in catching mistakes etc. I will see if I can integrate that into my website.
patleeman大约 8 年前
Hey this is great. I&#x27;m going to add this to the print preview mode in Collate!<p><a href="http:&#x2F;&#x2F;collatenotes.com" rel="nofollow">http:&#x2F;&#x2F;collatenotes.com</a>
hermiti大约 8 年前
If you could implement headers and footers into this using paged media and provide examples that would be golden. I could be missing where that was done.<p><a href="https:&#x2F;&#x2F;www.smashingmagazine.com&#x2F;2015&#x2F;01&#x2F;designing-for-print-with-css&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.smashingmagazine.com&#x2F;2015&#x2F;01&#x2F;designing-for-print...</a>
deathanatos大约 8 年前
A LICENSE file, please? (Though package.json does declare MIT; a LICENSE file should also allow GitHub to pick it up.)
评论 #13776096 未加载
joshwcomeau大约 8 年前
Awesome idea. I wonder if this could be generalized to a chrome extension, to override styles on Wikipedia or whatever.
评论 #13774392 未加载
blorenz大约 8 年前
This is nice, though I was hoping to find a framework for print-based layout when I saw this. I have projects that utilize the printer as an output and I struggle to find the proper way to lay out the content effectively. I have had hopes for flexbox, but it seems to fail in various parts of the pipeline.
laurent123456大约 8 年前
When trying to print the modern style, I&#x27;m only getting a blank page with lines: <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;MoGnf" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;MoGnf</a>
评论 #13773390 未加载
评论 #13773041 未加载
评论 #13772914 未加载
jwilk大约 8 年前
Not a great name choice.
majewsky大约 8 年前
Nice!<p>Since the submitted appears to be the author, can we have &quot;Show HN&quot; added to the title?