Files
architype/architype.css

324 lines
5.6 KiB
CSS
Raw Normal View History

2019-07-12 03:37:48 +00:00
.theme-light {
/* Background colors are 85% luminosity */
2019-07-12 03:37:48 +00:00
--focus: #ff0000;
--nonfocus: #eeeeee;
--node: #c0def2;
--group: #c0f2d5;
--link: #ffd1b3;
--label: #ffb3eb;
--help: #ffb3b3;
2019-07-12 03:37:48 +00:00
--text: #000000;
--placeholder: rgba(0,0,0,0.2);
--outline: #323434;
--editor-background: #ffffff;
--grid-background: #ffffff;
--group-background: rgba(255,255,255,0.5);
--node-background: #f8f8f8;
--link-label-background: rgba(240,240,240,0.9);
2019-07-12 03:54:03 +00:00
--input: rgba(0,0,0,0.1);
2019-07-12 03:37:48 +00:00
--input-focus: rgba(255,0,0,0.2);
--line: #000000;
}
.theme-dark {
/* Background colors are 10% luminosity */
2019-06-21 19:11:37 +00:00
--focus: #ff0000;
2019-07-01 20:27:51 +00:00
--nonfocus: #000000;
--node: #091d2a;
--group: #092a17;
--link: #331400;
2019-07-10 04:09:54 +00:00
--label: #330025;
--help: #330000;
2019-06-21 19:11:37 +00:00
--text: #ffffff;
2019-07-01 20:27:51 +00:00
--placeholder: rgba(255,255,255,0.2);
--outline: #323434;
--editor-background: #000000;
--grid-background: #202020;
2019-07-09 17:30:09 +00:00
--group-background: rgba(0,0,0,0.5);
--node-background: #000000;
2019-07-10 20:03:05 +00:00
--link-label-background: rgba(0,0,0,0.8);
2019-07-01 20:27:51 +00:00
--input: rgba(255,255,255,0.2);
--input-focus: rgba(255,0,0,0.2);
2019-07-12 03:37:48 +00:00
--line: #ffffff;
2019-06-21 19:11:37 +00:00
}
:root {
--editor-width: 280px;
}
2019-05-25 00:03:19 +00:00
body {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
2019-06-21 20:26:41 +00:00
}
2019-05-25 00:03:19 +00:00
2019-06-21 20:26:41 +00:00
.architype {
2019-07-01 20:27:51 +00:00
box-sizing: border-box;
2019-06-21 20:26:41 +00:00
width: 100%;
height: 100%;
2019-07-01 20:27:51 +00:00
color: var(--text);
2019-05-25 00:03:19 +00:00
font-family: 'Courier', monospace;
2019-07-01 20:53:20 +00:00
font-size: 16px;
display: grid;
grid-template:
[row1-start] "editor grid" 100% [row1-end]
/ var(--editor-width) auto;
2019-05-25 00:03:19 +00:00
}
.editor {
2019-05-25 00:03:19 +00:00
list-style: none;
margin: 0;
padding: 0;
2019-07-01 20:27:51 +00:00
outline: 1px solid var(--outline);
2019-05-25 00:03:19 +00:00
height: 100%;
overflow-y: scroll;
2019-07-04 07:02:05 +00:00
user-select: none;
background: var(--editor-background);
2019-05-25 00:03:19 +00:00
}
.editor li {
2019-05-25 00:03:19 +00:00
display: flex;
flex-direction: row;
align-items: center;
2019-06-20 21:26:31 +00:00
justify-content: flex-start;
flex-wrap: wrap;
2019-05-25 00:03:19 +00:00
white-space: pre;
2019-06-26 04:25:49 +00:00
padding: 1px;
2019-07-01 20:27:51 +00:00
padding-left: 4px;
border-left: 10px solid var(--nonfocus);
outline: 1px solid var(--outline);
2019-06-20 23:35:13 +00:00
font-size: 30px;
2019-06-20 23:35:13 +00:00
cursor: default;
2019-05-25 00:03:19 +00:00
}
.editor li.node {
2019-06-21 19:11:37 +00:00
background-color: var(--node);
2019-05-25 00:03:19 +00:00
}
2019-07-10 23:19:39 +00:00
.editor li.node.highlight {
background: repeating-linear-gradient(
-45deg,
transparent 0 10px,
rgba(255,0,0,0.3) 10px 20px
), var(--node);
}
.editor li.group {
2019-06-21 19:11:37 +00:00
background-color: var(--group);
2019-05-26 02:53:55 +00:00
}
2019-07-10 23:46:25 +00:00
.editor li.group.highlight {
background: repeating-linear-gradient(
-45deg,
transparent 0 10px,
rgba(255,0,0,0.3) 10px 20px
), var(--group);
}
2019-06-21 19:11:37 +00:00
.editor li.link {
background-color: var(--link);
}
2019-07-10 04:09:54 +00:00
2019-07-10 23:41:41 +00:00
.editor li.link.highlight {
background: repeating-linear-gradient(
-45deg,
transparent 0 10px,
rgba(255,0,0,0.3) 10px 20px
), var(--link);
}
2019-07-10 04:09:54 +00:00
.editor li.label {
background-color: var(--label);
}
2019-07-10 21:32:52 +00:00
.editor li.help {
padding: 10px;
font-size: 16px;
flex-direction: column;
background-color: var(--help);
2019-07-10 21:32:52 +00:00
}
.editor li.help > div {
2019-07-12 04:55:02 +00:00
margin-top: 2px;
2019-07-10 21:32:52 +00:00
min-height: 10px;
}
.editor li.help .key {
display: inline-flex;
width: 20px;
height: 20px;
justify-content: center;
align-items: center;
vertical-align: middle;
font-size: 20px;
2019-07-12 03:37:48 +00:00
border: 1px solid var(--text);
2019-07-10 21:32:52 +00:00
border-radius: 5px;
padding: 5px;
margin: 3px;
overflow: hidden;
}
.editor li.help .key:empty {
visibility: hidden;
}
.editor li.help .text {
margin: 5px;
}
2019-07-10 04:09:54 +00:00
2019-07-12 04:55:02 +00:00
.editor li.help a {
color: var(--text);
2019-07-12 22:10:32 +00:00
margin: 8px;
2019-07-12 04:55:02 +00:00
}
.editor li:focus {
2019-07-01 20:27:51 +00:00
border-left: 10px solid var(--focus) !important;
2019-05-25 00:03:19 +00:00
}
.editor li input {
2019-07-01 20:27:51 +00:00
background-color: var(--input);
border: none;
padding: 2px;
padding-top: 3px;
padding-left: 3px;
margin: 2px;
margin-left: 5px;
font-family: 'Courier', monospace;
2019-06-21 19:11:37 +00:00
color: var(--text);
2019-07-01 20:27:51 +00:00
width: 209px;
2019-06-21 19:11:37 +00:00
}
.editor li input::-webkit-input-placeholder {
color: var(--placeholder);
2019-05-25 00:03:19 +00:00
}
.editor li input:focus {
background-color: var(--input-focus);
outline: none;
}
2019-06-20 21:26:31 +00:00
.editor .editor {
2019-07-01 20:27:51 +00:00
margin: 3px;
margin-left: 5px;
2019-06-20 23:35:13 +00:00
}
.grid {
2019-07-01 20:53:20 +00:00
width: calc(100% - 20px);
height: calc(100% - 20px);
display: grid;
background: var(--grid-background);
2019-07-01 20:53:20 +00:00
align-items: center;
justify-items: center;
2019-07-01 21:25:38 +00:00
align-content: center;
justify-content: center;
padding: 10px;
}
2019-06-26 18:27:52 +00:00
2019-07-10 22:05:32 +00:00
.gridNode, .gridGraphLabel, .gridGroup, .gridGroupLabel, .gridLinkLabel {
2019-06-26 18:27:52 +00:00
display: flex;
2019-07-05 04:09:24 +00:00
flex-direction: column;
2019-06-26 18:27:52 +00:00
align-items: center;
2019-07-01 20:57:22 +00:00
text-align: center;
2019-07-01 20:53:20 +00:00
2019-07-05 04:09:24 +00:00
font-size: 20px;
overflow-wrap: anywhere;
2019-07-01 20:53:20 +00:00
overflow: hidden;
2019-07-05 04:09:24 +00:00
cursor: default;
user-select: none;
}
2019-07-02 07:05:22 +00:00
2019-07-05 04:09:24 +00:00
.gridNode {
2019-07-12 03:41:00 +00:00
width: 81%;
height: 81%;
2019-07-09 06:08:50 +00:00
background: var(--node-background);
2019-07-05 04:09:24 +00:00
justify-content: center;
2019-07-12 03:37:48 +00:00
border: 1px solid var(--line);
2019-07-09 17:30:09 +00:00
border-radius: 10%;
2019-07-12 03:41:00 +00:00
padding: 2%;
2019-07-05 04:59:04 +00:00
z-index: 3;
2019-07-04 06:15:39 +00:00
}
2019-07-10 23:19:39 +00:00
.gridNode.highlight {
border-color: var(--focus);
border-width: 3px;
}
2019-07-10 22:05:32 +00:00
.gridGraphLabel {
height: 100%;
width: 100%;
font-size: 30px;
text-align: center;
}
2019-07-04 06:15:39 +00:00
.gridGroup {
2019-07-09 17:30:09 +00:00
width: 100%;
height: 100%;
2019-07-09 16:51:26 +00:00
background: var(--group-background);
2019-07-04 06:15:39 +00:00
justify-content: flex-start;
2019-07-12 03:37:48 +00:00
border: 1px dashed var(--line);
2019-07-02 07:05:22 +00:00
z-index: 1;
2019-07-11 05:12:08 +00:00
pointer-events: none;
2019-07-02 07:05:22 +00:00
}
2019-07-10 23:46:25 +00:00
.gridGroup.highlight {
border-color: var(--focus);
border-width: 3px;
}
2019-07-05 04:09:24 +00:00
.gridGroupLabel {
width: calc(100% - 10px);
2019-07-10 08:14:53 +00:00
height: calc(100% - 10px);
2019-07-05 04:09:24 +00:00
justify-content: center;
font-size: 20px;
overflow: hidden;
overflow-wrap: anywhere;
2019-07-09 17:30:09 +00:00
z-index: 1;
2019-07-11 05:12:08 +00:00
pointer-events: none;
2019-07-05 04:09:24 +00:00
}
2019-07-02 07:05:22 +00:00
.gridLines {
width: 100%;
height: 100%;
2019-07-05 04:59:04 +00:00
z-index: 2;
2019-07-11 05:12:08 +00:00
pointer-events: none;
2019-07-12 03:37:48 +00:00
--line-color: var(--line);
2019-07-04 04:40:46 +00:00
}
2019-07-09 04:19:09 +00:00
2019-07-10 23:41:41 +00:00
.gridLines.highlight {
--line-color: var(--focus);
--line-width: 3;
2019-07-10 23:41:41 +00:00
}
2019-07-10 20:03:05 +00:00
.gridLinkLabel {
max-width: 80%;
max-height: 80%;
font-size: 16px;
background: var(--link-label-background);
z-index: 3;
border-radius: 4px;
padding: 3px;
2019-07-11 05:12:08 +00:00
pointer-events: none;
2019-07-10 20:03:05 +00:00
}
2019-07-09 04:19:09 +00:00
.gridArrow {
width: 100%;
height: 100%;
z-index: 4;
2019-07-11 05:12:08 +00:00
pointer-events: none;
2019-07-12 03:37:48 +00:00
--arrow-color: var(--line);
2019-07-09 04:19:09 +00:00
}
2019-07-10 23:41:41 +00:00
.gridArrow.highlight {
--arrow-color: var(--focus);
}