app.css 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. .container {
  2. margin: 45px auto;
  3. max-width: 880px;
  4. min-height: calc(100vh - 70px);
  5. }
  6. .footer {
  7. height: 50px;
  8. text-align: center;
  9. color: gray;
  10. background-color: #efefef;
  11. line-height: 50px; /*设置line-height与父级元素的height相等, 以实现垂直居中*/
  12. margin: 0 auto;
  13. }
  14. .footer hr {
  15. margin-bottom: 0.5rem;
  16. }
  17. .footer a:visited {
  18. color: #9B59B6;
  19. }
  20. .footer a {
  21. color: #2980B9;
  22. text-decoration: none;
  23. cursor: pointer;
  24. }
  25. #input-container {
  26. margin-top: 20px;
  27. }
  28. #title {
  29. text-align: center;
  30. position: absolute;
  31. left: 50%;
  32. transform: translateX(-50%)
  33. }
  34. .markdown-body blockquote, .markdown-body dl, .markdown-body ol, .markdown-body p, .markdown-body pre, .markdown-body table, .markdown-body ul {
  35. margin-bottom: 10px;
  36. }
  37. .CodeMirror {
  38. font-size: 13px
  39. }
  40. .mditor {
  41. height: 400px;
  42. width: auto;
  43. }
  44. /*非固定行高模式*/
  45. .no-fix-height {
  46. margin-top: 20px;
  47. }
  48. .no-fix-height .mditor {
  49. height: initial;
  50. padding-top: 0;
  51. border: 0;
  52. }
  53. .no-fix-height .mditor .body {
  54. height: initial;
  55. box-shadow: unset;
  56. }
  57. .no-fix-height .mditor .viewer {
  58. height: initial;
  59. padding-bottom: 20px;
  60. }
  61. .no-fix-height .mditor .head {
  62. display: none;
  63. }
  64. .no-fix-height #input-container {
  65. margin: 0 10px;
  66. }
  67. .no-fix-height #input-container h5.card-header {
  68. padding: .4rem 1.25rem;
  69. }
  70. h5.card-header:empty {
  71. padding: 0 !important;
  72. border-bottom: 0 !important;
  73. }
  74. button {
  75. margin-bottom: 8px;
  76. }