Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

styles.scss 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /* Material Theme */
  2. @use '@angular/material' as mat;
  3. /* Tailwind CSS */
  4. @tailwind base;
  5. @tailwind components;
  6. @tailwind utilities;
  7. /* Material Prebuilt Theme */
  8. @import '@angular/material/prebuilt-themes/indigo-pink.css';
  9. /* You can add global styles to this file, and also import other style files */
  10. html, body { height: 100%; }
  11. body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
  12. /* Material 基础样式 */
  13. .mat-mdc-card {
  14. display: flex;
  15. flex-direction: column;
  16. }
  17. /* 确保表格可见 */
  18. .mat-mdc-table {
  19. width: 100%;
  20. }
  21. /* Prism.js 语法高亮主题 */
  22. .prism-code {
  23. font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  24. font-size: 0.875rem;
  25. line-height: 1.6;
  26. margin: 1rem 0;
  27. padding: 1.25rem;
  28. border-radius: 0.5rem;
  29. overflow-x: auto;
  30. background-color: #f3f4f6; /* 浅灰色背景 */
  31. color: #374151; /* 深灰色文字 */
  32. }
  33. .prism-code .token.comment,
  34. .prism-code .token.prolog,
  35. .prism-code .token.doctype,
  36. .prism-code .token.cdata {
  37. color: #6b7280; /* 灰色 */
  38. }
  39. .prism-code .token.punctuation {
  40. color: #9ca3af; /* 中等灰色,在浅色背景下可见 */
  41. }
  42. .prism-code .token.property,
  43. .prism-code .token.tag,
  44. .prism-code .token.boolean,
  45. .prism-code .token.number,
  46. .prism-code .token.constant,
  47. .prism-code .token.symbol,
  48. .prism-code .token.deleted {
  49. color: #f87171; /* 红色 */
  50. }
  51. .prism-code .token.selector,
  52. .prism-code .token.attr-name,
  53. .prism-code .token.string,
  54. .prism-code .token.char,
  55. .prism-code .token.builtin,
  56. .prism-code .token.inserted {
  57. color: #34d399; /* 绿色 */
  58. }
  59. .prism-code .token.operator,
  60. .prism-code .token.entity,
  61. .prism-code .token.url,
  62. .prism-code .language-css .token.string,
  63. .prism-code .style .token.string {
  64. color: #fbbf24; /* 黄色 */
  65. background: transparent;
  66. }
  67. .prism-code .token.atrule,
  68. .prism-code .token.attr-value,
  69. .prism-code .token.keyword {
  70. color: #60a5fa; /* 蓝色 */
  71. }
  72. .prism-code .token.function,
  73. .prism-code .token.class-name {
  74. color: #a78bfa; /* 紫色 */
  75. }
  76. .prism-code .token.regex,
  77. .prism-code .token.important,
  78. .prism-code .token.variable {
  79. color: #f472b6; /* 粉色 */
  80. }
  81. .prism-code .token.important,
  82. .prism-code .token.bold {
  83. font-weight: bold;
  84. }
  85. .prism-code .token.italic {
  86. font-style: italic;
  87. }
  88. .prism-code .token.entity {
  89. cursor: help;
  90. }
  91. /* 行内代码样式 */
  92. code:not(.prism-code code) {
  93. background-color: #f3f4f6;
  94. color: #dc2626;
  95. padding: 0.125rem 0.375rem;
  96. border-radius: 0.25rem;
  97. font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  98. font-size: 0.875rem;
  99. }