Skip to content

Commit

Permalink
Fix sector border depending on parent size
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Muda committed Sep 29, 2023
1 parent b602c68 commit 90e3f2f
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 27 deletions.
2 changes: 1 addition & 1 deletion assets/css/index.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/index.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/zumer.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/zumer.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/arcgrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<div class="core">
<div class="orbiter xs " style="transform: translate(-50%, -50%);"></div>
</div>
<div class="orbit limit-45" >
<div class="orbit limit-270" >
<div class="sector" ><div class="capsule">
<span>😁1</span>
</div></div>
Expand Down
2 changes: 1 addition & 1 deletion examples/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<option value="box">Box</option>
<option value="circle" selected>Circle</option>
<option value="rounded">Rounded</option>
<option value="bubble">Bubble</option>
<option value="blob">Blob</option>
</select>
</div>
<div class="fieldt">
Expand Down
25 changes: 4 additions & 21 deletions examples/generic.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,15 @@
<div class="sector"></div>
</div>
<div class="orbit">
<div class=" orbiter m ">
<div class="orbit">
<div class=" orbiter s offset-45">
<div class="orbit ">
<div class="sector" ></div>
<div class="sector"></div>
<div class="sector"></div>
<div class="sector"></div>
<div class="sector"></div>
</div>
<div class="orbit offset-45">
<div class="orbiter l">
<div class="orbit ">
<div class="sector"></div>
<div class="sector"></div>
<div class="sector"></div>
</div>
<div class="orbit ">
<svg class="z-svg">
<circle class="svg-progress" style="--val: 59; stroke: purple;" />
</svg>

</div>

</div>
<div class="orbiter s"><div class="label pos-90"><span class="text">hole</span></div></div>
<div class="orbiter s"></div>
<div class="orbiter s"></div>
</div>

</div>
<div class="orbiter m">
</div>
Expand Down
1 change: 1 addition & 0 deletions src/layouts/_radial-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
@each $size, $var in $sizes {
.orbiter.#{$size} > .orbit:nth-child(#{$i}) > .sector {
--length: calc(#{$var} * #{$i});
--width: calc(#{$var} / 4);
--current-orbit: #{$i};
--max-orbits: #{$max-orbits};
}
Expand Down

0 comments on commit 90e3f2f

Please sign in to comment.