theme: Move accessibility-related selectors into _a11y.scss

Since we have several accessibility-related selectors, it makes sense
to collect them in one stylesheet.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/938
This commit is contained in:
nana-4 2020-01-20 01:41:44 +09:00 committed by Florian Müllner
parent 90786509bb
commit 65b1e04f13
5 changed files with 26 additions and 24 deletions

View File

@ -40,6 +40,7 @@
@import 'widgets/app-grid'; @import 'widgets/app-grid';
@import 'widgets/dash'; @import 'widgets/dash';
// A11y / misc // A11y / misc
@import 'widgets/a11y';
@import 'widgets/misc'; @import 'widgets/misc';
@import 'widgets/tiled-previews'; @import 'widgets/tiled-previews';
@import 'widgets/keyboard'; @import 'widgets/keyboard';

View File

@ -0,0 +1,24 @@
// Pointer location
.ripple-pointer-location {
width: $ripple_size;
height: $ripple_size;
border-radius: $ripple_size * 0.5; // radius equals the size of the box to give us the curve
background-color: lighten(transparentize($selected_bg_color, 0.7), 30%);
box-shadow: 0 0 2px 2px lighten($selected_bg_color, 20%);
}
// Pointer accessibility notifications
.pie-timer {
width: 60px;
height: 60px;
-pie-border-width: 3px;
-pie-border-color: $selected_bg_color;
-pie-background-color: lighten(transparentize($selected_bg_color, 0.7), 40%);
}
// Screen zoom/Magnifier
.magnifier-zoom-region {
border: 2px solid $selected_bg_color;
&.full-screen { border-width: 0; }
}

View File

@ -13,12 +13,3 @@ $ripple_size: 50px;
// just a simple change to the border radius position // just a simple change to the border radius position
&:rtl { border-radius: 0 0 0 $ripple_size + 2px; } &:rtl { border-radius: 0 0 0 $ripple_size + 2px; }
} }
// Pointer location
.ripple-pointer-location {
width: $ripple_size;
height: $ripple_size;
border-radius: $ripple_size * 0.5; // radius equals the size of the box to give us the curve
background-color: lighten(transparentize($selected_bg_color, 0.7), 30%);
box-shadow: 0 0 2px 2px lighten($selected_bg_color, 20%);
}

View File

@ -7,21 +7,6 @@
border: 1px solid $selected_bg_color; border: 1px solid $selected_bg_color;
} }
// Pointer accessibility notifications
.pie-timer {
width: 60px;
height: 60px;
-pie-border-width: 3px;
-pie-border-color: $selected_bg_color;
-pie-background-color: lighten(transparentize($selected_bg_color, 0.7), 40%);
}
// Screen zoom/Magnifier
.magnifier-zoom-region {
border: 2px solid $selected_bg_color;
&.full-screen { border-width: 0; }
}
// User icon // User icon
.user-icon { .user-icon {
background-size: contain; background-size: contain;

View File

@ -6,6 +6,7 @@ theme_sources = files([
'gnome-shell-sass/_drawing.scss', 'gnome-shell-sass/_drawing.scss',
'gnome-shell-sass/_high-contrast-colors.scss', 'gnome-shell-sass/_high-contrast-colors.scss',
'gnome-shell-sass/_widgets.scss', 'gnome-shell-sass/_widgets.scss',
'gnome-shell-sass/widgets/_a11y.scss',
'gnome-shell-sass/widgets/_app-grid.scss', 'gnome-shell-sass/widgets/_app-grid.scss',
'gnome-shell-sass/widgets/_app-switcher.scss', 'gnome-shell-sass/widgets/_app-switcher.scss',
'gnome-shell-sass/widgets/_base.scss', 'gnome-shell-sass/widgets/_base.scss',