No Description

index.css 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. .mde-header {
  2. flex-shrink: 0;
  3. display: flex;
  4. flex-wrap: wrap;
  5. align-items: stretch;
  6. border-bottom: 1px solid #c8ccd0;
  7. border-radius: 2px 2px 0 0;
  8. background: #f9f9f9; }
  9. .mde-header .mde-toolbar-children {
  10. flex-grow: 1;
  11. display: flex;
  12. justify-content: flex-end;
  13. align-items: stretch; }
  14. .mde-header button:focus {
  15. outline: 0; }
  16. .mde-header ul.mde-header-group {
  17. margin: 0;
  18. padding: 10px;
  19. list-style: none;
  20. display: flex;
  21. flex-wrap: nowrap; }
  22. .mde-header ul.mde-header-group li.mde-header-item {
  23. display: inline-block;
  24. position: relative;
  25. margin: 0 4px; }
  26. .mde-header ul.mde-header-group li.mde-header-item button {
  27. text-align: left;
  28. cursor: pointer;
  29. height: 22px;
  30. padding: 4px;
  31. margin: 0;
  32. border: none;
  33. background: none;
  34. color: #242729; }
  35. @keyframes tooltip-appear {
  36. from {
  37. opacity: 0; }
  38. to {
  39. opacity: 1; } }
  40. .mde-header ul.mde-header-group li.mde-header-item button.tooltipped:hover::before {
  41. animation-name: tooltip-appear;
  42. animation-duration: 0.2s;
  43. animation-delay: 0.5s;
  44. animation-fill-mode: forwards;
  45. opacity: 0;
  46. position: absolute;
  47. z-index: 1000001;
  48. width: 0;
  49. height: 0;
  50. color: rgba(0, 0, 0, 0.8);
  51. pointer-events: none;
  52. content: "";
  53. border: 5px solid transparent;
  54. top: -5px;
  55. right: 50%;
  56. bottom: auto;
  57. margin-right: -5px;
  58. border-top-color: rgba(0, 0, 0, 0.8); }
  59. .mde-header ul.mde-header-group li.mde-header-item button.tooltipped:hover::after {
  60. animation-name: tooltip-appear;
  61. animation-duration: 0.2s;
  62. animation-delay: 0.5s;
  63. animation-fill-mode: forwards;
  64. font-size: 11px;
  65. opacity: 0;
  66. position: absolute;
  67. z-index: 1000000;
  68. padding: 5px 8px;
  69. color: #fff;
  70. pointer-events: none;
  71. content: attr(aria-label);
  72. background: rgba(0, 0, 0, 0.8);
  73. border-radius: 3px;
  74. right: 50%;
  75. bottom: 100%;
  76. transform: translateX(50%);
  77. margin-bottom: 5px;
  78. white-space: nowrap; }
  79. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown {
  80. position: absolute;
  81. left: 0;
  82. top: 30px;
  83. background-color: white;
  84. border: 1px solid #c8ccd0;
  85. padding: 5px;
  86. z-index: 2;
  87. transform: translateX(-9px); }
  88. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown li {
  89. margin: 0;
  90. white-space: nowrap;
  91. list-style: none;
  92. display: block; }
  93. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown li button {
  94. display: block;
  95. height: auto; }
  96. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown li button p {
  97. display: block;
  98. margin: 0;
  99. padding: 0;
  100. font-weight: bold;
  101. line-height: 1em;
  102. background: none;
  103. border: 0;
  104. text-align: left; }
  105. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown li button p:hover {
  106. color: #4078c0; }
  107. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown li button p.header-1 {
  108. font-size: 20px; }
  109. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown li button p.header-2 {
  110. font-size: 18px; }
  111. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown li button p.header-3 {
  112. font-size: 14px; }
  113. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown li button p.header-4 {
  114. font-size: 12px; }
  115. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown::before {
  116. position: absolute;
  117. content: "";
  118. width: 0;
  119. height: 0;
  120. border: 8px solid transparent;
  121. border-bottom-color: rgba(0, 0, 0, 0.15);
  122. top: -16px;
  123. left: 3px;
  124. transform: translateX(50%); }
  125. .mde-header ul.mde-header-group li.mde-header-item ul.react-mde-dropdown::after {
  126. position: absolute;
  127. content: "";
  128. width: 0;
  129. height: 0;
  130. border: 7px solid transparent;
  131. border-bottom-color: white;
  132. top: -14px;
  133. left: 5px;
  134. transform: translateX(50%); }
  135. .mde-text .public-DraftEditor-content {
  136. width: 100%;
  137. min-height: 200px;
  138. padding: 10px; }
  139. .mde-preview {
  140. min-height: 200px; }
  141. .mde-preview .mde-preview-content {
  142. padding: 10px; }
  143. .mde-preview .mde-preview-content p, .mde-preview .mde-preview-content blockquote, .mde-preview .mde-preview-content ul, .mde-preview .mde-preview-content ol, .mde-preview .mde-preview-content dl, .mde-preview .mde-preview-content table, .mde-preview .mde-preview-content pre {
  144. margin-top: 0;
  145. margin-bottom: 16px; }
  146. .mde-preview .mde-preview-content h1, .mde-preview .mde-preview-content h2, .mde-preview .mde-preview-content h3 {
  147. margin-top: 24px;
  148. margin-bottom: 16px;
  149. font-weight: 600;
  150. line-height: 1.25;
  151. border-bottom: 1px solid #eee;
  152. padding-bottom: 0.3em; }
  153. .mde-preview .mde-preview-content h1 {
  154. font-size: 1.6em; }
  155. .mde-preview .mde-preview-content h2 {
  156. font-size: 1.4em; }
  157. .mde-preview .mde-preview-content h3 {
  158. font-size: 1.2em; }
  159. .mde-preview .mde-preview-content ul, .mde-preview .mde-preview-content ol {
  160. padding-left: 2em; }
  161. .mde-preview .mde-preview-content blockquote {
  162. margin-left: 0;
  163. padding: 0 1em;
  164. color: #777;
  165. border-left: 0.25em solid #ddd; }
  166. .mde-preview .mde-preview-content blockquote > :first-child {
  167. margin-top: 0; }
  168. .mde-preview .mde-preview-content blockquote > :last-child {
  169. margin-bottom: 0; }
  170. .mde-preview .mde-preview-content code {
  171. padding: 0.2em 0 0.2em 0;
  172. margin: 0;
  173. font-size: 90%;
  174. background-color: rgba(0, 0, 0, 0.04);
  175. border-radius: 3px; }
  176. .mde-preview .mde-preview-content code::before, .mde-preview .mde-preview-content code::after {
  177. letter-spacing: -0.2em;
  178. content: "\00a0"; }
  179. .mde-preview .mde-preview-content pre {
  180. padding: 16px;
  181. overflow: auto;
  182. font-size: 85%;
  183. line-height: 1.45;
  184. background-color: #f7f7f7;
  185. border-radius: 3px; }
  186. .mde-preview .mde-preview-content pre code {
  187. display: inline;
  188. padding: 0;
  189. margin: 0;
  190. overflow: visible;
  191. line-height: inherit;
  192. word-wrap: normal;
  193. background-color: transparent;
  194. border: 0; }
  195. .mde-preview .mde-preview-content pre code::before, .mde-preview .mde-preview-content pre code::after {
  196. content: none; }
  197. .mde-preview .mde-preview-content pre > code {
  198. padding: 0;
  199. margin: 0;
  200. font-size: 100%;
  201. word-break: normal;
  202. white-space: pre;
  203. background: transparent;
  204. border: 0; }
  205. .mde-preview .mde-preview-content a {
  206. color: #4078c0;
  207. text-decoration: none; }
  208. .mde-preview .mde-preview-content a:hover {
  209. text-decoration: underline; }
  210. .mde-preview .mde-preview-content > *:first-child {
  211. margin-top: 0 !important; }
  212. .mde-preview .mde-preview-content > *:last-child {
  213. margin-bottom: 0 !important; }
  214. .mde-preview .mde-preview-content::after {
  215. display: table;
  216. clear: both;
  217. content: ""; }
  218. .mde-preview .mde-preview-content table {
  219. display: block;
  220. width: 100%;
  221. border-spacing: 0;
  222. border-collapse: collapse; }
  223. .mde-preview .mde-preview-content table thead th {
  224. font-weight: bold; }
  225. .mde-preview .mde-preview-content table th, .mde-preview .mde-preview-content table td {
  226. padding: 6px 13px;
  227. border: 1px solid #c8ccd0; }
  228. * {
  229. box-sizing: border-box; }
  230. .react-mde {
  231. border: 1px solid #c8ccd0;
  232. border-radius: 2px; }
  233. .react-mde-vertical-layout {
  234. display: flex;
  235. flex-direction: column; }
  236. .react-mde-vertical-layout .mde-tabs {
  237. display: flex;
  238. align-items: stretch; }
  239. .react-mde-vertical-layout .mde-tabs .mde-tab {
  240. border: none;
  241. border-left: 1px solid #c8ccd0;
  242. padding: 10px;
  243. background: none; }
  244. .react-mde-vertical-layout .react-mde-content {
  245. display: flex;
  246. flex-direction: column; }
  247. .react-mde-vertical-layout .react-mde-content .mde-text {
  248. min-height: 200px;
  249. height: auto;
  250. overflow-y: auto; }
  251. .react-mde-vertical-layout .react-mde-content .mde-preview {
  252. min-height: 0;
  253. height: auto;
  254. overflow-y: auto;
  255. border-top: 1px solid #c8ccd0; }
  256. .react-mde-no-preview-layout {
  257. height: 100%;
  258. display: flex;
  259. flex-direction: column; }
  260. .react-mde-no-preview-layout .mde-text {
  261. overflow-y: auto; }
  262. .react-mde-horizontal-layout {
  263. height: 100%;
  264. display: flex;
  265. flex-direction: column; }
  266. .react-mde-horizontal-layout .mde-tabs {
  267. display: flex;
  268. align-items: stretch; }
  269. .react-mde-horizontal-layout .mde-tabs .mde-tab {
  270. border: none;
  271. border-left: 1px solid #c8ccd0;
  272. padding: 10px;
  273. background: none; }
  274. .react-mde-horizontal-layout .mde-tabs .mde-tab:hover {
  275. cursor: pointer; }
  276. .react-mde-horizontal-layout .mde-content {
  277. display: flex;
  278. height: 100%; }
  279. .react-mde-horizontal-layout .mde-content .mde-text {
  280. min-width: 50%;
  281. overflow-y: auto;
  282. border-radius: 0; }
  283. .react-mde-horizontal-layout .mde-content .mde-preview {
  284. min-width: 50%;
  285. border-left: 1px solid #c8ccd0;
  286. overflow-y: auto; }
  287. .react-mde-tabbed-layout {
  288. height: 100%;
  289. display: flex;
  290. flex-direction: column; }
  291. .react-mde-tabbed-layout .mde-tabs {
  292. display: flex;
  293. align-items: flex-end; }
  294. .react-mde-tabbed-layout .mde-tabs .mde-tab {
  295. position: relative;
  296. top: 1px;
  297. border: 1px solid #f9f9f9;
  298. border-bottom: none;
  299. border-top-left-radius: 2px;
  300. border-top-right-radius: 2px;
  301. margin-right: 10px;
  302. padding: 10px;
  303. background: none; }
  304. .react-mde-tabbed-layout .mde-tabs .mde-tab:hover {
  305. border-color: #c8ccd0;
  306. cursor: pointer; }
  307. .react-mde-tabbed-layout .mde-tabs .mde-tab-activated {
  308. border-color: #c8ccd0;
  309. background: white; }
  310. .react-mde-tabbed-layout .mde-text {
  311. overflow-y: auto; }
  312. .react-mde-tabbed-layout .mde-preview {
  313. overflow-y: auto; }