Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Oct 23, 2023
1 parent 1e54a1d commit 4a0df14
Show file tree
Hide file tree
Showing 8 changed files with 84 additions and 51 deletions.
2 changes: 1 addition & 1 deletion assets/css/orbit-base.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/orbit-base.min.css.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

122 changes: 77 additions & 45 deletions examples/docs/container.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,93 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="../../public/favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="../../assets/css/orbit-base.min.css" type="text/css" defer/>
<!-- <link rel="stylesheet" href="../../assets/css/orbit-theme.min.css" type="text/css" defer/> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/playground-elements@0.18.1/themes/material-palenight.css" type="text/css" defer/>
<title>Orbit - o-container</title>
<script type="module">
import playgroundElements from 'https://cdn.jsdelivr.net/npm/playground-elements@0.18.1/+esm'
</script>

<style>
.o-orbiter {
border: 7px solid mediumaquamarine
.example {
box-sizing: border-box;
width: 100%;
border: 1px solid #ccc;
overflow: hidden;
border-radius: 10px;
}
.o-container {
border: 0.2px solid gray;
.example > playground-preview * {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.one {
border: 2px solid;
padding: 20px;


.example.code {
background-color: rgb(41, 45, 62);
}

.o-container-query-enabled {
box-sizing: border-box;
resize: both;
overflow: auto;
.example.code > playground-file-editor {
margin:8px;
height: fit-content;

}
.example > ::part(preview-toolbar) {
display: none;
}
</style>

</head>
<body>
<playground-project id="project1" >
<script type="sample/html" filename="index.html">
<!-- playground-hide -->
<!doctype html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<style>
@import url("http://localhost:5500/assets/css/orbit-base.min.css");
body {
margin: 0;
padding: 0;
}
.o-orbiter {
border: 7px solid mediumaquamarine
}
.o-container {
border: 0.2px solid gray;
}
.o-container-query-enabled {
box-sizing: border-box;
resize: both;
overflow: auto;
}
</style>
<script type="module">
import playgroundElements from 'https://cdn.jsdelivr.net/npm/playground-elements@0.18.1/+esm'
</script>
</head>
<body>

<playground-ide editable-file-system line-numbers resizable>
<script type="sample/html" filename="index.html">
<!doctype html>
<body>
Hello
<script type="module" src="./index.js">&lt;/script>
</body>
</script>

<script type="sample/ts" filename="index.ts">
document.body.appendChild(document.createTextNode("World!"))
</script>
</playground-ide>
<!-- <div class="o-container-query-enabled">
<section class="o-container one ">
one - enable relative resize?
<ul class="o-orbit">
<li class="o-orbiter"></li>
<li class="o-orbiter"></li>
<li class="o-orbiter"></li>
<li class="o-orbiter"></li>
<li class="o-orbiter"></li>
</ul>
</section>
</div>
-->

<!-- playground-hide-end -->
<section class="o-container">
<ul class="o-orbit">
<li class="o-orbiter"></li>
<li class="o-orbiter"></li>
<li class="o-orbiter"></li>
<li class="o-orbiter"></li>
<li class="o-orbiter"></li>
</ul>
</section>
<!-- playground-hide -->
</body>
</script>
</playground-project>
<div class="example">
<playground-preview project="project1"> </playground-preview>
</div>
<br>
<div class="example code">
<playground-file-editor project="project1" filename="index.html"
readonly class="playground-theme-material-palenight"
></playground-file-editor>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/base/_reset.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Basic reset for each Orbit container */
.o-container * {
.o-container, .o-container * {
box-sizing: border-box;
padding: 0;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/_container-base.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* container */

.o-container {
position: absolute;
display: grid;
width: 100%;
min-height: 100%;
place-items: center;

}

0 comments on commit 4a0df14

Please sign in to comment.