app.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /* code highlight: https://python-markdown.github.io/extensions/code_hilite/ */
  2. .codehilite .hll { background-color: #ffffcc }
  3. .codehilite { background: #f8f8f8; }
  4. .codehilite .c { color: #408080; font-style: italic } /* Comment */
  5. .codehilite .err { border: 1px solid #FF0000 } /* Error */
  6. .codehilite .k { color: #008000; font-weight: bold } /* Keyword */
  7. .codehilite .o { color: #666666 } /* Operator */
  8. .codehilite .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
  9. .codehilite .cm { color: #408080; font-style: italic } /* Comment.Multiline */
  10. .codehilite .cp { color: #BC7A00 } /* Comment.Preproc */
  11. .codehilite .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
  12. .codehilite .c1 { color: #408080; font-style: italic } /* Comment.Single */
  13. .codehilite .cs { color: #408080; font-style: italic } /* Comment.Special */
  14. .codehilite .gd { color: #A00000 } /* Generic.Deleted */
  15. .codehilite .ge { font-style: italic } /* Generic.Emph */
  16. .codehilite .gr { color: #FF0000 } /* Generic.Error */
  17. .codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */
  18. .codehilite .gi { color: #00A000 } /* Generic.Inserted */
  19. .codehilite .go { color: #888888 } /* Generic.Output */
  20. .codehilite .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
  21. .codehilite .gs { font-weight: bold } /* Generic.Strong */
  22. .codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
  23. .codehilite .gt { color: #0044DD } /* Generic.Traceback */
  24. .codehilite .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
  25. .codehilite .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
  26. .codehilite .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
  27. .codehilite .kp { color: #008000 } /* Keyword.Pseudo */
  28. .codehilite .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
  29. .codehilite .kt { color: #B00040 } /* Keyword.Type */
  30. .codehilite .m { color: #666666 } /* Literal.Number */
  31. .codehilite .s { color: #BA2121 } /* Literal.String */
  32. .codehilite .na { color: #7D9029 } /* Name.Attribute */
  33. .codehilite .nb { color: #008000 } /* Name.Builtin */
  34. .codehilite .nc { color: #0000FF; font-weight: bold } /* Name.Class */
  35. .codehilite .no { color: #880000 } /* Name.Constant */
  36. .codehilite .nd { color: #AA22FF } /* Name.Decorator */
  37. .codehilite .ni { color: #999999; font-weight: bold } /* Name.Entity */
  38. .codehilite .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
  39. .codehilite .nf { color: #0000FF } /* Name.Function */
  40. .codehilite .nl { color: #A0A000 } /* Name.Label */
  41. .codehilite .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
  42. .codehilite .nt { color: #008000; font-weight: bold } /* Name.Tag */
  43. .codehilite .nv { color: #19177C } /* Name.Variable */
  44. .codehilite .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
  45. .codehilite .w { color: #bbbbbb } /* Text.Whitespace */
  46. .codehilite .mb { color: #666666 } /* Literal.Number.Bin */
  47. .codehilite .mf { color: #666666 } /* Literal.Number.Float */
  48. .codehilite .mh { color: #666666 } /* Literal.Number.Hex */
  49. .codehilite .mi { color: #666666 } /* Literal.Number.Integer */
  50. .codehilite .mo { color: #666666 } /* Literal.Number.Oct */
  51. .codehilite .sa { color: #BA2121 } /* Literal.String.Affix */
  52. .codehilite .sb { color: #BA2121 } /* Literal.String.Backtick */
  53. .codehilite .sc { color: #BA2121 } /* Literal.String.Char */
  54. .codehilite .dl { color: #BA2121 } /* Literal.String.Delimiter */
  55. .codehilite .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
  56. .codehilite .s2 { color: #BA2121 } /* Literal.String.Double */
  57. .codehilite .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
  58. .codehilite .sh { color: #BA2121 } /* Literal.String.Heredoc */
  59. .codehilite .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
  60. .codehilite .sx { color: #008000 } /* Literal.String.Other */
  61. .codehilite .sr { color: #BB6688 } /* Literal.String.Regex */
  62. .codehilite .s1 { color: #BA2121 } /* Literal.String.Single */
  63. .codehilite .ss { color: #19177C } /* Literal.String.Symbol */
  64. .codehilite .bp { color: #008000 } /* Name.Builtin.Pseudo */
  65. .codehilite .fm { color: #0000FF } /* Name.Function.Magic */
  66. .codehilite .vc { color: #19177C } /* Name.Variable.Class */
  67. .codehilite .vg { color: #19177C } /* Name.Variable.Global */
  68. .codehilite .vi { color: #19177C } /* Name.Variable.Instance */
  69. .codehilite .vm { color: #19177C } /* Name.Variable.Magic */
  70. .codehilite .il { color: #666666 } /* Literal.Number.Integer.Long */
  71. .preview_header {
  72. font-size: 18px;
  73. font-weight: 500;
  74. text-align: center;
  75. margin-bottom: -12px;
  76. }
  77. .bot_cover {
  78. display: flex;
  79. flex-direction: column;
  80. justify-content: center;
  81. align-items: center;
  82. min-height: 650px;
  83. border: 1px solid rgb(229, 231, 235);
  84. border-radius: 8px;
  85. padding: 20px 40px;
  86. }
  87. .bot_avatar {
  88. width: 100px;
  89. height: 100px;
  90. border-radius: 50%;
  91. overflow: hidden;
  92. }
  93. .bot_avatar img {
  94. width: 100px;
  95. height: 100px;
  96. }
  97. .bot_name {
  98. font-size: 36px;
  99. margin-top: 10px;
  100. }
  101. .bot_desp {
  102. color: #ddd;
  103. }
  104. .publish_link_container > a {
  105. display: block;
  106. border-radius: var(--button-large-radius);
  107. padding: var(--button-large-padding);
  108. font-weight: var(--button-large-text-weight);
  109. font-size: var(--button-large-text-size);
  110. border: var(--button-border-width) solid var(--button-secondary-border-color);
  111. background: var(--button-secondary-background-fill);
  112. color: var(--button-secondary-text-color) !important;
  113. cursor: pointer;
  114. text-decoration: none !important;
  115. text-align: center;
  116. }
  117. .publish_link_container > .disabled {
  118. cursor: not-allowed;
  119. opacity: .5;
  120. filter: grayscale(30%);
  121. }
  122. .markdown-body .message {
  123. white-space: pre-wrap;
  124. }
  125. .markdown-body details {
  126. white-space: nowrap;
  127. }
  128. .markdown-body .bot details:not(:last-child) {
  129. margin-bottom: 1px;
  130. }
  131. .markdown-body summary {
  132. background-color: #4b5563;
  133. color: #eee;
  134. padding: 0 4px;
  135. border-radius: 4px;
  136. font-size: 0.9em;
  137. }