-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Expand file tree
/
Copy pathstyle.scss
More file actions
200 lines (175 loc) · 4.33 KB
/
style.scss
File metadata and controls
200 lines (175 loc) · 4.33 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
@use "@wordpress/base-styles/colors" as *;
@use "@wordpress/base-styles/mixins" as *;
@use "@wordpress/base-styles/variables" as *;
.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar) {
box-shadow: none;
.interface-complementary-area-header {
display: none;
}
}
.editor-collab-sidebar {
height: 100%;
overflow: hidden;
}
.editor-collab-sidebar-panel {
position: relative;
padding: $grid-unit-20 $grid-unit-20 $grid-unit-30;
height: 100%;
overflow: hidden;
}
.editor-collab-sidebar-panel__thread {
position: relative;
padding: $grid-unit-20;
border-radius: $radius-large;
border: $border-width solid $gray-300;
background-color: $gray-100;
overflow: hidden;
width: auto;
&.is-selected {
background-color: $white;
box-shadow: $elevation-medium;
z-index: 1;
}
&:focus {
outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
outline-offset: calc((-1 * var(--wp-admin-border-width-focus)));
}
&.is-floating {
left: $grid-unit-20;
right: $grid-unit-20;
position: absolute;
margin-top: $grid-unit-20;
// Inherits `--canvas-scroll` from the panel (set by `useFloatingBoard`)
// so each thread tracks the canvas scroll.
transform: translateY(var(--canvas-scroll, 0));
will-change: transform;
// Keep the reply input reachable when a thread is taller than the viewport
// (e.g. many replies on short content where the canvas can't scroll).
max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - #{$header-height + $grid-unit-80});
overflow-y: auto;
}
}
.editor-collab-sidebar-panel__user-name {
font-size: 12px;
font-weight: 400;
line-height: 16px;
text-align: left;
color: $gray-700;
text-transform: capitalize;
}
.editor-collab-sidebar-panel__user-time {
font-size: 12px;
font-weight: 400;
line-height: 16px;
text-align: left;
color: $gray-700;
}
.editor-collab-sidebar-panel__note-content {
p:last-child {
margin-bottom: 0;
}
}
.editor-collab-sidebar-panel__user-avatar {
border-radius: $radius-round;
flex-shrink: 0;
border-width: var(--wp-admin-border-width-focus);
border-style: solid;
padding: var(--wp-admin-border-width-focus);
background: $white;
}
.editor-collab-sidebar-panel__note-actions {
margin-left: auto;
button {
&.has-icon:not(.has-text) {
min-width: 24px;
padding: 0;
width: 24px;
height: 24px;
flex-shrink: 0;
}
}
}
.editor-collab-sidebar-panel__more-reply-separator {
&::before,
&::after {
content: "";
display: block;
width: 100%;
height: 1px;
background-color: $gray-300;
flex: 1;
}
}
.editor-collab-sidebar-panel__more-reply-button {
font-weight: $font-weight-medium;
}
.editor-collab-sidebar-panel__deleted-block-notice {
font-weight: $font-weight-medium;
color: $gray-700;
}
.editor-collab-sidebar-panel__resolution-text {
font-style: italic;
}
.editor-collab-sidebar-panel__note-form textarea {
@include input-control;
// Vertical padding is to match the standard 40px control height when rows=1,
// in conjunction with the 20px line-height.
// "Standard" metrics are 10px 12px, but subtracts 1px each to account for the border width.
padding: 9px 11px;
line-height: 20px !important;
display: block;
}
// Visually hidden until focused (skip link pattern)
.editor-collab-sidebar-panel__skip-to-note,
.editor-collab-sidebar-panel__skip-to-block {
position: absolute;
top: -9999px;
right: -9999px;
overflow: hidden;
clip-path: inset(50%);
background: $white !important;
z-index: -1;
&:focus {
overflow: visible;
clip-path: none;
z-index: 1;
right: $grid-unit-10;
}
}
.editor-collab-sidebar-panel__skip-to-note:focus {
top: $grid-unit-10;
}
.editor-collab-sidebar-panel__skip-to-block:focus {
top: auto;
bottom: $grid-unit-10;
}
.editor-note-indicator__avatar {
width: $icon-size;
border-radius: $radius-round;
margin-left: -12px;
border-width: var(--wp-admin-border-width-focus);
border-style: solid;
padding: var(--wp-admin-border-width-focus);
background: $white;
box-sizing: border-box;
&:first-child {
margin-left: 0;
}
}
.editor-note-indicator__overflow {
font-weight: $font-weight-medium;
}
.show-icon-labels {
.editor-note-indicator {
width: auto;
// Hide the user avatars container when labels are set to display...
div {
display: none;
}
// ... and display labels.
&::after {
content: attr(aria-label);
font-size: $helptext-font-size;
}
}
}