Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

145 строки
2.9 KiB

  1. html,
  2. body,
  3. #root,
  4. .app,
  5. .content {
  6. height: 100%;
  7. width: 100%;
  8. font-family: "Noto Sans HK", "Noto Sans SC";
  9. }
  10. .page-grey {
  11. filter: grayscale(100%);
  12. }
  13. /* Chrome, Safari, Edge, Opera */
  14. input::-webkit-outer-spin-button,
  15. input::-webkit-inner-spin-button {
  16. -webkit-appearance: none;
  17. margin: 0;
  18. }
  19. /* Firefox */
  20. input[type=number] {
  21. -moz-appearance: textfield;
  22. }
  23. /* body{
  24. padding-top: 53px;
  25. font-family: 微軟正黑體;
  26. } */
  27. /* main{
  28. padding-top: 43px;
  29. } */
  30. img
  31. {
  32. -webkit-transition: all 0.2s
  33. }
  34. /*Filter styles*/
  35. .saturate {-webkit-filter: saturate(3);}
  36. .grayscale {-webkit-filter: grayscale(100%) brightness(1.5);}
  37. .contrast {-webkit-filter: contrast(10%);}
  38. .brightness {-webkit-filter: brightness(1.2);}
  39. .blur {-webkit-filter: blur(3px);}
  40. .invert {-webkit-filter: invert(100%);}
  41. .sepia {-webkit-filter: sepia(100%);}
  42. .huerotate {-webkit-filter: hue-rotate(180deg);}
  43. .rss.opacity {-webkit-filter: opacity(50%);}
  44. img:hover{-webkit-filter:none;}
  45. a:link,
  46. a:visited,
  47. a:hover,
  48. a:active {
  49. color: #005FCC; /* WCAG AA compliant */
  50. background-color: transparent;
  51. text-decoration: underline;
  52. }
  53. /* iframe#webpack-dev-server-client-overlay{display:none!important} */
  54. /* ===== WCAG 2.4.7 Focus Visible (Keyboard only) ===== */
  55. :where(
  56. a,
  57. button,
  58. input,
  59. select,
  60. textarea,
  61. summary,
  62. [role="button"],
  63. [role="link"],
  64. [tabindex]:not([tabindex="-1"])
  65. ):focus-visible {
  66. outline: 3px solid #1976d2;
  67. outline-offset: 2px;
  68. border-radius: 4px;
  69. }
  70. /* Suppress mouse focus */
  71. :where(
  72. a,
  73. button,
  74. input,
  75. select,
  76. textarea,
  77. summary,
  78. [role="button"],
  79. [role="link"],
  80. [tabindex]:not([tabindex="-1"])
  81. ):focus:not(:focus-visible) {
  82. outline: none;
  83. }
  84. /* ===== MUI DataGrid keyboard focus (WCAG 2.4.7 / 2.4.11) ===== */
  85. .MuiDataGrid-columnHeader:focus-visible,
  86. .MuiDataGrid-cell:focus-visible {
  87. outline: 3px solid #1976d2;
  88. outline-offset: -2px;
  89. box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
  90. }
  91. /* Contained buttons only */
  92. .MuiButton-contained {
  93. box-shadow: none;
  94. }
  95. .MuiButton-contained:hover {
  96. }
  97. /* iAM Smart button — keep green border */
  98. .MuiButton-outlinedIAmSmart {
  99. color: #2E7D32; /* green text */
  100. border: 1px solid #2E7D32; /* keep your green */
  101. }
  102. .MuiButton-outlinedIAmSmart:hover {
  103. color: #2E7D32; /* green text */
  104. border: 1px solid #2E7D32;
  105. background-color: rgba(46, 125, 50, 0.08); /* optional */
  106. }
  107. /* ===== Outlined button focus ===== */
  108. .MuiButton-outlined:focus-visible {
  109. outline: 3px solid #1976d2;
  110. outline-offset: 2px;
  111. }
  112. /* Step icon number color (text inside the circle) */
  113. .MuiStepIcon-text {
  114. fill: #1A1A1A; /* dark text, high contrast */
  115. }
  116. /* Placeholder text contrast */
  117. .MuiInputBase-input::placeholder {
  118. color: #6B6B6B; /* passes 4.5:1 on white */
  119. opacity: 1; /* IMPORTANT */
  120. }
  121. /* WCAG-safe error text color */
  122. .Mui-error,
  123. .MuiFormHelperText-root.Mui-error,
  124. .MuiTypography-errorMessage1 {
  125. color: #B00020; /* dark red, AA compliant */
  126. opacity: 1; /* remove faded appearance */
  127. }