editor.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. html, body, .wrapper {
  2. height: 100% !important;
  3. }
  4. .wrapper {
  5. overflow: hidden;
  6. }
  7. .main-header {
  8. position: fixed;
  9. width: 100%;
  10. top:0;
  11. }
  12. .edit-container {
  13. min-height: 52px;
  14. background-color: #f9f9f9;
  15. position: absolute;
  16. top: 0;
  17. bottom: 0;
  18. left: 0;
  19. right: 0;
  20. margin-top: 60px;
  21. }
  22. .edit-container section.content {
  23. min-height: 100%;
  24. width: 100%;
  25. padding: 0;
  26. position: absolute;
  27. top: 0;
  28. bottom: 0;
  29. }
  30. .content .pane {
  31. position: relative;
  32. padding: 0;
  33. }
  34. #codePane {
  35. height: 100%;
  36. box-shadow: 2px 0px 6px #cccccc;
  37. }
  38. .codePaneTool {
  39. position: absolute;
  40. width: 100%;
  41. height: 40px;
  42. line-height: 24px;
  43. z-index: 800;
  44. background-color: white;
  45. padding: 8px 22px;
  46. box-shadow: 0 2px 10px #dddddd;
  47. }
  48. #editor {
  49. font-family: Consolas, monaco, 'Courier New', Courier, monospace;
  50. position: absolute;
  51. top: 42px;
  52. bottom: 0;
  53. right: 0;
  54. width: 100%;
  55. line-height: 18px;
  56. font-size: 13px;
  57. }
  58. #previewPane {
  59. height: 100%;
  60. }
  61. #innerPage {
  62. width: 100%;
  63. height: 100%;
  64. border: none;
  65. }
  66. .editorBtn {
  67. display: inline-block;
  68. width: 60px;
  69. height: 24px;
  70. line-height: 24px;
  71. text-align: center;
  72. color: #0083CB;
  73. float: right;
  74. cursor: pointer;
  75. }
  76. .editorBtn:hover {
  77. font-weight: bold;
  78. }
  79. #showCodeBtn {
  80. cursor: pointer;
  81. z-index: 900;
  82. position: absolute;
  83. top: 4px;
  84. right: 0;
  85. padding: 0 10px;
  86. min-width: 54px;
  87. height: 30px;
  88. line-height: 30px;
  89. margin: 4px;
  90. text-align: center;
  91. background-color: rgba(34, 45, 50, 0.7);
  92. color: #fff;
  93. }
  94. #showCodeBtn:hover {
  95. background-color: rgba(34, 45, 50, 0.9);
  96. }
  97. @media screen and (max-width: 992px) {
  98. #codePane {
  99. display: none;
  100. }
  101. .codePaneTool {
  102. padding: 8px 68px 8px 20px;
  103. }
  104. }
  105. .ace_scrollbar::-webkit-scrollbar {
  106. width: 8px;
  107. }
  108. .ace_scrollbar::-webkit-scrollbar-thumb {
  109. border-radius: 12px;
  110. background: #e7e7e7;
  111. -webkit-box-shadow: inset 0 0 6px #d1cfcf;
  112. }