noteEditor.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. .gfm-render {
  2. font-size: 12px;
  3. -webkit-user-select: text;
  4. color: #333;
  5. line-height: 1.8em;
  6. blockquote, ul, table, p, pre, hr {
  7. margin: 1em 0;
  8. cursor: text;
  9. &:first-child:last-child {
  10. margin: 0;
  11. }
  12. }
  13. img {
  14. max-width: 100%;
  15. }
  16. a {
  17. color: blue;
  18. &:hover {
  19. color: red;
  20. }
  21. }
  22. blockquote {
  23. display: block;
  24. border-left: 4px solid #E4AD91;
  25. color: darken(#E4AD91, 10%);
  26. padding-left: 10px;
  27. font-style: italic;
  28. margin-left: 2em;
  29. }
  30. ul, ol {
  31. padding-left: 3em;
  32. }
  33. table {
  34. width: 100%;
  35. border-collapse: collapse;
  36. th, td {
  37. border: 1px solid #666;
  38. padding: 2px 4px;
  39. }
  40. th {
  41. background: rgba(45, 141, 234, 0.2);
  42. }
  43. tr:nth-child(even) td {
  44. background: rgba(45, 141, 234, 0.03);
  45. }
  46. margin: 1em 0;
  47. }
  48. em {
  49. color: red;
  50. }
  51. del {
  52. color: #999;
  53. }
  54. pre {
  55. background: rgba(45, 141, 234, 0.1);
  56. padding: 5px;
  57. border-radius: 5px;
  58. word-break: break-all;
  59. word-wrap: break-word;
  60. }
  61. code {
  62. background: rgba(45, 141, 234, 0.1);
  63. /* display: inline-block; */
  64. padding: 0 5px;
  65. border-radius: 3px;
  66. }
  67. pre code {
  68. background: none;
  69. }
  70. hr {
  71. border: none;
  72. border-top: 1px solid #CCC;
  73. }
  74. .highlight {
  75. background: yellow;
  76. color: red;
  77. }
  78. }
  79. .km-note {
  80. width: 300px;
  81. border-left: 1px solid #babfcd;
  82. padding: 5px 10px;
  83. background: white;
  84. position: absolute;
  85. top: 92px;
  86. right: 0;
  87. bottom: 0;
  88. left: auto;
  89. z-index: 3;
  90. &.panel {
  91. margin: 0;
  92. padding: 0;
  93. .panel-heading {
  94. h3 {
  95. display: inline-block;
  96. }
  97. .close-note-editor {
  98. width: 15px;
  99. height: 15px;
  100. display: inline-block;
  101. float: right;
  102. &:hover {
  103. cursor: pointer;
  104. }
  105. }
  106. }
  107. .panel-body {
  108. padding: 0;
  109. }
  110. }
  111. .CodeMirror {
  112. position: absolute;
  113. top: 41px;
  114. bottom: 0;
  115. height: auto;
  116. cursor: text;
  117. font-size: 14px;
  118. line-height: 1.3em;
  119. font-family: consolas;
  120. }
  121. }
  122. .km-note-tips {
  123. color: #ccc;
  124. padding: 3px 8px;
  125. }
  126. #previewer-content {
  127. position: absolute;
  128. background: #FFD;
  129. padding: 5px 15px;
  130. border-radius: 5px;
  131. max-width: 400px;
  132. max-height: 200px;
  133. overflow: auto;
  134. z-index: 10;
  135. box-shadow: 0 0 15px rgba(0, 0, 0, .5);
  136. word-break: break-all;
  137. .gfm-render;
  138. }
  139. #previewer-content.ng-hide {
  140. display: block!important;
  141. left: -99999px!important;
  142. top: -99999px!important;
  143. }
  144. .panel-body {
  145. padding: 10px;
  146. }