wip
This commit is contained in:
parent
94ededdf69
commit
7dafc3c1e4
4 changed files with 178 additions and 52 deletions
|
@ -319,10 +319,9 @@
|
|||
.markdown-alert {
|
||||
padding: 0.85rem 1rem;
|
||||
margin: 1rem 0;
|
||||
border-radius: 0.375rem;
|
||||
border-radius: 6px;
|
||||
border-left-width: 4px;
|
||||
border-left-style: solid;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.markdown-alert-title {
|
||||
|
@ -340,15 +339,14 @@
|
|||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* Individual alert types */
|
||||
/* Note styling */
|
||||
/* Note styling - GitHub colors */
|
||||
.markdown-alert-note {
|
||||
background-color: rgba(66, 153, 225, 0.1);
|
||||
border-left-color: #4299e1;
|
||||
background-color: #eef6ff;
|
||||
border-left-color: #58a6ff;
|
||||
}
|
||||
|
||||
.markdown-alert-note .markdown-alert-title {
|
||||
color: #2b6cb0;
|
||||
color: #0969da;
|
||||
}
|
||||
|
||||
.markdown-alert-note .markdown-alert-title::before {
|
||||
|
@ -356,14 +354,14 @@
|
|||
/* ti-info-circle */
|
||||
}
|
||||
|
||||
/* Tip styling */
|
||||
/* Tip styling - GitHub colors */
|
||||
.markdown-alert-tip {
|
||||
background-color: rgba(72, 187, 120, 0.1);
|
||||
border-left-color: #48bb78;
|
||||
background-color: #dafbe1;
|
||||
border-left-color: #2da44e;
|
||||
}
|
||||
|
||||
.markdown-alert-tip .markdown-alert-title {
|
||||
color: #2f855a;
|
||||
color: #1a7f37;
|
||||
}
|
||||
|
||||
.markdown-alert-tip .markdown-alert-title::before {
|
||||
|
@ -371,14 +369,14 @@
|
|||
/* ti-bulb */
|
||||
}
|
||||
|
||||
/* Important styling */
|
||||
/* Important styling - GitHub colors */
|
||||
.markdown-alert-important {
|
||||
background-color: rgba(118, 106, 240, 0.1);
|
||||
border-left-color: #766af0;
|
||||
background-color: #fff8c5;
|
||||
border-left-color: #bf8700;
|
||||
}
|
||||
|
||||
.markdown-alert-important .markdown-alert-title {
|
||||
color: #5046e4;
|
||||
color: #9a6700;
|
||||
}
|
||||
|
||||
.markdown-alert-important .markdown-alert-title::before {
|
||||
|
@ -386,14 +384,14 @@
|
|||
/* ti-star */
|
||||
}
|
||||
|
||||
/* Warning styling */
|
||||
/* Warning styling - GitHub colors */
|
||||
.markdown-alert-warning {
|
||||
background-color: rgba(246, 173, 85, 0.1);
|
||||
border-left-color: #f6ad55;
|
||||
background-color: #fff8c5;
|
||||
border-left-color: #bf8700;
|
||||
}
|
||||
|
||||
.markdown-alert-warning .markdown-alert-title {
|
||||
color: #c05621;
|
||||
color: #9a6700;
|
||||
}
|
||||
|
||||
.markdown-alert-warning .markdown-alert-title::before {
|
||||
|
@ -401,14 +399,14 @@
|
|||
/* ti-alert-triangle */
|
||||
}
|
||||
|
||||
/* Caution styling */
|
||||
/* Caution styling - GitHub colors */
|
||||
.markdown-alert-caution {
|
||||
background-color: rgba(245, 101, 101, 0.1);
|
||||
border-left-color: #f56565;
|
||||
background-color: #ffebe9;
|
||||
border-left-color: #cf222e;
|
||||
}
|
||||
|
||||
.markdown-alert-caution .markdown-alert-title {
|
||||
color: #c53030;
|
||||
color: #cf222e;
|
||||
}
|
||||
|
||||
.markdown-alert-caution .markdown-alert-title::before {
|
||||
|
@ -416,25 +414,50 @@
|
|||
/* ti-alert-octagon */
|
||||
}
|
||||
|
||||
/* Dark mode adjustments */
|
||||
/* Dark mode adjustments using GitHub Dark colors */
|
||||
[data-bs-theme="dark"] .markdown-alert-note {
|
||||
background-color: rgba(56, 127, 187, 0.15);
|
||||
background-color: rgba(56, 139, 253, 0.15);
|
||||
border-left-color: #58a6ff;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert-note .markdown-alert-title {
|
||||
color: #58a6ff;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert-tip {
|
||||
background-color: rgba(56, 161, 105, 0.15);
|
||||
background-color: rgba(46, 160, 67, 0.15);
|
||||
border-left-color: #3fb950;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert-tip .markdown-alert-title {
|
||||
color: #3fb950;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert-important {
|
||||
background-color: rgba(102, 92, 209, 0.15);
|
||||
background-color: rgba(219, 171, 9, 0.15);
|
||||
border-left-color: #d29922;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert-important .markdown-alert-title {
|
||||
color: #d29922;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert-warning {
|
||||
background-color: rgba(221, 155, 76, 0.15);
|
||||
background-color: rgba(219, 171, 9, 0.15);
|
||||
border-left-color: #d29922;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert-warning .markdown-alert-title {
|
||||
color: #d29922;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert-caution {
|
||||
background-color: rgba(224, 92, 92, 0.15);
|
||||
background-color: rgba(248, 81, 73, 0.15);
|
||||
border-left-color: #f85149;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert-caution .markdown-alert-title {
|
||||
color: #f85149;
|
||||
}
|
||||
|
||||
/* Fix content inside alerts */
|
||||
|
@ -448,14 +471,14 @@
|
|||
|
||||
/* Ensure proper spacing for code in alerts */
|
||||
.markdown-alert code {
|
||||
background-color: rgba(0, 0, 0, 0.07);
|
||||
background-color: rgba(27, 31, 35, 0.05);
|
||||
border-radius: 3px;
|
||||
padding: 0.2em 0.4em;
|
||||
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-alert code {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
background-color: rgba(240, 246, 252, 0.15);
|
||||
}
|
||||
|
||||
/* Fix port display in accordion headers */
|
||||
|
@ -468,4 +491,11 @@
|
|||
/* Add compatibility classes for GitHub markdown */
|
||||
.markdown-content .markdown-reading-view {
|
||||
width: 100%;
|
||||
color: var(--markdown-text);
|
||||
background-color: var(--markdown-bg);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .markdown-content .markdown-reading-view {
|
||||
color: var(--markdown-text);
|
||||
background-color: var(--markdown-bg);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue