app.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. .pywebio {
  2. min-height: 100vh;
  3. padding-top: 20px;
  4. padding-bottom: 1px; /* if set 0, safari has min-height issue */
  5. }
  6. .container {
  7. margin-top: 0;
  8. max-width: 880px;
  9. }
  10. #output-container {
  11. -webkit-font-smoothing: antialiased;
  12. margin-bottom: 20px;
  13. }
  14. #input-container h5.card-header {
  15. padding: .4rem 1.25rem;
  16. }
  17. #input-container {
  18. z-index: 100;
  19. background: white;
  20. position: static;
  21. height: fit-content;
  22. box-shadow: none;
  23. margin-top: 0;
  24. margin-bottom: 40px; /* must equal #input-container.fixed padding-bottom */
  25. }
  26. #input-container.fixed {
  27. position: fixed !important;
  28. overflow: visible;
  29. bottom: 0;
  30. left: 0;
  31. right: 0;
  32. height: 0;
  33. box-shadow: 0 0 12px 1px rgba(80, 80, 80, 0.2);
  34. margin-bottom: 0;
  35. padding: 40px 0; /* must equal #input-container margin-bottom */
  36. }
  37. #input-container .card {
  38. margin: 0 auto;
  39. }
  40. .footer {
  41. height: 50px;
  42. text-align: center;
  43. color: gray;
  44. background-color: #efefef;
  45. line-height: 50px; /*设置line-height与父级元素的height相等, 以实现垂直居中*/
  46. margin: 0 auto;
  47. }
  48. .footer hr {
  49. margin-bottom: 0.5rem;
  50. }
  51. .footer a:visited {
  52. color: #9B59B6;
  53. }
  54. .footer a {
  55. color: #2980B9;
  56. text-decoration: none;
  57. cursor: pointer;
  58. }
  59. #title {
  60. text-align: center;
  61. position: absolute;
  62. left: 50%;
  63. transform: translateX(-50%);
  64. white-space: nowrap;
  65. }
  66. .markdown-body blockquote, .markdown-body dl, .markdown-body ol, .markdown-body p, .markdown-body pre, .markdown-body table, .markdown-body ul, .markdown-body details {
  67. margin-bottom: 10px;
  68. }
  69. .markdown-body table {
  70. word-break: break-all; /* prevent tables from expanding beyond their parent div */
  71. }
  72. .CodeMirror {
  73. font-size: 13px
  74. }
  75. h5.card-header:empty {
  76. padding: 0 !important;
  77. border-bottom: 0 !important;
  78. }
  79. button {
  80. margin-bottom: 8px;
  81. }
  82. td blockquote, td dl, td ol, td p, td pre, td table, td ul, td button, td pre {
  83. margin-bottom: 0 !important;
  84. }
  85. .input-container .form-group {
  86. margin-bottom: 0;
  87. }
  88. img {
  89. -webkit-animation-name: image-load-in;
  90. animation-name: image-load-in;
  91. -webkit-animation-duration: .6s;
  92. animation-duration: .6s
  93. }
  94. @-webkit-keyframes image-load-in {
  95. 0% {
  96. -webkit-filter: blur(8px);
  97. filter: blur(8px);
  98. opacity: 0
  99. }
  100. 100% {
  101. -webkit-filter: blur(0);
  102. filter: blur(0);
  103. opacity: 1
  104. }
  105. }
  106. @keyframes image-load-in {
  107. 0% {
  108. -webkit-filter: blur(8px);
  109. filter: blur(8px);
  110. opacity: 0
  111. }
  112. 100% {
  113. -webkit-filter: blur(0);
  114. filter: blur(0);
  115. opacity: 1
  116. }
  117. }
  118. .custom-file {
  119. margin-bottom: 8px;
  120. }
  121. summary:focus {
  122. outline: none;
  123. }
  124. details {
  125. border: 1px solid rgba(0,0,0,.125);
  126. border-radius: 4px;
  127. padding: .5em .5em 0;
  128. }
  129. summary {
  130. /*font-weight: bold;*/
  131. margin: -.5em -.5em 0;
  132. padding: .5em;
  133. background-color: rgba(0,0,0,.03);
  134. }
  135. details[open] {
  136. padding: .5em;
  137. }
  138. details[open]>summary {
  139. border-bottom: 1px solid rgba(0,0,0,.125);
  140. margin-bottom: .5em;
  141. }
  142. .actions-result {
  143. display: inline-block;
  144. font-weight: 400;
  145. color: #212529;
  146. text-align: center;
  147. vertical-align: middle;
  148. padding: .375rem .75rem;
  149. font-size: 1rem;
  150. line-height: 1.5;
  151. margin-bottom: 8px;
  152. }
  153. .hide{
  154. display: none;
  155. }
  156. .single-input-action-btn{
  157. border-top-right-radius: 0.25rem!important;
  158. border-bottom-right-radius: 0.25rem!important;
  159. }