Skip to content

Commit

Permalink
fix label positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Muda committed Oct 19, 2023
1 parent a8496f7 commit 46aa53a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions examples/generic.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,15 @@
<div class="o-orbit o-limit-270">

<div class="o-orbiter o-md ">

<div class="o-label o-offset-45" style="position: absolute;">
<div class="o-content">Tactic sat intel <br> 45</div>
</div>
<div class="o-content">
hola <br> 45
</div>
<div class="o-content" style="overflow: visible;">
<div class="o-label o-offset-45" style="position: absolute;">
<div class="o-content">Tactic sat intel <br> 45</div>
</div>
</div>




Expand Down
2 changes: 1 addition & 1 deletion src/components/_label-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
}

/* element radial setup*/
.o-orbiter > .o-label {
.o-orbiter > .o-label, .o-content > .o-label {
transform: rotate(var(--o-label-angle)) translate(var(--o-x-coords), 0);
}

0 comments on commit 46aa53a

Please sign in to comment.