mirror of
https://github.com/zoldar/jenot.git
synced 2026-01-03 14:32:54 +00:00
249 lines
3.2 KiB
CSS
249 lines
3.2 KiB
CSS
/* CSS reset */
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
img,
|
|
picture,
|
|
video,
|
|
canvas,
|
|
svg {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
p {
|
|
text-wrap: pretty;
|
|
}
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
text-wrap: balance;
|
|
}
|
|
|
|
#root,
|
|
#__next {
|
|
isolation: isolate;
|
|
}
|
|
|
|
/* Editable area component */
|
|
|
|
editable-area {
|
|
display: block;
|
|
position: relative;
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
line-height: inherit;
|
|
text-indent: inherit;
|
|
letter-spacing: inherit;
|
|
width: 100%;
|
|
}
|
|
|
|
editable-area .display {
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
line-height: inherit;
|
|
text-indent: inherit;
|
|
letter-spacing: inherit;
|
|
padding: 0;
|
|
margin: 0;
|
|
border-width: 0;
|
|
}
|
|
|
|
editable-area textarea {
|
|
padding: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
-webkit-text-fill-color: transparent;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
-webkit-tap-highlight-color: transparent;
|
|
background: transparent;
|
|
border: none;
|
|
resize: none;
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
line-height: inherit;
|
|
text-indent: inherit;
|
|
letter-spacing: inherit;
|
|
padding: 0;
|
|
margin: 0;
|
|
border-width: 0;
|
|
}
|
|
|
|
editable-area textarea:focus {
|
|
outline: none;
|
|
}
|
|
|
|
/* Task list */
|
|
|
|
task-list ul {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
wdith: 100%;
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
task-list li:has(.checkbox input:checked) {
|
|
order: 1;
|
|
}
|
|
|
|
task-list-item .remove {
|
|
visibility: hidden;
|
|
}
|
|
|
|
task-list-item:hover .remove {
|
|
visibility: visible;
|
|
}
|
|
|
|
task-list-item:has(textarea:focus) .remove {
|
|
visibility: visible;
|
|
}
|
|
|
|
task-list-item .checkbox input {
|
|
accent-color: gray;
|
|
}
|
|
|
|
task-list-item:has(.checkbox input:checked) editable-area p.display {
|
|
text-decoration: line-through;
|
|
color: gray;
|
|
}
|
|
|
|
task-list-item {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: baseline;
|
|
}
|
|
|
|
task-list-item .handle button {
|
|
cursor: grab;
|
|
}
|
|
|
|
task-list-item .checkbox input {
|
|
width: 1.1em;
|
|
height: 1.1em;
|
|
}
|
|
|
|
li.dragging {
|
|
opacity: 0.5;
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.drag-placeholder {
|
|
opacity: 0.5;
|
|
background-color: beige;
|
|
}
|
|
|
|
.draggable,
|
|
task-list ul {
|
|
touch-action: none;
|
|
}
|
|
|
|
/* Note form */
|
|
|
|
note-form .content {
|
|
min-height: 2.5em;
|
|
}
|
|
|
|
note-form .toolbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
note-form .note {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Styles */
|
|
|
|
:root {
|
|
--gap-1: 10px;
|
|
}
|
|
|
|
* {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
color: #222;
|
|
}
|
|
|
|
#content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1em;
|
|
/* width: 270px; */
|
|
max-width: 1200px;
|
|
margin: var(--gap-1) auto 0 auto;
|
|
padding: 0 var(--gap-1);
|
|
}
|
|
|
|
#top-bar {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
gap: var(--gap-1);
|
|
}
|
|
|
|
#notes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.note {
|
|
background: beige;
|
|
box-shadow: 2px 2px 4px 0px rgb(0 0 0 / 0.8);
|
|
padding: 4px 8px;
|
|
}
|
|
|
|
.note.readonly ul {
|
|
wdith: 100%;
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.note.readonly ul li {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: baseline;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|