use git diff to generate file list
git diff --name-only master
add ext filter
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
/*! = $rembase: 14px | |
-------------------------------------------------------------- | |
* hmtl { font-size: 87.5%; } | |
* body { font-size: 14px; font-size: 1rem; line-height: 1; } | |
* 4px 0.28571429rem | |
* 8px 0.571428571rem | |
* 12px 0.857142857rem | |
* 13px 0.928571429rem | |
* 14px 1rem | |
* 16px 1.142857143rem |
"order/properties-order": [ | |
{ "properties": [ "content", "quotes" ] }, | |
{ "properties": [ "display", "visibility" ] }, | |
{ "properties": [ "position", "z-index", "top", "right", "bottom", "left" ] }, | |
{ "properties": [ "box-sizing" ] }, | |
{ "properties": [ "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "align-content", "align-items", "align-self", "justify-content", "order" ] }, | |
{ "properties": [ "width", "min-width", "max-width", "height", "min-height", "max-height" ] }, | |
{ "properties": [ "margin", "margin-top", "margin-right", "margin-bottom", "margin-left" ] }, | |
{ "properties": [ "padding", "padding-top", "padding-right", "padding-bottom", "padding-left" ] }, |
use git diff to generate file list
git diff --name-only master
add ext filter
// There seems to be a few algorithms floating around for brightness/luminance detection. | |
// One uses NTSC `(299*R + 587*G + 114*B)` which is incorrect for web colors (sRGB) see | |
// `rgbLuminance` for "better" coefficients (seems subjective but agreed apon). To be more | |
// accurate you need to also convert RGB from sRGB color space (which gives more spectrum to lighter colors) | |
// to linear rgb which normalizes colors across the spectrum - better for processing. | |
// see https://stackoverflow.com/questions/596216/formula-to-determine-perceived-brightness-of-rgb-color | |
// convert sRGB to linear RGB values | |
// - channel ** 2.218 same as Math.pow((channel + 0.055) / 1.055, 2.4) | |
// - i've seen this simplified to be just `(channel / 255) ** 2.21` |