code_view.css 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*!
  2. * froala_editor v3.0.3 (https://www.froala.com/wysiwyg-editor)
  3. * License https://froala.com/wysiwyg-editor/terms/
  4. * Copyright 2014-2019 Froala Labs
  5. */
  6. .clearfix::after {
  7. clear: both;
  8. display: block;
  9. content: "";
  10. height: 0; }
  11. .hide-by-clipping {
  12. position: absolute;
  13. width: 1px;
  14. height: 1px;
  15. padding: 0;
  16. margin: -1px;
  17. overflow: hidden;
  18. clip: rect(0, 0, 0, 0);
  19. border: 0; }
  20. textarea.fr-code {
  21. display: none;
  22. width: 100%;
  23. resize: none;
  24. -moz-resize: none;
  25. -webkit-resize: none;
  26. -webkit-box-sizing: border-box;
  27. -moz-box-sizing: border-box;
  28. box-sizing: border-box;
  29. border: none;
  30. padding: 10px;
  31. margin: 0;
  32. font-family: "Courier New",monospace;
  33. font-size: 14px;
  34. background: #FFF;
  35. color: #000;
  36. outline: none; }
  37. .fr-box.fr-rtl textarea.fr-code {
  38. direction: rtl; }
  39. .fr-box .CodeMirror {
  40. display: none; }
  41. .fr-box.fr-code-view textarea.fr-code {
  42. display: block; }
  43. .fr-box.fr-code-view .fr-element, .fr-box.fr-code-view .fr-placeholder, .fr-box.fr-code-view .fr-iframe {
  44. display: none; }
  45. .fr-box.fr-code-view .CodeMirror {
  46. display: block; }
  47. .fr-box.fr-inline.fr-code-view .fr-command.fr-btn.html-switch {
  48. display: block; }
  49. .fr-box.fr-inline .fr-command.fr-btn.html-switch {
  50. display: none;
  51. position: absolute;
  52. top: 0;
  53. right: 0;
  54. display: none;
  55. background: #FFF;
  56. color: #333333;
  57. -moz-outline: 0;
  58. outline: 0;
  59. border: 0;
  60. line-height: 1;
  61. cursor: pointer;
  62. text-align: left;
  63. padding: 8px 7px;
  64. -webkit-transition: background 0.2s ease 0s;
  65. -moz-transition: background 0.2s ease 0s;
  66. -ms-transition: background 0.2s ease 0s;
  67. -o-transition: background 0.2s ease 0s;
  68. border-radius: 0;
  69. -moz-border-radius: 0;
  70. -webkit-border-radius: 0;
  71. -moz-background-clip: padding;
  72. -webkit-background-clip: padding-box;
  73. background-clip: padding-box;
  74. z-index: 2;
  75. -webkit-box-sizing: border-box;
  76. -moz-box-sizing: border-box;
  77. box-sizing: border-box;
  78. text-decoration: none;
  79. user-select: none;
  80. -o-user-select: none;
  81. -moz-user-select: none;
  82. -khtml-user-select: none;
  83. -webkit-user-select: none;
  84. -ms-user-select: none; }
  85. .fr-box.fr-inline .fr-command.fr-btn.html-switch i {
  86. font-size: 24px;
  87. width: 24px;
  88. text-align: center; }
  89. .fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover {
  90. background: #ebebeb; }