[distance-to-portal] also show bearing
This commit is contained in:
28
plugins/distance-to-portal.css
Normal file
28
plugins/distance-to-portal.css
Normal file
@@ -0,0 +1,28 @@
|
||||
#portal-distance {
|
||||
text-align: center;
|
||||
}
|
||||
#portal-distance-bearing {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
position: relative;
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
}
|
||||
#portal-distance-bearing:before, #portal-distance-bearing:after {
|
||||
border-color: transparent currentcolor transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 0.75em 0.4em 0 0;
|
||||
content: "";
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
top: 0.15em;
|
||||
left: 0.15em;
|
||||
transform: skewY(-30deg);
|
||||
}
|
||||
#portal-distance-bearing:after {
|
||||
left: auto;
|
||||
right: 0.15em;
|
||||
transform: scaleX(-1) skewY(-30deg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user