p {
color: rgba(255, 0, 0, 0.75) + rgba(0, 255, 0, 0.75);
}is compiled to:
p { | /* Box sizing rules */ | |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } | |
| /* Remove default padding */ | |
| ul[class], | |
| ol[class] { |
| Frankly, my dear, I don't give a damn. |
| var preload = ['1.png', '2.png', '3.png']; | |
| var images = []; | |
| for (var i = 0; i < preload.length; i++) { | |
| images[i] = new Image(); | |
| images[i].src = prelaod[i]; | |
| } |
| body { | |
| font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
| font-weight: 300; | |
| } |
| // Click to inject js into page | |
| chrome.browserAction.onClicked.addListener(function(tab) { | |
| chrometabs.executeScript(null, {file:'js/injector.js'}); | |
| }); |
| /*灰度*/ | |
| .grayscale { | |
| -webkit-filter: grayscale(1); | |
| filter: grayscale(1); | |
| } | |
| /*褐色*/ | |
| .sepia { | |
| -webkit-filter: sepia(1); | |
| filter: sepia(1); |
| //a alternative to javascript setInterval | |
| function interval(func, wait, times){ | |
| var interv = function(w, t){ | |
| return function(){ | |
| if(typeof t === "undefined" || t-- > 0){ | |
| setTimeout(interv, w); | |
| try{ | |
| func.call(null); | |
| } | |
| catch(e){ |
| /* one item */ | |
| li:first-child:nth-last-child(1) { | |
| width: 100%; | |
| } | |
| /* two items */ | |
| li:first-child:nth-last-child(2), | |
| li:first-child:nth-last-child(2) ~ li { | |
| width: 50%; | |
| } |
p {
color: rgba(255, 0, 0, 0.75) + rgba(0, 255, 0, 0.75);
}is compiled to:
p { | <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> |