forked from github/plane
fixed css for task lists and code with syntax highlighting
This commit is contained in:
parent
b078e24d82
commit
727570e347
@ -1,5 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: {
|
plugins: {
|
||||||
|
"tailwindcss/nesting": {},
|
||||||
tailwindcss: {},
|
tailwindcss: {},
|
||||||
autoprefixer: {},
|
autoprefixer: {},
|
||||||
},
|
},
|
||||||
|
@ -1,13 +1,3 @@
|
|||||||
.empty-node::after {
|
|
||||||
content: attr(data-placeholder);
|
|
||||||
color: rgb(var(--color-text-400));
|
|
||||||
|
|
||||||
position: absolute;
|
|
||||||
pointer-events: none;
|
|
||||||
top: 15px;
|
|
||||||
margin-left: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ProseMirror p.is-editor-empty:first-child::before {
|
.ProseMirror p.is-editor-empty:first-child::before {
|
||||||
content: attr(data-placeholder);
|
content: attr(data-placeholder);
|
||||||
float: left;
|
float: left;
|
||||||
@ -42,38 +32,37 @@
|
|||||||
|
|
||||||
/* Custom TODO list checkboxes – shoutout to this awesome tutorial: https://moderncss.dev/pure-css-custom-checkbox-style/ */
|
/* Custom TODO list checkboxes – shoutout to this awesome tutorial: https://moderncss.dev/pure-css-custom-checkbox-style/ */
|
||||||
|
|
||||||
ul[data-type="taskList"] li > label {
|
ul[data-type="taskList"] li>label {
|
||||||
margin-right: 0.2rem;
|
margin-right: 0.2rem;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
ul[data-type="taskList"] li > label {
|
ul[data-type="taskList"] li>label {
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul[data-type="taskList"] li > label input[type="checkbox"] {
|
ul[data-type="taskList"] li>label input[type="checkbox"] {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
background-color: var(--novel-white);
|
background-color: rgb(var(--color-background-100));
|
||||||
margin: 0;
|
margin: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 1.2em;
|
width: 1.2rem;
|
||||||
height: 1.2em;
|
height: 1.2rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 5px;
|
border: 2px solid rgb(var(--color-text-100));
|
||||||
border: 2px solid var(--novel-stone-900);
|
|
||||||
margin-right: 0.3rem;
|
margin-right: 0.3rem;
|
||||||
display: grid;
|
display: grid;
|
||||||
place-content: center;
|
place-content: center;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--novel-stone-50);
|
background-color: rgb(var(--color-background-80));
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
background-color: var(--novel-stone-200);
|
background-color: rgb(var(--color-background-90));
|
||||||
}
|
}
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
@ -92,8 +81,8 @@ ul[data-type="taskList"] li > label input[type="checkbox"] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul[data-type="taskList"] li[data-checked="true"] > div > p {
|
ul[data-type="taskList"] li[data-checked="true"]>div>p {
|
||||||
color: var(--novel-stone-400);
|
color: rgb(var(--color-text-200));
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
text-decoration-thickness: 2px;
|
text-decoration-thickness: 2px;
|
||||||
}
|
}
|
||||||
@ -103,6 +92,7 @@ ul[data-type="taskList"] li[data-checked="true"] > div > p {
|
|||||||
.tippy-box {
|
.tippy-box {
|
||||||
max-width: 400px !important;
|
max-width: 400px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ProseMirror {
|
.ProseMirror {
|
||||||
position: relative;
|
position: relative;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
@ -126,6 +116,22 @@ ul[data-type="taskList"] li[data-checked="true"] > div > p {
|
|||||||
-moz-appearance: textfield;
|
-moz-appearance: textfield;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ProseMirror pre {
|
||||||
|
background: #121212;
|
||||||
|
border-radius: 0.375rem;
|
||||||
|
border-color: rgba(var(--color-background-100));
|
||||||
|
border: 0.5px solid;
|
||||||
|
font-family: "JetBrainsMono", monospace;
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ProseMirror pre code {
|
||||||
|
background: none;
|
||||||
|
color: inherit;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.ProseMirror-icon {
|
.ProseMirror-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 0.8;
|
line-height: 0.8;
|
||||||
|
@ -182,5 +182,8 @@ module.exports = {
|
|||||||
custom: ["Inter", "sans-serif"],
|
custom: ["Inter", "sans-serif"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [require("@tailwindcss/typography")],
|
plugins: [
|
||||||
|
require("tailwindcss-animate"),
|
||||||
|
require("@tailwindcss/typography")
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user