Use this regular expression to match BEM class-names:
^\.[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$
/* | |
This is not meant to be a final CSSWG proposal, | |
but reflects my immediate thoughts after reading | |
[David Baron's](https://github.com/dbaron/container-queries-implementability) promising draft. | |
This gist was created to demonstrate my idea for removing selectors from his query syntax. | |
More of my thoughts & notes are online at css.oddbird.net/rwd/ | |
*/ | |
main, |
-- This script will copy a specially formatted version of the current Chrome tab to your clipboard. For example, if you are viewing Jira ticket in Chrome, "sig-435-add-icons-to-abm-filter-panel" or "[SIG-435] Add icons to ABM filter panel" can be copied to the clipboard. | |
-- How to use: Save to ~/Library/Scripts folder and enable the AppleScript menu (launch Applications/Script Editor and go to settings) or download FastScripts (for more features including add hot keys). | |
tell application "Google Chrome" | |
if not (exists window 1) then return | |
set theTitle to the title of active tab of window 1 | |
tell application "System Events" |
.is-clearfix { | |
@include clearfix; | |
} | |
.is-clear { | |
clear: both; | |
} | |
.is-container { | |
@include outer-container; |
.is-sibling-grid { | |
margin-left: auto; | |
margin-right: auto; | |
padding-left: 0; | |
padding-right: 0; | |
} | |
.is-sibling-grid > :only-child { | |
display: block; | |
width: 100%; |
The MIT License (MIT) | |
Copyright (c) 2015 Justin Perry | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
[alias] | |
co = checkout | |
ci = commit | |
ca = commit --amend | |
cia = commit -a | |
can = commit --amend --no-edit | |
com = checkout master | |
st = status | |
s = status --short | |
b = branch |
git archive --output=file.zip HEAD $(git diff --name-only SHA1 SHA2) |