-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Austin Green
authored
Jan 13, 2021
1 parent
57d68d6
commit 93052da
Showing
22 changed files
with
913 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/** | ||
* Copyright Zendesk, Inc. | ||
* | ||
* Use of this source code is governed under the Apache License, Version 2.0 | ||
* found at http://www.apache.org/licenses/LICENSE-2.0. | ||
*/ | ||
|
||
/* eslint-disable require-unicode-regexp */ | ||
|
||
const webpack = require('webpack'); | ||
|
||
module.exports.iconPlugins = [ | ||
new webpack.NormalModuleReplacementPlugin( | ||
/bold\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/bold-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/italic\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/italic-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/underline\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/underline-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/code\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/markup-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/horizontalline\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/horizontal-rule-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/link\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/link-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/unlink\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/link-remove-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/pencil\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/pencil-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/dropdown-arrow\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/numberedlist\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/list-number-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/bulletedlist\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/list-bullet-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/quote\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/quote-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/indent\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/indent-increase-stroke.svg') | ||
), | ||
new webpack.NormalModuleReplacementPlugin( | ||
/outdent\.svg/, | ||
require.resolve('@zendeskgarden/svg-icons/src/16/indent-decrease-stroke.svg') | ||
) | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<link href="https://zendeskgarden.github.io/css-components/bedrock/index.css" rel="stylesheet" disabled /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "@zendeskgarden/stylelint-config" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Copyright Zendesk, Inc. | ||
* | ||
* Use of this source code is governed under the Apache License, Version 2.0 | ||
* found at http://www.apache.org/licenses/LICENSE-2.0. | ||
*/ | ||
|
||
export const INITIAL_DATA = `<h2>CKEditor</h2><hr><h3>Basic styles</h3><p>Text can have <strong>bold</strong>, <i>italic</i>, and <u>underline</u> content. <code>Inline code</code> is also available. <a href="https://www.google.com">Links work as well.</a></p><ul><li>Lists</li><li>Are<ol><li>Nestable</li><li>And can change</li><li>Types</li></ol></li></ul><h3>Block elements</h3><blockquote><p>Block quotes can have inline content</p><p><strong>- Author name</strong></p></blockquote><pre><code class="language-plaintext">Preformatted code can go here</code></pre>`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.ck.ck-balloon-panel { | ||
box-shadow: var(--ck-drop-shadow); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.ck-content blockquote { | ||
border-left: 2px solid #c2c8cc; /* GREY-400 */ | ||
padding: 0 0 0 calc(var(--ck-spacing-unit) * 4); | ||
overflow: hidden; | ||
font-style: inherit; | ||
margin-block-start: 16px; | ||
margin-block-end: 16px; | ||
} | ||
|
||
.ck-content[dir='rtl'] blockquote { | ||
border-right: 2px solid #c2c8cc; /* GREY-400 */ | ||
border-left: 0; | ||
padding: 0 calc(var(--ck-spacing-unit) * 4) 0 0; | ||
} | ||
|
||
.ck-content blockquote p:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
.ck-content pre { | ||
margin-block-start: 16px; | ||
margin-block-end: 16px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* stylelint-disable-next-line selector-max-specificity */ | ||
.ck.ck-button:not(.ck-disabled):hover .ck-button__icon { | ||
color: #49545c; /* GREY-700 */ | ||
} | ||
|
||
.ck.ck-button:not(.ck-disabled) { | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.ck-content code { | ||
border-radius: 2px; | ||
background-color: #e9ebed; /* GREY-200 */ | ||
padding: 1.5px; | ||
color: #49545c;/* GREY-700 */ | ||
/* stylelint-disable-next-line max-line-length */ | ||
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; | ||
font-size: calc(1em - 1px); | ||
direction: ltr; | ||
} | ||
|
||
.ck.ck-editor__editable .ck-code_selected { | ||
background-color: #e9ebed; /* GREY-200 */ | ||
} |
Oops, something went wrong.