app.css 3.7 KB

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