Files
upstream-espocrm/frontend/less/espo/bootstrap/code.less
upstream-mirror 7cc7e6b4f3
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 1s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
snapshot of https://github.com/espocrm/espocrm.git (master, 2026-09-18; blobs > 131072B omitted)
2026-09-18 04:19:15 +05:00

59 lines
1.2 KiB
Plaintext

// Code (inline and block)
code,
kbd,
pre,
samp {
font-family: var(--font-family-monospace);
font-variant-ligatures: none;
}
// Inline code
code {
padding: var(--2px) var(--4px);
font-size: 90%;
color:var(--code-color);
background-color: var(--code-bg);
}
// User input typically entered via keyboard
kbd {
padding: var(--2px) var(--4px);
font-size: 90%;
color: var(--code-color);
background-color: var(--code-bg);
kbd {
padding: 0;
font-size: 100%;
font-weight: bold;
box-shadow: none;
}
}
// Blocks of code
pre {
display: block;
padding: calc((var(--line-height-computed) - var(--1px)) / 2);
margin: 0 0 var(--line-height-computed-half);
font-size: calc(var(--font-size-base) - var(--1px));
line-height: var(--line-height-base);
word-break: break-all;
word-wrap: break-word;
color: var(--code-color);
background-color: var(--code-bg);
border: var(--1px) solid var(--code-border-color);
border-radius: var(--border-radius-small);
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre-wrap;
background-color: transparent;
border-radius: 0;
}
}