Skip to content

Commit

Permalink
Fix wip core centering
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Muda committed Mar 21, 2023
1 parent 858dfc3 commit addc124
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
}

.item.line {
transform-origin: 0 0;
transform-origin: 0 50%;
height: 0;
width: calc(var(--radius) * var(--ring-3-factor));
border-radius: 0%;
Expand Down
2 changes: 1 addition & 1 deletion css/index.css.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
var els = document.querySelector("hr.segundo")
var segundo = els.style.getPropertyValue("--angle")
function timeToDegrees(hours, minutes, seconds) {
const hourDegrees = (((hours / 12) * 360) - 90) + (((minutes / 60) * 360) - 90) / 60 + ( (((seconds / 60) * 360) - 90) / 3600);
const minuteDegrees = ((minutes / 60) * 360) - 90 + (((seconds / 60) * 360) - 90) / 60;
const hourDegrees = (((hours / 12) * 360)) + (((minutes / 60) * 360) ) / 60 - 90 ;
const minuteDegrees = ((minutes / 60) * 360) + (((seconds / 60) * 360)) / 360 - 90;
const secondDegrees = ((seconds / 60) * 360) - 90;
return {
hour: hourDegrees,
Expand Down
2 changes: 1 addition & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
z-index: -10;
}
.item.line {
transform-origin: 0 0;
transform-origin: 0 50%;
height: 0;
width: calc(var(--radius) * var(--ring-3-factor));
border-radius: 0%;
Expand Down

0 comments on commit addc124

Please sign in to comment.