mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
change style
This commit is contained in:
parent
959b7a26c6
commit
8cc6d359a9
BIN
docs/src/assets/fonts/JetBrainsMono-Bold.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-Bold.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-BoldItalic.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-ExtraBold.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-ExtraBold.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-ExtraBoldItalic.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-ExtraBoldItalic.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-ExtraLight.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-ExtraLight.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-ExtraLightItalic.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-ExtraLightItalic.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-Italic.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-Italic.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-Light.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-Light.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-LightItalic.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-LightItalic.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-Medium.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-Medium.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-MediumItalic.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-MediumItalic.woff2
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-Thin.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-Thin.woff2
Normal file
Binary file not shown.
BIN
docs/src/assets/fonts/JetBrainsMono-ThinItalic.woff2
Normal file
BIN
docs/src/assets/fonts/JetBrainsMono-ThinItalic.woff2
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
.demo {
|
.demo {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.75rem;
|
||||||
|
|
||||||
&__preview {
|
&__preview {
|
||||||
padding: 1.25rem;
|
padding: 1.25rem;
|
||||||
|
@ -68,12 +68,11 @@ export default {
|
|||||||
.demo-frame {
|
.demo-frame {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 5rem;
|
min-height: 5rem;
|
||||||
|
|
||||||
&.is-inline {
|
&.is-inline {
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.75rem;
|
||||||
background-color: rgba($colorBlack, 0.03);
|
background-color: rgba($colorBlack, 0.03);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.live-demo {
|
.live-demo {
|
||||||
background-color: $colorWhite;
|
background-color: $colorWhite;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.75rem;
|
||||||
|
|
||||||
&__preview {
|
&__preview {
|
||||||
border-top-left-radius: inherit;
|
border-top-left-radius: inherit;
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
Editor, EditorContent, defaultExtensions,
|
Editor, EditorContent, defaultExtensions, Extension,
|
||||||
} from '@tiptap/vue-starter-kit'
|
} from '@tiptap/vue-starter-kit'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -87,7 +87,9 @@ export default {
|
|||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.editor = new Editor({
|
this.editor = new Editor({
|
||||||
extensions: defaultExtensions(),
|
extensions: [
|
||||||
|
...defaultExtensions(),
|
||||||
|
],
|
||||||
content: `
|
content: `
|
||||||
<h2>
|
<h2>
|
||||||
Hi there,
|
Hi there,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Emoji
|
# Emoji
|
||||||
|
|
||||||
:::pro Fund the development 💖
|
:::pro Fund the development ♥️
|
||||||
We need your support to maintain, update, support and develop tiptap 2. If you’re waiting for this extension, [become a sponsor and fund open source](/sponsor).
|
We need your support to maintain, update, support and develop tiptap 2. If you’re waiting for this extension, [become a sponsor and fund open source](/sponsor).
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Hashtag
|
# Hashtag
|
||||||
|
|
||||||
:::pro Fund the development 💖
|
:::pro Fund the development ♥️
|
||||||
We need your support to maintain, update, support and develop tiptap 2. If you’re waiting for this extension, [become a sponsor and fund open source](/sponsor).
|
We need your support to maintain, update, support and develop tiptap 2. If you’re waiting for this extension, [become a sponsor and fund open source](/sponsor).
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Accessibility
|
# Accessibility
|
||||||
|
|
||||||
:::pro Fund the development 💖
|
:::pro Fund the development ♥️
|
||||||
We need your support to maintain, update, support and develop tiptap 2. If you’re waiting for progress here, [become a sponsor and fund open source](/sponsor).
|
We need your support to maintain, update, support and develop tiptap 2. If you’re waiting for progress here, [become a sponsor and fund open source](/sponsor).
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
@ -69,4 +69,4 @@ Most editor toolbars use icons for their buttons. In some of our demos, we use t
|
|||||||
* [Font Awesome](https://fontawesome.com/icons?c=editors)
|
* [Font Awesome](https://fontawesome.com/icons?c=editors)
|
||||||
* [UI icons](https://www.ibm.com/design/language/iconography/ui-icons/library/)
|
* [UI icons](https://www.ibm.com/design/language/iconography/ui-icons/library/)
|
||||||
|
|
||||||
Also, we’re working on providing a configurable interface for tiptap. If you think that’s a great idea, [become a sponsor](/sponsor) to show us your support. 💖
|
Also, we’re working on providing a configurable interface for tiptap. If you think that’s a great idea, [become a sponsor](/sponsor) to show us your support. ♥️
|
||||||
|
@ -172,4 +172,4 @@ Read more about [the new collaborative editing experience](/guide/collaborative-
|
|||||||
### Become a sponsor
|
### Become a sponsor
|
||||||
tiptap wouldn’t exist without the funding of its community. If you fell in love with tiptap, don’t forget to [become a sponsor](/sponsor) and make the maintenance, development and support sustainable.
|
tiptap wouldn’t exist without the funding of its community. If you fell in love with tiptap, don’t forget to [become a sponsor](/sponsor) and make the maintenance, development and support sustainable.
|
||||||
|
|
||||||
In exchange, we’ll take you into our hearts, invite you to private repositories, add a `sponsor 💖` label to your issues and pull requests and more.
|
In exchange, we’ll take you into our hearts, invite you to private repositories, add a `sponsor ♥️` label to your issues and pull requests and more.
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
# Become a sponsor
|
# Become a sponsor
|
||||||
To deliver a top-notch developer experience and user experience, we put ~~hundreds~~ thousands of hours of unpaid work into tiptap. Your funding helps us to make this work more and more financially sustainable. This enables us to provide helpful support, maintain all our packages, keep everything up to date, and develop new features and extensions for tiptap.
|
To deliver a top-notch developer experience and user experience, we put ~~hundreds~~ thousands of hours of unpaid work into tiptap. Your funding helps us to make this work more and more financially sustainable. This enables us to provide helpful support, maintain all our packages, keep everything up to date, and develop new features and extensions for tiptap.
|
||||||
|
|
||||||
Give back to the open source community and [sponsor us on GitHub](https://github.com/sponsors/ueberdosis)! 💖
|
Give back to the open source community and [sponsor us on GitHub](https://github.com/sponsors/ueberdosis)! ♥️
|
||||||
|
|
||||||
## Your benefits as a sponsor
|
## Your benefits as a sponsor
|
||||||
* Give back to the open source community
|
* Give back to the open source community
|
||||||
* Get early access to private repositories
|
* Get early access to private repositories
|
||||||
* Ensure the further maintenace and development of tiptap
|
* Ensure the further maintenace and development of tiptap
|
||||||
* Your issues and pull requests get a `sponsor 💖` label
|
* Your issues and pull requests get a `sponsor ♥️` label
|
||||||
* Get a sponsor badge in all your comments on GitHub
|
* Get a sponsor badge in all your comments on GitHub
|
||||||
* Show support in your GitHub profile
|
* Show support in your GitHub profile
|
||||||
* Receive monthly reports about our open source work
|
* Receive monthly reports about our open source work
|
||||||
|
@ -82,7 +82,7 @@ a {
|
|||||||
code {
|
code {
|
||||||
font-family: 'JetBrainsMono', monospace;
|
font-family: 'JetBrainsMono', monospace;
|
||||||
padding: 0.1rem 0.3rem;
|
padding: 0.1rem 0.3rem;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.4rem;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,9 +207,12 @@ code {
|
|||||||
> ol code,
|
> ol code,
|
||||||
> .table-wrapper code,
|
> .table-wrapper code,
|
||||||
> .remark-container code {
|
> .remark-container code {
|
||||||
color: rgba($colorBlack, 0.7);
|
background-color: $colorYellow;
|
||||||
background-color: rgba($colorYellow, 0.3);
|
|
||||||
box-decoration-break: clone;
|
box-decoration-break: clone;
|
||||||
|
|
||||||
|
// font-family: 'Inter';
|
||||||
|
font-weight: 700;
|
||||||
|
// font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
> p a,
|
> p a,
|
||||||
@ -229,9 +232,9 @@ code {
|
|||||||
|
|
||||||
& + ul {
|
& + ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
background-color: rgba($colorBlack, 0.03);
|
border: 3px solid $colorBlack;
|
||||||
padding: 1.25rem !important;
|
padding: 1.25rem !important;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.75rem;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
@ -241,7 +244,6 @@ code {
|
|||||||
letter-spacing: 0.025rem;
|
letter-spacing: 0.025rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: rgba($colorBlack, 0.3);
|
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,28 +367,31 @@ code {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .remark-container {
|
> .remark-container {
|
||||||
padding: 1.25rem;
|
padding: 1rem 1.25rem;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.75rem;
|
||||||
color: rgba($colorBlack, 0.7);
|
border: 3px solid $colorBlack;
|
||||||
|
|
||||||
&.warning {
|
&.warning {
|
||||||
background-color: rgba($colorYellow, 0.3);
|
background-color: $colorYellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.info {
|
&.info {
|
||||||
background-color: rgba($colorBlue, 0.3);
|
background-color: $colorBlue;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.error {
|
&.error {
|
||||||
background-color: rgba($colorRed, 0.3);
|
background-color: $colorRed;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.pro {
|
&.pro {
|
||||||
background-color: rgba($colorOrange, 0.3);
|
background-color: $colorBlack;
|
||||||
|
color: $colorWhite;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remark-container-title {
|
.remark-container-title {
|
||||||
|
font-size: 1.1rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,24 +93,24 @@
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @font-face {
|
@font-face {
|
||||||
// font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
// font-style: normal;
|
font-style: normal;
|
||||||
// font-weight: 600;
|
font-weight: 600;
|
||||||
// src:
|
src:
|
||||||
// url("~@/assets/fonts/Inter-SemiBold.woff2") format("woff2"),
|
url("~@/assets/fonts/Inter-SemiBold.woff2") format("woff2"),
|
||||||
// url("~@/assets/fonts/Inter-SemiBold.woff") format("woff"),
|
url("~@/assets/fonts/Inter-SemiBold.woff") format("woff"),
|
||||||
// ;
|
;
|
||||||
// }
|
}
|
||||||
// @font-face {
|
@font-face {
|
||||||
// font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
// font-style: italic;
|
font-style: italic;
|
||||||
// font-weight: 600;
|
font-weight: 600;
|
||||||
// src:
|
src:
|
||||||
// url("~@/assets/fonts/Inter-SemiBoldItalic.woff2") format("woff2"),
|
url("~@/assets/fonts/Inter-SemiBoldItalic.woff2") format("woff2"),
|
||||||
// url("~@/assets/fonts/Inter-SemiBoldItalic.woff") format("woff"),
|
url("~@/assets/fonts/Inter-SemiBoldItalic.woff") format("woff"),
|
||||||
// ;
|
;
|
||||||
// }
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
@ -172,9 +172,19 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'JetBrainsMono';
|
font-family: 'JetBrainsMono';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 500;
|
font-weight: 400;
|
||||||
src:
|
src:
|
||||||
url("~@/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"),
|
url("~@/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"),
|
||||||
url("~@/assets/fonts/JetBrainsMono-Regular.woff") format("woff"),
|
url("~@/assets/fonts/JetBrainsMono-Regular.woff") format("woff"),
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'JetBrainsMono';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
src:
|
||||||
|
url("~@/assets/fonts/JetBrainsMono-Bold.woff2") format("woff2"),
|
||||||
|
// url("~@/assets/fonts/JetBrainsMono-Bold.woff") format("woff"),
|
||||||
|
;
|
||||||
|
}
|
||||||
|
@ -45,7 +45,7 @@ pre[class*="language-"] {
|
|||||||
color: $colorWhite;
|
color: $colorWhite;
|
||||||
background: $codeBackground;
|
background: $codeBackground;
|
||||||
padding: 1.25rem !important;
|
padding: 1.25rem !important;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.75rem;
|
||||||
max-height: unquote("max(300px, 60vh)");
|
max-height: unquote("max(300px, 60vh)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,7 +188,6 @@ $menuBreakPoint: 800px;
|
|||||||
letter-spacing: 0.025rem;
|
letter-spacing: 0.025rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: rgba($colorBlack, 0.3);
|
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,6 +223,7 @@ $menuBreakPoint: 800px;
|
|||||||
}
|
}
|
||||||
|
|
||||||
&--exact {
|
&--exact {
|
||||||
|
font-weight: 700;
|
||||||
color: $colorBlack;
|
color: $colorBlack;
|
||||||
background-color: rgba($colorBlack, 0.05);
|
background-color: rgba($colorBlack, 0.05);
|
||||||
}
|
}
|
||||||
@ -232,47 +232,56 @@ $menuBreakPoint: 800px;
|
|||||||
color: rgba($colorBlack, 0.4);
|
color: rgba($colorBlack, 0.4);
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
content: 'draft';
|
content: 'DRAFT';
|
||||||
font-family: 'JetBrainsMono', monospace;
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
font-family: "JetBrainsMono", monospace;
|
||||||
|
font-weight: 700;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: $colorGrey;
|
color: $colorGrey;
|
||||||
background-color: rgba($colorGrey, 0.1);
|
background-color: rgba($colorBlack, 0.05);
|
||||||
padding: 0 0.5em;
|
font-size: 0.75rem;
|
||||||
border-radius: 5px;
|
padding: 0 0.4rem;
|
||||||
|
border-radius: 0.4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&--pro {
|
&--pro {
|
||||||
&::after {
|
&::after {
|
||||||
content: 'PRO';
|
content: "PRO";
|
||||||
font-family: 'JetBrainsMono', monospace;
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
font-family: "JetBrainsMono", monospace;
|
||||||
|
font-weight: 700;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: $colorOrange;
|
color: $colorWhite;
|
||||||
background-color: rgba($colorOrange, 0.1);
|
background-color: $colorBlack;
|
||||||
padding: 0 0.5em;
|
font-size: 0.75rem;
|
||||||
border-radius: 5px;
|
padding: 0 0.4rem;
|
||||||
|
border-radius: 0.4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&--new {
|
&--new {
|
||||||
&::after {
|
&::after {
|
||||||
content: 'NEW';
|
content: 'NEW';
|
||||||
font-family: 'JetBrainsMono', monospace;
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
font-family: "JetBrainsMono", monospace;
|
||||||
|
font-weight: 700;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: $colorGreen;
|
color: $colorBlack;
|
||||||
background-color: rgba($colorGreen, 0.1);
|
background-color: $colorGreen;
|
||||||
padding: 0 0.5em;
|
font-size: 0.75rem;
|
||||||
border-radius: 5px;
|
padding: 0 0.4rem;
|
||||||
|
border-radius: 0.4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&--sponsor {
|
&--sponsor {
|
||||||
&::after {
|
&::after {
|
||||||
content: '💖';
|
content: '♥️';
|
||||||
font-family: 'JetBrainsMono', monospace;
|
|
||||||
text-transform: uppercase;
|
|
||||||
padding: 0 0.5em;
|
padding: 0 0.5em;
|
||||||
border-radius: 5px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
$colorWhite: #FFF;
|
$colorWhite: #FFF;
|
||||||
$colorBlack: #0D0D0D;
|
$colorBlack: #0D0D0D;
|
||||||
$colorText: rgba($colorBlack, 0.8);
|
$colorText: rgba($colorBlack, 1);
|
||||||
$colorGrey: #616161;
|
$colorGrey: #616161;
|
||||||
$colorPurple: #A975FF;
|
$colorPurple: #958DF1;
|
||||||
$colorRed: #FB5151;
|
$colorRed: #F98181;
|
||||||
$colorOrange: #FD9170;
|
$colorOrange: #FBBC88;
|
||||||
$colorYellow: #FFCB6B;
|
$colorYellow: #FAF594;
|
||||||
$colorBlue: #68CEF8;
|
$colorBlue: #70CFF8;
|
||||||
$colorTeal: #80cbc4;
|
$colorTeal: #94FADB;
|
||||||
$colorGreen: #9DEF8F;
|
$colorGreen: #B9F18D;
|
||||||
|
|
||||||
/* Default Equations */
|
/* Default Equations */
|
||||||
$linear: cubic-bezier(0.250, 0.250, 0.750, 0.750);
|
$linear: cubic-bezier(0.250, 0.250, 0.750, 0.750);
|
||||||
|
Loading…
Reference in New Issue
Block a user