forked from parcel-bundler/lightningcss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
126 lines (111 loc) · 3.76 KB
/
index.html
File metadata and controls
126 lines (111 loc) · 3.76 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
<!DOCTYPE html>
<html>
<head>
<title>Parcel CSS Playground</title>
<style>
html, body {
margin: 0;
height: 100%;
box-sizing: border-box;
font-family: -apple-system, system-ui;
color-scheme: dark light;
}
body {
display: flex;
flex-direction: column;
gap: 5px;
padding: 10px;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
}
header a {
color: inherit;
}
header svg {
fill: currentColor;
}
.targets {
display: table;
margin-top: 10px;
}
.targets label {
display: table-row;
}
.targets label span,
.targets label input {
display: table-cell;
}
main {
display: flex;
flex: 1
}
textarea {
flex: 1;
font: 14px monospace;
}
label {
display: block;
}
h3 {
margin-bottom: 4px;
}
div > h3:first-child {
margin-top: 0;
}
</style>
</head>
<body>
<header>
<h1>Parcel CSS Playground</h1>
<a href="https://github.com/parcel-bundler/parcel-css" target="_blank" aria-label="GitHub">
<svg aria-hidden="true" width="30" height="30" viewBox="0 0 20 20"> <title>GitHub</title> <path d="M10 0a10 10 0 0 0-3.16 19.49c.5.1.68-.22.68-.48l-.01-1.7c-2.78.6-3.37-1.34-3.37-1.34-.46-1.16-1.11-1.47-1.11-1.47-.9-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.9 1.52 2.34 1.08 2.91.83.1-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.1.39-1.99 1.03-2.69a3.6 3.6 0 0 1 .1-2.64s.84-.27 2.75 1.02a9.58 9.58 0 0 1 5 0c1.91-1.3 2.75-1.02 2.75-1.02.55 1.37.2 2.4.1 2.64.64.7 1.03 1.6 1.03 2.69 0 3.84-2.34 4.68-4.57 4.93.36.31.68.92.68 1.85l-.01 2.75c0 .26.18.58.69.48A10 10 0 0 0 10 0"></path> </svg>
</a>
</header>
<main>
<div>
<h3>Options</h3>
<label><input id="minify" type="checkbox" checked> Minify</label>
<label><input id="cssModules" type="checkbox"> CSS modules</label>
<label><input id="analyzeDependencies" type="checkbox"> Analyze dependencies</label>
<h3>Draft syntax</h3>
<label><input id="nesting" type="checkbox" checked> Nesting</label>
<h3>Targets</h3>
<div class="targets">
<label><span>Chrome: </span><input id="chrome" type="number" value="95"></label>
<label><span>Firefox: </span><input id="firefox" type="number"></label>
<label><span>Safari: </span><input id="safari" type="number"></label>
<label><span>Opera: </span><input id="opera" type="number"></label>
<label><span>Edge: </span><input id="edge" type="number"></label>
<label><span>IE: </span><input id="ie" type="number"></label>
<label><span>iOS: </span><input id="ios_saf" type="number"></label>
<label><span>Android: </span><input id="android" type="number"></label>
<label><span>Samsung: </span><input id="samsung" type="number"></label>
</div>
<label>
<h3>Unused symbols</h3>
<textarea id="unusedSymbols" rows="4" placeholder="Separate items with newlines"></textarea>
</label>
</div>
<textarea id="source">
.foo {
background: yellow;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
-webkit-transition: background 200ms;
-moz-transition: background 200ms;
transition: background 200ms;
&.bar {
color: green;
}
}</textarea>
<textarea id="compiled"></textarea>
<textarea id="compiledModules" hidden></textarea>
<textarea id="compiledDependencies" hidden></textarea>
</main>
<script type="module" src="playground.js"></script>
</body>
</html>