2021-02-03 00:26:40 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<meta charset="utf-8">
|
2021-02-13 12:20:16 +00:00
|
|
|
<title>Mystic Symbolic</title>
|
2021-02-04 01:23:24 +00:00
|
|
|
<style>
|
|
|
|
html, body {
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2021-02-04 01:23:24 +00:00
|
|
|
font-family: "Calibri", "Arial", "Helvetica Neue", sans-serif;
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page {
|
|
|
|
display: grid;
|
|
|
|
column-gap: 8px;
|
|
|
|
padding: 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100vh;
|
|
|
|
width: 100vw;
|
|
|
|
grid-template-columns: auto 20em;
|
|
|
|
grid-template-rows: 3em auto 3em;
|
|
|
|
grid-template-areas:
|
|
|
|
"header header"
|
|
|
|
"canvas sidebar"
|
|
|
|
"footer footer";
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
grid-area: header;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
header h1 {
|
|
|
|
margin: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
|
grid-area: sidebar;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
|
|
|
grid-area: footer;
|
2021-02-04 01:23:24 +00:00
|
|
|
}
|
2021-02-06 13:11:20 +00:00
|
|
|
|
2021-03-29 11:58:50 +00:00
|
|
|
select, input[type="text"] {
|
2021-03-27 12:04:40 +00:00
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
|
2021-02-06 13:11:20 +00:00
|
|
|
.checkerboard-bg {
|
2021-02-06 13:13:56 +00:00
|
|
|
/* https://codepen.io/pascalvgaal/pen/jPXPNP/ */
|
2021-02-06 13:11:20 +00:00
|
|
|
background: #eee url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" fill-opacity=".1" ><rect x="200" width="200" height="200" /><rect y="200" width="200" height="200" /></svg>');
|
|
|
|
background-size: 20px 20px;
|
|
|
|
}
|
2021-02-27 18:28:44 +00:00
|
|
|
|
|
|
|
.hover-debug-helper {
|
|
|
|
font-family: "Consolas", "Monaco", monospace;
|
|
|
|
color: white;
|
|
|
|
background: rgba(0, 0, 0, 0.75);
|
|
|
|
padding: 4px;
|
|
|
|
margin-top: 4px;
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
2021-03-27 12:34:22 +00:00
|
|
|
|
|
|
|
/** Stupid class we're using instead of <p> to avoid ValidateDOMNesting warnings. */
|
|
|
|
.thingy {
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
2021-03-29 11:48:56 +00:00
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.thingy:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2021-03-29 11:48:56 +00:00
|
|
|
ul.navbar {
|
|
|
|
display: flex;
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.navbar li {
|
|
|
|
border-right: 1px solid gray;
|
|
|
|
margin-right: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.navbar li:last-child {
|
|
|
|
border-right: none;
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
padding-right: 0;
|
|
|
|
margin-right: 0;
|
2021-03-29 11:48:56 +00:00
|
|
|
}
|
2021-03-29 17:03:54 +00:00
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.flex-widget {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex-widget label {
|
|
|
|
margin-bottom: 8px;
|
2021-03-29 17:03:54 +00:00
|
|
|
}
|
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.canvas {
|
|
|
|
grid-area: canvas;
|
2021-03-29 17:03:54 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.canvas.scrollable {
|
|
|
|
display: block;
|
|
|
|
overflow: auto;
|
2021-03-29 17:03:54 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 21:01:13 +00:00
|
|
|
.sidebar .disabled {
|
|
|
|
color: gray;
|
|
|
|
}
|
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.sidebar label.checkbox {
|
2021-04-02 20:33:07 +00:00
|
|
|
display: block;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.sidebar .color-widget {
|
2021-03-29 17:03:54 +00:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.sidebar .color-widget label {
|
2021-03-29 17:03:54 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.sidebar .numeric-slider {
|
2021-03-29 17:03:54 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.sidebar .numeric-slider .slider {
|
2021-03-29 17:03:54 +00:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
.sidebar .numeric-slider .slider input {
|
2021-03-29 17:03:54 +00:00
|
|
|
flex-basis: 90%;
|
|
|
|
}
|
2021-02-04 01:23:24 +00:00
|
|
|
</style>
|
2021-02-04 00:11:34 +00:00
|
|
|
<noscript>
|
|
|
|
<p>Alas, you need JavaScript to peruse this page.</p>
|
|
|
|
</noscript>
|
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.
Additionally, some form widgets now have better layout, and the header takes up less vertical space.
At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier. Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).
I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.
It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 23:00:29 +00:00
|
|
|
<div id="app" className="app"></div>
|
2021-02-04 00:11:34 +00:00
|
|
|
<script src="lib/browser-main.tsx"></script>
|