Initial commit
This commit is contained in:
@@ -0,0 +1,275 @@
|
||||
@import 'compass/css3/images';
|
||||
@import '../../old_common/vars';
|
||||
@import '../../old_common/mixins';
|
||||
@import '../../map/map-sprite';
|
||||
@import '../../old_elements/elements-sprite';
|
||||
|
||||
.option-button.basemap_dropdown {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
cursor: pointer;
|
||||
|
||||
strong {
|
||||
color: #FFF;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
// Custom basemap icon
|
||||
& > .thumb {
|
||||
display: inline-block;
|
||||
margin: 0 5px 0 0;
|
||||
border-radius: 2px;
|
||||
background-color: rgba(#000, 0);
|
||||
background-position: 50% 50%;
|
||||
background-size: 34px;
|
||||
box-shadow: 0 0 1px rgba(#000, 0.9);
|
||||
vertical-align: top;
|
||||
|
||||
@include position(6px, false, false, 6px);
|
||||
@include size(22px);
|
||||
|
||||
&::before {
|
||||
content: ' ';
|
||||
border: 1px solid rgba(#000, 0.15);
|
||||
border-radius: 2px;
|
||||
|
||||
@include position(0, 0, 0, 0);
|
||||
}
|
||||
} // thumb
|
||||
|
||||
.info {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
div.dropdown.basemap {
|
||||
|
||||
border: 1px solid #999;
|
||||
|
||||
div.custom {
|
||||
display: inline;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
div.custom ul {
|
||||
display: flex;
|
||||
padding: 0 5px 0 10px;
|
||||
border-bottom: none;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
div.custom > ul {
|
||||
box-sizing: border-box;
|
||||
width: auto;
|
||||
margin: 0 10px;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid rgba(204, 204, 204, 0.35);
|
||||
|
||||
& > li {
|
||||
&:first-child {
|
||||
width: 60px;
|
||||
margin: 5px 4px 0 0;
|
||||
color: #CCC;
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
border: none;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
// Google thumbs
|
||||
.thumbs.gmaps {
|
||||
-webkit-flex-wrap: wrap;
|
||||
-moz-flex-wrap: wrap;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
width: 238px;
|
||||
}
|
||||
.thumbs.gmaps > li { margin: 3px 10px 3px 0; }
|
||||
|
||||
.custom ul li {
|
||||
|
||||
margin: 0 10px 0 0;
|
||||
|
||||
&:last-child { margin-right: 0; }
|
||||
|
||||
&.wms {
|
||||
.thumb {
|
||||
background-size: auto;
|
||||
|
||||
@include map-sprite(wms);
|
||||
}
|
||||
|
||||
a { line-height: 24px; }
|
||||
}
|
||||
|
||||
&.selected .name { color: #7B7B7B; }
|
||||
|
||||
&.hidden { display: none; }
|
||||
|
||||
&:hover { background: none; }
|
||||
|
||||
&.add_basemap > a {
|
||||
small,
|
||||
&:hover small {
|
||||
opacity: 0.5;
|
||||
color: #397DB8;
|
||||
}
|
||||
}
|
||||
|
||||
&.map_background > a .name {
|
||||
margin: 5px 0 0 5px;
|
||||
}
|
||||
|
||||
& > a {
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
|
||||
line-height: 13px;
|
||||
|
||||
@include clearfix();
|
||||
|
||||
small {
|
||||
display: block;
|
||||
margin: 0 0 0 29px;
|
||||
color: #AAA;
|
||||
font-size: 9px;
|
||||
line-height: 11px;
|
||||
}
|
||||
|
||||
&:hover small {
|
||||
color: #AAA;
|
||||
}
|
||||
|
||||
.name {
|
||||
width: 150px;
|
||||
margin: 0 0 0 5px;
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
font-size: 13px;
|
||||
line-height: 14px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&.add .thumb { border-color: #397DB8; }
|
||||
&:hover .thumb .remove_layer { opacity: 1; }
|
||||
|
||||
.thumb {
|
||||
position: relative;
|
||||
float: left;
|
||||
border-radius: 2px;
|
||||
background-position: 50% 50%;
|
||||
background-size: 34px 34px;
|
||||
text-decoration: none;
|
||||
|
||||
@include size(24px);
|
||||
@include text-indent();
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
border: 1px solid rgba(#000, 0.15);
|
||||
border-radius: 2px;
|
||||
|
||||
@include position(0,0,0,0);
|
||||
}
|
||||
|
||||
.remove_layer {
|
||||
z-index: 2;
|
||||
padding: 0;
|
||||
transition: opacity 100ms ease-in;
|
||||
border-top-left-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
opacity: 0;
|
||||
background: rgba(black, 0.5);
|
||||
text-indent: 0;
|
||||
|
||||
@include size(14px, 10px);
|
||||
@include position(false, 0, 0, false);
|
||||
|
||||
&::before {
|
||||
content: ' ';
|
||||
border-top: 3px solid white;
|
||||
border-right: 3px solid transparent;
|
||||
|
||||
border-left: 3px solid transparent;
|
||||
|
||||
@include position(4px, false, false, 4px);
|
||||
@include size(0);
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
&::before { border: 1px solid rgba(#000, 0.5); }
|
||||
}
|
||||
}
|
||||
|
||||
a .thumb { background-size: auto; }
|
||||
|
||||
// Google thumbs
|
||||
|
||||
@mixin google-thumbnail($name) {
|
||||
&.#{$name} .thumb {
|
||||
@include background(image-url('layout/gmaps-basemaps/#{$name}.png') no-repeat center center);
|
||||
}
|
||||
}
|
||||
|
||||
@include google-thumbnail(roadmap);
|
||||
@include google-thumbnail(hybrid);
|
||||
@include google-thumbnail(satellite);
|
||||
@include google-thumbnail(terrain);
|
||||
@include google-thumbnail(gray_roadmap);
|
||||
@include google-thumbnail(cool_grey);
|
||||
@include google-thumbnail(clean_grey);
|
||||
@include google-thumbnail(shades_grey);
|
||||
@include google-thumbnail(neutral_blue);
|
||||
@include google-thumbnail(cleaner_midnight);
|
||||
@include google-thumbnail(icy_blue);
|
||||
@include google-thumbnail(red_hues);
|
||||
@include google-thumbnail(light_green);
|
||||
@include google-thumbnail(mostly_grayscale);
|
||||
|
||||
&.add .thumb { @include map-sprite(plus); }
|
||||
&.pattern .thumb { @include elements-sprite(image_fill, $offset-x:5px, $offset-y:7px); }
|
||||
|
||||
span.color {
|
||||
display: block;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 14px;
|
||||
padding: 15px 0;
|
||||
color: rgba(#999, 0.8);
|
||||
font: bold 9px $text-fonts;
|
||||
text-align: center;
|
||||
text-indent: 0;
|
||||
text-shadow: 0 0 1px rgba(#FFF, 0.5);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
span.button {
|
||||
@include position(false, 2px, 2px, false);
|
||||
@include size(10px);
|
||||
z-index: 2;
|
||||
border-radius: 10px;
|
||||
background: white;
|
||||
text-indent: 0;
|
||||
|
||||
&::before {
|
||||
content: ' ';
|
||||
border-top: 3px solid #397DBA;
|
||||
border-right: 2px solid transparent;
|
||||
|
||||
border-left: 2px solid transparent;
|
||||
|
||||
@include position(4px, false, false, 3px);
|
||||
@include size(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
@import 'compass/css3/images';
|
||||
@import '../../old_common/vars';
|
||||
@import '../../old_common/mixins';
|
||||
@import '../../map/map-sprite';
|
||||
@import '../../old_elements/elements-sprite';
|
||||
|
||||
div.dropdown.canvas_setup_dropdown {
|
||||
ul {
|
||||
width: 225px;
|
||||
padding: 10px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
li {
|
||||
float: left;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background: #F2F2F2;
|
||||
|
||||
&:first-child {
|
||||
margin-right: 1px;
|
||||
|
||||
border-radius: 5px 0 0 5px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-radius: 0 5px 5px 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
a { background: image-url('layout/computer.png') no-repeat 50% 16px; }
|
||||
strong { opacity: 0.7; }
|
||||
}
|
||||
|
||||
&.active {
|
||||
|
||||
background: #F2F2F2;
|
||||
|
||||
strong {
|
||||
opacity: 1;
|
||||
color: #397DB8;
|
||||
}
|
||||
|
||||
&.desktop a { background: image-url('layout/computer.png') no-repeat 50% 16px; }
|
||||
&.mobile a { background: image-url('layout/mobile.png') no-repeat 50% 16px; }
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
position: relative;
|
||||
width: 86px;
|
||||
height: 58px;
|
||||
}
|
||||
|
||||
strong {
|
||||
display: block;
|
||||
position: absolute;
|
||||
bottom: 16px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
opacity: 0.5;
|
||||
color: #444;
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
&.desktop a {
|
||||
background: image-url('layout/computer_disabled.png') no-repeat 50% 16px;
|
||||
}
|
||||
|
||||
&.mobile a {
|
||||
background: image-url('layout/mobile_disabled.png') no-repeat 50% 16px;
|
||||
}
|
||||
}
|
||||
} // canvas_setup_dropdown
|
||||
@@ -0,0 +1,165 @@
|
||||
@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.dropdown.map_options_dropdown {
|
||||
ul {
|
||||
|
||||
box-sizing: border-box;
|
||||
width: 204px;
|
||||
margin: 0;
|
||||
padding: 12px 15px;
|
||||
|
||||
li {
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 0;
|
||||
padding: 10px 0;
|
||||
border: none;
|
||||
border-bottom: 1px solid rgba(204, 204, 204, 0.35);
|
||||
font-size: 13px;
|
||||
cursor: default;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
&.title::before {
|
||||
top: 12px;
|
||||
width: 10px;
|
||||
height: 11px;
|
||||
|
||||
@include map-sprite(map_options_title);
|
||||
}
|
||||
|
||||
&.description::before {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
|
||||
@include map-sprite(map_options_description);
|
||||
}
|
||||
|
||||
&.search::before {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
|
||||
@include map-sprite(map_options_search);
|
||||
}
|
||||
|
||||
&.fullscreen::before {
|
||||
width: 11px;
|
||||
height: 12px;
|
||||
|
||||
@include map-sprite(map_options_fullscreen);
|
||||
}
|
||||
|
||||
&.share::before {
|
||||
top: 12px;
|
||||
left: -3px;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
|
||||
@include map-sprite(map_options_share);
|
||||
}
|
||||
|
||||
&.zoom::before {
|
||||
top: 11px;
|
||||
width: 9px;
|
||||
height: 14px;
|
||||
|
||||
@include map-sprite(map_options_zoom);
|
||||
}
|
||||
|
||||
&.scrollwheel::before {
|
||||
top: 10px;
|
||||
left: 2px;
|
||||
width: 11px;
|
||||
height: 16px;
|
||||
|
||||
@include map-sprite(map_options_scrollwheel);
|
||||
}
|
||||
|
||||
&.layer_selector::before {
|
||||
width: 9px;
|
||||
height: 10px;
|
||||
|
||||
@include map-sprite(map_options_layer_selector);
|
||||
}
|
||||
|
||||
&.logo::before {
|
||||
width: 9px;
|
||||
height: 10px;
|
||||
|
||||
@include map-sprite(map_options_logo);
|
||||
}
|
||||
|
||||
&.legends::before {
|
||||
width: 9px;
|
||||
height: 10px;
|
||||
|
||||
@include map-sprite(map_options_legends);
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
padding-top: 0;
|
||||
|
||||
&::before {
|
||||
top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-left: 17px;
|
||||
}
|
||||
|
||||
&.active,
|
||||
&.active p {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
&,
|
||||
p {
|
||||
transition: color 100ms ease-in;
|
||||
color: #B9B9B9;
|
||||
}
|
||||
|
||||
&.inactive .form_switch {
|
||||
opacity: 0.3;
|
||||
|
||||
&:hover {
|
||||
color: $link-color;
|
||||
text-decoration: none;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover { background: #FFF; }
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
float: right;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user