Notes/static/css/main.css

177 lines
2.9 KiB
CSS
Raw Permalink Normal View History

2023-06-18 20:13:35 +02:00
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
[onClick] {
cursor: pointer;
}
2023-06-15 07:24:23 +02:00
html,
body {
margin: 0px;
padding: 0px;
font-family: 'Liberation Mono', monospace;
2023-06-17 09:11:14 +02:00
font-size: 14pt;
2023-06-18 20:13:35 +02:00
background-color: #fff;
2023-06-15 07:24:23 +02:00
}
h1 {
2023-06-20 07:59:54 +02:00
color: #abc837;
2023-06-15 07:24:23 +02:00
}
#app {
2023-06-18 20:13:35 +02:00
display: grid;
2023-06-15 07:24:23 +02:00
color: #fff;
}
2023-06-18 22:05:10 +02:00
#menu-blackout {
display: none;
position: absolute;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
z-index: 1024;
background: rgba(0, 0, 0, 0.35);
}
#menu-blackout.show {
display: initial;
}
#menu {
display: none;
position: absolute;
top: 24px;
right: 24px;
background: #fff;
color: #000;
border: 2px solid #000;
box-shadow: 5px 5px 8px 0px rgba(0, 0, 0, 0.5);
z-index: 1025;
}
#menu.show {
display: initial;
}
#menu .item {
padding: 16px;
border-bottom: 1px solid #aaa;
user-select: none;
2023-06-20 08:13:32 +02:00
font-size: 0.85em;
2023-06-18 22:05:10 +02:00
-webkit-tap-highlight-color: transparent;
}
2023-06-20 08:13:32 +02:00
#menu .item.separator {
border-bottom: 3px solid #000;
}
2023-06-18 22:05:10 +02:00
#menu .item:hover {
background: #ddd;
}
#menu .item:last-child {
border-bottom: none;
}
2023-06-18 20:13:35 +02:00
header {
display: grid;
2023-06-18 22:05:10 +02:00
grid-template-columns: 1fr min-content min-content;
2023-06-18 20:13:35 +02:00
align-items: center;
2023-06-20 07:59:54 +02:00
background: #abc837;
2023-06-18 20:13:35 +02:00
padding: 0px;
2023-06-20 07:59:54 +02:00
color: #333c11;
2023-06-18 20:13:35 +02:00
}
header.modified {
background: #c84a37;
color: #faedeb;
}
header .name {
font-weight: bold;
padding-left: 16px;
}
header .add {
font-size: 2em;
padding-right: 16px;
cursor: pointer;
}
2023-06-18 22:05:10 +02:00
header .menu {
font-size: 1.25em;
padding-right: 16px;
cursor: pointer;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
2023-06-17 09:11:14 +02:00
.crumbs {
display: flex;
flex-wrap: wrap;
2023-06-18 20:13:35 +02:00
padding: 16px;
background: #333;
color: #fff;
2023-06-17 09:11:14 +02:00
}
.crumbs .crumb {
margin-right: 8px;
font-size: 0.8em;
cursor: pointer;
2023-06-18 20:13:35 +02:00
user-select: none;
-webkit-tap-highlight-color: transparent;
2023-06-17 09:11:14 +02:00
}
.crumbs .crumb:after {
2023-06-18 20:13:35 +02:00
content: "•";
2023-06-17 09:11:14 +02:00
margin-left: 8px;
2023-06-20 07:59:54 +02:00
color: #abc837;
2023-06-17 09:11:14 +02:00
}
.crumbs .crumb:last-child {
margin-right: 0;
}
.crumbs .crumb:last-child:after {
content: '';
margin-left: 0px;
}
.child-nodes {
display: flex;
flex-wrap: wrap;
padding: 16px 16px 0px 16px;
2023-06-18 20:13:35 +02:00
background-color: #505050;
2023-06-17 09:11:14 +02:00
}
.child-nodes .child-node {
padding: 8px;
border-radius: 8px;
2023-06-18 20:13:35 +02:00
background-color: #2f2f2f;
margin-right: 12px;
2023-06-17 09:11:14 +02:00
margin-bottom: 16px;
white-space: nowrap;
font-size: 0.8em;
cursor: pointer;
2023-06-18 20:13:35 +02:00
user-select: none;
-webkit-tap-highlight-color: transparent;
2023-06-17 09:11:14 +02:00
}
.node-name {
2023-06-18 22:25:34 +02:00
margin: 32px 0 16px 0;
2023-06-18 20:13:35 +02:00
background: #fff;
color: #000;
text-align: center;
font-weight: bold;
2023-06-17 09:11:14 +02:00
}
.node-content {
2023-06-18 20:13:35 +02:00
justify-self: center;
2023-06-18 22:25:34 +02:00
padding: 16px 32px;
word-wrap: break-word;
font-family: monospace;
2023-06-18 20:13:35 +02:00
font-size: 0.85em;
color: #333;
width: 100ex;
resize: none;
border: none;
outline: none;
2023-06-18 20:13:35 +02:00
}
.node-content[contenteditable] {
outline: 0px solid transparent;
}
.node-content:invalid {
border-bottom: 1px solid #eee;
2023-06-18 22:25:34 +02:00
border-radius: 8px;
2023-06-18 22:05:10 +02:00
}
.tree {
padding: 16px;
}
2023-06-18 20:13:35 +02:00
@media only screen and (max-width: 100ex) {
.node-content {
2023-06-18 22:05:10 +02:00
width: 100%;
2023-06-18 20:13:35 +02:00
justify-self: start;
}
2023-06-17 09:11:14 +02:00
}