Files
architype/architype.css

135 lines
2.0 KiB
CSS
Raw Normal View History

2019-06-21 19:11:37 +00:00
.google {
--focus: #ff0000;
--node: #4285f4;
--group: #0f9d58;
--link: #dba100;
2019-06-21 19:11:37 +00:00
--text: #ffffff;
--border: #e3e3e3;
--placeholder: #bbbbbb;
2019-06-21 19:11:37 +00:00
}
:root {
--editor-width: 320px;
}
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 {
width: 100%;
height: 100%;
2019-05-25 00:03:19 +00:00
font-family: 'Courier', monospace;
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-06-21 19:11:37 +00:00
color: var(--text);
2019-05-25 00:03:19 +00:00
list-style: none;
margin: 0;
padding: 0;
2019-06-26 04:25:49 +00:00
outline: 1px solid black;
2019-05-25 00:03:19 +00:00
height: 100%;
width: 100%;
2019-05-25 00:03:19 +00:00
overflow-y: scroll;
}
.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-20 21:26:31 +00:00
box-sizing: border-box;
width: 100%;
2019-06-26 04:25:49 +00:00
padding: 1px;
2019-06-22 06:36:08 +00:00
border: 5px solid;
2019-06-26 04:25:49 +00:00
outline: 1px solid black;
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-06-22 06:36:08 +00:00
border-color: var(--node);
}
.editor li.node.error {
background: repeating-linear-gradient(
-45deg,
rgba(255,255,255,0.15) 0 10px,
rgba(0,0,0,0.15) 10px 20px),
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-06-22 06:36:08 +00:00
border-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-06-22 06:36:08 +00:00
border-color: var(--link);
2019-06-21 19:11:37 +00:00
}
.editor li:focus {
2019-06-22 06:36:08 +00:00
border-color: var(--focus) !important;
outline: none;
2019-05-25 00:03:19 +00:00
}
.editor li input {
2019-06-21 19:11:37 +00:00
background-color: rgba(255,255,255,0.2);
border: 3px solid var(--border);
padding: 4px;
font-family: 'Courier', monospace;
2019-06-21 19:11:37 +00:00
color: var(--text);
width: 200px;
}
.editor li input::-webkit-input-placeholder {
color: var(--placeholder);
2019-05-25 00:03:19 +00:00
}
.editor li input:focus {
2019-06-21 19:11:37 +00:00
border-color: var(--focus);
outline: none;
}
2019-06-20 21:26:31 +00:00
.editor .editor {
2019-06-20 21:26:31 +00:00
margin: 5px;
2019-06-20 23:35:13 +00:00
}
.grid {
width: 100%;
height: 100%;
display: grid;
align-content: center;
}
2019-06-26 18:27:52 +00:00
.gridNode {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}