IT

 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 

 

 






 







 


IT

 

 

AI  

 

 






 







 


 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 






 







 


 

Web  

 

 

PlayStation  

 

YouTuber  

 





 

 





 

 

 












A horizontal scrolling navigation pattern for touch and mouse with moving current indicator  

8users  
benfrain.com  






 

2017/03/16 10:31
 



















A modern CSS reset (with caveats)  

3users  
benfrain.com  


2587 days since last revision. Details are possibly out of date. Im always on the look out for a simple way to undo default user agent styling on some pickier elements (its what led to app-reset). Right up front, I want to say that unless you are very careful, you probably dont want to remove the default styling of ALL elements. Form controls, buttons, video tags etc. all have well-considered




 

2016/11/07 16:06
 



 











The iOS Safari menu bar is hostile to web apps: discuss  

4users  
benfrain.com  


2629 days since last revision. Details are possibly out of date. Im a big fan of Safari in general. My loathing of Safari on iOS is largely restricted to the menu bar. For clarity, Im talking about the UI at the bottom with the forward/backward icons in: That bar isnt hostile in principle; rather its the actions that invoke/dismiss its presence and its hijacking of the bottom 44px of the viewp



 

2016/09/23 23:07
 





 











Preventing body scroll for modals in iOS  

3users  
benfrain.com  


1366 days since last revision. Details are possibly out of date. TL;DR solution for 2020/iOS 13+ Thanks to the comments below (and thats why I love comments so much), we can put a few things together to have a working CSS only solution for iOS 13+: .bg-scrolling-element-when-modal-active { /* when modal active */ touch-action: none; -webkit-overflow-scrolling: none; overflow: hidden; /* Other bro




 

2016/09/15 15:52
 







 











Debugging CSS  

3users  
benfrain.com  


2959 days since last revision. Details are possibly out of date. Ive done a lot of CSS debugging. Others code and my own. Mobile platforms and standard desktop browsers. Everything from old versions of Internet Explorer to the latest WebKit nightlies. What became apparent to me as Ive worked with others, is that many people dont have a set procedure for debugging CSS. I found, more often than n




 

2016/06/01 13:09
 



 











Breaking up with Sass: its not you, its me  

4users  
benfrain.com  


3418 days since last revision. Details are possibly out of date. Right now, I have a near frictionless CSS workflow. I write in Sass, compile with Libsass and get vendor prefixes added with PostCSS/Autoprefixer via Gulp/Grunt. Why would I want to upset that? Just under a year ago, my interest was piqued by a post by Nicolas Gallagher. In it he described how he/they (Twitter) were using a JS tool t




 

2015/07/30 11:33
 







 











Floss your style sheets with Stylelint  

4users  
benfrain.com  


3032 days since last revision. Details are possibly out of date. Stylelint is a new linting tool for CSS that runs via PostCSS. Its quite new, having just released a 0.1.1 version. I love it. And Id like to tell you why. I like to think I practice good dental hygiene. Ive invested in a sonic toothbrush and perform a good, thorough, brush twice daily. However, as diligent as I am with my brushin



 

2015/07/22 19:04
 



 











Browser representatives on CSS performance  

5users  
benfrain.com  


3353 days since last revision. Details are possibly out of date. Around a year ago I wrote a couple of CSS performance related posts. The first post centred on CSS selectors and the second on CSS layout methods (Flexbox v Table). Sadly, while I dispelled (at least for myself) some long-standing CSS performance myths (principally that certain CSS selectors should be avoided at all costs for perform




 

2015/04/02 22:05
 







 











OOCSS/Atomic CSS are Responsive Web Design anti-patterns  

4users  
benfrain.com  


3406 days since last revision. Details are possibly out of date. For many months now, in response to many failed attempts to find a suitable approach to scaling the CSS on the projects I work on, I have been using ECSS, my own Frankenstein approach to large-scale CSS architecture. Its detailed more fully in the post, Enduring CSS: writing style sheets for rapidly changing, long-lived projects.




 

2015/01/23 08:30
 







 











Enduring CSS: writing style sheets for rapidly changing, long-lived projects  

16users  
benfrain.com  


25th September, 2015. The methodology of this post has now been updated, expanded and detailed more fully in my book, Enduring CSS, available from Leanpub. When architecting CSS for a large scale project its a common aim to abstract visual patterns for re-use, DRY out code and normalise our designs as much as possible. However, for rapidly changing projects, Im no longer convinced those principl




 

2014/08/08 08:33
 





 











Easy CSS fix for fixed positioning on Android 2.2 and 2.3  

3users  
benfrain.com  


3770 days since last revision. Details are possibly out of date. When it came to cross-testing a design on an old Android recently I came across a familiar problem to most front-end developers. The CSS property/value pair of position: fixed; doesnt work. Update: 2/3/14  Since writing this post I actually came across and documented a related issue regarding the poor performance of fixed position




 

2014/07/20 13:07
 









 











Is Libsass, the lightning fast Sass compiler ready for prime time?  

3users  
benfrain.com  






 

2014/04/16 21:09
 













CSS performance test: Flexbox v CSS Table  Fight!  

3users  
benfrain.com  


3715 days since last revision. Details are possibly out of date. Is the latest Flexbox implementation slower than CSS table layout? Yes, it is. But not enough to concern yourself about. If you need to use Flexbox, use it. For all but the most extreme situations, any speed difference against other layout methods is largely inconsequential. If you want to know why you would employ display: table and



 

2014/04/01 13:15
 





 











CSS performance revisited: selectors, bloat and expensive styles  

4users  
benfrain.com  


What is fast CSS? Where are the bottlenecks? Are the rules of slow and fast selectors even valid anymore? Are the properties we use more important than the selectors? I felt it was time to revisit some of these questions. In the broad scheme of things, CSS optimisation is certainly low down the priority order when trying to speed websites/web applications up. There are so many other optimisations




 

2014/02/27 23:08
 





 











Z-index stacking contexts, experimental CSS and iOS Safari  

4users  
benfrain.com  






 

2013/12/15 23:33
 



 











Writing modular CSS (BEM/OOCSS) selectors with Sass 3.3  

11users  
benfrain.com  


3710 days since last revision. Details are possibly out of date. Not long ago I wrote about my current modular CSS (BEM/OOCSS) naming conundrum. This is a shorter but related post about how those kinds of selectors can be produced with new features of Sass 3.3. Update 16th March 2014: The final release of Sass of 3.3 changed the way that suffix selectors could be written. This post (now much short




 

2013/12/05 09:28
 









 











Lightning fast Sass compiling with libsass, Node-sass and Grunt-sass  

6users  
benfrain.com  


The bigger the Sass project you work on, the slower compilation of your Sass project can become. That's because ordinarily Sass is Ruby based and there's never been a way around that. Until now. If you are interested in Libsass, you might be interested to read another post about migrating a code base from a Ruby based Sass compiler to Libsass? If so, take a look at Is Libsass, the lightning fast




 

2013/08/09 10:15
 











 











Faster Sass debugging and style iteration with source maps, Chrome Web Developer Tools and Grunt  

11users  
benfrain.com  


This post is now pretty out of date. I re-added it as the Chrome dev pages and css-tricks were linking in and nobody likes link rot. However, its likely things have changed quite a bit since I wrote this. Consider yourself warned! 😉 This is the third re-write of this post since first posting it back in November 2012. Ill keep trying to update as and when things change as theres every chance yo




 

2013/02/22 00:11
 









 











Understanding Middleman  the static site generator for faster prototyping  

8users  
benfrain.com  





 

2013/01/25 09:34
 











 











Understanding the CSS3 Flexbox (Flexible Box Layout Module)  

6users  
benfrain.com  


4182 days since last revision. Details are possibly out of date. Update 17th August 2012: The original version of this post was based on the Editors Draft, 20 April 2012. Since then, the specification has undergone further changes. The article has now been updated and is based on the Editors Draft, 13th August 2012. The current Editors draft can be found at http://dev.w3.org/csswg/css3-flexbox/




 

2012/08/19 22:12
 





 



































 

Home  

 



j

k

l

e

o
 
 
















 









 

















 









 









 







Pro



 




 






App Storeからダウンロード
Google Playで手に入れよう


Copyright © 2005-2024 Hatena. All Rights Reserved.
 





x