_railroad_diagrams.scss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .rr-diagram {
  2. margin: rem(1.5) 0;
  3. overflow: auto;
  4. .line {
  5. fill: none;
  6. stroke: var(--sub);
  7. }
  8. .bold-line {
  9. stroke: var(--important);
  10. shape-rendering: crispEdges;
  11. stroke-width: 2;
  12. }
  13. .thin-line {
  14. stroke: var(--important);
  15. shape-rendering: crispEdges;
  16. }
  17. .filled {
  18. fill: var(--sub);
  19. stroke: none;
  20. }
  21. text.terminal,
  22. text.nonterminal,
  23. text.regexp {
  24. font-family: "Inter", sans-serif;
  25. font-size: 14px;
  26. fill: $black;
  27. }
  28. text.terminal {
  29. font-weight: bold;
  30. }
  31. rect,
  32. circle,
  33. polygon {
  34. fill: var(--sub);
  35. stroke: var(--sub);
  36. }
  37. rect.terminal {
  38. fill: #ab96e0;
  39. stroke: var(--sub);
  40. }
  41. rect.nonterminal {
  42. fill: scale-color($purple-20, $saturation: -50%);
  43. stroke: var(--sub);
  44. }
  45. rect.text {
  46. fill: none;
  47. stroke: none;
  48. }
  49. polygon.regexp {
  50. fill: scale-color($purple-10, $saturation: -50%);
  51. stroke: var(--sub);
  52. }
  53. }