Spaces:
Paused
Paused
File size: 3,384 Bytes
4aefbee 44ebcd1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
.streaming-content {
font-family: inherit;
line-height: 2rem;
white-space: pre-wrap;
word-wrap: break-word;
margin: 0;
padding: 0;
}
/* Reset margin/padding for all descendants */
.streaming-content * {
margin: 0;
padding: 0;
}
/* Top-level elements */
.streaming-content > * {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
/* VERY FIRST element in an AI answer */
.streaming-content > *:first-child {
margin-top: 0 !important;
}
/* Headings */
.streaming-content h1,
.streaming-content h2,
.streaming-content h3,
.streaming-content h4,
.streaming-content h5,
.streaming-content h6 {
margin-top: 1rem;
margin-bottom: 0.75rem;
}
/* If heading is the very first element */
.streaming-content > h1:first-child,
.streaming-content > h2:first-child,
.streaming-content > h3:first-child,
.streaming-content > h4:first-child,
.streaming-content > h5:first-child,
.streaming-content > h6:first-child {
margin-top: 0 !important;
}
/* All but the first child in streaming-content */
.streaming-content p:not(:first-child),
.streaming-content h1:not(:first-child),
.streaming-content h2:not(:first-child),
.streaming-content h3:not(:first-child),
.streaming-content h4:not(:first-child),
.streaming-content h5:not(:first-child),
.streaming-content h6:not(:first-child) {
margin-top: -0.5em !important;
}
.streaming-content h1:not(:first-child),
.streaming-content h2:not(:first-child),
.streaming-content h3:not(:first-child),
.streaming-content h4:not(:first-child),
.streaming-content h5:not(:first-child),
.streaming-content h6:not(:first-child) {
margin-bottom: -0.35em !important;
}
/* When a list follows a paragraph */
.streaming-content p + ul,
.streaming-content p + ol {
margin-top: -2rem !important;
}
/* When a list follows a header */
.streaming-content h1 + ul,
.streaming-content h2 + ul,
.streaming-content h3 + ul,
.streaming-content h4 + ul,
.streaming-content h5 + ul,
.streaming-content h6 + ul,
.streaming-content h1 + ol,
.streaming-content h2 + ol,
.streaming-content h3 + ol,
.streaming-content h4 + ol,
.streaming-content h5 + ol,
.streaming-content h6 + ol {
margin-top: -0.25rem !important;
}
/* Paragraphs */
.streaming-content p {
margin-top: 0.25rem;
margin-bottom: 0.25rem;
}
/* Lists */
.streaming-content ul,
.streaming-content ol {
margin-top: 0.25rem;
margin-bottom: 0.25rem;
padding-left: 1.25rem;
white-space: normal;
}
.streaming-content li {
margin-bottom: 0.25rem;
}
.streaming-content li ul,
.streaming-content li ol {
margin-top: 0.15rem;
margin-bottom: 0.15rem;
}
/* Code Blocks */
.code-block-container {
margin: 0.5rem 0;
border-radius: 4px;
background-color: #2b2b2b;
overflow: hidden;
}
.code-block-header {
background-color: #1e1e1e;
color: #ffffff;
padding: 0.5rem;
font-size: 0.85rem;
font-weight: bold;
}
/* Table Container */
.table-container {
margin: 0.5rem 0;
width: 100%;
overflow-x: auto;
border: 1px solid #ddd;
border-radius: 4px;
}
.table-container th,
.table-container td {
border: 1px solid #ddd;
padding: 0.5rem;
}
/* Markdown Links */
.markdown-link {
color: #1a73e8;
text-decoration: none;
}
.markdown-link:hover {
text-decoration: underline;
}
/* Blockquotes */
.markdown-blockquote {
border-left: 4px solid #ccc;
padding-left: 0.75rem;
margin: 0.5rem 0;
color: #555;
font-style: italic;
} |