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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

339 Bytes of Responsive CSS

106 点作者 arkokoley大约 6 年前

21 条评论

asattarmd大约 6 年前
Good, but I&#x27;d replace that font with the default:<p>`font-family: -apple-system,system-ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,Arial,sans-serif`<p>It&#x27;d remove the unnecessary font and still look good.
评论 #19623183 未加载
评论 #19623162 未加载
评论 #19624083 未加载
jypepin大约 6 年前
That&#x27;s nice but really, the problem with css (or what&#x27;s hard difficult about it) is not designing a single page that has a single column of text with some titles. Any large css files that this is supposed to counter will probable have very similar (and as small) css rules for that same thing. It becomes hard when you need a grid, templates, images, and other more complex designs.
评论 #19623319 未加载
评论 #19623493 未加载
caillou大约 6 年前
There is a small accessibility problem with the CSS presented on this page. The author set `text-decoration: none;` on the links, relying only on color to identify them. This should be avoided.<p>C.f. <a href="https:&#x2F;&#x2F;accessibility.oit.ncsu.edu&#x2F;it-accessibility-at-nc-state&#x2F;developers&#x2F;accessibility-handbook&#x2F;mouse-and-keyboard-events&#x2F;links&#x2F;do-not-remove-the-underline-from-links&#x2F;" rel="nofollow">https:&#x2F;&#x2F;accessibility.oit.ncsu.edu&#x2F;it-accessibility-at-nc-st...</a>
评论 #19624069 未加载
评论 #19623906 未加载
zichy大约 6 年前
1. Please do not import external resources from Google Fonts if you don’t have to. (Hint: You never really have to.)<p>2. If you want to use as little CSS as possible, simply use `sans-serif`. Otherwise try this font stack: <a href="http:&#x2F;&#x2F;markdotto.com&#x2F;2018&#x2F;02&#x2F;07&#x2F;github-system-fonts&#x2F;" rel="nofollow">http:&#x2F;&#x2F;markdotto.com&#x2F;2018&#x2F;02&#x2F;07&#x2F;github-system-fonts&#x2F;</a><p>2. Fira Sans is actually quite nice, but please do not use `font-weight`s below `400` for continuous text. That’s really hard to read.<p>3. Since only the `300` weight is imported, the entire text will be thin – even headlines and `strong`.<p>4. Please leave the link text underlines for accessibility: <a href="https:&#x2F;&#x2F;webaim.org&#x2F;techniques&#x2F;hypertext&#x2F;link_text#underlining" rel="nofollow">https:&#x2F;&#x2F;webaim.org&#x2F;techniques&#x2F;hypertext&#x2F;link_text#underlinin...</a><p>bettermotherfuckingwebsite.com did a better job.
boomlinde大约 6 年前
339 bytes which load an additional 241 bytes of CSS to load a 53k custom font...<p>What is the point people are trying to make with titles like this? It&#x27;s like claiming &quot;50 bytes to make a website&quot; after you figure out that you can just iframe Google.
评论 #19624562 未加载
评论 #19623651 未加载
datenwolf大约 6 年前
What is it with all those reduced font&#x2F;background contrast styles? To me these are terribly hard to read. As a matter of fact a large part of my Stylish&#x2F;Greasemonkey sets are just there to get back decent contrast on text.
reustle大约 6 年前
Similar project yesterday<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19607169" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19607169</a>
josteink大约 6 年前
I really don’t like that Google font. Too lightweight and hard to read.<p>And if readability suffers, I’ll rather take the crude original motherfucking website over this.
ChrisGranger大约 6 年前
You can save <i>three more bytes</i> by making the background color #eee. ^^
评论 #19623186 未加载
评论 #19623130 未加载
andrepd大约 6 年前
Why such thin grey text? Why sacrifice readability as a matter of principle? What&#x27;s wrong with black on white, like a regular f*cking book or newspaper?
评论 #19623372 未加载
vladocar大约 6 年前
Here is something similar: <a href="https:&#x2F;&#x2F;github.com&#x2F;vladocar&#x2F;Basic-CSS-Typography-Reset" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vladocar&#x2F;Basic-CSS-Typography-Reset</a>
评论 #19624186 未加载
arendtio大约 6 年前
Sometimes I wish some of those markdown viewers would come with such an effective CSS. For example, the KDE document viewer Okular can display markdown files but they look just awful.<p>Once I tried finding the source of the Okular style but ended up creating a custom script to convert Markdown files to PDF files with a custom CSS (via Chromium...).
new_here大约 6 年前
All this CSS minimalism reminds me of Dan Luu&#x27;s post about Web Bloat: <a href="https:&#x2F;&#x2F;danluu.com&#x2F;web-bloat&#x2F;" rel="nofollow">https:&#x2F;&#x2F;danluu.com&#x2F;web-bloat&#x2F;</a><p>His website is refreshingly light and fast, but that&#x27;s still no excuse for Times New Roman. Maybe it&#x27;s a retro irreverence thing.
评论 #19623265 未加载
评论 #19623907 未加载
评论 #19623284 未加载
评论 #19623695 未加载
评论 #19623903 未加载
评论 #19623307 未加载
StreamBright大约 6 年前
Is there anybody here who is deeply in the frontend rabbithole and can recommend a JS free CSS framework that we can use for a project where readability &amp; UX matters a lot? Somebody recommended material.io but is it not JS free. I was wondering if there is a JS free CSS framework that looks great.
评论 #19623381 未加载
Cthulhu_大约 6 年前
A nonoffensive version of &quot;better motherfucking website&quot;?
评论 #19627269 未加载
评论 #19623153 未加载
评论 #19623120 未加载
davidhyde大约 6 年前
Is CSS considered responsive if there are no CSS media queries? I didn&#x27;t see any media queries in the authors css script.
评论 #19626224 未加载
dxxvi大约 6 年前
Personally, I hate max-width which is a way to waste the screen estate, I think.
评论 #19624029 未加载
评论 #19623892 未加载
thojest大约 6 年前
Nice, I just would use a brighter black for the font. Try #565656
评论 #19623159 未加载
blissofbeing大约 6 年前
fork of the fork JSFiddle: <a href="https:&#x2F;&#x2F;jsfiddle.net&#x2F;abmnyjdc&#x2F;1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jsfiddle.net&#x2F;abmnyjdc&#x2F;1&#x2F;</a>
nukeop大约 6 年前
7 CSS declarations and you too can include a Google tracker in your website. No thanks. Host your assets yourself.
onion2k大约 6 年前
It&#x27;s ironic that the author chose to use a page that loads 1.5Mb of data, including 12 separate stylesheets, to write about a minimal stylesheet.
评论 #19623263 未加载
评论 #19623858 未加载
评论 #19623127 未加载
评论 #19623174 未加载
评论 #19623118 未加载
评论 #19623279 未加载