editor.css 2.0 KB

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