These rules are adopted from the AngularJS commit conventions.
$module: 'block'; | |
.#{$module} { | |
&__element { | |
} | |
&--modifier { | |
.#{$module}__element { | |
} |
Custom select box for Firefox while we are waiting for the release of 35!!
A Pen by Thiago Lagden on CodePen.
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
var gulp = require('gulp'); | |
var bemLinter = require('postcss-bem-linter'); | |
var atImport = require('postcss-import'); | |
var cssnext = require('cssnext'); | |
var postcss = require('gulp-postcss'); | |
var concat = require('gulp-concat'); | |
var notify = require('gulp-notify'); | |
var stylus = require('gulp-stylus'); | |
gulp.task('css', function() { |
Ref: https://gist.github.com/vertexclique/9839383
Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).
Common step after enter run the patch command:
- After run the commands, start new Sublime Text app, go to Main Menu > Help > Enter License. On the popup type in any text (example "a") and click Use Licence .
li { | |
display: none; | |
} | |
/* select items 1 through 3 and show them */ | |
li:nth-child(-n+3) { | |
display: block; | |
} |
// moduleName = name of your npm module | |
var moduleName = (function moduleName() { | |
"use strict"; | |
// YOUR PRETTY JS CODE THAT WILL CHANGE THE WORLD | |
// return whatever; | |
})( this ); |
var sendString = (function(rfb, force, sendDelay) { | |
sendDelay = sendDelay || 25; | |
var _q = []; | |
var _qStart = function() { | |
var chr = _q.shift(); | |
if (chr) { | |
rfb.sendKey(chr); | |
setTimeout(_qStart, sendDelay); | |
} | |
}; |