-
-
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
Showing
20 changed files
with
254 additions
and
221 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/* Orbit class theme*/ | ||
/* | ||
.orbit theme | ||
*/ | ||
.orbit, [class*='orbit-'] { | ||
border: 1px solid #007bff; /* Orbit color and thickness */ | ||
border: 1px solid #007bff; | ||
} |
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 |
---|---|---|
@@ -1,83 +1,39 @@ | ||
/* .orbital-zone class | ||
Orbital zone is a funcitonal class that groups .orbit classes. | ||
Is a container with a lenght that is defined just once by --o-lenght when | ||
Orbit app is initializated. When Orbital zone is nested in a .satellite its lenght | ||
will depend on .satellite's .orbit diameter. | ||
Important: orbital-zone can be only nested into a satellite | ||
Usage: | ||
<div class="orbital-zone"> | ||
<div class="orbit"></div> | ||
<div class="orbit"> | ||
<div class="satellite"> | ||
<div class="orbital-zone"> <-- nested !--> | ||
<div class="orbit"></div> | ||
/* | ||
.ORBITAL-ZONE | ||
Orbital zone is a functional class that groups .orbit classes. | ||
Is a container with a lenght that is defined just once by --o-lenght when | ||
Orbit app is initializated. When Orbital zone is nested in a .satellite its lenght | ||
will depend on .satellite's .orbit diameter. | ||
Important: orbital-zone can be only nested into a satellite | ||
Usage: | ||
<div class="orbital-zone"> | ||
<div class="orbit"></div> | ||
<div class="orbit"> | ||
<div class="satellite"> | ||
<div class="orbital-zone"> <-- nested !--> | ||
<div class="orbit"></div> | ||
</div> | ||
</div | ||
</div> | ||
</div | ||
</div> | ||
</div> | ||
</div> | ||
*/ | ||
.orbital-zone { | ||
/* Variables */ | ||
--o-lenght: 500px; | ||
width: var(--o-lenght); | ||
/* Core settings */ | ||
aspect-ratio: 1; | ||
position: absolute; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
pointer-events: none; /* To avoid event conflict with other elements */ | ||
/* Reset theme to default */ | ||
border: none; | ||
border: none; /* Reset theme to default */ | ||
} | ||
|
||
|
||
.satellite > .orbital-zone { | ||
/* When nested orbital-zone takes its lenght from the diameter of satellite's orbit */ | ||
--o-lenght: var(--o-diameter); | ||
width: var(--o-lenght); | ||
height: auto; | ||
} | ||
|
||
|
||
/* Arrange .orbital-zone child elements*/ | ||
.orbital-zone.top-left { | ||
align-items: flex-start !important; | ||
justify-content: flex-start !important; | ||
} | ||
.orbital-zone.top-center { | ||
align-items: flex-start !important; | ||
justify-content: center !important; | ||
} | ||
.orbital-zone.top-right { | ||
align-items: flex-start !important; | ||
justify-content: flex-end !important; | ||
} | ||
.orbital-zone.bottom-left { | ||
align-items: flex-end !important; | ||
justify-content: flex-start !important; | ||
} | ||
.orbital-zone.bottom-center { | ||
align-items: flex-end !important; | ||
justify-content: center !important; | ||
} | ||
.orbital-zone.bottom-right { | ||
align-items: flex-end !important; | ||
justify-content: flex-end !important; | ||
} | ||
.orbital-zone.center-left { | ||
align-items: center !important; | ||
justify-content: flex-start !important; | ||
} | ||
.orbital-zone.center { | ||
align-items: center !important; | ||
justify-content: center !important; | ||
} | ||
.orbital-zone.center-right { | ||
align-items: center !important; | ||
justify-content: flex-end !important; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
/* Orbital zone class theme | ||
.orbital-zone { | ||
// Your theme setting here | ||
} | ||
/* | ||
.orbital-zone theme | ||
.orbital-zone { | ||
Your theme setting here | ||
} | ||
*/ |
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 |
---|---|---|
@@ -1,27 +1,23 @@ | ||
/* o-progress class | ||
<o-progress> is an web-component for rendering a radial progress bar. | ||
It has some special attributes and css variables that user can modify: | ||
--o-linecap: to set ending cap of progress bar. Class .rounded can be added. Default 'butt' | ||
--o-progress || attribute 'value'. To set progress value. Default 0 | ||
attribute 'progress-color'. To set color of porgress bar. Default 'orange' | ||
attribute 'max-angle'. Uset defined max angle. Default 360; | ||
css properties affect <o-progress> web-component. | ||
/* | ||
O-PROGRESS | ||
<o-progress> is a web-component for rendering a radial progress bar. | ||
It has some special attributes and css variables that user can modify: | ||
--o-linecap: to set ending cap of progress bar. Class .rounded can be added. Default 'butt' | ||
--o-progress || attribute 'value'. To set progress value. Default 0 | ||
attribute 'progress-color'. To set color of porgress bar. Default 'orange'. MAKE FRIENDLY | ||
attribute 'max-angle'. Uset defined max angle. Default 360 | ||
*/ | ||
o-progress { | ||
/* Variables */ | ||
--o-width-factor: 1; | ||
width: var(--o-diameter); | ||
/* Core settings */ | ||
position: absolute; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 50%; | ||
pointer-events: none; /* To avoid events conflicts with other elements */ | ||
} | ||
|
||
o-progress.rounded { | ||
--o-linecap: round; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/* o-progress class theme | ||
o-progress { | ||
// Your theme setting here | ||
} | ||
/* | ||
<o-progress> theme | ||
o-progress { | ||
Your theme setting here | ||
} | ||
*/ |
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,10 @@ | ||
/* | ||
.satellite theme | ||
*/ | ||
.satellite { | ||
width: 5px; | ||
height: 5px; | ||
background-color: yellow; | ||
border: 1px solid black; | ||
} | ||
|
Oops, something went wrong.