playground.css 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. /*
  2. The AGI playground: files, editor, output and floating tool windows.
  3. Built on the tokens of docs.css.
  4. */
  5. .kind-playground body { overflow: hidden; }
  6. .pg-main { height: 100dvh; padding-top: var(--top-h); }
  7. .pg [hidden] { display: none !important; }
  8. .pg {
  9. --pg-files-w: 248px;
  10. --pg-out-w: 42%;
  11. --pg-edit-bg: var(--bg);
  12. height: 100%;
  13. display: grid;
  14. grid-template-rows: auto 1fr auto;
  15. background: var(--bg-alt);
  16. font-size: 13px;
  17. }
  18. /* ---------- Toolbar ---------- */
  19. .pg-bar {
  20. display: flex; align-items: center; gap: 6px;
  21. padding: 8px 12px;
  22. border-bottom: 1px solid var(--line);
  23. background: var(--bg);
  24. min-width: 0;
  25. flex-wrap: wrap;
  26. position: relative; z-index: 80; /* menus open over the tool windows */
  27. }
  28. #pg-samples .pop-menu { right: auto; left: 0; transform-origin: top left; }
  29. .pg-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex: none; }
  30. .pg-wins { display: flex; gap: 2px; }
  31. .pg-bar-end { margin-left: auto; display: flex; gap: 4px; }
  32. .pg-btn {
  33. display: inline-flex; align-items: center; gap: 6px;
  34. height: 30px; padding: 0 11px;
  35. border-radius: 8px;
  36. font: inherit; font-size: 13px; font-weight: 500;
  37. color: var(--text);
  38. background: transparent;
  39. border: 0;
  40. cursor: pointer;
  41. white-space: nowrap;
  42. transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
  43. }
  44. .pg-btn:hover:not(:disabled) { background: var(--fill); }
  45. .pg-btn:disabled { opacity: 0.45; cursor: default; }
  46. .pg-btn .i { width: 15px; height: 15px; flex: none; }
  47. .pg-btn kbd { font: 11px var(--font); color: inherit; opacity: 0.7; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
  48. .pg-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
  49. .pg-run { background: var(--accent); color: #fff; padding-right: 8px; }
  50. .pg-run:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, #fff); }
  51. #pg-stop { color: var(--err); }
  52. .pg-primary { background: var(--accent); color: #fff; }
  53. .pg-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff) !important; }
  54. .pg-icon-btn {
  55. width: 28px; height: 28px; display: inline-grid; place-items: center;
  56. border: 0; border-radius: 7px; background: transparent; color: var(--text-2); cursor: pointer;
  57. }
  58. .pg-icon-btn:hover { background: var(--fill); color: var(--text); }
  59. .pg-icon-btn .i { width: 15px; height: 15px; }
  60. .pg-mode {
  61. font-size: 12px; color: var(--text-2);
  62. padding: 3px 9px; border-radius: 999px; background: var(--fill);
  63. white-space: nowrap;
  64. }
  65. .pg-mode b { color: var(--text); font-weight: 600; }
  66. .pg-samples-menu { width: 340px; max-height: 70vh; overflow: auto; }
  67. .pg-samples-menu h5 { margin: 8px 10px 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
  68. .pg-samples-menu button { display: block !important; text-align: left; }
  69. .pg-samples-menu button small { display: block; color: var(--text-2); font-size: 12px; margin-top: 1px; white-space: normal; }
  70. /* ---------- Body ---------- */
  71. .pg-body {
  72. display: grid;
  73. grid-template-columns: var(--pg-files-w) minmax(260px, 1fr) 5px minmax(280px, var(--pg-out-w));
  74. min-height: 0;
  75. }
  76. .pg-pane-head {
  77. display: flex; align-items: center; justify-content: space-between;
  78. height: 36px; padding: 0 6px 0 12px;
  79. font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3);
  80. border-bottom: 1px solid var(--line-2);
  81. }
  82. .pg-pane-tools { display: flex; gap: 1px; }
  83. /* Files */
  84. .pg-files { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--bg-alt); }
  85. .pg-files.drop { box-shadow: inset 0 0 0 2px var(--accent); }
  86. .pg-tree { flex: 1; overflow: auto; padding: 6px; outline: none; }
  87. .pg-files-note { margin: 0; padding: 10px 12px; font-size: 11.5px; line-height: 1.45; color: var(--text-3); border-top: 1px solid var(--line-2); }
  88. .pg-files-note code { font-size: 11px; }
  89. .pg-node {
  90. display: flex; align-items: center; gap: 6px;
  91. height: 26px; padding-right: 4px; border-radius: 6px;
  92. cursor: default; white-space: nowrap; user-select: none;
  93. color: var(--text);
  94. }
  95. .pg-node:hover { background: var(--fill); }
  96. .pg-node.sel { background: color-mix(in srgb, var(--accent) 14%, transparent); }
  97. .pg-node.open-file .pg-name { font-weight: 600; }
  98. .pg-node .tw { width: 14px; height: 14px; flex: none; display: grid; place-items: center; color: var(--text-3); transition: transform 0.15s var(--ease); }
  99. .pg-node .tw .i { width: 11px; height: 11px; }
  100. .pg-node.expanded .tw { transform: rotate(90deg); }
  101. .pg-node .ic { width: 15px; height: 15px; flex: none; color: var(--text-2); }
  102. .pg-node .ic .i { width: 15px; height: 15px; }
  103. .pg-node.dir > .ic { color: var(--accent); }
  104. .pg-node .pg-name { overflow: hidden; text-overflow: ellipsis; flex: 1; }
  105. .pg-node .pg-root-label { color: var(--text-3); font-size: 11.5px; }
  106. .pg-node .acts { display: none; gap: 0; }
  107. .pg-node:hover .acts, .pg-node.sel .acts { display: flex; }
  108. .pg-node .acts button { width: 22px; height: 22px; border: 0; background: none; border-radius: 5px; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
  109. .pg-node .acts button:hover { background: var(--fill-2); color: var(--text); }
  110. .pg-node .acts .i { width: 13px; height: 13px; }
  111. .pg-node.changed .pg-name::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-left: 6px; vertical-align: middle; }
  112. .pg-size { color: var(--text-3); font-size: 11px; }
  113. /* Editor */
  114. .pg-editor { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--pg-edit-bg); }
  115. .pg-tabs { display: flex; height: 36px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: thin; background: var(--bg-alt); }
  116. .pg-tab {
  117. display: flex; align-items: center; gap: 6px;
  118. padding: 0 6px 0 12px; border: 0; border-right: 1px solid var(--line-2);
  119. background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; white-space: nowrap; cursor: pointer;
  120. }
  121. .pg-tab[aria-selected="true"] { background: var(--pg-edit-bg); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
  122. .pg-tab .x { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; color: var(--text-3); }
  123. .pg-tab .x:hover { background: var(--fill-2); color: var(--text); }
  124. .pg-tab .x .i { width: 11px; height: 11px; }
  125. .pg-tab.dirty .x::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); }
  126. .pg-tab.dirty .x .i { display: none; }
  127. .pg-tab.dirty .x:hover::before { display: none; }
  128. .pg-tab.dirty .x:hover .i { display: block; }
  129. .pg-code { flex: 1; display: flex; min-height: 0; position: relative; }
  130. .pg-gutter {
  131. flex: none; width: 48px; padding: 14px 10px 14px 0; overflow: hidden;
  132. font: 12.5px/1.6 var(--mono); color: var(--text-3); text-align: right;
  133. background: var(--pg-edit-bg); border-right: 1px solid var(--line-2);
  134. user-select: none;
  135. }
  136. .pg-gutter div.err { color: var(--err); font-weight: 700; }
  137. .pg-code-scroll { position: relative; flex: 1; min-width: 0; overflow: hidden; }
  138. .pg-hl, #pg-text {
  139. position: absolute; inset: 0;
  140. margin: 0; padding: 14px 16px;
  141. font: 12.5px/1.6 var(--mono);
  142. tab-size: 4; white-space: pre; overflow: auto;
  143. border: 0; letter-spacing: normal; word-spacing: normal;
  144. }
  145. .pg-hl { color: var(--text); pointer-events: none; overflow: hidden; }
  146. #pg-text {
  147. color: transparent; caret-color: var(--text); background: transparent;
  148. resize: none; outline: none;
  149. }
  150. #pg-text::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: transparent; }
  151. .pg-hl .err-line { background: color-mix(in srgb, var(--err) 12%, transparent); display: inline-block; min-width: 100%; }
  152. .pg-preview { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bg-alt); }
  153. .pg-preview img { max-width: 100%; max-height: calc(100% - 30px); object-fit: contain; box-shadow: var(--shadow); border-radius: 6px; background: repeating-conic-gradient(var(--fill) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
  154. .pg-preview .pg-bin { text-align: center; color: var(--text-2); }
  155. .pg-preview .pg-bin pre { text-align: left; font: 11.5px/1.5 var(--mono); background: var(--code-bg); padding: 12px; border-radius: 8px; max-width: 560px; overflow: auto; }
  156. .pg-empty { flex: 1; display: grid; place-items: center; color: var(--text-3); }
  157. .pg-split { cursor: col-resize; background: var(--line-2); transition: background-color 0.15s var(--ease); }
  158. .pg-split:hover, .pg-split.drag, .pg-split:focus-visible { background: var(--accent); outline: none; }
  159. /* Output */
  160. .pg-out { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
  161. .pg-out-tabs { display: flex; gap: 2px; height: 36px; align-items: center; padding: 0 6px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; background: var(--bg-alt); }
  162. .pg-out-tabs button {
  163. height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent;
  164. font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; white-space: nowrap;
  165. }
  166. .pg-out-tabs button:hover { color: var(--text); background: var(--fill); }
  167. .pg-out-tabs button[aria-selected="true"] { color: var(--text); background: var(--bg); box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
  168. .pg-out-tabs b { font-weight: 600; font-size: 11px; color: var(--text-3); }
  169. .pg-out-tabs b.err { color: var(--err); }
  170. .pg-out-body { flex: 1; min-height: 0; position: relative; }
  171. .pg-panel { position: absolute; inset: 0; overflow: auto; display: flex; flex-direction: column; }
  172. .pg-panel[hidden] { display: none; }
  173. .pg-hint { color: var(--text-3); margin: 18px; line-height: 1.55; }
  174. .pg-hint kbd { font: 12px var(--font); padding: 1px 6px; border-radius: 5px; background: var(--fill); }
  175. .pg-resp-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px 0; }
  176. .pg-resp-head:empty { display: none; }
  177. .pg-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-family: var(--mono); }
  178. .pg-chip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
  179. .pg-chip.bad { color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent); }
  180. .pg-chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
  181. .pg-resp-view { display: flex; gap: 2px; margin: 10px 12px 0; }
  182. .pg-resp-view button { font: inherit; font-size: 12px; border: 0; padding: 3px 10px; border-radius: 6px; background: transparent; color: var(--text-2); cursor: pointer; }
  183. .pg-resp-view button[aria-selected="true"] { background: var(--fill-2); color: var(--text); }
  184. .pg-resp { flex: 1; min-height: 0; padding: 10px 12px 12px; display: flex; flex-direction: column; }
  185. .pg-resp pre { margin: 0; flex: 1; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; background: var(--code-bg); border-radius: 10px; padding: 12px 14px; overflow: auto; }
  186. .pg-resp iframe { flex: 1; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 240px; }
  187. .pg-resp img { max-width: 100%; border-radius: 8px; align-self: flex-start; }
  188. .pg-error { border-radius: 10px; padding: 12px 14px; background: color-mix(in srgb, var(--err) 9%, transparent); color: var(--text); margin-bottom: 10px; }
  189. .pg-error strong { color: var(--err); }
  190. .pg-error pre { background: transparent; padding: 6px 0 0; font-size: 12px; color: var(--text-2); }
  191. .pg-error button { margin-top: 6px; }
  192. .pg-log { font: 12px/1.55 var(--mono); padding: 6px 0; }
  193. .pg-log:empty::before { content: attr(data-empty); display: block; padding: 12px 16px; color: var(--text-3); font-family: var(--font); }
  194. .pg-line { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 2px 12px; border-bottom: 1px solid var(--line-2); }
  195. .pg-line .t { color: var(--text-3); text-align: right; }
  196. .pg-line .src { color: var(--text-3); margin-right: 6px; }
  197. .pg-line .txt { white-space: pre-wrap; word-break: break-word; }
  198. .pg-line.agi .txt { color: var(--text-2); }
  199. .pg-line.warn { background: color-mix(in srgb, var(--warn) 7%, transparent); }
  200. .pg-line.warn .txt { color: var(--warn); }
  201. .pg-line.error .txt, .pg-line.agi .txt.bad { color: var(--err); }
  202. .pg-call { padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
  203. .pg-call-head { display: flex; gap: 8px; align-items: baseline; }
  204. .pg-call-head code { font-weight: 600; }
  205. .pg-call-head .rule { margin-left: auto; font-family: var(--font); font-size: 11px; color: var(--text-3); }
  206. .pg-call pre { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; color: var(--text-2); font: inherit; }
  207. .pg-call pre.res { color: var(--text); }
  208. .pg-change { display: flex; gap: 8px; align-items: center; padding: 5px 12px; border-bottom: 1px solid var(--line-2); }
  209. .pg-change .k { font-family: var(--font); font-size: 11px; font-weight: 600; width: 64px; }
  210. .pg-change .k.created { color: var(--ok); }
  211. .pg-change .k.modified { color: var(--accent); }
  212. .pg-change .k.deleted { color: var(--err); }
  213. .pg-change a { color: var(--text); cursor: pointer; }
  214. .pg-ws-log { flex: 1; }
  215. .pg-line.ws-out .txt { color: var(--accent); }
  216. .pg-line.ws-in .txt { color: var(--ok); }
  217. .pg-line.ws-meta .txt { color: var(--text-3); font-style: italic; }
  218. .pg-ws-send { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--bg); }
  219. .pg-ws-send input { flex: 1; }
  220. .pg-state { padding: 10px 14px 18px; }
  221. .pg-state h5 { margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
  222. .pg-state table { width: 100%; border-collapse: collapse; font-size: 12px; }
  223. .pg-state td, .pg-state th { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-family: var(--mono); word-break: break-all; }
  224. .pg-state th { font-family: var(--font); font-weight: 600; color: var(--text-3); font-size: 11px; }
  225. .pg-state p { color: var(--text-3); margin: 4px 0; }
  226. /* Status */
  227. .pg-status { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-top: 1px solid var(--line); background: var(--bg); color: var(--text-2); font-size: 12px; }
  228. .pg-status-end { margin-left: auto; color: var(--text-3); }
  229. .pg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
  230. .pg[data-state="ready"] .pg-dot { background: var(--ok); }
  231. .pg[data-state="running"] .pg-dot { background: var(--accent); animation: pg-pulse 1s infinite; }
  232. .pg[data-state="failed"] .pg-dot { background: var(--err); }
  233. @keyframes pg-pulse { 50% { opacity: 0.3; } }
  234. /* ---------- Tool windows ---------- */
  235. .pg-win {
  236. position: fixed; z-index: 60;
  237. top: 120px; left: calc(50% - 200px);
  238. width: 400px; max-width: calc(100vw - 16px);
  239. max-height: calc(100dvh - 132px);
  240. display: flex; flex-direction: column;
  241. background: var(--menu-bg);
  242. -webkit-backdrop-filter: saturate(180%) blur(20px);
  243. backdrop-filter: saturate(180%) blur(20px);
  244. border: 1px solid var(--line);
  245. border-radius: 12px;
  246. box-shadow: var(--shadow-lg);
  247. resize: both; overflow: hidden;
  248. min-width: 300px; min-height: 160px;
  249. }
  250. .pg-win-wide { width: 540px; }
  251. .pg-win[hidden] { display: none; }
  252. .pg-win.front { z-index: 61; }
  253. .pg-win-head {
  254. display: flex; align-items: center; justify-content: space-between;
  255. height: 38px; padding: 0 6px 0 12px; flex: none;
  256. font-weight: 600; font-size: 13px;
  257. border-bottom: 1px solid var(--line-2);
  258. cursor: grab; user-select: none; touch-action: none;
  259. }
  260. .pg-win-head:active { cursor: grabbing; }
  261. .pg-win-head > span { display: flex; align-items: center; gap: 8px; }
  262. .pg-win-head > span .i { width: 15px; height: 15px; color: var(--accent); }
  263. .pg-win-body { padding: 12px 14px 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
  264. .pg-win-body h4 { margin: 8px 0 -2px; font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
  265. .pg-note { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.5; }
  266. .pg-note code, .pg-win label code, .pg-win small code { font-size: 11.5px; }
  267. .pg-win label, .pg-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; color: var(--text-2); }
  268. .pg-label { font-size: 12px; font-weight: 500; color: var(--text-2); }
  269. .pg-win label small, .pg-label small { font-weight: 400; color: var(--text-3); }
  270. .pg-win label.pg-check { display: block; font-weight: 400; color: var(--text); line-height: 1.5; }
  271. .pg-check input { margin: 0 6px 0 0; vertical-align: -2px; }
  272. .pg-inline { flex-direction: row !important; align-items: center; gap: 8px !important; }
  273. .pg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  274. .pg-pair { display: flex; gap: 6px; }
  275. .pg-pair input { min-width: 0; }
  276. .pg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
  277. .pg-mono { font-family: var(--mono) !important; font-size: 12px !important; }
  278. .pg input[type="text"], .pg input[type="number"], .pg select, .pg textarea {
  279. font: inherit; font-size: 13px; color: var(--text);
  280. background: var(--bg); border: 1px solid var(--line); border-radius: 7px;
  281. padding: 6px 8px; width: 100%; min-width: 0;
  282. transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  283. }
  284. .pg select { padding-right: 4px; }
  285. .pg-inline select { width: auto; max-width: 320px; }
  286. .pg textarea { resize: vertical; line-height: 1.45; }
  287. .pg input:focus, .pg select:focus, .pg textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
  288. .pg input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
  289. .pg-json-state { margin: -4px 0 0; font-size: 11.5px; color: var(--text-3); min-height: 1em; }
  290. .pg-json-state.bad { color: var(--err); }
  291. .pg-kv { display: flex; flex-direction: column; gap: 4px; }
  292. .pg-kv-row { display: grid; grid-template-columns: 1fr 1.6fr 26px; gap: 4px; }
  293. .pg-rules { display: flex; flex-direction: column; gap: 8px; }
  294. .pg-rules:empty::before { content: attr(data-empty); color: var(--text-3); font-size: 12px; }
  295. .pg-rule { border: 1px solid var(--line); border-radius: 9px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
  296. .pg-rule.off { opacity: 0.55; }
  297. .pg-rule-top { display: flex; gap: 6px; align-items: center; }
  298. .pg-rule-top select { width: auto; flex: none; }
  299. .pg-rule-top input[type="text"] { flex: 1; }
  300. .pg-rule-top input[type="number"] { width: 72px; flex: none; }
  301. .pg-rule-more { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  302. .pg-rule label { font-size: 11.5px; }
  303. /* Dialog */
  304. .pg-dialog { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0, 0, 0, 0.32); }
  305. .pg-dialog[hidden] { display: none; }
  306. .pg-dialog-box { width: min(420px, calc(100vw - 32px)); background: var(--bg-elev); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
  307. .pg-dialog-msg { margin: 0; line-height: 1.5; white-space: pre-wrap; }
  308. .pg-dialog-btns { display: flex; justify-content: flex-end; gap: 8px; }
  309. .pg-dialog-btns .pg-btn:not(.pg-primary) { box-shadow: inset 0 0 0 1px var(--line); }
  310. .pg-noscript { padding: 40px; text-align: center; }
  311. /* ---------- Small screens ---------- */
  312. @media (max-width: 1100px) {
  313. .pg-btn span:not(:only-child) { display: none; }
  314. .pg-run span, .pg-run kbd { display: inline !important; }
  315. .pg-wins .pg-btn span { display: none; }
  316. }
  317. @media (max-width: 860px) {
  318. .kind-playground body { overflow: auto; }
  319. .pg-main { height: auto; }
  320. .pg { height: auto; }
  321. .pg-body { grid-template-columns: 1fr; grid-template-rows: auto 60vh 0 auto; }
  322. .pg-files { border-right: 0; border-bottom: 1px solid var(--line); max-height: 240px; }
  323. .pg-split { display: none; }
  324. .pg-out { min-height: 50vh; border-top: 1px solid var(--line); }
  325. .pg-win { left: 8px !important; right: 8px; top: 70px !important; width: auto !important; }
  326. .pg-grid2 { grid-template-columns: 1fr; }
  327. }