Skip to content
Source
Sign inSign up
TanStack/container
Open History to see the last commit

styles.css

168 lines2.3 KB

1:root {
2 font-family: Inter, ui-sans-serif, system-ui, sans-serif;
3 color: #e8ebf2;
4 background: #0a0c10;
5 font-synthesis: none;
6}
7​
8* {
9 box-sizing: border-box;
11​
12body {
13 margin: 0;
14 min-width: 320px;
16​
17main {
18 width: min(1080px, calc(100% - 32px));
19 margin: 32px auto;
21​
22header,
23form,
24.response-panel > div {
25 display: flex;
26 align-items: center;
27 gap: 12px;
29​
30header {
31 justify-content: space-between;
32 margin-bottom: 18px;
34​
35h1 {
36 margin: 0;
37 font-size: 18px;
38 font-weight: 650;
40​
41#status {
42 color: #aeb6c7;
43 font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
45​
46#status[data-state='ready'] {
47 color: #63df9b;
49​
50#status[data-state='error'] {
51 color: #ff848f;
53​
54.workspace,
55.response-panel {
56 overflow: hidden;
57 border: 1px solid #242936;
58 border-radius: 10px;
59 background: #101319;
61​
62.editor-label,
63.response-panel > div {
64 display: block;
65 padding: 10px 14px;
66 border-bottom: 1px solid #242936;
67 color: #8993a8;
68 font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
70​
71#source {
72 display: block;
73 width: 100%;
74 min-height: 430px;
75 resize: vertical;
76 border: 0;
77 outline: none;
78 padding: 18px;
79 color: #d9deea;
80 background: transparent;
81 font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
82 tab-size: 2;
84​
85form {
86 margin: 14px 0;
88​
89form label {
90 color: #8993a8;
91 font-size: 13px;
93​
94input,
95button {
96 height: 36px;
97 border: 1px solid #2b3242;
98 border-radius: 7px;
99 color: #e8ebf2;
100 background: #151922;
101 font: inherit;
103​
104input {
105 min-width: 220px;
106 padding: 0 11px;
108​
109button {
110 cursor: pointer;
111 padding: 0 14px;
113​
114button:hover {
115 border-color: #66718b;
117​
118button:disabled {
119 cursor: wait;
120 opacity: 0.55;
122​
123#request {
124 color: #07150e;
125 border-color: #63df9b;
126 background: #63df9b;
128​
129.response-panel > div {
130 display: flex;
131 justify-content: space-between;
133​
134#response {
135 min-height: 120px;
136 margin: 0;
137 padding: 18px;
138 white-space: pre-wrap;
139 font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
141​
142#preview {
143 display: block;
144 width: 100%;
145 min-height: 240px;
146 border: 0;
147 background: white;
149​
150#preview[hidden],
151#response[hidden] {
152 display: none;
154​
155@media (max-width: 680px) {
156 form {
157 align-items: stretch;
158 flex-direction: column;
159 }
160​
161 form label {
162 display: none;
163 }
164​
165 input {
166 width: 100%;
167 }