.mac-code-block { margin: 4px 0; border-radius: 6px; overflow: hidden; background: #fafafa; border: 0.5px solid #e0e0e0; box-shadow: 0 1px 4px rgba(0,0,0,.04); font-family: inherit; font-size: 11px; line-height: 1.5; } .mac-code-header { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px; background: linear-gradient(to bottom, #f5f5f5, #eee); border-bottom: 0.5px solid #ddd; user-select: none; } .mac-code-header-left { display: flex; align-items: center; gap: 5px; } .mac-dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.1); } .mac-dot-red { background: #ff5f57; } .mac-dot-yellow { background: #febc2e; } .mac-dot-green { background: #28c840; } .mac-code-title { font-size: 12px; color: #aaa; margin-left: 4px; font-family: inherit; } .mac-code-copy { padding: 2px 8px; font-size: 12px; color: #999; background: rgba(255,255,255,0.6); border: 0.5px solid #ccc; border-radius: 3px; cursor: pointer; transition: all .15s; font-family: inherit; } .mac-code-copy:hover { background: #fff; border-color: #bbb; color: #333; } .mac-code-copy:active { transform: scale(0.96); } .mac-code-copy.copied { color: #28c840; border-color: #28c840; background: rgba(40,200,64,0.08); } .mac-code-body { display: flex; overflow-x: auto; background: #fafafa; } .mac-line-numbers { flex-shrink: 0; padding: 3px 2px; background: #f5f5f5; border-right: 0.5px solid #e8e8e8; text-align: center; user-select: none; min-width: 18px; } .mac-line-num { display: block; padding: 0 2px; font-size: 12px; line-height: 1.6; color: #ccc; font-family: inherit; } .mac-code-content { flex: 1; padding: 6px 10px; overflow-x: auto; white-space: pre; word-wrap: normal; tab-size: 4; } .mac-code-content code { font-family: inherit !important; font-size: inherit !important; background: none !important; padding: 0 !important; border-radius: 0 !important; border: none !important; border-width: 0 !important; border-style: none !important; border-color: transparent !important; outline: none !important; box-shadow: none !important; color: inherit !important; line-height: inherit !important; vertical-align: baseline !important; top: auto !important; position: static !important; } .gc-pln { color: #333; } .gc-str { color: #008000; } .gc-kwd { color: #006699; font-weight: bold; } .gc-com { color: #999988; font-style: italic; } .gc-typ { color: #445588; font-weight: bold; } .gc-lit { color: #009999; } .gc-pun { color: #333; } .gc-fun { color: #990000; font-weight: bold; } .gc-var { color: #336699; } .gc-tag { color: #000080; } .gc-atn { color: #008080; } .gc-atv { color: #d14; } .gc-dec { color: #999988; } .mac-inline-code { font-family: inherit; font-size: 0.92em; background: #eff1f5; color: #d6336c; padding: 0.18em 0.55em; border-radius: 6px; border: none; vertical-align: baseline; } @media (prefers-color-scheme: dark) { .mac-code-block { background: #1e1e1e; border-color: #333; } .mac-code-header { background: linear-gradient(to bottom, #2d2d2d, #252525); border-bottom-color: #333; } .mac-code-body, .mac-code-content { background: #1e1e1e; } .mac-line-numbers { background: #252525; border-right-color: #333; } .mac-line-num { color: #555; } .gc-pln { color: #d4d4d4; } .gc-str { color: #ce9178; } .gc-kwd { color: #569cd6; } .gc-com { color: #6a9955; } .gc-typ { color: #4ec9b0; } .gc-lit { color: #b5cea8; } .gc-pun { color: #d4d4d4; } .gc-fun { color: #dcdcaa; } .gc-var { color: #9cdcfe; } .gc-tag { color: #569cd6; } .gc-atn { color: #9cdcfe; } .gc-atv { color: #ce9178; } .mac-inline-code { background: #2d2d2d; color: #ce9178; border-color: #444; } }
