虽然我(该 CSS Guideline 文档原作者 Harry Roberts)是个英国人,而且我一向拼写 colour 而非 color,但是为了追求统一,我认为在 CSS 中用美式拼法更佳。CSS 以及其它多数语言都是以美式拼法编写,所以如果在 .colour-picker{} 中写 color:red 就缺乏统一性。我以前主张同时用两种拼法,例如: .color-picker
Learn Web Design & Development with SitePoint tutorials, courses and books - HTML5, CSS3, JavaScript, PHP, mobile app development, Responsive Web Design
Use a CSS pre-processor and manage your files as partials (I personally prefer Sass with Compass, but Less is quite good as well and there are others) Read up on concepts like OOCSS, SMACSS, and BEM or getbem. Take a look at how popular CSS frameworks like Bootstrap and Zurb Foundatio...
Some Formatting Notes Throughout this book, identifiers that appear in code—such as variable names, property names, and API functions and namespaces—are formatted with a color and a fixed-point font. Here's an example: Windows.Storage.Application...
Features presenter console with speaker notes, timer, screen blanking and more. The theme provides all basic requirements for slide contents (images, video, code snippets etc) and gives you many small helpers to style contents. markdowncss/modest - A markdown CSS module that is rather modest....
I want to be able to form hypotheses and draw conclusions without viewing a single URL or a line of source code. That work is what comes next.For now, I’m usually sat with a coffee, some tunes on, and an old-school pen and paper making notes. What I’m hoping to ascertain is ...
Knowing when to use @extend versus @include can be a little tricky. Harry doesa nice job of differentiating the twoplus offers thoughts on how to use them both. List @include(s) Next .weather{@extend%module;@includetransition(all0.3sease-out);...} ...
Important Notes The universal selector (*) has no specificity value (0,0,0,0) Pseudo-elements (e.g. :first-line) get 0,0,0,1 unlike their psuedo-class brethren which get 0,0,1,0 The pseudo-class :not() adds no specificity by itself, only what’s inside it’s parentheses. ...
BEM IT, Harry Roberts Single Responsibility Principle in CSS, Harry Roberts Atomic Design, Brad Frost Resilient, Declarative, Contextual, Keith J. Grant SUITCSS,a naming convention Further Notes on the Scenius, Austin Kleon Version 1.*, June-October 2018 ...
I had a way better time being the emcee. We had some form of Q&A after the talk but all the questions ran through me first, and I could also come up with a couple of my own to get the ball rolling so that was nice. So I was taking notes by hand during everybody’s talk, whi...