|
@@ -0,0 +1,194 @@
|
|
|
+@import './common.less';
|
|
|
+
|
|
|
+code {
|
|
|
+ display: none;
|
|
|
+}
|
|
|
+
|
|
|
+.aria-active {
|
|
|
+ .aria-theme-default {
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid red !important;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ * {
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid red !important;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .aria-theme-white {
|
|
|
+ background: white !important;
|
|
|
+ color: black !important;
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid black;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ *:not(.aria-theme-independent, .el-carousel, .el-carousel *, img) {
|
|
|
+ background: white !important;
|
|
|
+ color: black !important;
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid black;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &::placeholder {
|
|
|
+ color: black !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ a:not(.aria-theme-independent, .el-carousel, .el-carousel *, img) {
|
|
|
+ color: blue !important;
|
|
|
+ }
|
|
|
+ &.aria-inverse-theme {
|
|
|
+ background: black !important;
|
|
|
+ color: white !important;
|
|
|
+ }
|
|
|
+ .aria-inverse-theme {
|
|
|
+ background: black !important;
|
|
|
+ color: white !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .aria-theme-blue {
|
|
|
+ background: blue !important;
|
|
|
+ color: yellow !important;
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid yellow;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ *:not(.aria-theme-independent, .el-carousel, .el-carousel *, img) {
|
|
|
+ background: blue !important;
|
|
|
+ color: yellow !important;
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid yellow;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &::placeholder {
|
|
|
+ color: yellow !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ a:not(.aria-theme-independent, .el-carousel, .el-carousel *, img) {
|
|
|
+ color: white !important;
|
|
|
+ }
|
|
|
+ &.aria-inverse-theme {
|
|
|
+ background: yellow !important;
|
|
|
+ color: blue !important;
|
|
|
+ }
|
|
|
+ .aria-inverse-theme {
|
|
|
+ background: yellow !important;
|
|
|
+ color: blue !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .aria-theme-yellow {
|
|
|
+ background: yellow !important;
|
|
|
+ color: black !important;
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid black;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ *:not(.aria-theme-independent, .el-carousel, .el-carousel *, img) {
|
|
|
+ background: yellow !important;
|
|
|
+ color: black !important;
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid black;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &::placeholder {
|
|
|
+ color: black !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ a:not(.aria-theme-independent, .el-carousel, .el-carousel *, img) {
|
|
|
+ color: blue !important;
|
|
|
+ }
|
|
|
+ &.aria-inverse-theme {
|
|
|
+ background: black !important;
|
|
|
+ color: yellow !important;
|
|
|
+ }
|
|
|
+ .aria-inverse-theme {
|
|
|
+ background: black !important;
|
|
|
+ color: yellow !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .aria-theme-black {
|
|
|
+ background: black !important;
|
|
|
+ color: yellow !important;
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid yellow;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ *:not(.aria-theme-independent, .el-carousel, .el-carousel *, img) {
|
|
|
+ background: black !important;
|
|
|
+ color: yellow !important;
|
|
|
+ &:focus {
|
|
|
+ outline: 2px solid yellow;
|
|
|
+ outline-offset: -2px;
|
|
|
+ &.aria-outline-out {
|
|
|
+ outline-offset: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &::placeholder {
|
|
|
+ color: yellow !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ a:not(.aria-theme-independent, .el-carousel, .el-carousel *, img) {
|
|
|
+ color: white !important;
|
|
|
+ }
|
|
|
+ &.aria-inverse-theme {
|
|
|
+ background: yellow !important;
|
|
|
+ color: black !important;
|
|
|
+ }
|
|
|
+ .aria-inverse-theme {
|
|
|
+ background: yellow !important;
|
|
|
+ color: black !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+body.aria-active {
|
|
|
+ margin-top: @accessibility-menu-height;
|
|
|
+}
|
|
|
+
|
|
|
+body.aria-active.aria-magnifying {
|
|
|
+ margin-bottom: @magnify-area-height;
|
|
|
+}
|
|
|
+
|
|
|
+html.aria-active {
|
|
|
+ scroll-padding-top: @accessibility-menu-height;
|
|
|
+}
|
|
|
+
|
|
|
+// 对于有data-aria-xxx-area attribute的元素,鼠标点击(或者点击其不可focus的子元素)时不应该导致focus到这个元素上,换言之,这种元素只应该能通过tab键focus。
|
|
|
+*[data-aria-navigation-area], *[data-aria-viewport-area], *[data-aria-interaction-area] {
|
|
|
+ pointer-events: none;
|
|
|
+ >* {
|
|
|
+ pointer-events: initial;
|
|
|
+ }
|
|
|
+}
|