Notes/static/less/main.less

137 lines
1.9 KiB
Plaintext
Raw Normal View History

2023-06-15 07:24:23 +02:00
@import "theme.less";
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: @fontsize;
2023-06-15 07:24:23 +02:00
background-color: @background;
}
h1 {
color: @accent_1;
}
#app {
2023-06-18 20:13:35 +02:00
display: grid;
2023-06-15 07:24:23 +02:00
color: #fff;
}
2023-06-17 09:11:14 +02:00
2023-06-18 20:13:35 +02:00
header {
display: grid;
grid-template-columns: 1fr min-content;
align-items: center;
background: @accent_1;
padding: 0px;
color: darken(@accent_1, 35%);
&.modified {
background: @accent_3;
color: lighten(@accent_3, 45%);
}
.name {
font-weight: bold;
padding-left: 16px;
}
.add {
font-size: 2em;
padding-right: 16px;
cursor: pointer;
}
}
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
.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
}
.crumb:after {
2023-06-18 20:13:35 +02:00
content: "•";
2023-06-17 09:11:14 +02:00
margin-left: 8px;
2023-06-18 20:13:35 +02:00
color: @accent_1;
2023-06-17 09:11:14 +02:00
}
.crumb:last-child {
margin-right: 0;
}
.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-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 20:13:35 +02:00
padding: 32px;
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;
padding: 0px 32px 32px 32px;
white-space: pre-wrap;
font-size: 0.85em;
color: #333;
width: 100ex;
&[contenteditable] {
outline: 0px solid transparent;
}
}
@media only screen and (max-width: 100ex) {
.node-content {
width: initial;
justify-self: start;
}
2023-06-17 09:11:14 +02:00
}