cartodb-4.42/app/assets/stylesheets/map/dropdowns/map_options_dropdown.css.scss
2024-04-06 05:25:13 +00:00

166 lines
3.0 KiB
SCSS

@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;
}
}
}
}