-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
166 lines (145 loc) · 2.96 KB
/
Copy pathstyles.css
File metadata and controls
166 lines (145 loc) · 2.96 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
:root {
--bg: #f6f8fb;
--card: #ffffff;
--muted: #6b7280;
--accent: #2563eb;
}
/* Ensure the popup and its document have explicit min sizes so the
Chrome action popup doesn't collapse to a tiny height. We clamp to
the viewport so the popup stays on-screen. */
html,
body {
margin: 0;
padding: 0;
/* Try to size the outer document to the desired popup size; Chrome
will still clamp/limit to available space. */
/* width:min(800px, 100vw);
height:min(600px, 100vh); */
min-width: 320px;
min-height: 200px;
}
body {
margin: 0;
font-family: Segoe UI, Roboto, Helvetica, Arial, sans-serif;
background: var(--bg);
color: #111827;
}
.wrap {
box-sizing: border-box;
padding: 12px;
/* Fill the document area which we've sized above. Using 100% here
prevents the content from collapsing the popup to a small height. */
width: 100%;
height: 100%;
overflow: auto;
/* allow scrolling inside popup instead of overflowing */
}
header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px
}
h1 {
font-size: 18px;
margin: 0
}
.controls button {
margin-left: 8px
}
.label {
display: block;
margin-bottom: 6px
}
textarea#urlInput {
/* Make textarea a little less wide than the popup to avoid horizontal overflow */
width: 100%;
/* max-width:760px; */
height: 64px;
padding: 8px;
box-sizing: border-box;
font-family: monospace;
border: 1px solid #d1d5db;
border-radius: 6px;
resize: vertical;
}
.params {
margin-top: 10px;
display: flex;
flex-direction: column;
gap: 8px
}
.param-row {
background: var(--card);
padding: 10px;
border-radius: 6px;
border: 1px solid #e5e7eb;
display: block
}
.param-top {
display: flex;
gap: 12px;
align-items: flex-start
}
.param-left {
display: flex;
flex: 1;
gap: 12px;
min-width: 0
}
.param-key {
min-width: 160px;
color: var(--muted);
font-weight: 600
}
.param-value {
flex: 1;
min-width: 0;
white-space: pre-wrap;
font-family: monospace;
overflow-wrap: anywhere;
word-break: break-word
}
.actions {
display: flex;
flex-direction: column;
gap: 6px;
margin-left: 8px;
flex: 0 0 auto
}
.actions button {
padding: 6px 8px;
font-size: 13px;
border-radius: 6px;
border: 1px solid #d1d5db;
background: #fff;
cursor: pointer
}
.actions button:hover {
background: #f3f4f6
}
.decoded {
margin-top: 8px;
padding: 8px;
background: #f9fafb;
border-radius: 6px;
border: 1px dashed #e5e7eb;
font-family: monospace;
white-space: pre-wrap;
overflow-wrap: anywhere;
word-break: break-word;
max-width: 100%
}
.decoded.hidden {
display: none
}
/* Prevent horizontal overflow of the popup itself */
html,
body {
overflow-x: hidden
}
.footer {
margin-top: 12px;
color: var(--muted);
font-size: 12px
}