Files
architype/architype.css

208 lines
3.4 KiB
CSS
Raw Normal View History

2019-07-01 20:27:51 +00:00
.dark {
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;
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-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:focus {
outline: none;
}
.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
}
.editor li.group {
2019-06-21 19:11:37 +00:00
background-color: var(--group);
2019-05-26 02:53:55 +00:00
}
2019-06-21 19:11:37 +00:00
.editor li.link {
background-color: var(--link);
}
2019-07-10 04:09:54 +00:00
.editor li.label {
background-color: var(--label);
}
.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 20:03:05 +00:00
.gridNode, .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-09 04:19:09 +00:00
width: 85%;
height: 85%;
2019-07-09 06:08:50 +00:00
background: var(--node-background);
2019-07-05 04:09:24 +00:00
justify-content: center;
border: 1px solid white;
2019-07-09 17:30:09 +00:00
border-radius: 10%;
2019-07-05 04:59:04 +00:00
z-index: 3;
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;
border: 1px dashed white;
2019-07-02 07:05:22 +00:00
z-index: 1;
}
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-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-04 05:46:00 +00:00
--line-color: white;
2019-07-04 04:40:46 +00:00
}
2019-07-09 04:19:09 +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-09 04:19:09 +00:00
.gridArrow {
width: 100%;
height: 100%;
z-index: 4;
--arrow-color: white;
}