-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathstyles.js
More file actions
79 lines (69 loc) · 1.49 KB
/
styles.js
File metadata and controls
79 lines (69 loc) · 1.49 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import styled from '@emotion/styled';
export const InlineControlsStyleWrapper = styled('div')`
line-height: 0;
position: relative;
& *,
*::before,
*::after {
box-sizing: border-box;
}
&:hover,
&:focus,
&:focus-visible,
&:focus-within {
outline: 1px solid #1e1e1e;
outline-offset: -1px;
& .inline-controls {
opacity: 1;
pointer-events: all;
}
}
& .inline-controls-sticky-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
& .inline-controls {
border: 1px solid #1e1e1e;
border-radius: 2px;
display: grid;
gap: 1px;
grid-auto-flow: column;
grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
margin: 10px 10px 10px auto;
opacity: 0;
overflow: hidden;
pointer-events: none;
position: sticky;
top: 10px;
transition: opacity 250ms ease-out;
width: max-content;
& > div:not(:last-child) {
border-right: 1px solid #1e1e1e;
display: block;
min-width: max-content;
position: relative;
}
& .components-button {
--button-text: inherit;
--button-background: var(--wp--preset--color--white);
background: var(--button-background);
border-radius: 0;
color: var(--button-text);
height: 46px;
outline: 1px solid transparent;
padding: 6px 12px;
text-decoration: none;
white-space: nowrap;
&:focus:not(.disabled) {
outline: var(--wp-admin-theme-color);
}
&:hover:not(.disabled),
&:active:not(.disabled) {
--button-text: var(--wp-admin-theme-color);
}
}
}
`;