ckeditor-content.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. /* !!!!!! TRILIUM CUSTOM CHANGES !!!!!! */
  2. .printed-content .ck-widget__selection-handle, .printed-content .ck-widget__type-around { /* gets rid of triangles: https://github.com/zadam/trilium/issues/1129 */
  3. display: none;
  4. }
  5. /*
  6. * CKEditor 5 (v38.0.1) content styles.
  7. * Generated on Thu, 25 May 2023 13:25:51 GMT.
  8. * For more information, check out https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/content-styles.html
  9. */
  10. :root {
  11. --ck-color-image-caption-background: hsl(0, 0%, 97%);
  12. --ck-color-image-caption-text: hsl(0, 0%, 20%);
  13. --ck-color-mention-background: hsla(341, 100%, 30%, 0.1);
  14. --ck-color-mention-text: hsl(341, 100%, 30%);
  15. --ck-color-table-caption-background: hsl(0, 0%, 97%);
  16. --ck-color-table-caption-text: hsl(0, 0%, 20%);
  17. --ck-highlight-marker-blue: hsl(201, 97%, 72%);
  18. --ck-highlight-marker-green: hsl(120, 93%, 68%);
  19. --ck-highlight-marker-pink: hsl(345, 96%, 73%);
  20. --ck-highlight-marker-yellow: hsl(60, 97%, 73%);
  21. --ck-highlight-pen-green: hsl(112, 100%, 27%);
  22. --ck-highlight-pen-red: hsl(0, 85%, 49%);
  23. --ck-image-style-spacing: 1.5em;
  24. --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);
  25. --ck-todo-list-checkmark-size: 16px;
  26. }
  27. /* @ckeditor/ckeditor5-block-quote/theme/blockquote.css */
  28. .ck-content blockquote {
  29. overflow: hidden;
  30. padding-right: 1.5em;
  31. padding-left: 1.5em;
  32. margin-left: 0;
  33. margin-right: 0;
  34. font-style: italic;
  35. border-left: solid 5px hsl(0, 0%, 80%);
  36. }
  37. /* @ckeditor/ckeditor5-block-quote/theme/blockquote.css */
  38. .ck-content[dir="rtl"] blockquote {
  39. border-left: 0;
  40. border-right: solid 5px hsl(0, 0%, 80%);
  41. }
  42. /* @ckeditor/ckeditor5-basic-styles/theme/code.css */
  43. .ck-content code {
  44. background-color: hsla(0, 0%, 78%, 0.3);
  45. padding: .15em;
  46. border-radius: 2px;
  47. }
  48. /* @ckeditor/ckeditor5-font/theme/fontsize.css */
  49. .ck-content .text-tiny {
  50. font-size: .7em;
  51. }
  52. /* @ckeditor/ckeditor5-font/theme/fontsize.css */
  53. .ck-content .text-small {
  54. font-size: .85em;
  55. }
  56. /* @ckeditor/ckeditor5-font/theme/fontsize.css */
  57. .ck-content .text-big {
  58. font-size: 1.4em;
  59. }
  60. /* @ckeditor/ckeditor5-font/theme/fontsize.css */
  61. .ck-content .text-huge {
  62. font-size: 1.8em;
  63. }
  64. /* @ckeditor/ckeditor5-highlight/theme/highlight.css */
  65. .ck-content .marker-yellow {
  66. background-color: var(--ck-highlight-marker-yellow);
  67. }
  68. /* @ckeditor/ckeditor5-highlight/theme/highlight.css */
  69. .ck-content .marker-green {
  70. background-color: var(--ck-highlight-marker-green);
  71. }
  72. /* @ckeditor/ckeditor5-highlight/theme/highlight.css */
  73. .ck-content .marker-pink {
  74. background-color: var(--ck-highlight-marker-pink);
  75. }
  76. /* @ckeditor/ckeditor5-highlight/theme/highlight.css */
  77. .ck-content .marker-blue {
  78. background-color: var(--ck-highlight-marker-blue);
  79. }
  80. /* @ckeditor/ckeditor5-highlight/theme/highlight.css */
  81. .ck-content .pen-red {
  82. color: var(--ck-highlight-pen-red);
  83. background-color: transparent;
  84. }
  85. /* @ckeditor/ckeditor5-highlight/theme/highlight.css */
  86. .ck-content .pen-green {
  87. color: var(--ck-highlight-pen-green);
  88. background-color: transparent;
  89. }
  90. /* @ckeditor/ckeditor5-image/theme/imagecaption.css */
  91. .ck-content .image > figcaption {
  92. display: table-caption;
  93. caption-side: bottom;
  94. word-break: break-word;
  95. color: var(--ck-color-image-caption-text);
  96. background-color: var(--ck-color-image-caption-background);
  97. padding: .6em;
  98. font-size: .75em;
  99. outline-offset: -1px;
  100. }
  101. /* @ckeditor/ckeditor5-image/theme/image.css */
  102. .ck-content .image {
  103. display: table;
  104. clear: both;
  105. text-align: center;
  106. margin: 0.9em auto;
  107. min-width: 50px;
  108. }
  109. /* @ckeditor/ckeditor5-image/theme/image.css */
  110. .ck-content .image img {
  111. display: block;
  112. margin: 0 auto;
  113. max-width: 100%;
  114. min-width: 100%;
  115. }
  116. /* @ckeditor/ckeditor5-image/theme/image.css */
  117. .ck-content .image-inline {
  118. /*
  119. * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).;
  120. * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.
  121. * This strange behavior does not happen with inline-flex.
  122. */
  123. display: inline-flex;
  124. max-width: 100%;
  125. align-items: flex-start;
  126. }
  127. /* @ckeditor/ckeditor5-image/theme/image.css */
  128. .ck-content .image-inline picture {
  129. display: flex;
  130. }
  131. /* @ckeditor/ckeditor5-image/theme/image.css */
  132. .ck-content .image-inline picture,
  133. .ck-content .image-inline img {
  134. flex-grow: 1;
  135. flex-shrink: 1;
  136. max-width: 100%;
  137. }
  138. /* @ckeditor/ckeditor5-image/theme/imageresize.css */
  139. .ck-content .image.image_resized {
  140. max-width: 100%;
  141. display: block;
  142. box-sizing: border-box;
  143. }
  144. /* @ckeditor/ckeditor5-image/theme/imageresize.css */
  145. .ck-content .image.image_resized img {
  146. width: 100%;
  147. }
  148. /* @ckeditor/ckeditor5-image/theme/imageresize.css */
  149. .ck-content .image.image_resized > figcaption {
  150. display: block;
  151. }
  152. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  153. .ck-content .image-style-block-align-left,
  154. .ck-content .image-style-block-align-right {
  155. max-width: calc(100% - var(--ck-image-style-spacing));
  156. }
  157. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  158. .ck-content .image-style-align-left,
  159. .ck-content .image-style-align-right {
  160. clear: none;
  161. }
  162. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  163. .ck-content .image-style-side {
  164. float: right;
  165. margin-left: var(--ck-image-style-spacing);
  166. max-width: 50%;
  167. }
  168. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  169. .ck-content .image-style-align-left {
  170. float: left;
  171. margin-right: var(--ck-image-style-spacing);
  172. }
  173. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  174. .ck-content .image-style-align-center {
  175. margin-left: auto;
  176. margin-right: auto;
  177. }
  178. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  179. .ck-content .image-style-align-right {
  180. float: right;
  181. margin-left: var(--ck-image-style-spacing);
  182. }
  183. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  184. .ck-content .image-style-block-align-right {
  185. margin-right: 0;
  186. margin-left: auto;
  187. }
  188. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  189. .ck-content .image-style-block-align-left {
  190. margin-left: 0;
  191. margin-right: auto;
  192. }
  193. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  194. .ck-content p + .image-style-align-left,
  195. .ck-content p + .image-style-align-right,
  196. .ck-content p + .image-style-side {
  197. margin-top: 0;
  198. }
  199. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  200. .ck-content .image-inline.image-style-align-left,
  201. .ck-content .image-inline.image-style-align-right {
  202. margin-top: var(--ck-inline-image-style-spacing);
  203. margin-bottom: var(--ck-inline-image-style-spacing);
  204. }
  205. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  206. .ck-content .image-inline.image-style-align-left {
  207. margin-right: var(--ck-inline-image-style-spacing);
  208. }
  209. /* @ckeditor/ckeditor5-image/theme/imagestyle.css */
  210. .ck-content .image-inline.image-style-align-right {
  211. margin-left: var(--ck-inline-image-style-spacing);
  212. }
  213. /* @ckeditor/ckeditor5-list/theme/list.css */
  214. .ck-content ol {
  215. list-style-type: decimal;
  216. }
  217. /* @ckeditor/ckeditor5-list/theme/list.css */
  218. .ck-content ol ol {
  219. list-style-type: lower-latin;
  220. }
  221. /* @ckeditor/ckeditor5-list/theme/list.css */
  222. .ck-content ol ol ol {
  223. list-style-type: lower-roman;
  224. }
  225. /* @ckeditor/ckeditor5-list/theme/list.css */
  226. .ck-content ol ol ol ol {
  227. list-style-type: upper-latin;
  228. }
  229. /* @ckeditor/ckeditor5-list/theme/list.css */
  230. .ck-content ol ol ol ol ol {
  231. list-style-type: upper-roman;
  232. }
  233. /* @ckeditor/ckeditor5-list/theme/list.css */
  234. .ck-content ul {
  235. list-style-type: disc;
  236. }
  237. /* @ckeditor/ckeditor5-list/theme/list.css */
  238. .ck-content ul ul {
  239. list-style-type: circle;
  240. }
  241. /* @ckeditor/ckeditor5-list/theme/list.css */
  242. .ck-content ul ul ul {
  243. list-style-type: square;
  244. }
  245. /* @ckeditor/ckeditor5-list/theme/list.css */
  246. .ck-content ul ul ul ul {
  247. list-style-type: square;
  248. }
  249. /* @ckeditor/ckeditor5-list/theme/todolist.css */
  250. .ck-content .todo-list {
  251. list-style: none;
  252. }
  253. /* @ckeditor/ckeditor5-list/theme/todolist.css */
  254. .ck-content .todo-list li {
  255. margin-bottom: 5px;
  256. }
  257. /* @ckeditor/ckeditor5-list/theme/todolist.css */
  258. .ck-content .todo-list li .todo-list {
  259. margin-top: 5px;
  260. }
  261. /* @ckeditor/ckeditor5-list/theme/todolist.css */
  262. .ck-content .todo-list .todo-list__label > input {
  263. -webkit-appearance: none;
  264. display: inline-block;
  265. position: relative;
  266. width: var(--ck-todo-list-checkmark-size);
  267. height: var(--ck-todo-list-checkmark-size);
  268. vertical-align: middle;
  269. border: 0;
  270. left: -25px;
  271. margin-right: -15px;
  272. right: 0;
  273. margin-left: 0;
  274. }
  275. /* @ckeditor/ckeditor5-list/theme/todolist.css */
  276. .ck-content .todo-list .todo-list__label > input::before {
  277. display: block;
  278. position: absolute;
  279. box-sizing: border-box;
  280. content: '';
  281. width: 100%;
  282. height: 100%;
  283. border: 1px solid hsl(0, 0%, 20%);
  284. border-radius: 2px;
  285. transition: 250ms ease-in-out box-shadow, 250ms ease-in-out background, 250ms ease-in-out border;
  286. }
  287. /* @ckeditor/ckeditor5-list/theme/todolist.css */
  288. .ck-content .todo-list .todo-list__label > input::after {
  289. display: block;
  290. position: absolute;
  291. box-sizing: content-box;
  292. pointer-events: none;
  293. content: '';
  294. left: calc( var(--ck-todo-list-checkmark-size) / 3 );
  295. top: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
  296. width: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
  297. height: calc( var(--ck-todo-list-checkmark-size) / 2.6 );
  298. border-style: solid;
  299. border-color: transparent;
  300. border-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;
  301. transform: rotate(45deg);
  302. }
  303. /* @ckeditor/ckeditor5-list/theme/todolist.css */
  304. .ck-content .todo-list .todo-list__label > input[checked]::before {
  305. background: hsl(126, 64%, 41%);
  306. border-color: hsl(126, 64%, 41%);
  307. }
  308. /* @ckeditor/ckeditor5-list/theme/todolist.css */
  309. .ck-content .todo-list .todo-list__label > input[checked]::after {
  310. border-color: hsl(0, 0%, 100%);
  311. }
  312. /* @ckeditor/ckeditor5-list/theme/todolist.css */
  313. .ck-content .todo-list .todo-list__label .todo-list__label__description {
  314. vertical-align: middle;
  315. }
  316. /* @ckeditor/ckeditor5-media-embed/theme/mediaembed.css */
  317. .ck-content .media {
  318. clear: both;
  319. margin: 0.9em 0;
  320. display: block;
  321. min-width: 15em;
  322. }
  323. /* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
  324. .ck-content .page-break {
  325. position: relative;
  326. clear: both;
  327. padding: 5px 0;
  328. display: flex;
  329. align-items: center;
  330. justify-content: center;
  331. }
  332. /* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
  333. .ck-content .page-break::after {
  334. content: '';
  335. position: absolute;
  336. border-bottom: 2px dashed hsl(0, 0%, 77%);
  337. width: 100%;
  338. }
  339. /* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
  340. .ck-content .page-break__label {
  341. position: relative;
  342. z-index: 1;
  343. padding: .3em .6em;
  344. display: block;
  345. text-transform: uppercase;
  346. border: 1px solid hsl(0, 0%, 77%);
  347. border-radius: 2px;
  348. font-family: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;
  349. font-size: 0.75em;
  350. font-weight: bold;
  351. color: hsl(0, 0%, 20%);
  352. background: hsl(0, 0%, 100%);
  353. box-shadow: 2px 2px 1px hsla(0, 0%, 0%, 0.15);
  354. -webkit-user-select: none;
  355. -moz-user-select: none;
  356. -ms-user-select: none;
  357. user-select: none;
  358. }
  359. /* @ckeditor/ckeditor5-table/theme/tablecolumnresize.css */
  360. .ck-content .table .ck-table-resized {
  361. table-layout: fixed;
  362. }
  363. /* @ckeditor/ckeditor5-table/theme/tablecolumnresize.css */
  364. .ck-content .table table {
  365. overflow: hidden;
  366. }
  367. /* @ckeditor/ckeditor5-table/theme/tablecolumnresize.css */
  368. .ck-content .table td,
  369. .ck-content .table th {
  370. position: relative;
  371. }
  372. /* @ckeditor/ckeditor5-table/theme/table.css */
  373. .ck-content .table {
  374. margin: 0.9em auto;
  375. display: table;
  376. }
  377. /* @ckeditor/ckeditor5-table/theme/table.css */
  378. .ck-content .table table {
  379. border-collapse: collapse;
  380. border-spacing: 0;
  381. width: 100%;
  382. height: 100%;
  383. border: 1px double hsl(0, 0%, 70%);
  384. }
  385. /* @ckeditor/ckeditor5-table/theme/table.css */
  386. .ck-content .table table td,
  387. .ck-content .table table th {
  388. min-width: 2em;
  389. padding: .4em;
  390. border: 1px solid hsl(0, 0%, 75%);
  391. }
  392. /* @ckeditor/ckeditor5-table/theme/table.css */
  393. .ck-content .table table th {
  394. font-weight: bold;
  395. background: hsla(0, 0%, 0%, 5%);
  396. }
  397. /* @ckeditor/ckeditor5-table/theme/table.css */
  398. .ck-content[dir="rtl"] .table th {
  399. text-align: right;
  400. }
  401. /* @ckeditor/ckeditor5-table/theme/table.css */
  402. .ck-content[dir="ltr"] .table th {
  403. text-align: left;
  404. }
  405. /* @ckeditor/ckeditor5-table/theme/tablecaption.css */
  406. .ck-content .table > figcaption {
  407. display: table-caption;
  408. caption-side: top;
  409. word-break: break-word;
  410. text-align: center;
  411. color: var(--ck-color-table-caption-text);
  412. background-color: var(--ck-color-table-caption-background);
  413. padding: .6em;
  414. font-size: .75em;
  415. outline-offset: -1px;
  416. }
  417. /* @ckeditor/ckeditor5-code-block/theme/codeblock.css */
  418. .ck-content pre {
  419. padding: 1em;
  420. color: hsl(0, 0%, 20.8%);
  421. background: hsla(0, 0%, 78%, 0.3);
  422. border: 1px solid hsl(0, 0%, 77%);
  423. border-radius: 2px;
  424. text-align: left;
  425. direction: ltr;
  426. tab-size: 4;
  427. white-space: pre-wrap;
  428. font-style: normal;
  429. min-width: 200px;
  430. }
  431. /* @ckeditor/ckeditor5-code-block/theme/codeblock.css */
  432. .ck-content pre code {
  433. background: unset;
  434. padding: 0;
  435. border-radius: 0;
  436. }
  437. /* @ckeditor/ckeditor5-horizontal-line/theme/horizontalline.css */
  438. .ck-content hr {
  439. margin: 15px 0;
  440. height: 4px;
  441. background: hsl(0, 0%, 87%);
  442. border: 0;
  443. }
  444. /* @ckeditor/ckeditor5-mention/theme/mention.css */
  445. .ck-content .mention {
  446. background: var(--ck-color-mention-background);
  447. color: var(--ck-color-mention-text);
  448. }
  449. @media print {
  450. /* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
  451. .ck-content .page-break {
  452. padding: 0;
  453. }
  454. /* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
  455. .ck-content .page-break::after {
  456. display: none;
  457. }
  458. }