Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Timeline styling */
- .callout[data-callout-metadata*="timeline"] {
- order: 1;
- display: grid;
- grid-template-columns: 150px auto;
- border: 0;
- --dot-offset: calc(-2px + 16px);
- --callout-icon-offset-right: -1040px;
- --callout-icon-offset-bottom: -3%;
- .callout-title-inner {
- width: 100%;
- text-align: right;
- color: var(--viewer-text-normal);
- font-size: var(--h2-size);
- margin-top: var(--dot-offset);
- margin-right: 50px;
- max-width: 7ch;
- word-wrap: break-word;
- }
- .callout-title {
- background-color: var(--background-primary);
- border: 0;
- box-shadow: 0;
- padding: 0;
- margin: 0;
- box-shadow: None;
- }
- .callout-icon {
- order: 2;
- margin-inline: 25px;
- border-left: 4px solid var(--viewer-text-faint);
- height: 100%;
- position: absolute;
- margin-left: 120px;
- &::after {
- box-sizing: border-box;
- background-color: var(--viewer-text-muted);
- position: absolute;
- border: 6px solid var(--background-primary);
- border-radius: 100%;
- width: 32px;
- top: var(--dot-offset);
- left: -18px;
- }
- }
- .svg-icon {
- display: none;
- }
- .callout-content {
- order: 3;
- --p-spacing: 0.5rem;
- background-color: hsl(from var(--callout-color) h calc(s / var(--viewer-callout-multiplier-s)) calc(l / (0.95 * var(--viewer-callout-multiplier-s))));
- box-shadow: -2px 3px 1px var(--viewer-callout-box-shadow);
- border-radius: 5px;
- margin-bottom: 5px;
- padding-top: 8px;
- padding-bottom: 5px;
- padding-left: 25px;
- }
- }
- /* Directory styling */
- .callout[data-callout-metadata*="directory"] {
- --indentation-guide-color: transparent;
- .callout-content li {
- --list-indent: 2em;
- list-style-type: none;
- font-family: var(--font-monospace);
- position: relative;
- }
- .callout-content li::before,
- .callout-content li::after {
- content: "";
- position: absolute;
- left: -1em;
- background: var(--viewer-text-muted);
- }
- .callout-content li::before {
- top: 0.85em;
- width: 10px;
- height: 2px;
- margin-left: -5px;
- }
- .callout-content li li::after {
- top: 0;
- bottom: 0;
- width: 1.5px;
- height: 100%;
- margin-left: -5px;
- }
- .callout-content li:last-child::after {
- height: 0.85em;
- }
- .callout-content li code {
- background: none;
- font-size: 1em;
- font-family: var(--font-monospace);
- font-style: italic;
- font-weight: 100;
- margin-left: auto;
- position: absolute;
- right: 0;
- text-align: right;
- color: var(--viewer-text-muted);
- }
- .callout-content li mark {
- font-style: italic;
- }
- }
- /* Icon styling */
- .callout[data-callout-metadata*="icon"] {
- .svg-icon {
- display: block;
- --icon-size: 72px;
- opacity: 0.5;
- position: absolute;
- bottom: var(--callout-icon-offset-bottom, -5%);
- right: var(--callout-icon-offset-right, 0);
- }
- }
- /* Outline styling */
- .callout[data-callout-metadata*="outline"] {
- .callout-content {
- background-color: var(--background-primary);
- border: 1px solid var(--callout-color) !important;
- box-shadow: None;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement