Skip to content

Commit 6b691e6

Browse files
committed
update playground
1 parent d5a11da commit 6b691e6

1 file changed

Lines changed: 31 additions & 27 deletions

File tree

playground.html

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>tabwrap playground</title>
77
<script type="text/javascript" src="./playground-dist.js" defer></script>
8-
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
98
<style>
109
:root {
1110
/* https://tailwindcss.com/docs/customizing-colors#color-palette-reference */
1211
--black: #000;
12+
--white: #fff;
1313
--blueGray-50: #F8FAFC;
1414
--blueGray-100: #F1F5F9;
1515
--amber-50: #FFFBEB;
@@ -22,7 +22,7 @@
2222

2323
#playground-instructions {
2424
border-radius: 5px;
25-
font-weight: 600;
25+
font-weight: 700;
2626
font-size: 30px;
2727
text-align: center;
2828
border-radius: 5px;
@@ -31,6 +31,28 @@
3131
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
3232
}
3333

34+
body {
35+
padding: 20px;
36+
}
37+
38+
main {
39+
max-width: 560px;
40+
margin: 0 auto 150px auto;
41+
display: flex;
42+
flex-direction: column;
43+
gap: 40px 0;
44+
}
45+
46+
main h1 {
47+
padding: 10px;
48+
text-align: right;
49+
font-size: 18px;
50+
font-weight: 700;
51+
background-color: var(--black);
52+
color: var(--white);
53+
border-radius: 12px 2px 12px 2px;
54+
}
55+
3456
section {
3557
outline: 2px solid var(--green-500);
3658
border-radius: 5px;
@@ -156,11 +178,9 @@
156178
.grid-with-custom-taborder .grid > [data-grid-area="quattro"] { grid-area: quattro; }
157179
</style>
158180
</head>
159-
<body class="p-5">
160-
<main class="mb-36 max-w-xl mx-auto flex flex-col gap-10">
161-
<h1 class="p-2 text-right text-lg font-bold bg-black text-white rounded-tl-xl rounded-br-xl rounded-bl-sm rounded-tr-sm">
162-
tabwrap playground
163-
</h1>
181+
<body>
182+
<main>
183+
<h1>tabwrap playground</h1>
164184

165185
<div id="playground-instructions">
166186
<!-- these instructions will be removed on page load if playground-dist.js have been generated -->
@@ -363,32 +383,16 @@ <h1 class="p-2 text-right text-lg font-bold bg-black text-white rounded-tl-xl ro
363383
</p>
364384
<div class="grid">
365385
<div data-grid-area="tre">
366-
<input type="text"
367-
class="input"
368-
tabindex="3"
369-
placeholder="tabindex 3"
370-
>
386+
<input type="text" tabindex="3" placeholder="tabindex 3">
371387
</div>
372388
<div data-grid-area="uno">
373-
<input type="text"
374-
class="input"
375-
tabindex="1"
376-
placeholder="tabindex 1"
377-
>
389+
<input type="text" tabindex="1" placeholder="tabindex 1">
378390
</div>
379391
<div data-grid-area="quattro">
380-
<input type="text"
381-
class="input"
382-
tabindex="4"
383-
placeholder="tabindex 4"
384-
>
392+
<input type="text" tabindex="4" placeholder="tabindex 4">
385393
</div>
386394
<div data-grid-area="zwei">
387-
<input type="text"
388-
class="input"
389-
tabindex="2"
390-
placeholder="tabindex 2"
391-
>
395+
<input type="text" tabindex="2" placeholder="tabindex 2">
392396
</div>
393397
</div>
394398
</section>

0 commit comments

Comments
 (0)