Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
161 lines (157 loc) · 8.92 KB
/
Copy pathstyles.css
File metadata and controls
161 lines (157 loc) · 8.92 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
@font-face {
font-family: "Space Grotesk";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("fonts/space-grotesk-400.woff2") format("woff2");
}
@font-face {
font-family: "Space Grotesk";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
font-family: "Space Grotesk";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
font-family: "Space Grotesk";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("fonts/space-grotesk-700.woff2") format("woff2");
}
@font-face {
font-family: "DM Mono";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("fonts/dm-mono-400.woff2") format("woff2");
}
@font-face {
font-family: "DM Mono";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("fonts/dm-mono-500.woff2") format("woff2");
}
:root {
--ink: #152018;
--muted: #657269;
--paper: #f7f8f4;
--card: #ffffff;
--line: #dfe5dc;
--green: #1e8b5a;
--green-soft: #d8f3e3;
--red: #c44e50;
--red-soft: #ffe0de;
--yellow: #f0b84b;
--shadow: 0 18px 55px rgba(39, 61, 44, .08);
--sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
--mono: "DM Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
margin: 0;
color: var(--ink);
background: var(--paper);
font-family: var(--sans);
line-height: 1.5;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 38px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: 7px; border-radius: 8px; color: white; background: var(--ink); font-size: 1rem; letter-spacing: 0; }
.brand-accent { color: var(--green); }
.privacy-note { color: var(--muted); font-size: .75rem; font-weight: 500; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero { max-width: 680px; padding: 84px 0 38px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: .96; letter-spacing: -.075em; }
h1 span { color: var(--green); }
.intro { max-width: 520px; margin-bottom: 0; color: var(--muted); font-size: 1rem; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 18px; }
.prompt-card, .stat-card { border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); }
.prompt-card { padding: 16px 16px 13px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-heading label { display: flex; align-items: center; gap: 9px; font-size: .87rem; font-weight: 600; }
.prompt-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-family: var(--mono); font-size: .72rem; }
.badge-a { color: #866323; background: #fff1cc; }
.badge-b { color: #21704d; background: var(--green-soft); }
.clear-button, .reset-button { border: 0; color: var(--muted); background: transparent; font-size: .72rem; }
.clear-button:hover, .reset-button:hover, .clear-button:focus-visible, .reset-button:focus-visible { color: var(--green); }
textarea { display: block; width: 100%; min-height: 244px; resize: vertical; padding: 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: #fbfcfa; font-family: var(--mono); font-size: .76rem; line-height: 1.7; transition: border-color .2s, box-shadow .2s; }
textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.card-help { margin: 9px 2px 0; color: var(--muted); font-size: .7rem; }
.swap-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--paper); font-size: 1rem; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 72px; }
.stat-card { padding: 17px 18px 14px; }
.stat-label { color: var(--muted); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.stat-values { display: flex; align-items: baseline; gap: 10px; margin: 5px 0 1px; }
.stat-values strong { font-size: 1.45rem; letter-spacing: -.05em; }
.stat-values span { color: var(--muted); font-size: .8rem; }
.stat-delta { color: var(--muted); font-size: .69rem; }
.stat-delta.positive { color: var(--green); }
.stat-delta.negative { color: var(--red); }
.diff-section { border-top: 1px solid var(--line); padding-top: 31px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
h2 { margin-bottom: 0; font-size: 1.8rem; letter-spacing: -.06em; }
.diff-tools { display: flex; align-items: center; gap: 16px; }
.view-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.view-toggle button { border: 0; border-radius: 999px; padding: 6px 11px; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 600; }
.view-toggle button[aria-pressed="true"] { color: white; background: var(--ink); }
.view-toggle button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.legend { display: flex; gap: 13px; color: var(--muted); font-size: .72rem; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.legend-swatch.removed { background: var(--red-soft); border: 1px solid #f2aaa8; }
.legend-swatch.added { background: var(--green-soft); border: 1px solid #9ed5b5; }
.diff-panel { min-height: 160px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); font-family: var(--mono); font-size: .82rem; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-panel mark { padding: 2px 3px; border-radius: 4px; color: inherit; }
.diff-panel .diff-removed { background: var(--red-soft); color: #943d3f; text-decoration: line-through; text-decoration-color: #c44e50; }
.diff-panel .diff-added { background: var(--green-soft); color: #176541; }
.diff-panel.is-split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; font-size: .76rem; line-height: 1.65; }
.diff-colhead { padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: -.02em; }
.diff-colhead + .diff-colhead { border-left: 1px solid var(--line); }
.diff-line { min-height: 1.65em; padding: 2px 18px 3px; }
.diff-line.side-a { border-right: 1px solid var(--line); }
.diff-line.has-removed { background: #fff6f5; }
.diff-line.has-added { background: #f3fbf6; }
.match-note { margin: 0 0 10px; color: var(--muted); font-family: var(--sans); font-size: .8rem; }
.diff-panel.is-split .match-note { grid-column: 1 / -1; margin: 0; padding: 14px 18px 8px; }
.empty-state { min-height: 110px; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; font-family: var(--sans); }
.empty-state span { margin-bottom: 5px; color: var(--yellow); font-size: 1.5rem; }
.empty-state p { margin: 0; font-size: .85rem; }
.diff-panel.is-split .empty-state { grid-column: 1 / -1; }
.footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; color: var(--muted); font-size: .7rem; }
@media (max-width: 700px) {
.shell { width: min(100% - 28px, 560px); padding-top: 18px; }
.hero { padding: 60px 0 30px; }
.editor-grid { grid-template-columns: 1fr; gap: 12px; }
.swap-mark { transform: rotate(90deg); margin: 0 auto; }
.stats-row { margin-bottom: 54px; }
.stat-card { padding: 13px; }
.stat-values { gap: 5px; }
.stat-values strong { font-size: 1.15rem; }
.section-heading { align-items: start; flex-direction: column; gap: 11px; }
.diff-tools { align-items: start; flex-direction: column; gap: 10px; }
.diff-panel { padding: 17px; font-size: .74rem; }
.diff-colhead, .diff-line { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 430px) {
.privacy-note { font-size: .65rem; }
.stats-row { gap: 7px; }
.stat-label { font-size: .57rem; }
.stat-values span { font-size: .65rem; }
.stat-delta { font-size: .6rem; }
.footer { align-items: start; flex-direction: column; }
}