-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Muda
committed
Mar 28, 2023
1 parent
21fdb9b
commit f6b00c6
Showing
9 changed files
with
209 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
@use "./mixins" as *; | ||
@use "./variables" as *; | ||
|
||
.z-container { | ||
display: grid; | ||
grid-template-columns: minmax(var(--radius), 1fr); | ||
grid-template-rows: minmax(var(--radius), 1fr); | ||
border: 1px dashed black; | ||
@include alignment; | ||
padding: 30px; | ||
} | ||
|
||
.item { | ||
display: grid; | ||
background-color: rgb(255, 255, 255); | ||
border: 1px solid black; | ||
grid-area: 1/1/1/1; | ||
@include alignment; | ||
z-index: 1; | ||
} | ||
|
||
//defaults | ||
.item { | ||
width: var(--m); | ||
height: var(--m); | ||
border-radius: 50%; | ||
} | ||
|
||
.content { | ||
padding: 5px; | ||
width: inherit; | ||
height: inherit; | ||
display: grid; | ||
border-radius: inherit; | ||
background-color: rgba(0, 170, 248, 0.815); | ||
grid-area: 1/1/1/1; | ||
@include alignment; | ||
overflow: hidden; | ||
z-index: 10; | ||
} | ||
|
||
.content1 { | ||
padding: 5px; | ||
width: inherit; | ||
height: inherit; | ||
display: grid; | ||
border-radius: inherit; | ||
grid-area: 1/1/1/1; | ||
@include alignment; | ||
overflow: hidden; | ||
z-index: -10; | ||
} | ||
|
||
.item.a0 { | ||
--angle: 0; | ||
} | ||
|
||
.item.a45 { | ||
--angle: 45; | ||
} | ||
|
||
.item.a90 { | ||
--angle: 90; | ||
} | ||
|
||
.item.a135 { | ||
--angle: 135; | ||
} | ||
|
||
.core { | ||
width: 0px; | ||
height: 0px; | ||
display: grid; | ||
border-radius: 50%; | ||
border: 1px solid rgb(255, 5, 5); | ||
grid-area: 1/1/1/1; | ||
align-items: center; | ||
} | ||
|
||
div[class^="ring"] { | ||
display: grid; | ||
border-radius: 50%; | ||
border: 1px dashed rgba(155, 155, 155, 0.5); | ||
grid-area: 1/1/1/1; | ||
@include alignment; | ||
} | ||
|
||
@each $size, | ||
$var in $sizes { | ||
.item.#{$size} { | ||
width: $var; | ||
height: $var; | ||
} | ||
} | ||
|
||
@each $arc, | ||
$value in $arcs { | ||
.core.#{$arc} { | ||
--arc: #{$value}; | ||
} | ||
} | ||
|
||
.core.ccw { | ||
--direction: -1; | ||
} | ||
|
||
@each $sector, | ||
$angle in $sectors { | ||
.core.#{$sector} { | ||
--offset-angle:#{$angle}; | ||
} | ||
} | ||
|
||
@for $i from $min-rings through $max-rings { | ||
.z-container>.ring-#{$i} { | ||
width: calc(var(--radius) * 2 * var(--ring-#{$i}-factor)); | ||
height: calc(var(--radius) * 2 * var(--ring-#{$i}-factor)); | ||
} | ||
} | ||
|
||
@for $i from $min-items through $max-items { | ||
.item:nth-child(#{$i}) { | ||
--item-number:#{$i}; | ||
} | ||
} | ||
|
||
@for $i from $min-rings through $max-rings { | ||
|
||
@each $sector, | ||
$angle in $sectors { | ||
.ring-#{$i}.#{$sector} { | ||
--offset-angle:#{$angle}; | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
@each $arc, | ||
$value in $arcs { | ||
div[class^="ring"].#{$arc} { | ||
--arc: #{$value}; | ||
} | ||
} | ||
|
||
|
||
div[class^="ring"].ccw { | ||
--direction: -1; | ||
} |
Oops, something went wrong.