diff --git a/README.md b/README.md index 438ae36..6ef011e 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,11 @@ Copyright 2012 Jacob Toye; [MIT License](https://github.com/Leaflet/Leaflet.draw Copyright (c) 2013 Stefano Cudini; [MIT License](https://github.com/stefanocudini/leaflet-search/blob/master/LICENSE.txt) * [leaflet-plugins](https://github.com/shramov/leaflet-plugins) Copyright (c) 2011-2012, Pavel Shramov; [2-clause BSD License](https://github.com/shramov/leaflet-plugins/blob/master/LICENSE) -* [normalize.css](https://github.com/necolas/normalize.css) -Copyright (c) Nicolas Gallagher and Jonathan Neal; [MIT License](https://github.com/necolas/normalize.css/blob/master/LICENSE.md) * [Async.js](https://github.com/caolan/async) Copyright (c) 2010-2014 Caolan McMahon; [MIT License](https://github.com/caolan/async/blob/master/LICENSE) +* [Bootstrap](http://getbootstrap.com/) +Copyright (c) 2011-2014 Twitter, Inc; [MIT License](https://github.com/twbs/bootstrap/blob/master/LICENSE) +* [jQuery](https://github.com/jquery/jquery) +Copyright 2005, 2014 jQuery Foundation and other contributors; [MIT License](https://github.com/jquery/jquery/blob/master/LICENSE.txt) +* [DataTables](https://github.com/DataTables/DataTables) +Copyright (C) 2008-2014, SpryMedia Ltd.; [MIT License](http://www.datatables.net/license/mit) diff --git a/bower.json b/bower.json index 344c820..fbed5a4 100644 --- a/bower.json +++ b/bower.json @@ -7,7 +7,6 @@ "bower_components" ], "dependencies": { - "normalize-css": "*", "leaflet-search": "*", "leaflet-plugins": "*", "leaflet-routing": "nrenner/leaflet-routing#styles", diff --git a/css/style.css b/css/style.css index 7773486..9c05c70 100644 --- a/css/style.css +++ b/css/style.css @@ -15,11 +15,6 @@ html, body, #map { div.elevation { margin-bottom: -2px !important; } -/* -.info, div.elevation { - display:table-row; -} -*/ .hidden { display: none; @@ -44,8 +39,6 @@ div.elevation { } .title { padding-top: 4px; - /* normalize height, for absolute Profile control positioning */ - height: 17px; } .title-name { font-size: larger; @@ -75,8 +68,6 @@ div.elevation { select { max-width: 176px; - /* normalize height, for absolute Profile control positioning */ - height: 24px; } table { @@ -121,32 +112,56 @@ td { .leaflet-leftpane .leaflet-control { margin: 3px 5px; - width: 370px; + width: 386px; } /* Profile Control */ -.leaflet-leftpane .leaflet-control:last-child { - position: absolute; - top: 461px; - bottom: 0px; +/* flexbox layout: maximize textarea and data table (nested container/box path) */ +.flex_container, +.leaflet-leftpane, +.leaflet-leftpane .leaflet-control:last-child, +#tabs_div, +.tab-content, +.tab-pane.active, +#profile_upload, +#datatable_wrapper, +.dataTables_scroll, +.dataTables_scrollBody { + display: -webkit-flex; + display: flex; + + -webkit-flex-direction: column; + flex-direction: column; } -#profile_upload input { - position: absolute; - top: 6px; - right: 8px; +.flex_box_none, +.leaflet-leftpane .leaflet-control, +#tab, +.dataTables_scrollHead { + -webkit-flex: none; + flex: none; } -/* http://snook.ca/archives/html_and_css/absolute-position-textarea */ -#textarea_container { - position: absolute; - top: 32px; - bottom: 6px; - left: 8px; - right: 8px; - +.flex_box, +.leaflet-leftpane .leaflet-control:last-child, +#tabs_div, +.tab-content, +.tab-pane.active, +#profile_upload, +textarea, +#datatable_wrapper, +.dataTables_scroll, +.dataTables_scrollBody, +#datatable { + -webkit-flex: auto; + flex: auto; } + +#profile_buttons { + padding-top: 4px; +} + textarea { width: 100%; height: 100%; @@ -162,6 +177,11 @@ textarea:focus { background-color: rgba(255,255,255,255); } +/* track messages (data tab) */ +#tab_data { + font-size: x-small; +} + /* dashed line animation, derived from Chris Coyier and others http://css-tricks.com/svg-line-animation-works/ */ @@ -185,3 +205,44 @@ textarea:focus { stroke-dashoffset: 0; } } + +/* + * Bootstrap + */ + +/* override Bootstrap label for Leaflet layer switcher */ +.leaflet-control-layers label { + max-width: none; + margin-bottom: 0px; + font-weight: normal; + /* normalize label height + | Firefox | Chrome | + Leaflet only | 21 | 20 | + Bootstrap | 23 | 22 |*/ + height: 21px; +} + +/* smaller tab height */ +.nav > li > a { + padding: 2px 15px; +} + +/* + * DataTables + */ + +table.dataTable.mini thead th, +table.dataTable.mini thead td { + padding: 3px 13px 3px 2px; +} + +table.dataTable.mini tbody th, +table.dataTable.mini tbody td { + padding: 2px 2px; + white-space: nowrap; +} +table.dataTable thead .sorting_asc, +table.dataTable thead .sorting_desc, +table.dataTable thead .sorting { + background-position: center right -3px; +} diff --git a/index.html b/index.html index 3afeb9c..bdc848c 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,8 @@
+ +