Skip to content

Commit

Permalink
artisinal css πŸ‘©β€πŸŽ¨
Browse files Browse the repository at this point in the history
  • Loading branch information
Molly Lloyd committed Oct 19, 2018
1 parent 1d734ca commit 3f2c6c1
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions src/css/mapbox-gl.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,18 @@ a.mapboxgl-ctrl-logo.mapboxgl-compact {
visibility: visible;
}

.mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib,
.mapboxgl-ctrl-top-right > .mapboxgl-ctrl-attrib,
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib {
margin: 5px;
}

.mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:hover,
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:hover {
padding: 2px 4px 2px 24px;
border-radius: 12px 3px 3px 12px;
}

.mapboxgl-ctrl-attrib.mapboxgl-compact > * {
display: none;
}
Expand All @@ -240,15 +252,33 @@ a.mapboxgl-ctrl-logo.mapboxgl-compact {
content: '';
cursor: pointer;
position: absolute;
bottom: 0;
right: 0;
background-image: svg-load('svg/mapboxgl-ctrl-attrib.svg');
background-color: rgba(255, 255, 255, 0.5);
width: 24px;
height: 24px;
box-sizing: border-box;
border-radius: 12px;
}

.mapboxgl-ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after {
bottom: 0;
right: 0;
}

.mapboxgl-ctrl-top-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after {
top: 0;
right: 0;
}

.mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after {
top: 0;
left: 0;
}

.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after {
bottom: 0;
left: 0;
}
}

.mapboxgl-ctrl-attrib a {
Expand Down

0 comments on commit 3f2c6c1

Please sign in to comment.