Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 3,443 Bytes
61d29fc | 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 163 164 165 166 167 168 169 170 171 172 173 174 | .zoomableContainer {
position: relative;
width: 100%;
margin: 2rem 0;
border: 1px solid var(--ifm-color-emphasis-300);
border-radius: 8px;
overflow: hidden;
background: var(--ifm-background-color);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.diagramTitle {
margin: 0;
padding: 1rem 1.5rem;
background: var(--ifm-color-primary);
color: #ffffff !important;
font-size: 1.25rem;
font-weight: 600;
border-bottom: 1px solid var(--ifm-color-emphasis-300);
}
/* Ensure title text is white in both light and dark modes */
.diagramTitle,
.diagramTitle * {
color: #ffffff !important;
}
html[data-theme='dark'] .diagramTitle,
html[data-theme='dark'] .diagramTitle * {
color: #ffffff !important;
}
.controls {
padding: 0.75rem 1.5rem;
background: var(--ifm-color-emphasis-100);
border-bottom: 1px solid var(--ifm-color-emphasis-300);
}
.controlsLabel {
font-size: 0.9rem;
color: var(--ifm-color-emphasis-700);
}
.zoomControls {
position: absolute;
top: 80px;
right: 20px;
z-index: 10;
display: flex;
flex-direction: column;
gap: 8px;
background: white;
border-radius: 8px;
padding: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
html[data-theme='dark'] .zoomControls {
background: var(--ifm-background-color);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.zoomButton {
min-width: 100px;
padding: 8px 16px;
border: 1px solid var(--ifm-color-emphasis-300);
background: #ffffff;
color: #333333;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
}
html[data-theme='dark'] .zoomButton {
background: var(--ifm-background-color);
color: var(--ifm-font-color-base);
}
.zoomButton:hover {
background: var(--ifm-color-primary);
color: #ffffff !important;
border-color: var(--ifm-color-primary);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.zoomButton:active {
transform: translateY(0);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.transformWrapper {
width: 100%;
height: 4800px;
overflow: hidden;
cursor: grab;
background-image:
linear-gradient(var(--ifm-color-emphasis-200) 1px, transparent 1px),
linear-gradient(90deg, var(--ifm-color-emphasis-200) 1px, transparent 1px);
background-size: 20px 20px;
background-position: -1px -1px;
}
.transformWrapper:active {
cursor: grabbing;
}
.transformContent {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.mermaidWrapper {
padding: 2rem;
background: var(--ifm-background-color);
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
display: inline-block;
}
.mermaidWrapper svg {
display: block;
max-width: none;
height: auto;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.transformWrapper {
height: 2400px;
}
.zoomControls {
top: 60px;
right: 10px;
flex-direction: row;
padding: 6px;
}
.zoomButton {
min-width: auto;
padding: 6px 12px;
font-size: 12px;
}
.controls {
padding: 0.5rem 1rem;
}
.controlsLabel {
font-size: 0.8rem;
}
}
/* Improve Mermaid diagram visibility */
.mermaidWrapper :global(.mermaid) {
min-width: 100%;
min-height: 600px;
}
.mermaidWrapper :global(svg) {
max-width: none !important;
height: auto !important;
}
|