editormd.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. @charset "UTF-8";
  2. @import "lib/variables";
  3. @import "lib/prefixes";
  4. .editormd {
  5. width: 90%;
  6. height: 640px;
  7. margin: 0 auto;
  8. text-align: left;
  9. overflow: hidden;
  10. position: relative;
  11. margin-bottom: 15px;
  12. border: 1px solid $borderColor;
  13. font-family: "Meiryo UI", "Microsoft YaHei", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, "Monaco", monospace, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif;
  14. *, *:before, *:after {
  15. @include box-sizing(border-box);
  16. }
  17. a {
  18. text-decoration: none;
  19. }
  20. img {
  21. border: none;
  22. vertical-align: middle;
  23. }
  24. > textarea,
  25. #{$prefix}html-textarea,
  26. #{$prefix}markdown-textarea {
  27. width: 0;
  28. height: 0;
  29. outline: 0;
  30. resize:none;
  31. }
  32. #{$prefix}html-textarea,
  33. #{$prefix}markdown-textarea {
  34. display : none;
  35. }
  36. input[type="text"],
  37. input[type="button"],
  38. input[type="submit"],
  39. select, textarea, button {
  40. @include appearance(none);
  41. }
  42. ::-webkit-scrollbar {
  43. height: 10px;
  44. width: 7px;
  45. background: rgba(0, 0, 0, .1);
  46. &:hover {
  47. background: rgba(0, 0, 0, .2);
  48. }
  49. }
  50. ::-webkit-scrollbar-thumb {
  51. background: rgba(0,0,0,0.3);
  52. @include border-radius(6px);
  53. &:hover {
  54. @include box-shadow(inset 1px 1px 1px rgba(0, 0, 0, .25));
  55. background-color: rgba(0, 0, 0, .4);
  56. }
  57. }
  58. }
  59. #{$prefix}user-unselect {
  60. @include user-select(none);
  61. }
  62. #{$prefix}toolbar {
  63. width: 100%;
  64. min-height: 37px;
  65. background: #fff;
  66. display: none;
  67. position: absolute;
  68. top: 0;
  69. left: 0;
  70. z-index: 10;
  71. border-bottom: 1px solid $borderColor;
  72. }
  73. #{$prefix}toolbar-container {
  74. padding: 0 8px;
  75. min-height: 35px;
  76. @include user-select(none);
  77. }
  78. @import "editormd.menu";
  79. #{$prefix}container {
  80. margin: 0;
  81. width: 100%;
  82. height: 100%;
  83. overflow: hidden;
  84. padding: 35px 0 0;
  85. position: relative;
  86. background: #fff;
  87. @include box-sizing(border-box);
  88. }
  89. @import "editormd.dialog";
  90. @import "editormd.grid";
  91. @import "editormd.tab";
  92. @import "editormd.form";
  93. @import "editormd.codemirror";
  94. @import "editormd.preview";
  95. @import "editormd.preview.themes";
  96. #{$prefix}onlyread {
  97. #{$prefix}toolbar {
  98. display: none;
  99. }
  100. .CodeMirror {
  101. margin-top: 0;
  102. }
  103. #{$prefix}preview {
  104. top: 0;
  105. }
  106. }
  107. #{$prefix}fullscreen {
  108. position: fixed;
  109. top : 0;
  110. left : 0;
  111. border: none;
  112. margin: 0 auto;
  113. }
  114. @import "editormd.themes";