ariaGlobalStyle.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @import './common.less';
  2. .aria-hide {
  3. display: none !important;
  4. }
  5. .aria-active {
  6. .aria-theme-default {
  7. &:focus {
  8. outline: 3px solid red;
  9. }
  10. * {
  11. &:focus {
  12. outline: 3px solid red;
  13. }
  14. }
  15. }
  16. .aria-theme-white {
  17. background-color: white !important;
  18. color: black !important;
  19. &:focus {
  20. outline: 3px solid black;
  21. }
  22. * { // TODO: 看看博物馆项目代码有没有精细地只给需要变色的元素添加class。
  23. background-color: white !important;
  24. color: black !important;
  25. &:focus {
  26. outline: 3px solid black;
  27. }
  28. }
  29. a {
  30. color: blue !important;
  31. }
  32. &.aria-inverse-theme {
  33. background-color: black !important;
  34. color: white !important;
  35. }
  36. .aria-inverse-theme {
  37. background-color: black !important;
  38. color: white !important;
  39. }
  40. }
  41. .aria-theme-blue {
  42. background-color: blue !important;
  43. color: yellow !important;
  44. &:focus {
  45. outline: 3px solid blue;
  46. }
  47. * {
  48. background-color: blue !important;
  49. color: yellow !important;
  50. &:focus {
  51. outline: 3px solid blue;
  52. }
  53. }
  54. a {
  55. color: white !important;
  56. }
  57. &.aria-inverse-theme {
  58. background-color: yellow !important;
  59. color: blue !important;
  60. }
  61. .aria-inverse-theme {
  62. background-color: yellow !important;
  63. color: blue !important;
  64. }
  65. }
  66. .aria-theme-yellow {
  67. background-color: yellow !important;
  68. color: black !important;
  69. &:focus {
  70. outline: 3px solid yellow;
  71. }
  72. * {
  73. background-color: yellow !important;
  74. color: black !important;
  75. &:focus {
  76. outline: 3px solid yellow;
  77. }
  78. }
  79. a {
  80. color: blue !important;
  81. }
  82. &.aria-inverse-theme {
  83. background-color: black !important;
  84. color: yellow !important;
  85. }
  86. .aria-inverse-theme {
  87. background-color: black !important;
  88. color: yellow !important;
  89. }
  90. }
  91. .aria-theme-black {
  92. background-color: black !important;
  93. color: yellow !important;
  94. &:focus {
  95. outline: 3px solid black;
  96. }
  97. * {
  98. background-color: black !important;
  99. color: yellow !important;
  100. &:focus {
  101. outline: 3px solid black;
  102. }
  103. }
  104. a {
  105. color: white !important;
  106. }
  107. &.aria-inverse-theme {
  108. background-color: yellow !important;
  109. color: black !important;
  110. }
  111. .aria-inverse-theme {
  112. background-color: yellow !important;
  113. color: black !important;
  114. }
  115. }
  116. }
  117. body.aria-active {
  118. margin-top: @accessibility-menu-height;
  119. }
  120. body.aria-active.aria-magnifying {
  121. margin-bottom: @magnify-area-height;
  122. }
  123. html.aria-active {
  124. scroll-padding-top: @accessibility-menu-height;
  125. }