├── .gitignore ├── Cakefile ├── README.md ├── dist ├── leaflet.css.js └── leaflet.css.min.js ├── gh-fork-ribbon.css ├── gh-fork-ribbon.ie.css ├── index.html ├── package.json ├── script.js ├── sprite.js ├── sprites.png └── src ├── leaflet.css ├── leaflet.css.coffee └── leaflet.ie.css /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | ~* 3 | .c9revisions 4 | node_modules -------------------------------------------------------------------------------- /Cakefile: -------------------------------------------------------------------------------- 1 | fs = require 'fs' 2 | coffee = require 'coffee-script' 3 | uglifyjs = require 'uglify-js' 4 | cssc = require 'css-condense' 5 | async = require 'async' 6 | 7 | task 'build', 'build it', () -> 8 | rf = (file, cb)-> 9 | fs.readFile "./src/"+file, "utf8",cb 10 | async.map ["leaflet.css","leaflet.ie.css","leaflet.css.coffee"],rf, (e,files)-> 11 | unless e 12 | css = JSON.stringify [cssc.compress(files[0]),cssc.compress(files[1])] 13 | cs = coffee.compile "cssFiles = #{ css }\n#{ files[2] }" 14 | fs.writeFile './dist/leaflet.css.js', cs 15 | console.log "compliled" 16 | ast = uglifyjs.parse cs 17 | ast.figure_out_scope(); 18 | ast.compute_char_frequency(); 19 | ast.mangle_names(); 20 | fs.writeFile './dist/leaflet.css.min.js', "var css = #{ css };#{ ast.print_to_string() }" 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Leaflet CSS 2 | ========== 3 | 4 | small library to add the css for leaflet without having to bother including ugly conditional comments 5 | 6 | to use instead of including the css files for leaflet in th head, include this after you include leaflet, then it includes it'self automatically 7 | 8 | if you want to call more css in the same way, like maybe for your own plugin, you can do 9 | 10 | ```javascript 11 | L.css(["string of css (optional)","string of css for internet explorer, (also optional)"]); 12 | ``` 13 | build with 14 | ```bash 15 | npm install #install dependencies 16 | cake build # if that gets you an error try this first 17 | npm install -g coffee-script # you may need a sudo 18 | ``` 19 | 20 | demo includes [leaflet.sprite](https://github.com/calvinmetcalf/leaflet.sprite) -------------------------------------------------------------------------------- /dist/leaflet.css.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var LCCS, cssFiles, 3 | __slice = [].slice; 4 | 5 | cssFiles = [".leaflet-image-layer,.leaflet-layer,.leaflet-map-pane,.leaflet-marker-icon,.leaflet-marker-pane,.leaflet-marker-shadow,.leaflet-overlay-pane,.leaflet-overlay-pane svg,.leaflet-popup-pane,.leaflet-shadow-pane,.leaflet-tile,.leaflet-tile-pane,.leaflet-zoom-box{left:0;position:absolute;top:0}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none}.leaflet-container img{max-width:none!important}.leaflet-container img.leaflet-image-layer{max-width:15000px!important}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-tile-pane{z-index:2}.leaflet-objects-pane{z-index:3}.leaflet-overlay-pane{z-index:4}.leaflet-shadow-pane{z-index:5}.leaflet-marker-pane{z-index:6}.leaflet-popup-pane{z-index:7}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{clear:both;float:left;pointer-events:auto;position:relative;z-index:7}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{float:right;margin-right:10px}.leaflet-fade-anim .leaflet-popup,.leaflet-fade-anim .leaflet-tile{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;-o-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup,.leaflet-fade-anim .leaflet-tile-loaded{opacity:1}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);-moz-transition:-moz-transform 0.25s cubic-bezier(0,0,0.25,1);-o-transition:-o-transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-touching .leaflet-zoom-animated,.leaflet-zoom-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-clickable{cursor:pointer}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging,.leaflet-dragging .leaflet-clickable,.leaflet-dragging .leaflet-container{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing}.leaflet-container a{color:#0078a8}.leaflet-container a.leaflet-active{outline:2px solid orange}.leaflet-zoom-box{background:white;border:2px dotted #05f;height:0;opacity:0.5;width:0}.leaflet-container{background:#ddd;cursor:-webkit-grab;cursor:-moz-grab;font:12px/1.5 \"Helvetica Neue\" , Arial, Helvetica, sans-serif;outline:0;overflow:hidden;-ms-touch-action:none}.leaflet-bar{border:1px solid #888;-webkit-border-radius:5px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,0.4)}.leaflet-bar-part{background-color:rgba(255,255,255,0.8);border-bottom:1px solid #aaa}.leaflet-bar-part-top{-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.leaflet-bar-part-bottom{border-bottom:0;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.leaflet-touch .leaflet-bar{-webkit-border-radius:10px;border-radius:10px}.leaflet-touch .leaflet-bar-part{border-bottom:4px solid rgba(0,0,0,0.3)}.leaflet-touch .leaflet-bar-part-top{-webkit-border-radius:7px 7px 0 0;border-radius:7px 7px 0 0}.leaflet-touch .leaflet-bar-part-bottom{border-bottom:0;-webkit-border-radius:0 0 7px 7px;border-radius:0 0 7px 7px}.leaflet-container .leaflet-control-zoom{margin-left:13px;margin-top:12px}.leaflet-control-zoom a{color:black;height:22px;text-align:center;text-decoration:none;width:22px}.leaflet-control-layers-toggle,.leaflet-control-zoom a{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-control-zoom a:hover{background-color:#fff;color:#777}.leaflet-control-zoom-in{font:bold 18px/24px Arial,Helvetica,sans-serif}.leaflet-control-zoom-out{font:bold 23px/20px Tahoma,Verdana,sans-serif}.leaflet-control-zoom a.leaflet-control-zoom-disabled{background-color:rgba(255,255,255,0.8);color:#bbb;cursor:default}.leaflet-touch .leaflet-control-zoom a{height:30px;width:30px}.leaflet-touch .leaflet-control-zoom-in{font-size:24px;line-height:29px}.leaflet-touch .leaflet-control-zoom-out{font-size:28px;line-height:24px}.leaflet-control-layers{background:#f8f8f9;-webkit-border-radius:8px;border-radius:8px;box-shadow:0 1px 7px rgba(0,0,0,0.4)}.leaflet-control-layers-toggle{background-image:url(images/layers.png);height:36px;width:36px}.leaflet-touch .leaflet-control-layers-toggle{height:44px;width:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#333;padding:6px 10px 6px 6px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label,.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-container .leaflet-control-attribution{background-color:rgba(255,255,255,0.7);box-shadow:0 0 5px #bbb;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px}.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{background-color:rgba(255,255,255,0.5);border:2px solid #777;border-top:0;box-shadow:0 -1px 5px rgba(0,0,0,0.2);color:black;font-size:11px;line-height:1.1;overflow:hidden;padding:2px 5px 1px;text-shadow:1px 1px 1px #fff;white-space:nowrap}.leaflet-control-scale-line:not(:first-child){border-bottom:0;border-top:2px solid #777;box-shadow:0 2px 5px rgba(0,0,0,0.2);margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-control-zoom{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-control-zoom{border:4px solid rgba(0,0,0,0.3)}.leaflet-popup{position:absolute;text-align:center}.leaflet-popup-content-wrapper{-webkit-border-radius:20px;border-radius:20px;padding:1px;text-align:left}.leaflet-popup-content{line-height:1.4;margin:14px 20px}.leaflet-popup-content p{margin:18px 0}.leaflet-popup-tip-container{height:20px;margin:0 auto;overflow:hidden;position:relative;width:40px}.leaflet-popup-tip{height:15px;margin:-8px auto 0;padding:1px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);width:15px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;box-shadow:0 3px 14px rgba(0,0,0,0.4)}.leaflet-container a.leaflet-popup-close-button{background:transparent;color:#c3c3c3;font:16px/14px Tahoma,Verdana,sans-serif;font-weight:bold;height:14px;padding:4px 5px 0 0;position:absolute;right:0;text-align:center;text-decoration:none;top:0;width:18px}.leaflet-container a.leaflet-popup-close-button:hover{color:#999}.leaflet-popup-scrolled{border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:auto}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-editing-icon{-webkit-border-radius:2px;border-radius:2px}", ".leaflet-vml-shape{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{display:inline}.leaflet-popup-tip{filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678);-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";margin:0 auto;_margin-top:-3px;width:21px;_width:27px}.leaflet-popup-tip-container{margin-top:-1px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{border:1px solid #999}.leaflet-popup-content-wrapper{zoom:1}.leaflet-control-layers,.leaflet-control-zoom{border:3px solid #999}.leaflet-control-zoom a{background-color:#eee}.leaflet-control-zoom a:hover{background-color:#fff}.leaflet-control-attribution,.leaflet-control-layers,.leaflet-control-scale-line{background:white}.leaflet-zoom-box{filter:alpha(opacity=50)}.leaflet-control-attribution{border-left:1px solid #bbb;border-top:1px solid #bbb}"]; 6 | 7 | LCCS = (function() { 8 | 9 | function LCCS(css) { 10 | var imagePath; 11 | imagePath = L.Icon.Default.imagePath; 12 | css[0] = css[0].replace("url(images", "url(" + imagePath); 13 | this.addStyle(css); 14 | } 15 | 16 | LCCS.prototype.addStyle = function(styles) { 17 | var head, styleElt, styleSheet; 18 | if (document.createStyleSheet) { 19 | styleSheet = document.createStyleSheet(); 20 | styleSheet.cssText = styles.join("\n"); 21 | } else { 22 | head = document.getElementsByTagName("head")[0]; 23 | styleElt = document.createElement("style"); 24 | head.appendChild(styleElt); 25 | styleElt.innerHTML = styles[0]; 26 | } 27 | return true; 28 | }; 29 | 30 | return LCCS; 31 | 32 | })(); 33 | 34 | L.CSS = LCCS; 35 | 36 | L.css = function() { 37 | var params; 38 | params = 1 <= arguments.length ? __slice.call(arguments, 0) : []; 39 | return (function(func, args, ctor) { 40 | ctor.prototype = func.prototype; 41 | var child = new ctor, result = func.apply(child, args); 42 | return Object(result) === result ? result : child; 43 | })(L.CSS, params, function(){}); 44 | }; 45 | 46 | L.css(cssFiles); 47 | 48 | }).call(this); 49 | -------------------------------------------------------------------------------- /dist/leaflet.css.min.js: -------------------------------------------------------------------------------- 1 | var css = [".leaflet-image-layer,.leaflet-layer,.leaflet-map-pane,.leaflet-marker-icon,.leaflet-marker-pane,.leaflet-marker-shadow,.leaflet-overlay-pane,.leaflet-overlay-pane svg,.leaflet-popup-pane,.leaflet-shadow-pane,.leaflet-tile,.leaflet-tile-pane,.leaflet-zoom-box{left:0;position:absolute;top:0}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none}.leaflet-container img{max-width:none!important}.leaflet-container img.leaflet-image-layer{max-width:15000px!important}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-tile-pane{z-index:2}.leaflet-objects-pane{z-index:3}.leaflet-overlay-pane{z-index:4}.leaflet-shadow-pane{z-index:5}.leaflet-marker-pane{z-index:6}.leaflet-popup-pane{z-index:7}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{clear:both;float:left;pointer-events:auto;position:relative;z-index:7}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{float:right;margin-right:10px}.leaflet-fade-anim .leaflet-popup,.leaflet-fade-anim .leaflet-tile{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;-o-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup,.leaflet-fade-anim .leaflet-tile-loaded{opacity:1}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);-moz-transition:-moz-transform 0.25s cubic-bezier(0,0,0.25,1);-o-transition:-o-transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-touching .leaflet-zoom-animated,.leaflet-zoom-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-clickable{cursor:pointer}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging,.leaflet-dragging .leaflet-clickable,.leaflet-dragging .leaflet-container{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing}.leaflet-container a{color:#0078a8}.leaflet-container a.leaflet-active{outline:2px solid orange}.leaflet-zoom-box{background:white;border:2px dotted #05f;height:0;opacity:0.5;width:0}.leaflet-container{background:#ddd;cursor:-webkit-grab;cursor:-moz-grab;font:12px/1.5 \"Helvetica Neue\" , Arial, Helvetica, sans-serif;outline:0;overflow:hidden;-ms-touch-action:none}.leaflet-bar{border:1px solid #888;-webkit-border-radius:5px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,0.4)}.leaflet-bar-part{background-color:rgba(255,255,255,0.8);border-bottom:1px solid #aaa}.leaflet-bar-part-top{-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.leaflet-bar-part-bottom{border-bottom:0;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.leaflet-touch .leaflet-bar{-webkit-border-radius:10px;border-radius:10px}.leaflet-touch .leaflet-bar-part{border-bottom:4px solid rgba(0,0,0,0.3)}.leaflet-touch .leaflet-bar-part-top{-webkit-border-radius:7px 7px 0 0;border-radius:7px 7px 0 0}.leaflet-touch .leaflet-bar-part-bottom{border-bottom:0;-webkit-border-radius:0 0 7px 7px;border-radius:0 0 7px 7px}.leaflet-container .leaflet-control-zoom{margin-left:13px;margin-top:12px}.leaflet-control-zoom a{color:black;height:22px;text-align:center;text-decoration:none;width:22px}.leaflet-control-layers-toggle,.leaflet-control-zoom a{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-control-zoom a:hover{background-color:#fff;color:#777}.leaflet-control-zoom-in{font:bold 18px/24px Arial,Helvetica,sans-serif}.leaflet-control-zoom-out{font:bold 23px/20px Tahoma,Verdana,sans-serif}.leaflet-control-zoom a.leaflet-control-zoom-disabled{background-color:rgba(255,255,255,0.8);color:#bbb;cursor:default}.leaflet-touch .leaflet-control-zoom a{height:30px;width:30px}.leaflet-touch .leaflet-control-zoom-in{font-size:24px;line-height:29px}.leaflet-touch .leaflet-control-zoom-out{font-size:28px;line-height:24px}.leaflet-control-layers{background:#f8f8f9;-webkit-border-radius:8px;border-radius:8px;box-shadow:0 1px 7px rgba(0,0,0,0.4)}.leaflet-control-layers-toggle{background-image:url(images/layers.png);height:36px;width:36px}.leaflet-touch .leaflet-control-layers-toggle{height:44px;width:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#333;padding:6px 10px 6px 6px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label,.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-container .leaflet-control-attribution{background-color:rgba(255,255,255,0.7);box-shadow:0 0 5px #bbb;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px}.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{background-color:rgba(255,255,255,0.5);border:2px solid #777;border-top:0;box-shadow:0 -1px 5px rgba(0,0,0,0.2);color:black;font-size:11px;line-height:1.1;overflow:hidden;padding:2px 5px 1px;text-shadow:1px 1px 1px #fff;white-space:nowrap}.leaflet-control-scale-line:not(:first-child){border-bottom:0;border-top:2px solid #777;box-shadow:0 2px 5px rgba(0,0,0,0.2);margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-control-zoom{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-control-zoom{border:4px solid rgba(0,0,0,0.3)}.leaflet-popup{position:absolute;text-align:center}.leaflet-popup-content-wrapper{-webkit-border-radius:20px;border-radius:20px;padding:1px;text-align:left}.leaflet-popup-content{line-height:1.4;margin:14px 20px}.leaflet-popup-content p{margin:18px 0}.leaflet-popup-tip-container{height:20px;margin:0 auto;overflow:hidden;position:relative;width:40px}.leaflet-popup-tip{height:15px;margin:-8px auto 0;padding:1px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);width:15px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;box-shadow:0 3px 14px rgba(0,0,0,0.4)}.leaflet-container a.leaflet-popup-close-button{background:transparent;color:#c3c3c3;font:16px/14px Tahoma,Verdana,sans-serif;font-weight:bold;height:14px;padding:4px 5px 0 0;position:absolute;right:0;text-align:center;text-decoration:none;top:0;width:18px}.leaflet-container a.leaflet-popup-close-button:hover{color:#999}.leaflet-popup-scrolled{border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:auto}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-editing-icon{-webkit-border-radius:2px;border-radius:2px}",".leaflet-vml-shape{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{display:inline}.leaflet-popup-tip{filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678);-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";margin:0 auto;_margin-top:-3px;width:21px;_width:27px}.leaflet-popup-tip-container{margin-top:-1px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{border:1px solid #999}.leaflet-popup-content-wrapper{zoom:1}.leaflet-control-layers,.leaflet-control-zoom{border:3px solid #999}.leaflet-control-zoom a{background-color:#eee}.leaflet-control-zoom a:hover{background-color:#fff}.leaflet-control-attribution,.leaflet-control-layers,.leaflet-control-scale-line{background:white}.leaflet-zoom-box{filter:alpha(opacity=50)}.leaflet-control-attribution{border-left:1px solid #bbb;border-top:1px solid #bbb}"];(function(){var e,t,l=[].slice;t=['.leaflet-image-layer,.leaflet-layer,.leaflet-map-pane,.leaflet-marker-icon,.leaflet-marker-pane,.leaflet-marker-shadow,.leaflet-overlay-pane,.leaflet-overlay-pane svg,.leaflet-popup-pane,.leaflet-shadow-pane,.leaflet-tile,.leaflet-tile-pane,.leaflet-zoom-box{left:0;position:absolute;top:0}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none}.leaflet-container img{max-width:none!important}.leaflet-container img.leaflet-image-layer{max-width:15000px!important}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-tile-pane{z-index:2}.leaflet-objects-pane{z-index:3}.leaflet-overlay-pane{z-index:4}.leaflet-shadow-pane{z-index:5}.leaflet-marker-pane{z-index:6}.leaflet-popup-pane{z-index:7}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{clear:both;float:left;pointer-events:auto;position:relative;z-index:7}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{float:right;margin-right:10px}.leaflet-fade-anim .leaflet-popup,.leaflet-fade-anim .leaflet-tile{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;-o-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup,.leaflet-fade-anim .leaflet-tile-loaded{opacity:1}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);-moz-transition:-moz-transform 0.25s cubic-bezier(0,0,0.25,1);-o-transition:-o-transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-touching .leaflet-zoom-animated,.leaflet-zoom-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-clickable{cursor:pointer}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging,.leaflet-dragging .leaflet-clickable,.leaflet-dragging .leaflet-container{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing}.leaflet-container a{color:#0078a8}.leaflet-container a.leaflet-active{outline:2px solid orange}.leaflet-zoom-box{background:white;border:2px dotted #05f;height:0;opacity:0.5;width:0}.leaflet-container{background:#ddd;cursor:-webkit-grab;cursor:-moz-grab;font:12px/1.5 "Helvetica Neue" , Arial, Helvetica, sans-serif;outline:0;overflow:hidden;-ms-touch-action:none}.leaflet-bar{border:1px solid #888;-webkit-border-radius:5px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,0.4)}.leaflet-bar-part{background-color:rgba(255,255,255,0.8);border-bottom:1px solid #aaa}.leaflet-bar-part-top{-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.leaflet-bar-part-bottom{border-bottom:0;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.leaflet-touch .leaflet-bar{-webkit-border-radius:10px;border-radius:10px}.leaflet-touch .leaflet-bar-part{border-bottom:4px solid rgba(0,0,0,0.3)}.leaflet-touch .leaflet-bar-part-top{-webkit-border-radius:7px 7px 0 0;border-radius:7px 7px 0 0}.leaflet-touch .leaflet-bar-part-bottom{border-bottom:0;-webkit-border-radius:0 0 7px 7px;border-radius:0 0 7px 7px}.leaflet-container .leaflet-control-zoom{margin-left:13px;margin-top:12px}.leaflet-control-zoom a{color:black;height:22px;text-align:center;text-decoration:none;width:22px}.leaflet-control-layers-toggle,.leaflet-control-zoom a{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-control-zoom a:hover{background-color:#fff;color:#777}.leaflet-control-zoom-in{font:bold 18px/24px Arial,Helvetica,sans-serif}.leaflet-control-zoom-out{font:bold 23px/20px Tahoma,Verdana,sans-serif}.leaflet-control-zoom a.leaflet-control-zoom-disabled{background-color:rgba(255,255,255,0.8);color:#bbb;cursor:default}.leaflet-touch .leaflet-control-zoom a{height:30px;width:30px}.leaflet-touch .leaflet-control-zoom-in{font-size:24px;line-height:29px}.leaflet-touch .leaflet-control-zoom-out{font-size:28px;line-height:24px}.leaflet-control-layers{background:#f8f8f9;-webkit-border-radius:8px;border-radius:8px;box-shadow:0 1px 7px rgba(0,0,0,0.4)}.leaflet-control-layers-toggle{background-image:url(images/layers.png);height:36px;width:36px}.leaflet-touch .leaflet-control-layers-toggle{height:44px;width:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#333;padding:6px 10px 6px 6px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label,.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-container .leaflet-control-attribution{background-color:rgba(255,255,255,0.7);box-shadow:0 0 5px #bbb;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px}.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{background-color:rgba(255,255,255,0.5);border:2px solid #777;border-top:0;box-shadow:0 -1px 5px rgba(0,0,0,0.2);color:black;font-size:11px;line-height:1.1;overflow:hidden;padding:2px 5px 1px;text-shadow:1px 1px 1px #fff;white-space:nowrap}.leaflet-control-scale-line:not(:first-child){border-bottom:0;border-top:2px solid #777;box-shadow:0 2px 5px rgba(0,0,0,0.2);margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-control-zoom{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-control-zoom{border:4px solid rgba(0,0,0,0.3)}.leaflet-popup{position:absolute;text-align:center}.leaflet-popup-content-wrapper{-webkit-border-radius:20px;border-radius:20px;padding:1px;text-align:left}.leaflet-popup-content{line-height:1.4;margin:14px 20px}.leaflet-popup-content p{margin:18px 0}.leaflet-popup-tip-container{height:20px;margin:0 auto;overflow:hidden;position:relative;width:40px}.leaflet-popup-tip{height:15px;margin:-8px auto 0;padding:1px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);width:15px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;box-shadow:0 3px 14px rgba(0,0,0,0.4)}.leaflet-container a.leaflet-popup-close-button{background:transparent;color:#c3c3c3;font:16px/14px Tahoma,Verdana,sans-serif;font-weight:bold;height:14px;padding:4px 5px 0 0;position:absolute;right:0;text-align:center;text-decoration:none;top:0;width:18px}.leaflet-container a.leaflet-popup-close-button:hover{color:#999}.leaflet-popup-scrolled{border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:auto}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-editing-icon{-webkit-border-radius:2px;border-radius:2px}','.leaflet-vml-shape{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{display:inline}.leaflet-popup-tip{filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678);-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";margin:0 auto;_margin-top:-3px;width:21px;_width:27px}.leaflet-popup-tip-container{margin-top:-1px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{border:1px solid #999}.leaflet-popup-content-wrapper{zoom:1}.leaflet-control-layers,.leaflet-control-zoom{border:3px solid #999}.leaflet-control-zoom a{background-color:#eee}.leaflet-control-zoom a:hover{background-color:#fff}.leaflet-control-attribution,.leaflet-control-layers,.leaflet-control-scale-line{background:white}.leaflet-zoom-box{filter:alpha(opacity=50)}.leaflet-control-attribution{border-left:1px solid #bbb;border-top:1px solid #bbb}'];e=function(){function e(e){var t;t=L.Icon.Default.imagePath;e[0]=e[0].replace("url(images","url("+t);this.addStyle(e)}e.prototype.addStyle=function(e){var t,l,o;if(document.createStyleSheet){o=document.createStyleSheet();o.cssText=e.join("\n")}else{t=document.getElementsByTagName("head")[0];l=document.createElement("style");t.appendChild(l);l.innerHTML=e[0]}return true};return e}();L.CSS=e;L.css=function(){var e;e=1<=arguments.length?l.call(arguments,0):[];return function(e,t,l){l.prototype=e.prototype;var o=new l,a=e.apply(o,t);return Object(a)===a?a:o}(L.CSS,e,function(){})};L.css(t)}).call(this); -------------------------------------------------------------------------------- /gh-fork-ribbon.css: -------------------------------------------------------------------------------- 1 | /* Left will inherit from right (so we don't need to duplicate code */ 2 | .github-fork-ribbon { 3 | /* The right and left lasses determine the side we attach our banner to */ 4 | position: absolute; 5 | 6 | /* Add a bit of padding to give some substance outside the "stitching" */ 7 | padding: 2px 0; 8 | 9 | /* Set the base colour */ 10 | background-color: #a00; 11 | 12 | /* Set a gradient: transparent black at the top to almost-transparent black at the bottom */ 13 | background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.00)), to(rgba(0, 0, 0, 0.15))); 14 | background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15)); 15 | background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15)); 16 | background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15)); 17 | background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15)); 18 | background-image: linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15)); 19 | filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#000000', EndColorStr='#000000'); 20 | 21 | /* Add a drop shadow */ 22 | -webkit-box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5); 23 | box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5); 24 | z-index:5; 25 | } 26 | .github-fork-ribbon a { 27 | /* Set the font */ 28 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 29 | font-size: 13px; 30 | font-weight: 700; 31 | color: white; 32 | 33 | /* Set the text properties */ 34 | text-decoration: none; 35 | text-shadow: 0 -1px rgba(0,0,0,0.5); 36 | text-align: center; 37 | 38 | /* Set the geometry. If you fiddle with these you'll also need to tweak the top and right values in #github-fork-ribbon. */ 39 | width: 200px; 40 | line-height: 20px; 41 | 42 | /* Set the layout properties */ 43 | display: inline-block; 44 | padding: 2px 0; 45 | 46 | /* Add "stitching" effect */ 47 | border-width: 1px 0; 48 | border-style: dotted; 49 | border-color: rgba(255,255,255,0.7); 50 | } 51 | 52 | .github-fork-ribbon-wrapper { 53 | width: 150px; 54 | height: 150px; 55 | position: absolute; 56 | overflow: hidden; 57 | top: 0; 58 | } 59 | 60 | .github-fork-ribbon-wrapper.left { 61 | left: 0; 62 | } 63 | 64 | .github-fork-ribbon-wrapper.right { 65 | right: 0; 66 | } 67 | 68 | .github-fork-ribbon-wrapper.right .github-fork-ribbon { 69 | top: 42px; 70 | right: -43px; 71 | 72 | /* Rotate the banner 45 degrees */ 73 | -webkit-transform: rotate(45deg); 74 | -moz-transform: rotate(45deg); 75 | -o-transform: rotate(45deg); 76 | transform: rotate(45deg); 77 | } 78 | 79 | .github-fork-ribbon-wrapper.left .github-fork-ribbon { 80 | /* Attach to the left of the page */ 81 | top: 42px; 82 | left: -43px; 83 | 84 | /* Rotate the banner -45 degrees */ 85 | -webkit-transform: rotate(-45deg); 86 | -moz-transform: rotate(-45deg); 87 | -o-transform: rotate(-45deg); 88 | transform: rotate(-45deg); 89 | } -------------------------------------------------------------------------------- /gh-fork-ribbon.ie.css: -------------------------------------------------------------------------------- 1 | /* IE voodoo courtesy of http://stackoverflow.com/a/4617511/263871 and 2 | * http://www.useragentman.com/IETransformsTranslator */ 3 | .github-fork-ribbon-wrapper.right .github-fork-ribbon { 4 | /* IE positioning hack (couldn't find a transform-origin alternative for IE) */ 5 | top: -22px; 6 | right: -62px; 7 | 8 | /* IE8+ */ 9 | -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474, M12=-0.7071067811865477, M21=0.7071067811865477, M22=0.7071067811865474, SizingMethod='auto expand')"; 10 | /* IE6 and 7 */ 11 | filter: progid:DXImageTransform.Microsoft.Matrix( 12 | M11=0.7071067811865474, 13 | M12=-0.7071067811865477, 14 | M21=0.7071067811865477, 15 | M22=0.7071067811865474, 16 | SizingMethod='auto expand' 17 | ); 18 | } 19 | 20 | .github-fork-ribbon-wrapper.left .github-fork-ribbon { 21 | top: -22px; 22 | left: -22px; 23 | 24 | /* IE8+ */ 25 | -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483, SizingMethod='auto expand')"; 26 | /* IE6 and 7 */ 27 | filter: progid:DXImageTransform.Microsoft.Matrix( 28 | M11=0.7071067811865483, 29 | M12=0.7071067811865467, 30 | M21=-0.7071067811865467, 31 | M22=0.7071067811865483, 32 | SizingMethod='auto expand' 33 | ); 34 | } 35 | 36 | .github-fork-ribbon-wrapper.left-bottom .github-fork-ribbon { 37 | /* IE positioning hack (couldn't find a transform-origin alternative for IE) */ 38 | top: 12px; 39 | left: -22px; 40 | 41 | 42 | /* IE8+ */ 43 | -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474, M12=-0.7071067811865477, M21=0.7071067811865477, M22=0.7071067811865474, SizingMethod='auto expand')"; 44 | /* IE6 and 7 */ 45 | /* filter: progid:DXImageTransform.Microsoft.Matrix( 46 | M11=0.7071067811865474, 47 | M12=-0.7071067811865477, 48 | M21=0.7071067811865477, 49 | M22=0.7071067811865474, 50 | SizingMethod='auto expand' 51 | ); 52 | */} 53 | 54 | .github-fork-ribbon-wrapper.right-bottom .github-fork-ribbon { 55 | top: 12px; 56 | right: -62px; 57 | 58 | /* IE8+ */ 59 | -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483, SizingMethod='auto expand')"; 60 | /* IE6 and 7 */ 61 | filter: progid:DXImageTransform.Microsoft.Matrix( 62 | M11=0.7071067811865483, 63 | M12=0.7071067811865467, 64 | M21=-0.7071067811865467, 65 | M22=0.7071067811865483, 66 | SizingMethod='auto expand' 67 | ); 68 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |