Advertisement
Guest User

Untitled

a guest
May 2nd, 2025
1,090
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.57 KB | None | 0 0
  1. /* Timeline styling */
  2. .callout[data-callout-metadata*="timeline"] {
  3.     order: 1;
  4.     display: grid;
  5.     grid-template-columns: 150px auto;
  6.     border: 0;
  7.     --dot-offset: calc(-2px + 16px);
  8.     --callout-icon-offset-right: -1040px;
  9.     --callout-icon-offset-bottom: -3%;
  10.  
  11.     .callout-title-inner {
  12.         width: 100%;
  13.         text-align: right;
  14.         color: var(--viewer-text-normal);
  15.         font-size: var(--h2-size);
  16.         margin-top: var(--dot-offset);
  17.         margin-right: 50px;
  18.         max-width: 7ch;
  19.         word-wrap: break-word;
  20.     }
  21.     .callout-title {
  22.         background-color: var(--background-primary);
  23.         border: 0;
  24.         box-shadow: 0;
  25.         padding: 0;
  26.         margin: 0;
  27.         box-shadow: None;
  28.     }
  29.     .callout-icon {
  30.         order: 2;
  31.         margin-inline: 25px;
  32.         border-left: 4px solid var(--viewer-text-faint);
  33.         height: 100%;
  34.         position: absolute;
  35.         margin-left: 120px;
  36.  
  37.         &::after {
  38.             box-sizing: border-box;
  39.             background-color: var(--viewer-text-muted);
  40.             position: absolute;
  41.             border: 6px solid var(--background-primary);
  42.             border-radius: 100%;
  43.             width: 32px;
  44.             top: var(--dot-offset);
  45.             left: -18px;
  46.         }
  47.     }
  48.     .svg-icon {
  49.         display: none;
  50.     }
  51.  
  52.     .callout-content {
  53.         order: 3;
  54.         --p-spacing: 0.5rem;
  55.         background-color: hsl(from var(--callout-color) h calc(s / var(--viewer-callout-multiplier-s)) calc(l / (0.95 * var(--viewer-callout-multiplier-s))));
  56.         box-shadow: -2px 3px 1px var(--viewer-callout-box-shadow);
  57.         border-radius: 5px;
  58.         margin-bottom: 5px;
  59.         padding-top: 8px;
  60.         padding-bottom: 5px;
  61.         padding-left: 25px;
  62.     }
  63. }
  64.  
  65. /* Directory styling */
  66. .callout[data-callout-metadata*="directory"] {
  67.     --indentation-guide-color: transparent;
  68.  
  69.     .callout-content li {
  70.         --list-indent: 2em;
  71.         list-style-type: none;
  72.         font-family: var(--font-monospace);
  73.         position: relative;
  74.     }
  75.  
  76.     .callout-content li::before,
  77.     .callout-content li::after {
  78.         content: "";
  79.         position: absolute;
  80.         left: -1em;
  81.         background: var(--viewer-text-muted);
  82.     }
  83.     .callout-content li::before {
  84.         top: 0.85em;
  85.         width: 10px;
  86.         height: 2px;
  87.         margin-left: -5px;
  88.     }
  89.     .callout-content li li::after {
  90.         top: 0;
  91.         bottom: 0;
  92.         width: 1.5px;
  93.         height: 100%;
  94.         margin-left: -5px;
  95.     }
  96.     .callout-content li:last-child::after {
  97.         height: 0.85em;
  98.     }
  99.  
  100.     .callout-content li code {
  101.         background: none;
  102.         font-size: 1em;
  103.         font-family: var(--font-monospace);
  104.         font-style: italic;
  105.         font-weight: 100;
  106.         margin-left: auto;
  107.         position: absolute;
  108.         right: 0;
  109.         text-align: right;
  110.         color: var(--viewer-text-muted);
  111.     }
  112.  
  113.     .callout-content li mark {
  114.         font-style: italic;
  115.     }
  116. }
  117.  
  118. /* Icon styling */
  119. .callout[data-callout-metadata*="icon"] {
  120.     .svg-icon {
  121.         display: block;
  122.         --icon-size: 72px;
  123.         opacity: 0.5;
  124.         position: absolute;
  125.         bottom: var(--callout-icon-offset-bottom, -5%);
  126.         right: var(--callout-icon-offset-right, 0);
  127.     }
  128. }
  129.  
  130. /* Outline styling */
  131. .callout[data-callout-metadata*="outline"] {
  132.     .callout-content {
  133.         background-color: var(--background-primary);
  134.         border: 1px solid var(--callout-color) !important;
  135.         box-shadow: None;
  136.     }
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement