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....
虽然我(该 CSS Guideline 文档原作者 Harry Roberts)是个英国人,而且我一向拼写 colour 而非 color,但是为了追求统一,我认为在 CSS 中用美式拼法更佳。CSS 以及其它多数语言都是以美式拼法编写,所以如果在 .colour-picker{} 中写 color:red 就缺乏统一性。我以前主张同时用两种拼法,例如: .color-picker, .colo...
The point here isyou want to be as specific as it makes sense to beevery chance you get. Even with the simple example presented above, it will become obvious to you eventually that simply using a class name to target that “favorite drink” isn’t going to cut it, or won’t be very...
Finding those errors might be prevented by using an extension for your favorite code editor or setting up a linter or code checker. But that is not what I want to show here, and that is not enough. We could still usetoo manycolors, typographic definitions, or z-indexes, all of which c...
* We do not prefix lines of code with an asterisk as to do so would inhibit * copy and paste. */ /** * 这是一个文档块(DocBlock)风格的注释。 * * 这里开始是描述更详细、篇幅更长的注释正文。当然,我们要把行宽控制在 80 字节以内。
Harry Roberts'introduction to BEM We recommend a variant of BEM with PascalCased “blocks”, which works particularly well when combined with components (e.g. React). Underscores and dashes are still used for modifiers and children. Example ...
This file, which isanother idea by Harry Roberts, is a place for all the shameful CSS solutions like quick fixes and hacky things that might solve a problem for the time being but should be solved properly later. Make sure to document all those nasty hacks with comments, though: Why did...
Some side notes: I tend to get rid of the padding 0 when dealing with decimal numbers between 0 and 1, making the number start with a .; I try to make colors as short as possible, following this order: keyword > small hex triplet > hex triplet > rgb/hsl > rgba/hsla, I avoid ma...
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.Applicatio...
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 ...