-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
14 changed files
with
200 additions
and
133 deletions.
There are no files selected for viewing
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
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
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
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,37 @@ | ||
@use './variables' as *; | ||
/*! | ||
## .capsule | ||
Capsule is a class to put content. It can be put into satellites and segments. | ||
There are some utilties to modify capsule orientation content. | ||
### Usage | ||
```html | ||
<div class="satellite"> | ||
<div class="capsule stable"> | ||
Some text here. | ||
</div> | ||
</div> | ||
``` | ||
#### Utilities | ||
- `stable`: to mantain content always horizontal. | ||
- `turn-left`: to turn content 90deg left | ||
- `turn-right`: to turn content 90deg right | ||
- `flip`: to turn content upside-down. | ||
*/ | ||
|
||
.capsule { | ||
--o-angle-composite: 0deg; | ||
display: flex; | ||
width: inherit; | ||
height: auto; | ||
padding: 5px; | ||
position: absolute; | ||
align-items: center; | ||
justify-content: center; | ||
rotate: calc(var(--o-angle-composite)); | ||
} |
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
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
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,43 @@ | ||
/*! | ||
## .orbit-zone | ||
orbit zone is a functional class that groups `.orbit` classes. It serves as a container with a length defined once by `--o-length` when the Orbit app is initialized. When the orbit zone is nested within a `.satellite`, its length will depend on the `.satellite`'s `.orbit` diameter. | ||
**Important:** The `orbit-zone` class can only be nested into a `.satellite`. | ||
### Usage | ||
```html | ||
<div class="orbit-zone"> | ||
<div class="orbit"></div> | ||
<div class="orbit"> | ||
<div class="satellite"> | ||
<div class="orbit-zone"> <!-- Nested --> | ||
<div class="orbit"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
``` | ||
*/ | ||
.orbit-zone { | ||
container-name: orbitzone; | ||
--o-lenght: 500px; | ||
width: var(--o-lenght); | ||
aspect-ratio: 1; | ||
position: absolute; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
pointer-events: none; /* To avoid event conflict with other elements */ | ||
border: none; /* Reset theme to default */ | ||
} | ||
|
||
.satellite > .orbit-zone { | ||
/* Disabled nested adjusment size. When nested orbit-zone takes its lenght from the diameter of satellite's orbit | ||
--o-lenght: var(--o-diameter); | ||
width: var(--o-lenght); | ||
height: auto;*/ | ||
} |
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
Your theme setting here | ||
} | ||
*/ |
This file was deleted.
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
Oops, something went wrong.