Skip to content

Commit

Permalink
updates for transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Metcalf committed Mar 13, 2013
1 parent 7da27b2 commit 716caab
Show file tree
Hide file tree
Showing 15 changed files with 81 additions and 39 deletions.
2 changes: 1 addition & 1 deletion Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ task 'build', 'build it', () ->
ast.figure_out_scope();
ast.compute_char_frequency();
ast.mangle_names();
fs.writeFile './dist/leaflet.css.min.js', "var css = #{ css };#{ ast.print_to_string() }"
fs.writeFile './dist/leaflet.css.min.js', ast.print_to_string()
20 changes: 20 additions & 0 deletions LICENCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#Copyright 2013 Calvin Metcalf

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:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

_THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE._
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Leaflet CSS

small library to add the css for leaflet without having to bother including ugly conditional comments

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
to use, instead of including the css files for leaflet in the head, include this after you include leaflet

if you want to call more css in the same way, like maybe for your own plugin, you can do

Expand All @@ -17,4 +17,4 @@ cake build # if that gets you an error try this first
npm install -g coffee-script # you may need a sudo
```

demo includes [leaflet.sprite](https://github.com/calvinmetcalf/leaflet.sprite)
The css from leaflet and licenced [per that project](https://raw.github.com/Leaflet/Leaflet/master/LICENSE) the rest is MIT licenced demo includes [leaflet.sprite](https://github.com/leaflet-extras/leaflet.sprite)
2 changes: 1 addition & 1 deletion dist/leaflet.css.min.js

Large diffs are not rendered by default.

Binary file added example/blank.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions example/leaflet.sprite.min.js

Large diffs are not rendered by default.

File renamed without changes.
Binary file added example/sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
height: 100%
}
</style>
<link rel="stylesheet" href="gh-fork-ribbon.css" />
<link rel="stylesheet" href="example/gh-fork-ribbon.css" />
<!--[if IE]>
<link rel="stylesheet" href="gh-fork-ribbon.ie.css" />
<link rel="stylesheet" href="example/gh-fork-ribbon.ie.css" />
<![endif]-->
</head>
<body><div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon"><!--from http://simonwhitaker.github.com/github-fork-ribbon-css/ -->
<a href="https://github.com/calvinmetcalf/leaflet.css">Fork me on GitHub</a>
<a href="https://github.com/leaflet-extras/leaflet.css">Fork me on GitHub</a>
</div>
</div>
<div id="map"></div>
<script type="text/javascript" src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
<script type="text/javascript" src="dist/leaflet.css.js"></script>
<script type="text/javascript" src="sprite.js"></script>
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript" src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script>
<script type="text/javascript" src="dist/leaflet.css.min.js"></script>
<script type="text/javascript" src="example/leaflet.sprite.min.js"></script>
<script type="text/javascript" src="example/script.js"></script>
</body>
</html>
25 changes: 0 additions & 25 deletions sprite.js

This file was deleted.

Binary file removed sprites.png
Binary file not shown.
26 changes: 24 additions & 2 deletions src/leaflet.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
/* required styles */
/*Copyright (c) 2010-2013, Vladimir Agafonkin
Copyright (c) 2010-2011, CloudMade
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list
of conditions and the following disclaimer in the documentation and/or other materials
provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/

.leaflet-map-pane,
.leaflet-tile,
Expand Down Expand Up @@ -454,4 +476,4 @@
.leaflet-editing-icon {
-webkit-border-radius: 2px;
border-radius: 2px;
}
}
25 changes: 24 additions & 1 deletion src/leaflet.ie.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*Copyright (c) 2010-2013, Vladimir Agafonkin
Copyright (c) 2010-2011, CloudMade
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list
of conditions and the following disclaimer in the documentation and/or other materials
provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/
.leaflet-vml-shape {
width: 1px;
height: 1px;
Expand Down Expand Up @@ -54,4 +77,4 @@
.leaflet-control-attribution {
border-top: 1px solid #bbb;
border-left: 1px solid #bbb;
}
}

0 comments on commit 716caab

Please sign in to comment.