jodit 3.8.1 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/.idea/codeStyles/Project.xml +68 -0
  2. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  3. package/.idea/dictionaries/v_chupurnov.xml +10 -0
  4. package/.idea/encodings.xml +4 -0
  5. package/.idea/inspectionProfiles/Project_Default.xml +118 -0
  6. package/.idea/jodit.iml +12 -0
  7. package/.idea/jsLibraryMappings.xml +6 -0
  8. package/.idea/markdown-navigator-enh.xml +29 -0
  9. package/.idea/markdown-navigator.xml +55 -0
  10. package/.idea/misc.xml +6 -0
  11. package/.idea/modules.xml +8 -0
  12. package/.idea/prettier.xml +6 -0
  13. package/.idea/vcs.xml +6 -0
  14. package/.idea/watcherTasks.xml +4 -0
  15. package/.idea/workspace.xml +1264 -0
  16. package/build/jodit.css +2 -2
  17. package/build/jodit.es2018.css +1 -1
  18. package/build/jodit.es2018.en.css +1 -1
  19. package/build/jodit.es2018.en.js +4 -4
  20. package/build/jodit.es2018.en.min.js +2 -2
  21. package/build/jodit.es2018.js +4 -4
  22. package/build/jodit.es2018.min.js +2 -2
  23. package/build/jodit.js +4 -4
  24. package/build/jodit.min.css +1 -1
  25. package/build/jodit.min.js +2 -2
  26. package/package.json +2 -2
  27. package/.travis.yml +0 -7
  28. package/bower.json +0 -33
  29. package/build.js +0 -39
  30. package/docker/Dockerfile +0 -11
  31. package/docker/README.md +0 -45
  32. package/docker/build +0 -3
  33. package/docker/install +0 -7
  34. package/docker/start +0 -3
  35. package/docker/test +0 -3
  36. package/docker/uninstall +0 -3
  37. package/examples/arabic.lang.html +0 -76
  38. package/examples/assets/app.css +0 -175
  39. package/examples/assets/app.js +0 -57
  40. package/examples/assets/download.jpg +0 -0
  41. package/examples/assets/icon.png +0 -0
  42. package/examples/assets/logo.png +0 -0
  43. package/examples/assets/prism.css +0 -200
  44. package/examples/assets/prism.js +0 -1254
  45. package/examples/color-picker.html +0 -139
  46. package/examples/custom-icons.html +0 -173
  47. package/examples/custom-toolbar.html +0 -80
  48. package/examples/example.default.html +0 -75
  49. package/examples/fullsize.html +0 -75
  50. package/examples/index.html +0 -176
  51. package/examples/inline-mode.html +0 -116
  52. package/examples/oneinstance.html +0 -125
  53. package/icons.html +0 -50
  54. package/karma.conf.js +0 -157
  55. package/make.js +0 -10
  56. package/server.js +0 -101
  57. package/test/bootstrap.js +0 -1167
  58. package/test/test.html +0 -102
  59. package/test/test.index.html +0 -11
  60. package/test/tests/acceptance/clipboardTest.js +0 -1234
  61. package/test/tests/acceptance/commandsTest.js +0 -647
  62. package/test/tests/acceptance/creatorTest.js +0 -103
  63. package/test/tests/acceptance/deleteBackSpaceTest.js +0 -1289
  64. package/test/tests/acceptance/dialogTest.js +0 -188
  65. package/test/tests/acceptance/editorTest.js +0 -855
  66. package/test/tests/acceptance/enterTest.js +0 -1088
  67. package/test/tests/acceptance/eventsTest.js +0 -1246
  68. package/test/tests/acceptance/filebrowserTest.js +0 -1309
  69. package/test/tests/acceptance/i18nTest.js +0 -81
  70. package/test/tests/acceptance/iframeTest.js +0 -306
  71. package/test/tests/acceptance/imageTest.js +0 -1649
  72. package/test/tests/acceptance/inlineModeTest.js +0 -826
  73. package/test/tests/acceptance/interfaceTest.js +0 -119
  74. package/test/tests/acceptance/mobileTest.js +0 -229
  75. package/test/tests/acceptance/plugins/classSpan.js +0 -220
  76. package/test/tests/acceptance/plugins/cleanHtml.js +0 -351
  77. package/test/tests/acceptance/plugins/color.js +0 -188
  78. package/test/tests/acceptance/plugins/dragAndDropElement.js +0 -172
  79. package/test/tests/acceptance/plugins/focus.js +0 -115
  80. package/test/tests/acceptance/plugins/font.js +0 -316
  81. package/test/tests/acceptance/plugins/image.js +0 -79
  82. package/test/tests/acceptance/plugins/indent.js +0 -179
  83. package/test/tests/acceptance/plugins/inline-popup.js +0 -578
  84. package/test/tests/acceptance/plugins/insert.js +0 -17
  85. package/test/tests/acceptance/plugins/limit.js +0 -164
  86. package/test/tests/acceptance/plugins/link.js +0 -1640
  87. package/test/tests/acceptance/plugins/orderedList.js +0 -290
  88. package/test/tests/acceptance/plugins/placeholder.js +0 -138
  89. package/test/tests/acceptance/plugins/resizer.js +0 -329
  90. package/test/tests/acceptance/plugins/search.js +0 -623
  91. package/test/tests/acceptance/plugins/size.js +0 -344
  92. package/test/tests/acceptance/plugins/source.js +0 -218
  93. package/test/tests/acceptance/plugins/stat.js +0 -120
  94. package/test/tests/acceptance/plugins/tooltip.js +0 -97
  95. package/test/tests/acceptance/plugins/wrapTextNodes.js +0 -105
  96. package/test/tests/acceptance/pluginsTest.js +0 -2219
  97. package/test/tests/acceptance/selectionTest.js +0 -862
  98. package/test/tests/acceptance/statesTest.js +0 -310
  99. package/test/tests/acceptance/tableTest.js +0 -1988
  100. package/test/tests/acceptance/toolbarTest.js +0 -1747
  101. package/test/tests/acceptance/undoredoTest.js +0 -217
  102. package/test/tests/acceptance/uploaderTest.js +0 -187
  103. package/test/tests/artio.jpg +0 -0
  104. package/test/tests/units/helpersTest.js +0 -771
  105. package/test/tests/units/modules/dom.js +0 -282
  106. package/test/tests/units/objectObserverTest.js +0 -533
  107. package/test/tests/units/popupTest.js +0 -211
  108. package/test/tests/units/positionTest.js +0 -238
  109. package/test/tests/units/styleTest.js +0 -1361
  110. package/webpack.config.js +0 -308
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "jodit",
3
- "version": "3.8.1",
3
+ "version": "3.8.2",
4
4
  "description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
5
5
  "main": "build/jodit.min.js",
6
6
  "types": "index.d.ts",
7
7
  "typings": "index.d.ts",
8
8
  "scripts": {
9
9
  "coverage": "npx type-coverage ./src --detail --ignore-files 'build/**' --ignore-files 'test/**' --ignore-files 'examples/**'",
10
- "newversion": "npm run lint && npm test && npm version patch --no-git-tag-version && npm run build && npm run newversiongit && npm publish ./",
10
+ "newversion": "npm run lint && npm run clean && npm test && npm version patch --no-git-tag-version && npm run build && npm run newversiongit && npm publish ./",
11
11
  "newversiongit": "git add --all && git commit -m \"New version $npm_package_version. Read more https://github.com/xdan/jodit/blob/master/CHANGELOG.MD \" && git tag $npm_package_version && git push --tags origin HEAD:master",
12
12
  "start": "node server.js --port=2000",
13
13
  "clean": "rm -rf build/*",
package/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: node_js
2
-
3
- node_js:
4
- - "stable"
5
-
6
- addons:
7
- firefox: latest
package/bower.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "name": "jodit",
3
- "description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
4
- "main": [
5
- "build/jodit.min.js",
6
- "build/jodit.min.css"
7
- ],
8
- "authors": [
9
- {
10
- "name": "Chupurnov Valeriy",
11
- "email": "chupurnov@gmail.com",
12
- "homepage": "http://xdsoft.net/contacts.html"
13
- }
14
- ],
15
- "license": "MIT",
16
- "keywords": [
17
- "wysiwyg",
18
- "jquery",
19
- "editor",
20
- "rich",
21
- "jodit"
22
- ],
23
- "homepage": "http://xdsoft.net/jodit/",
24
- "ignore": [
25
- "*",
26
- "!build/",
27
- "!build/*"
28
- ],
29
- "repository": {
30
- "type": "git",
31
- "url": "git://github.com:xdan/jodit.git"
32
- }
33
- }
package/build.js DELETED
@@ -1,39 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- const webpack = require('webpack');
8
- const yargs = require('yargs/yargs');
9
- const { hideBin } = require('yargs/helpers');
10
- const path = require('path');
11
- const rootPath = path.resolve(process.cwd()) + path.sep;
12
- const config = require(path.resolve(rootPath, './webpack.config.js'));
13
-
14
- const argv = yargs(hideBin(process.argv)).option('uglify', {
15
- type: 'boolean'
16
- }).argv;
17
-
18
- const opt = config(
19
- [],
20
- {
21
- mode: 'production',
22
- uglify: true,
23
- es: 'es5',
24
- ...argv
25
- },
26
- rootPath
27
- );
28
-
29
- module.exports = new Promise((resolve, reject) => {
30
- webpack(opt, (err, stats) => {
31
- if (err) {
32
- console.log(err);
33
- reject(err);
34
- } else {
35
- console.log(stats.toString({ colors: true }));
36
- resolve(stats.toString({ colors: true }));
37
- }
38
- });
39
- });
package/docker/Dockerfile DELETED
@@ -1,11 +0,0 @@
1
- FROM ubuntu:20.10
2
-
3
- RUN apt-get update \
4
- && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
5
- && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
6
- firefox \
7
- nodejs \
8
- npm \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- WORKDIR /app
package/docker/README.md DELETED
@@ -1,45 +0,0 @@
1
- ![Jodit WYSIWYG editor](https://raw.githubusercontent.com/xdan/jodit/master/examples/assets/logo.png)
2
-
3
- # Docker environment for Jodit's contributors
4
- All you need to build and test Jodit with a docker environment.
5
-
6
- No installation required on the host except docker.
7
-
8
- ## Docker installation
9
- Follow instructions on [docker website](https://docs.docker.com/get-docker/)
10
-
11
- ## Available commands
12
- All commands must be executed in the "docker" directory
13
- ```bash
14
- cd docker
15
- ```
16
-
17
- ### Installation of the docker environment for Jodit
18
- ```bash
19
- ./install
20
- ```
21
-
22
- ### To Run webpack Hot Reload server:
23
- Ctrl+C to close this server.
24
-
25
- To try Jodit, you can open up http://localhost:2000/ in your browser.
26
- ```bash
27
- ./start
28
- ```
29
-
30
- ### To build Jodit
31
- The build files are in the "build" directory.
32
- ```bash
33
- ./build
34
- ```
35
-
36
- ### To launch tests of Jodit
37
- To follow the tests, you can open up http://localhost:2002/ in your browser.
38
- ```bash
39
- ./test
40
- ```
41
-
42
- ### Uninstallation of the docker environment for Jodit
43
- ```bash
44
- ./uninstall
45
- ```
package/docker/build DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- docker run --rm -v $PWD/..:/app jodit bash -c "npm run build"
package/docker/install DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
-
3
- docker build -t jodit .
4
-
5
- docker run --rm -v $PWD/..:/app jodit bash -c "\
6
- npm install \
7
- && npm audit fix --force"
package/docker/start DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- docker run --rm -v $PWD/..:/app -p 2000:2000 jodit bash -c "npm start"
package/docker/test DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- docker run --rm -v $PWD/..:/app -p 2002:2002 jodit bash -c "npm test"
package/docker/uninstall DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- docker rmi jodit
@@ -1,76 +0,0 @@
1
- <!doctype html>
2
- <!--
3
- * Jodit Editor (https://xdsoft.net/jodit/)
4
- * License GNU General Public License version 2 or later;
5
- * Copyright 2013-2020 Valeriy Chupurnov https://xdsoft.net
6
- -->
7
- <html dir="rtl">
8
- <head>
9
- <meta charset="UTF-8"/>
10
- <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
11
- <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
12
- <title>Jodit Example Arabic and RTL</title>
13
- <link rel="icon" type="image/png" href="assets/icon.png" />
14
- </head>
15
- <body>
16
- <header>
17
- <nav>
18
- <ul class="container">
19
- <li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
20
- <li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
21
- <li><a href="https://xdsoft.net/jodit/doc/">Documentation</a></li>
22
- <li><a href="https://github.com/xdan/jodit/">Github</a></li>
23
- <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
24
- <li>
25
- <a href="javascript:void(0)">Examples</a>
26
- <ul id="examples"><!-- see app.js--></ul>
27
- </li>
28
- <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
29
- </ul>
30
- </nav>
31
- </header>
32
- <div id="main_container" class="container">
33
- <div id="introduction">
34
- <h3>HTML</h3>
35
- <pre><code class="language-markup">
36
- &lt;textarea id="editor">&lt;/textarea>
37
- </code></pre>
38
- <h3>JavaScript</h3>
39
- <pre><code class="language-javascript">
40
- var editor = new Jodit('#editor', {
41
- direction: 'rtl',
42
- language: 'ar'
43
- });
44
- </code></pre>
45
- </div>
46
- <div class="result">
47
- <textarea id="area_editor"></textarea>
48
- </div>
49
- </div>
50
- <footer>
51
- <nav>
52
- <ul class="container">
53
- <li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
54
- <li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
55
- <li><a href="https://xdsoft.net/jodit/doc/">Documentation</a></li>
56
- <li><a href="https://github.com/xdan/jodit/">Github</a></li>
57
- <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
58
- <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
59
- </ul>
60
- </nav>
61
- </footer>
62
- </body>
63
- <link rel="stylesheet" href="../build/jodit.min.css"/>
64
- <link rel="stylesheet" href="assets/app.css"/>
65
- <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i" rel="stylesheet">
66
-
67
- <script src="../build/jodit.min.js"></script>
68
- <script src="assets/prism.js"></script>
69
- <script src="assets/app.js"></script>
70
- <script>
71
- var editor = new Jodit('#area_editor', {
72
- direction: 'rtl',
73
- language: 'ar'
74
- });
75
- </script>
76
- </html>
@@ -1,175 +0,0 @@
1
- @import 'prism.css';
2
- html {
3
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
4
- }
5
- html,
6
- body {
7
- height: 100%;
8
- margin: 0;
9
- }
10
- body {
11
- font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial,
12
- sans-serif;
13
- font-size: 16px;
14
- -webkit-font-smoothing: antialiased;
15
- text-rendering: optimizelegibility;
16
- line-height: 1.5;
17
- font-weight: 300;
18
- }
19
-
20
- body {
21
- display: flex;
22
- flex-direction: column;
23
- }
24
-
25
- header,
26
- #main_container {
27
- flex: 1 0 auto;
28
- }
29
-
30
- /*.jodit-wysiwyg{*/
31
- /*color: #000;*/
32
- /*padding: 10px;*/
33
- /*overflow-x: auto;*/
34
- /*color: #000;*/
35
- /*padding: 10px;*/
36
- /*min-height: 40px;*/
37
- /*}*/
38
- * {
39
- -webkit-box-sizing: border-box;
40
- -moz-box-sizing: border-box;
41
- box-sizing: border-box;
42
- }
43
- .table,
44
- .p {
45
- margin: 0 0 16px 0;
46
- }
47
-
48
- .table {
49
- border: 0;
50
- border-collapse: collapse;
51
- empty-cells: show;
52
- max-width: 100%;
53
- border-spacing: 0;
54
- *border-collapse: collapse;
55
- }
56
- . table tr {
57
- user-select: none;
58
- -o-user-select: none;
59
- -moz-user-select: none;
60
- -khtml-user-select: none;
61
- -webkit-user-select: none;
62
- -ms-user-select: none;
63
- }
64
- . table td,
65
- . table th {
66
- user-select: text;
67
- -o-user-select: text;
68
- -moz-user-select: text;
69
- -khtml-user-select: text;
70
- -webkit-user-select: text;
71
- -ms-user-select: text;
72
- }
73
- . table th,
74
- . table td {
75
- box-sizeing: border-box;
76
- padding: 2px 5px;
77
- vertical-align: top;
78
- }
79
- .table td,
80
- . table th {
81
- border: 1px solid #ddd;
82
- }
83
-
84
- .container {
85
- width: 1000px;
86
- margin: 0 auto;
87
- }
88
- nav {
89
- height: 30px;
90
- background: linear-gradient(to left, #28a5f5, #1e87f0);
91
- padding: 0;
92
- overflow: hidden;
93
- }
94
- footer nav {
95
- background: #f9f9f9;
96
- margin-top: 20px;
97
- }
98
- nav > ul {
99
- padding: 0;
100
- margin: 0;
101
- }
102
- nav > ul > li {
103
- list-style: none;
104
- display: inline-block;
105
- padding: 0;
106
- margin: 0;
107
- }
108
- nav > ul > li + li {
109
- margin-left: 23px;
110
- }
111
-
112
- nav ul li a {
113
- color: #ddd;
114
- text-decoration: none;
115
- text-transform: uppercase;
116
- font-size: 0.625rem;
117
- line-height: 30px;
118
- }
119
- nav ul li a:hover {
120
- color: #fff;
121
- text-decoration: underline;
122
- }
123
-
124
- footer nav ul li a {
125
- color: #3f3f3f;
126
- }
127
-
128
- nav ul li ul {
129
- position: absolute;
130
- margin: 0;
131
- padding: 0;
132
- background-color: #208bf1;
133
- display: none;
134
- z-index: 20;
135
- }
136
- nav > ul > li:hover > ul {
137
- display: block;
138
- }
139
- nav ul li ul li {
140
- list-style: none;
141
- display: block;
142
- padding: 0;
143
- margin: 0;
144
- }
145
- nav ul li ul li a {
146
- padding: 8px;
147
- }
148
- .layout {
149
- display: flex;
150
- flex-direction: row;
151
- }
152
- .layout > * {
153
- }
154
- .leftside {
155
- width: 20%;
156
- padding: 10px 10px 10px 0;
157
- }
158
- .rightside {
159
- width: 80%;
160
- padding: 10px 0 10px 10px;
161
- }
162
- pre {
163
- white-space: pre-wrap;
164
- background-color: #3f3f3f;
165
- color: #fff;
166
- padding: 10px;
167
- }
168
- h1,
169
- h2,
170
- h3,
171
- h4,
172
- h5,
173
- h6 {
174
- font-weight: 500;
175
- }
@@ -1,57 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- const examples = document.getElementById('examples');
8
- const main_container = document.getElementById('main_container');
9
-
10
- const links = {
11
- 'index.html': 'All options',
12
- 'arabic.lang.html': 'Arabic Language',
13
- 'custom-toolbar.html': 'Custom toolbar',
14
- 'fullsize.html': 'Fullsize mode',
15
- 'inline-mode.html': 'Inline mode',
16
- 'custom-icons.html': 'Custom Icons / Font Awesome',
17
- 'oneinstance.html': 'One Instance',
18
- 'color-picker.html': 'Color Picker'
19
- };
20
-
21
- if (examples) {
22
- Object.keys(links).forEach(function (page) {
23
- const child = document.createElement('li');
24
- const a = document.createElement('a');
25
- child.appendChild(a);
26
-
27
- a.setAttribute('href', page);
28
- a.innerHTML = links[page];
29
-
30
- examples.appendChild(child);
31
- });
32
- }
33
-
34
- [].slice.call(document.getElementsByTagName('pre')).forEach(function (pre) {
35
- if (pre.firstChild.nodeName === 'CODE') {
36
- pre = pre.firstChild;
37
- }
38
-
39
- const lines = pre.innerHTML.split('\n');
40
- const first = lines[1].length - lines[1].replace(/^[\s]+/, '').length;
41
-
42
- pre.innerHTML = lines
43
- .map(function (line) {
44
- var newline = line.substr(first);
45
- return newline.match(/[^\s]/) ? newline : null;
46
- })
47
- .filter(function (a) {
48
- return a;
49
- })
50
- .join('\n');
51
- });
52
-
53
- if (!document.getElementsByTagName('h1').length && main_container) {
54
- const h1 = document.createElement('h1');
55
- h1.innerHTML = document.title;
56
- main_container.insertBefore(h1, main_container.firstChild);
57
- }
Binary file
Binary file
Binary file
@@ -1,200 +0,0 @@
1
- /* PrismJS 1.14.0
2
- http://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+markup-templating+json+php+php-extras&plugins=toolbar+normalize-whitespace+show-language+copy-to-clipboard */
3
- /**
4
- * prism.js default theme for JavaScript, CSS and HTML
5
- * Based on dabblet (http://dabblet.com)
6
- * @author Lea Verou
7
- */
8
-
9
- code[class*="language-"],
10
- pre[class*="language-"] {
11
- color: black;
12
- background: none;
13
- text-shadow: 0 1px white;
14
- font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
15
- text-align: left;
16
- white-space: pre;
17
- word-spacing: normal;
18
- word-break: normal;
19
- word-wrap: normal;
20
- line-height: 1.5;
21
-
22
- -moz-tab-size: 4;
23
- -o-tab-size: 4;
24
- tab-size: 4;
25
-
26
- -webkit-hyphens: none;
27
- -moz-hyphens: none;
28
- -ms-hyphens: none;
29
- hyphens: none;
30
- }
31
-
32
- pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
33
- code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
34
- text-shadow: none;
35
- background: #b3d4fc;
36
- }
37
-
38
- pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
39
- code[class*="language-"]::selection, code[class*="language-"] ::selection {
40
- text-shadow: none;
41
- background: #b3d4fc;
42
- }
43
-
44
- @media print {
45
- code[class*="language-"],
46
- pre[class*="language-"] {
47
- text-shadow: none;
48
- }
49
- }
50
-
51
- /* Code blocks */
52
- pre[class*="language-"] {
53
- padding: 1em;
54
- margin: .5em 0;
55
- overflow: auto;
56
- }
57
-
58
- :not(pre) > code[class*="language-"],
59
- pre[class*="language-"] {
60
- background: #f5f2f0;
61
- }
62
-
63
- /* Inline code */
64
- :not(pre) > code[class*="language-"] {
65
- padding: .1em;
66
- border-radius: .3em;
67
- white-space: normal;
68
- }
69
-
70
- .token.comment,
71
- .token.prolog,
72
- .token.doctype,
73
- .token.cdata {
74
- color: slategray;
75
- }
76
-
77
- .token.punctuation {
78
- color: #999;
79
- }
80
-
81
- .namespace {
82
- opacity: .7;
83
- }
84
-
85
- .token.property,
86
- .token.tag,
87
- .token.boolean,
88
- .token.number,
89
- .token.constant,
90
- .token.symbol,
91
- .token.deleted {
92
- color: #905;
93
- }
94
-
95
- .token.selector,
96
- .token.attr-name,
97
- .token.string,
98
- .token.char,
99
- .token.builtin,
100
- .token.inserted {
101
- color: #690;
102
- }
103
-
104
- .token.operator,
105
- .token.entity,
106
- .token.url,
107
- .language-css .token.string,
108
- .style .token.string {
109
- color: #9a6e3a;
110
- background: hsla(0, 0%, 100%, .5);
111
- }
112
-
113
- .token.atrule,
114
- .token.attr-value,
115
- .token.keyword {
116
- color: #07a;
117
- }
118
-
119
- .token.function,
120
- .token.class-name {
121
- color: #DD4A68;
122
- }
123
-
124
- .token.regex,
125
- .token.important,
126
- .token.variable {
127
- color: #e90;
128
- }
129
-
130
- .token.important,
131
- .token.bold {
132
- font-weight: bold;
133
- }
134
- .token.italic {
135
- font-style: italic;
136
- }
137
-
138
- .token.entity {
139
- cursor: help;
140
- }
141
-
142
- div.code-toolbar {
143
- position: relative;
144
- }
145
-
146
- div.code-toolbar > .toolbar {
147
- position: absolute;
148
- top: .3em;
149
- right: .2em;
150
- transition: opacity 0.3s ease-in-out;
151
- opacity: 0;
152
- }
153
-
154
- div.code-toolbar:hover > .toolbar {
155
- opacity: 1;
156
- }
157
-
158
- div.code-toolbar > .toolbar .toolbar-item {
159
- display: inline-block;
160
- }
161
-
162
- div.code-toolbar > .toolbar a {
163
- cursor: pointer;
164
- }
165
-
166
- div.code-toolbar > .toolbar button {
167
- background: none;
168
- border: 0;
169
- color: inherit;
170
- font: inherit;
171
- line-height: normal;
172
- overflow: visible;
173
- padding: 0;
174
- -webkit-user-select: none; /* for button */
175
- -moz-user-select: none;
176
- -ms-user-select: none;
177
- }
178
-
179
- div.code-toolbar > .toolbar a,
180
- div.code-toolbar > .toolbar button,
181
- div.code-toolbar > .toolbar span {
182
- color: #bbb;
183
- font-size: .8em;
184
- padding: 0 .5em;
185
- background: #f5f2f0;
186
- background: rgba(224, 224, 224, 0.2);
187
- box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
188
- border-radius: .5em;
189
- }
190
-
191
- div.code-toolbar > .toolbar a:hover,
192
- div.code-toolbar > .toolbar a:focus,
193
- div.code-toolbar > .toolbar button:hover,
194
- div.code-toolbar > .toolbar button:focus,
195
- div.code-toolbar > .toolbar span:hover,
196
- div.code-toolbar > .toolbar span:focus {
197
- color: inherit;
198
- text-decoration: none;
199
- }
200
-