.retina(@top: transparent, @right: transparent, @bottom: transparent, @left: transparent, @w: 1px) {
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2) {
border: none;
background-image:
-webkit-linear-gradient(270deg, @top, @top 50%, transparent 50%),
-webkit-linear-gradient(180deg, @right, @right 50%, transparent 50%),
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //from article http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html | |
| //一.基本模式 | |
| // | |
| //1. 匿名闭包 Anonymous Closures | |
| (function(){ | |
| // ... all vars and functions are in this scope only | |
| // still maintains access to all globals | |
| })(); |