-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathstyle.module.css
More file actions
179 lines (160 loc) · 3.62 KB
/
Copy pathstyle.module.css
File metadata and controls
179 lines (160 loc) · 3.62 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
/* Fills the preview slot of the session frame's split layout; the slot owns
the panel's width, this panel just provides the border separator. */
.root {
display: flex;
flex-direction: column;
position: relative;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
background-color: var(--wpds-color-bg-surface-neutral);
border-left: 1px solid var(--wpds-color-stroke-surface-neutral);
overflow: hidden;
}
.header {
position: relative;
display: flex;
align-items: center;
gap: var(--wpds-dimension-padding-md);
padding: var(--wpds-dimension-padding-md) var(--wpds-dimension-padding-xl);
min-height: 32px;
flex-shrink: 0;
background-color: var(--wpds-color-bg-surface-neutral-strong, #fff);
border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral);
}
.browserControls {
display: flex;
align-items: center;
gap: 0;
flex-shrink: 0;
}
/* Back/forward read as one cluster; refresh is a different kind of action,
so set it slightly apart. */
.refreshControl {
margin-inline-start: var(--wpds-dimension-gap-xs);
}
.browserLocation {
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: center;
min-width: 0;
padding: 0 var(--wpds-dimension-padding-md);
text-align: center;
}
.browserTitle {
display: inline-block;
min-width: 0;
max-width: min(420px, 100%);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--wpds-color-fg-content-neutral);
font-size: var(--wpds-typography-font-size-xs);
font-weight: 600;
line-height: 16px;
}
.annotationControls {
display: flex;
align-items: center;
gap: var(--wpds-dimension-padding-xs);
flex-shrink: 0;
}
/* 2px bar overlapping the header's bottom border, like a browser's page-load
indicator. The inner span is scaled by inline style as progress advances. */
.loadingProgress {
position: absolute;
bottom: -1px;
left: 0;
right: 0;
z-index: 1;
height: 2px;
overflow: hidden;
pointer-events: none;
background-color: transparent;
}
.loadingProgress span {
position: absolute;
inset: 0;
display: block;
width: 100%;
background-color: var(--wpds-color-fg-interactive-brand, #2563eb);
transform-origin: left center;
transition: transform 160ms ease-out;
}
.separator {
width: 1px;
height: 14px;
background-color: var(--wpds-color-stroke-surface-neutral);
opacity: 0.6;
}
.headerSpacer {
flex: 1;
}
.body {
flex: 1;
min-height: 0;
display: flex;
position: relative;
background-color: var(--wpds-color-bg-surface-neutral-strong, #fff);
overflow: hidden;
}
.spinnerOverlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
background-color: color-mix(
in srgb,
var(--wpds-color-bg-surface-neutral-strong, #fff) 60%,
transparent
);
}
.spinner {
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid var(--wpds-color-stroke-surface-neutral);
border-top-color: var(--wpds-color-fg-interactive-brand, #2563eb);
animation: sitePreviewSpin 0.8s linear infinite;
}
@keyframes sitePreviewSpin {
to {
transform: rotate(360deg);
}
}
.iframe {
flex: 1;
width: 100%;
height: 100%;
border: 0;
background-color: var(--wpds-color-bg-surface-neutral-strong, #fff);
}
.empty {
flex: 1;
display: flex;
flex-direction: column;
gap: var(--wpds-dimension-padding-md);
align-items: center;
justify-content: center;
padding: var(--wpds-dimension-padding-xl);
color: var(--wpds-color-fg-content-neutral-weak);
font-size: var(--wpds-typography-font-size-sm);
text-align: center;
}
.emptyText {
margin: 0;
}
.startIcon {
display: inline-flex;
width: 16px;
height: 16px;
margin-right: 4px;
}
.startIcon svg {
width: 100%;
height: 100%;
}