/* * Map panel for table view */ @import "compass/css3/box-shadow"; @import "compass/css3/border-radius"; @import "compass/css3/inline-block"; @import "compass/css3/images"; @import "compass/css3/transform"; @import "../old_common/vars"; @import "../old_common/mixins"; @import "../map/map-sprite"; @import "../old_elements/elements-sprite"; div.map { z-index: 1; box-sizing: border-box; background: #333 image-url('layout/noise.png') repeat 0 0; @include position(0, 0, 0, 0); // 1px to cause header opacity black border needs to be present @include size(100%); } div.map, .mobile_bkg { padding: 84px 84px 20px 20px; } div.map.animated .cartodb-map { -moz-transition: all 200ms ease; -webkit-transition: all 200ms ease; -o-transition: all 200ms ease; transition: all 200ms ease; } div.map { &.mobile #cartodb-gmaps-attribution { display: none; } &.mobile div.editing { z-index: 1000000; top: 10px; margin-left: -68px; span.tooltip { left: -68px; width: 270px; } span.tooltip p { font-size: 11px; } } &.table { // TABLE'S MAP div.cartodb-legend-stack { @include position(false, 80px, 20px, false); } .leaflet-right .leaflet-control, #cartodb_attribution { margin-right: 62px; } div.cartodb-map div.cartodb-logo { bottom: 0 !important; } } &.derived { // VISUALIZATION'S MAP div.cartodb-legend-stack { @include position(false, 20px, 20px, false); } &.hide_legends div.cartodb-map div.cartodb-legend-stack { display: none !important; } &.mobile div.cartodb-map { // MOBILE VERSION border-radius: 0; .cartodb-logo { bottom: 10px !important; margin-bottom: 0; } .leaflet-control-attribution.leaflet-control { right: 0; width: 132px; margin-right: 0; } .leaflet-right .leaflet-control, #cartodb_attribution { margin-right: 0; } & > div.cartodb-searchbox { right: 15px !important; } .cartodb-tiles-loader { top: 10px !important; right: 10px !important; } .cartodb-mobile .cartodb-searchbox, .cartodb-mobile .cartodb-header { display: block; } // Overlays hidden in mobile div.cartodb-layer-selector-box, div.cartodb-share, & > div.cartodb-searchbox, div.cartodb-fullscreen, & > div.cartodb-timeslider, & > div.header, div.cartodb-logo, div.cartodb-zoom, div.cartodb-legend-stack, div.cartodb-zoom-info { display: none !important; } } } // derived &.animated .mobile_bkg::before { -moz-transition: all 200ms ease; -webkit-transition: all 200ms ease; -o-transition: all 200ms ease; transition: all 200ms ease; } .mobile_bkg { box-sizing: border-box; opacity: 0; background: #333; @include position(0, 0, 0, 0); @include size(100%); &::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: image-url('layout/mobile_bkg.png') no-repeat 50% 50%; } } div.map_toolbar { @include position(0, false, false, 0); @include size(100%, 66px); z-index: 6; background: image-url('layout/thead_bkg.jpg') repeat 0 0; box-shadow: rgba(black, 0.15) 0 3px 3px 0; @include clearfix(); &.animated { overflow: hidden; } .options { display: inline-block; position: absolute; top: 0; left: 0; vertical-align: top; } } .options { display: inline-block; margin: 20px 0 0 45px; float: left; vertical-align: top; & > li.button { &.canvas_setup, &.add_overlay, &.toggle_slides, &.export_image { position: relative; & > .thumb { @include size(26px); } } &.canvas_setup > .thumb { @include map-sprite(setup_canvas); } &.add_overlay > .thumb { @include map-sprite(add_element); } &.export_image > .thumb { @include map-sprite(export_image); } &.toggle_slides > .thumb { @include map-sprite(toggle_slides); } &.toggle_slides.active > .thumb { @include map-sprite(toggle_slides_active); } } & > li { display: inline-block; margin: 0 5px 0 0; padding: 0 15px 0 0; border-right: 1px solid rgba(#D9D9D9, 0.8); vertical-align: top; cursor: pointer; &.export_image .info h5 { padding: 0; } &.export_image .info h5::before, &.export_image .info h5::after { display: none; } &.full_screen .thumb { @include map-sprite(full_screen); border: none; border-radius: 0; } &.dropdown > h5 { &::before { @include position(-3px, -9px, false, false); content: ' '; z-index: 1; margin: 8px 0 0 5px; border-top: 3px solid #7C7C7C; border-right: 3px solid transparent; border-left: 3px solid transparent; } &::after { @include position(-1px, -9px, false, false); content: ' '; z-index: 0; margin: 9px 0 0 5px; border-top: 3px solid transparent; border-right: 3px solid transparent; border-left: 3px solid transparent; } } & > .thumb { display: inline-block; position: relative; margin: 0 5px 0 0; border-radius: 2px; background-color: rgba(#000, 0); background-position: 50% 50%; background-size: 34px; vertical-align: top; @include size(30px); &::before { @include position(0, 0, 0, 0); content: ' '; border: 1px solid rgba(#000, 0.15); border-radius: 2px; } h5 { display: block; position: relative; padding: 0 12px 0 0; font-family: "Helvetica", Arial; font-weight: normal; line-height: 12px; } } .info { display: inline-block; padding-top: 2px; vertical-align: top; h5, .name { color: #7A7A7A; font-size: 13px; } h5 { display: block; position: relative; padding: 0 12px 0 0; font-family: $text-fonts2; font-weight: normal; line-height: 12px; &::before { content: ' '; position: absolute; z-index: 1; top: -3px; right: -9px; margin: 8px 0 0 5px; border-top: 3px solid #7C7C7C; border-right: 3px solid transparent; border-left: 3px solid transparent; } &::after { content: ' '; position: absolute; z-index: 0; top: -1px; right: -9px; margin: 9px 0 0 5px; border-top: 3px solid transparent; border-right: 3px solid transparent; border-left: 3px solid transparent; } } } } } // .dropdowns .map-options { @include position(false, false, 18px, 18px); z-index: 100; } .option-button { display: inline-block; position: relative; box-sizing: border-box; min-width: 70px; height: auto; margin: 0 3px 0 0; padding: 10px 14px 10px 37px; border-radius: 3px; background: rgba(#000, 0.7); color: #FFF; font-size: 13px; vertical-align: top; &:last-child { margin-right: 0; } } .option-button.show-table-options { &.open::before { -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg); } &::before, &::after { content: ''; display: block; position: absolute; top: 6px; left: 5px; width: 22px; height: 22px; } &::before { @include map-sprite(cog, $offset-x: 3px, $offset-y: 3px); z-index: 10; -moz-transition: all 750ms ease; -webkit-transition: all 750ms ease; -o-transition: all 750ms ease; transition: all 750ms ease; } &::after { border-radius: 3px; background-color: #FFF; box-shadow: 0 0 1px rgba(#000, 0.9); } } div.dropdown.widgets_dropdown { width: 200px; } /* CartoDB map styles */ &.table div.cartodb-map { @include position(66px, 0, 0, 0); border-radius: 0; } &.derived div.cartodb-map { @include position(82px, 79px, 15px, 15px); border-radius: 3px; @include size(auto); } div.cartodb-map { z-index: 1; & > div.cartodb-searchbox { position: absolute; top: 20px; right: 77px; float: right; } } div.cartodb-legend-stack { @include position(false, 80px, 20px, false); z-index: 10001; margin: 0; div.cartodb-legend { @include position(false, 0, 0, false); display: none; position: relative; margin: 0; &.custom, &.cluster, &.bubble, &.color, &.intensity, &.density { display: block; } } } // animations .leaflet-control-attribution.leaflet-control, div.cartodb-legend, div.cartodb-legend-stack, div.cartodb-share, div.cartodb-layer-selector-box, div.cartodb-searchbox { transform-style: linear; transition: margin 300ms; } div.cartodb-legend { @include position(false, 0, 20px, false); z-index: 10001; margin: 0 80px 0 0; .warning { font-size: 13px; font-style: italic; font-weight: normal; text-transform: none; } } div.cartodb-layer-selector-box { display: none; margin: 0; font-weight: normal; } // Zoom div.cartodb-zoom, div.cartodb-zoom-info { position: absolute; margin: 0; } // Tiler in core map div.cartodb-tiles-loader { position: absolute; clear: both; div.loader { position: relative; top: 0; left: 0; margin: 0; } } // Fullscreen div.cartodb-fullscreen { display: none; position: absolute; margin: 0; } div.cartodb-share { position: absolute; margin: 0; } // Search box in core map div.cartodb-searchbox { display: none; position: absolute; margin: 0; } // [done | discard] dialog shown when a geometry is being edited or created div.editing { @include inline-block; position: absolute; z-index: 1000; top: 20px; left: 50%; margin-left: -120px; padding: 11px; border: 1px solid #999; border-radius: 3px; background: #FFF; background: WHITE; box-shadow: rgba(#000, 0.1) 0 0 4px 3px; a { display: inline-block; position: relative; vertical-align: top; } span.tooltip { position: absolute; top: 65px; left: -90px; width: 313px; border-radius: 2px; background: rgba(#000, 0.8); text-align: center; p { font-size: 13px; line-height: 35px; } &::before { content: ''; position: absolute; top: -6px; left: 50%; width: 0; height: 0; margin-left: -3px; border-right: 6px solid transparent; border-bottom: 6px solid rgba(#000, 0.8); border-left: 6px solid transparent; } } } div.sqlview { display: block; position: relative; z-index: 1; width: 100%; height: 37px; margin: -18px 0 0 0; p { display: inline; position: fixed; z-index: 2; left: 50%; width: 100%; margin: 0 0 0 -50%; padding: 12px 0; transform-style: linear; transition: text-indent 300ms; border-bottom: 1px solid #CCC; background-color: #E5FAEA; box-shadow: rgba(#000, 0.055) 0 3px 1px 0; color: #333; color: #666; font-family: $text-fonts; font-size: 13px; text-align: center; text-indent: 0; &.warn { background-color: rgba(#FFFFBF, 0.9); } } } //div.sqlview // When a panel view is open or closed &.displaced { div.sqlview p { text-indent: -600px; } // Vis &.map.derived .cartodb-map { .leaflet-control-attribution.leaflet-control, div.cartodb-share, div.cartodb-layer-selector-box, div.cartodb-legend-stack, div.cartodb-searchbox { margin-right: 520px; } } &.map.derived.mobile .mobile_bkg::before { left: -300px; } &.map.derived.mobile .cartodb-map { margin-left: -445px !important; } &.narrow.map.derived.mobile .mobile_bkg::before { left: -155px; } &.narrow.map.derived.mobile .cartodb-map { margin-left: -300px !important; } // Vis Narrow &.narrow.map.derived .cartodb-map { .leaflet-control-attribution.leaflet-control, div.cartodb-share, div.cartodb-share, div.cartodb-layer-selector-box, div.cartodb-legend-stack, div.cartodb-searchbox { margin-right: 375px; } } // Table &.map.table .cartodb-map { .leaflet-control-attribution.leaflet-control, div.cartodb-share, div.cartodb-layer-selector-box, div.cartodb-legend-stack, div.cartodb-searchbox { margin-right: 540px; } } // Table Narrow &.narrow.map.table .cartodb-map { .leaflet-control-attribution.leaflet-control, div.cartodb-share, div.cartodb-layer-selector-box, div.cartodb-legend-stack, div.cartodb-searchbox { margin-right: 394px; } div.sqlview p { text-indent: -450px; } } &.narrow.map.derived.mobile .cartodb-map, &.map.derived.mobile .cartodb-map { .leaflet-control-attribution.leaflet-control, div.cartodb-share, div.cartodb-layer-selector-box, div.cartodb-legend-stack, div.cartodb-searchbox { margin-right: 0 !important; } div.sqlview p { text-indent: -450px; } } } // &.displaced } // div.cartodb-map /* FOOTER EDIT BUTTONS for infowindow */ @mixin edit-bottom-states($x, $y, $c1, $c2, $c3, $c4) { @include background(sprite($map-sprites, infowindow-edit-tools, $offset-x: $x, $offset-y: $y) no-repeat, $c1); // IE @include background(sprite($map-sprites, infowindow-edit-tools, $offset-x: $x, $offset-y: $y) no-repeat, linear-gradient($c1, $c2) 0 0); &:hover, &:active, &:focus { @include background(sprite($map-sprites, infowindow-edit-tools, $offset-x: $x, $offset-y: $y) no-repeat, $c3); // IE @include background(sprite($map-sprites, infowindow-edit-tools, $offset-x: $x, $offset-y: $y) no-repeat, linear-gradient($c1, $c4) 0 0); } } div.cartodb-edit-buttons { display: block; border-top: 1px solid #E5E5E5; } // FOR INFOWINDOWS // .cartodb-popup-content-wrapper div.cartodb-edit-buttons { width: 100%; margin: 10px 0 0; padding: 11px 0 6px; letter-spacing: -4px; // CartoDB id .cartodb_id { display: inline-block; margin-top: 8px; color: #999; font-size: 13px; letter-spacing: 0; vertical-align: top; word-spacing: 0; } // Edit buttons div.right { width: auto; margin-top: 4px; } a.button { width: 29px; height: 24px; margin: 0; padding: 0 !important; float: left; border-right: 0; border-radius: 0; font-size: 0; letter-spacing: 0; line-height: 0; text-indent: -9999px; vertical-align: top; &.edit_data { @include edit-bottom-states(10, 6, #F9F9F9, #EBEBEB, #DEDEDE, #E1E1E1); } &.edit_geo { @include edit-bottom-states(-20, 6, #F9F9F9, #EBEBEB, #DEDEDE, #E1E1E1); } &.remove { @include edit-bottom-states(-52, 6, #F9F9F9, #EBEBEB, #DEDEDE, #E1E1E1); } &.add_point { @include edit-bottom-states(-80, 7, #F9F9F9, #EBEBEB, #DEDEDE, #E1E1E1); } &.add_annotation { @include edit-bottom-states(-110, 7, #F9F9F9, #EBEBEB, #DEDEDE, #E1E1E1); } &:first-child { border-top-left-radius: 3px; border-bottom-left-radius: 3px; } &:last-child { border-right: 1px solid #B0B0B0; border-top-right-radius: 3px; border-bottom-right-radius: 3px; } } } // Dark buttons div.cartodb-popup.dark { div.cartodb-edit-buttons { border-color: #676767; a.button { border-color: #676767 !important; &.edit_data { @include edit-bottom-states(10, -16, #222, #222, #222, #222); } &.edit_geo { @include edit-bottom-states(-20, -16, #222, #222, #222, #222); } &.remove { @include edit-bottom-states(-52, -16, #222, #222, #222, #222); } } } } // Custom styles for Leaflet maps // Same css for editing markers in Leaflet and GMaps .leaflet-editing-icon { width: 9px !important; height: 9px !important; margin: -5px 0 0 -5px !important; border: 1px solid #397DBA; border-radius: 6px; } :-webkit-full-screen { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; } :-moz-full-screen { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; } :-ms-fullscreen { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; } :fullscreen { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }