-
Notifications
You must be signed in to change notification settings - Fork 834
Expand file tree
/
Copy pathbasicUI.html
More file actions
65 lines (65 loc) · 1.4 KB
/
basicUI.html
File metadata and controls
65 lines (65 loc) · 1.4 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
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>CSS basic UI module sample</title>
<style>
body {
font-family: sans-serif;
font-size: 1.25rem;
}
[contenteditable] {
cursor: copy;
caret-color: magenta;
border: 1px solid #ccc;
}
:focus {
outline: dashed magenta 3px;
outline-offset: 10px;
}
* {
accent-color: magenta;
}
div,
fieldset {
margin: 20px;
}
textarea:nth-of-type(1) {
cursor: wait;
}
textarea:nth-of-type(2) {
resize: none;
}
textarea:nth-of-type(3) {
pointer-events: none;
}
</style>
</head>
<body>
<div><span contenteditable>Edit this text </span></div>
<fieldset>
<legend>Play with these fake form controls</legend>
<input type="checkbox" id="check" />
<input type="radio" name="a" />
<input type="radio" name="a" />
<input type="range" />
<progress></progress>
</fieldset>
<fieldset>
<legend>Be careful not to ruin usability: try resizing these.</legend>
<textarea>
cursor: wait;
</textarea
>
<textarea>
resize: none;
</textarea
>
<textarea>
pointer-events: none;
</textarea
>
</fieldset>
</body>
</html>