-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shared theme support and version 3.20 update
- Loading branch information
1 parent
b12fa49
commit d5a5268
Showing
22 changed files
with
826 additions
and
492 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.panel.top-center{ | ||
position: absolute; | ||
left: 50%; | ||
top: 20px; | ||
margin-left:20px; /*prevent zoom conflicts*/ | ||
-moz-transform: translateX(-50%) translateY(0%); | ||
-webkit-transform: translateX(-50%) translateY(0%); | ||
-o-transform: translateX(-50%) translateY(0%); | ||
-ms-transform: translateX(-50%) translateY(0%); | ||
transform: translateX(-50%) translateY(0%); | ||
transform: translate(-50%, 0%); | ||
} | ||
.panel.bottom-center { | ||
position: absolute; | ||
left: 50%; | ||
bottom: 50px; | ||
-moz-transform: translateX(-50%) translateY(0%); | ||
-webkit-transform: translateX(-50%) translateY(0%); | ||
-o-transform: translateX(-50%) translateY(0%); | ||
-ms-transform: translateX(-50%) translateY(0%); | ||
transform: translateX(-50%) translateY(0%); | ||
transform: translate(-50%, 0%); | ||
} | ||
@media screen and (min-width: 620px) { | ||
.panel{ | ||
width:80%; | ||
} | ||
} | ||
.esriElevationProfile .esriElevationProfileDirectionButton{ | ||
bottom:-2px !important; | ||
right: 5px; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.top-center{ | ||
position: absolute; | ||
top:0; | ||
left:0; | ||
right:0; | ||
} | ||
.bottom-center { | ||
position: absolute; | ||
bottom:0; | ||
left:0; | ||
right:0; | ||
} | ||
@media screen and (min-width: 620px) { | ||
.panel{ | ||
width:100%; | ||
} | ||
} | ||
#elevTitle{ | ||
text-align: center; | ||
padding-bottom: 10px; | ||
} | ||
.esriElevationProfile .esriElevationProfileDirectionButton{ | ||
bottom:34px !important; | ||
right: 5px; | ||
} | ||
.bottom-center #elevTools{ | ||
position: absolute; | ||
left:0; | ||
} | ||
.top-center .esriSimpleSlider{ | ||
left:0; | ||
top:90px; | ||
} | ||
.top-center .map-tools{ | ||
left:0; | ||
} | ||
.nosearch .map-tools{ | ||
top:180px; | ||
} | ||
.esriAttribution{ | ||
opacity: 0.4; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
var gulp = require("gulp"); | ||
var jshint = require("gulp-jshint"); | ||
var beautify = require("gulp-beautify"); | ||
var sass = require("gulp-sass"); | ||
var cssbeautify = require("gulp-cssbeautify"); | ||
var uncss = require("gulp-uncss"); | ||
var minifycss = require("gulp-minify-css"); | ||
var stylus = require("gulp-stylus"); | ||
var nib = require("nib"); | ||
|
||
|
||
//Define a task. Takes two arguments the name of the task and a function | ||
//which will be run when you call the task | ||
//In this example we specify that we want to run jshint on each .js file | ||
//in the javascript folder and report the results using the jshint reporter. | ||
gulp.task("lint", function(){ | ||
gulp.src("./js/*.js") | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter("default")); | ||
}); | ||
|
||
//Run the beautify task and specify options in this example | ||
//I added a base to overwrite existing files. You could | ||
//specify that results are written to another location by specifying | ||
//a different destination instead. | ||
gulp.task("beautify", function(){ | ||
gulp.src("./js/*.js",{base:"./"}) | ||
.pipe(beautify({indentSize:4})) | ||
.pipe(gulp.dest("./")); | ||
}); | ||
|
||
//Process sass | ||
gulp.task('sass', function () { | ||
gulp.src("./css/*.scss") | ||
.pipe(sass()) | ||
.pipe(sass({errLogToConsole: true})) | ||
.pipe(gulp.dest("./css")); | ||
}); | ||
|
||
|
||
//use nib | ||
|
||
gulp.task('nib', function(){ | ||
gulp.src('./css/*.styl') | ||
.pipe(stylus({ use: nib(), compress: false })) | ||
.pipe(gulp.dest('./css')); | ||
}); | ||
|
||
//Task to remove unused css. I write these updates out to a new folder | ||
//called public so I don't lose any css I may need. | ||
gulp.task("uncss", function(){ | ||
gulp.src("./css/*.css") | ||
.pipe(uncss({ | ||
html: ["index.html"] | ||
})) | ||
.pipe(gulp.dest("./public")); | ||
}); | ||
|
||
//Beautify css | ||
gulp.task("css",function(){ | ||
gulp.src("./css/*.css", {base:"./"}) | ||
.pipe(cssbeautify()) | ||
.pipe(gulp.dest("./public")) | ||
}); | ||
|
||
|
||
//Minify css | ||
gulp.task("minify-css", function(){ | ||
gulp.src("./css/*.css",{base:"./"}) | ||
.pipe(minifycss()) | ||
.pipe(gulp.dest("./")) | ||
}); | ||
|
||
|
||
|
||
//define a default task that will run if you type gulp at the command line | ||
|
||
gulp.task('default', ["lint","beautify","css"]); | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.