2018-06-14 00:40:29 +08:00
|
|
|
@mixin presenterIndicator() {
|
2018-10-19 04:37:14 +08:00
|
|
|
&:before {
|
|
|
|
opacity: 1;
|
|
|
|
top: var(--user-indicators-offset);
|
|
|
|
left: var(--user-indicators-offset);
|
|
|
|
bottom: auto;
|
|
|
|
right: auto;
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: var(--color-primary);
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
left: auto;
|
|
|
|
right: var(--user-indicators-offset);
|
2019-05-17 00:27:43 +08:00
|
|
|
letter-spacing: -.33rem;
|
2019-05-14 21:15:54 +08:00
|
|
|
}
|
2018-06-14 00:40:29 +08:00
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
|
|
|
|
:global(.browser-chrome) &:before,
|
|
|
|
:global(.browser-firefox) &:before {
|
|
|
|
padding: .45rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.browser-edge) &:before {
|
|
|
|
padding-top: var(--indicator-padding-top);
|
|
|
|
padding-left: var(--indicator-padding-left);
|
|
|
|
padding-right: var(--indicator-padding-right);
|
|
|
|
padding-bottom: var(--indicator-padding-bottom);
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
padding-right: var(--indicator-padding-left);
|
|
|
|
padding-left: var(--indicator-padding-right);
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin indicatorStyles() {
|
|
|
|
&:after {
|
|
|
|
opacity: 1;
|
|
|
|
width: 1.2rem;
|
|
|
|
height: 1.2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.browser-edge) &:after {
|
|
|
|
padding-top: var(--indicator-padding-top);
|
|
|
|
padding-left: var(--indicator-padding-left);
|
|
|
|
padding-right: var(--indicator-padding-right);
|
|
|
|
padding-bottom: var(--indicator-padding-bottom);
|
2018-06-14 00:40:29 +08:00
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
}
|
2019-04-08 22:22:22 +08:00
|
|
|
|
|
|
|
@mixin highContrastOutline() {
|
|
|
|
/* Visible in Windows high-contrast themes */
|
|
|
|
outline: transparent;
|
|
|
|
outline-style: dotted;
|
|
|
|
outline-width: 2px;
|
|
|
|
}
|