TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Minimal Responsive Grid System

52 pointsby vladocarabout 7 years ago

11 comments

tobyhinloopenabout 7 years ago
Next: Minimal CSS font-size system CSS framework!<p>Simple naming system! Only 0.5KB!<p><pre><code> .ten { font-size: 10px; } .eleven { font-size: 11px; } .twelve { font-size: 12px; } .thirteen { font-size: 13px; } .fourteen { font-size: 14px; } .fifteen { font-size: 15px; } .sixteen { font-size: 16px; } </code></pre> Plugins available for font styles &amp; variants!<p><pre><code> .bold { font-weight: bold; } .italic { font-variant: italic; } </code></pre> Use our CDN! Always available!<p><a href="https:&#x2F;&#x2F;mincss-fontsize.xyz&#x2F;simple-font-sizes.0.3.1.min.css" rel="nofollow">https:&#x2F;&#x2F;mincss-fontsize.xyz&#x2F;simple-font-sizes.0.3.1.min.css</a><p><a href="https:&#x2F;&#x2F;mincss-fontsize.xyz&#x2F;simple-font-styles.0.3.1.min.css" rel="nofollow">https:&#x2F;&#x2F;mincss-fontsize.xyz&#x2F;simple-font-styles.0.3.1.min.css</a><p><a href="https:&#x2F;&#x2F;mincss-fontsize.xyz&#x2F;simple-font-variants.0.3.1.min.css" rel="nofollow">https:&#x2F;&#x2F;mincss-fontsize.xyz&#x2F;simple-font-variants.0.3.1.min.c...</a><p>Changelog:<p>0.3.1<p>- Changed .sixteen to be actually 16px instead of 17px (typo)<p>0.3.0<p>- Added .sixteen for even larger text!
评论 #16978095 未加载
评论 #16976322 未加载
评论 #16977617 未加载
fabian2kabout 7 years ago
I&#x27;ve played around a bit with CSS grid, and to me it seemed like it would just make this kind of grid frameworks unnecessary. Everything I see on that page are native CSS grid features.<p>After looking at the CSS, it seems entirely redundant. It&#x27;s 36 lines, and only contains the basic grid setup you&#x27;d do by hand. Using CSS grid directly would not be hardly more difficult or verbose, and far more powerful than restricting yourself to the subset used in this.<p>What I also find strange is that this project still calculates the column width based on percentages, instead of the native support for fractions in CSS grid.
评论 #16976052 未加载
评论 #16978316 未加载
评论 #16976838 未加载
reaperducerabout 7 years ago
I don&#x27;t understand how this is &quot;Responsive.&quot; When I resize the browser window, it doesn&#x27;t respond. All it does is go off-screen like a standard table.<p>Is the home page, itself, not using this responsive framework?
评论 #16982581 未加载
评论 #16978347 未加载
regularfryabout 7 years ago
On Monday, I was at a very interesting talk about what&#x27;s coming up and what&#x27;s available in modern CSS. Apart from one exception, I can&#x27;t use <i>anything</i> that was gone over in an hour&#x27;s talk. Why? IE11.
评论 #16978157 未加载
drinchevabout 7 years ago
Are grids still a thing? I hardly had to use any for the last 2-3 years. I just have a `display: flex` and control the direction with media queries. Seems much more easy than learning a grid css file
评论 #16976082 未加载
评论 #16976011 未加载
tfeldmannabout 7 years ago
This is not responsive when resizing the browser window in Safari...
评论 #16976007 未加载
评论 #16976440 未加载
评论 #16976091 未加载
评论 #16976613 未加载
vladocarabout 7 years ago
Few words about this CSS layout solution. It is meant to be starting point. Because is only 36 lines of code you could personalise anything in the main CSS file. Example you can change the main width form 960px to 60 % or 70 em. You can change the grid margin from 10px to xyz px. You can personalise how the responsive layout works. Like I said before is only a starting point..
tzaholaabout 7 years ago
Minimal JS Integer Framework:<p><pre><code> function plusOne(x) { return x + 1 } function plusTwo(x) { return x + 2 } function plusThree(x) { return x + 3 } function plusFour(x) { return x + 4 } </code></pre> Using this framework, you can truly adhere to the DRY principle: instead of repeating x++ all around your codebase, you can simply do:<p><pre><code> x = plusOne(x)</code></pre>
boffinismabout 7 years ago
Lovely... but works in &lt; 90% of browsers [0], so it&#x27;s kind of for academic consideration only for now.<p>[0] <a href="https:&#x2F;&#x2F;caniuse.com&#x2F;#feat=css-grid" rel="nofollow">https:&#x2F;&#x2F;caniuse.com&#x2F;#feat=css-grid</a>
评论 #16977243 未加载
评论 #16976872 未加载
timwisabout 7 years ago
I want to check this out but I&#x27;m on my phone so there&#x27;s no way to &quot;view source&quot; and see how to actually use the framework. All I can see is the resulting grid on the demo page. Maybe add code snippets?
评论 #16976379 未加载
jordacheabout 7 years ago
the demo is not responsive.... hmm