markdown1
This commit is contained in:
@@ -342,3 +342,70 @@
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Markdown Table Styles */
|
||||
.richText table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 16px 0;
|
||||
background-color: #2d2d2d;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.richText th,
|
||||
.richText td {
|
||||
padding: 12px 16px;
|
||||
border: 1px solid #434343;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.richText th {
|
||||
background-color: #1f1f1f;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.richText tr:nth-child(even) {
|
||||
background-color: #333;
|
||||
}
|
||||
|
||||
.richText tr:hover {
|
||||
background-color: #3a3a3a;
|
||||
}
|
||||
|
||||
/* Code Block Styles */
|
||||
.codeBlockWrapper {
|
||||
position: relative;
|
||||
margin: 16px 0;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
|
||||
&:hover .copyButton {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.copyButton {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
z-index: 10;
|
||||
padding: 4px 8px;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
opacity: 0; /* Hidden by default, shown on hover */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user