You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
1.7 KiB

4 years ago
  1. code.language-css,
  2. code.language-scss,
  3. .token.boolean,
  4. .token.string,
  5. .token.entity,
  6. .token.url,
  7. .language-css .token.string,
  8. .language-scss .token.string,
  9. .style .token.string,
  10. .token.attr-value,
  11. .token.keyword,
  12. .token.control,
  13. .token.directive,
  14. .token.statement,
  15. .token.regex,
  16. .token.atrule,
  17. .token.number,
  18. .token.inserted {
  19. color: var(--accent);
  20. }
  21. .token.tag-id,
  22. .token.atrule-id,
  23. .token.operator,
  24. .token.unit,
  25. .token.placeholder,
  26. .token.variable,
  27. .token.attr-name {
  28. color: color-mod(var(--accent) a(70%));
  29. }
  30. .token.property,
  31. .token.function,
  32. .token.deleted,
  33. code.language-javascript,
  34. code.language-html,
  35. .command-line-prompt > span:before {
  36. color: color-mod(var(--accent) blend(#999 90%));
  37. }
  38. .token.selector,
  39. .token.tag,
  40. .token.punctuation {
  41. color: white;
  42. }
  43. .token.comment,
  44. .token.prolog,
  45. .token.doctype,
  46. .token.cdata {
  47. color: rgba(255, 255, 255, .3);
  48. }
  49. .token.namespace {
  50. opacity: .7;
  51. }
  52. pre[data-line] {
  53. position: relative;
  54. }
  55. .line-highlight {
  56. position: absolute;
  57. left: 0;
  58. right: 0;
  59. padding: 0;
  60. margin: 0;
  61. background: color-mod(var(--accent) blend(#999 90%) a(8%));
  62. pointer-events: none;
  63. line-height: inherit;
  64. white-space: pre;
  65. }
  66. .line-highlight:before,
  67. .line-highlight[data-end]:after {
  68. content: attr(data-start);
  69. position: absolute;
  70. /* top: .4em; */
  71. left: .6em;
  72. min-width: 1em;
  73. padding: 0 .5em;
  74. background-color: hsla(24, 20%, 50%, .4);
  75. color: hsl(24, 20%, 95%);
  76. font: bold 65%/1.5 sans-serif;
  77. text-align: center;
  78. vertical-align: .3em;
  79. border-radius: 999px;
  80. text-shadow: none;
  81. box-shadow: 0 1px white;
  82. }
  83. .line-highlight[data-end]:after {
  84. content: attr(data-end);
  85. top: auto;
  86. bottom: .4em;
  87. }
  88. .line-numbers .line-highlight:before,
  89. .line-numbers .line-highlight:after {
  90. content: none;
  91. }