Minify CSS with Closure Stylesheets
See https://code.google.com/p/closure-stylesheets/
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@
|
||||
/build/gh-pages
|
||||
/build/lint-spec-timestamp
|
||||
/build/lint-src-timestamp
|
||||
/build/ol.css
|
||||
/build/ol.js
|
||||
/build/ol-all.js
|
||||
/build/proj4js-combined.js
|
||||
|
||||
5
Makefile
5
Makefile
@@ -15,9 +15,9 @@ all: build-all build examples
|
||||
precommit: lint build-all doc test build
|
||||
|
||||
.PHONY: build
|
||||
build: build/ol.js
|
||||
build: build/ol.css build/ol.js
|
||||
|
||||
build/ol.js: $(PLOVR_JAR) $(SRC) base.json build/ol.json
|
||||
build/ol.js build/ol.css: $(PLOVR_JAR) $(SRC) base.json build/ol.json
|
||||
java -jar $(PLOVR_JAR) build build/ol.json >$@
|
||||
@echo $@ "uncompressed:" $$(wc -c <$@) bytes
|
||||
@echo $@ " compressed:" $$(gzip -9 -c <$@ | wc -c) bytes
|
||||
@@ -77,6 +77,7 @@ test:
|
||||
clean:
|
||||
rm -f build/lint-spec-timestamp
|
||||
rm -f build/lint-src-timestamp
|
||||
rm -f build/ol.css
|
||||
rm -f build/ol.js
|
||||
rm -f build/ol-all.js
|
||||
rm -f build/require-all.js
|
||||
|
||||
@@ -2,6 +2,16 @@
|
||||
|
||||
"id": "ol",
|
||||
|
||||
"css-allowed-unrecognized-properties": [
|
||||
"user-select"
|
||||
],
|
||||
|
||||
"css-inputs": [
|
||||
"css/ol.css"
|
||||
],
|
||||
|
||||
"css-output-file": "build/ol.css",
|
||||
|
||||
"externs": [
|
||||
"externs/bingmaps.js",
|
||||
"externs/ol.js",
|
||||
|
||||
10
css/ol.css
10
css/ol.css
@@ -34,12 +34,12 @@
|
||||
height: 22px;
|
||||
width:22px;
|
||||
line-height: 19px;
|
||||
background: #130085; /* fallback for IE - IE6 requires background shorthand*/
|
||||
background: #130085; /* @alternate */ /* fallback for IE - IE6 requires background shorthand*/
|
||||
background: rgba(0, 60, 136, 0.5);
|
||||
filter: alpha(opacity=80);
|
||||
}
|
||||
.ol-zoom a:hover {
|
||||
background: #130085; /* fallback for IE */
|
||||
background: #130085; /* @alternate */ /* fallback for IE */
|
||||
background: rgba(0, 60, 136, 0.7);
|
||||
filter: alpha(opacity=100);
|
||||
}
|
||||
@@ -188,12 +188,12 @@
|
||||
height: 22px;
|
||||
width:22px;
|
||||
line-height: 19px;
|
||||
background: #130085; /* fallback for IE - IE6 requires background shorthand*/
|
||||
background: #130085; /* @alternate */ /* fallback for IE - IE6 requires background shorthand*/
|
||||
background: rgba(0, 60, 136, 0.5);
|
||||
filter: alpha(opacity=80);
|
||||
}
|
||||
.ol-control-zoom a:hover {
|
||||
background: #130085; /* fallback for IE */
|
||||
background: #130085; /* @alternate */ /* fallback for IE */
|
||||
background: rgba(0, 60, 136, 0.7);
|
||||
filter: alpha(opacity=100);
|
||||
}
|
||||
@@ -215,7 +215,7 @@
|
||||
color: #eeeeee;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: #130085; /* fallback for IE - IE6 requires background shorthand*/
|
||||
background: #130085; /* @alternate */ /* fallback for IE - IE6 requires background shorthand*/
|
||||
background: rgba(0, 60, 136, 0.3);
|
||||
filter: alpha(opacity=30);
|
||||
font-family: 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
|
||||
|
||||
Reference in New Issue
Block a user