-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
style.scss
39 lines (34 loc) · 1.56 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$regionOutlineRatio: 2;
@mixin region-selection-focus {
@include selected-block-focus( $regionOutlineRatio );
z-index: z-index(".is-focusing-regions {region} :focus::after");
}
[role="region"] {
position: relative;
// Handles the focus when we programatically send focus to this region
&.interface-interface-skeleton__content:focus-visible::after {
@include region-selection-focus;
}
}
.is-focusing-regions {
[role="region"]:focus::after {
@include region-selection-focus;
}
// Fixes for edge cases.
// Some of the regions are currently used for layout purposes as 'interface skeleton'
// items. When they're absolutely positioned or when they contain absolutely
// positioned elements, they may have no size therefore the focus style is not
// visible. For the future, it's important to take into consideration that
// the navigable regions should always have a computed size. For now, we can
// fix some edge cases but these CSS rules should be later removed in favor of
// a more abstracted approach to make the navigable regions focus style work
// regardles of the CSS used on other components.
// Header top bar when Distraction free mode is on.
&.is-distraction-free .interface-interface-skeleton__header .edit-post-header,
.interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,
.interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,
.interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,
.editor-post-publish-panel {
@include selected-block-outline( $regionOutlineRatio );
}
}