-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
style.scss
94 lines (80 loc) · 1.83 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.editor-document-bar {
display: flex;
align-items: center;
height: $button-size-compact;
justify-content: space-between;
// Flex items will, by default, refuse to shrink below a minimum
// intrinsic width. In order to shrink this flexbox item, and
// subsequently truncate child text, we set an explicit min-width.
// See https://dev.w3.org/csswg/css-flexbox/#min-size-auto
min-width: 0;
background: $gray-100;
border-radius: $grid-unit-05;
width: min(100%, 450px);
&:hover {
background-color: $gray-200;
}
.components-button {
border-radius: $grid-unit-05;
transition: all 0.1s ease-out;
@include reduce-motion("transition");
&:hover {
background: $gray-200;
}
}
}
.editor-document-bar__command {
flex-grow: 1;
color: var(--wp-block-synced-color);
overflow: hidden;
}
.editor-document-bar__title {
flex: 1;
overflow: hidden;
color: $gray-900;
gap: $grid-unit-05;
display: flex;
justify-content: center;
align-items: center;
// Offset the layout based on the width of the ⌘K label. This ensures the title is centrally aligned.
@include break-medium() {
padding-left: $grid-unit-30;
}
.editor-document-bar.is-global & {
color: var(--wp-block-synced-color);
}
.block-editor-block-icon {
min-width: $grid-unit-30;
flex-shrink: 0;
}
h1 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 70%;
color: currentColor;
}
}
.editor-document-bar__shortcut {
color: $gray-700;
min-width: $grid-unit-30;
display: none;
@include break-medium() {
display: initial;
}
}
.editor-document-bar__back.components-button.has-icon.has-text {
min-width: $button-size;
flex-shrink: 0;
color: $gray-700;
gap: 0;
z-index: 1;
position: absolute;
&:hover {
color: $gray-900;
background-color: transparent;
}
}
.editor-document-bar__post-type-label {
color: $gray-700;
}