Skip to content

Commit e528566

Browse files
committed
CSS basic user interface module example
1 parent 8350855 commit e528566

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

modules/basicUI.html

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width" />
6+
<title>CSS basic UI module sample</title>
7+
<style>
8+
body {
9+
font-family: sans-serif;
10+
font-size: 1.25rem;
11+
}
12+
[contenteditable] {
13+
cursor: copy;
14+
caret-color: magenta;
15+
border: 1px solid #ccc;
16+
}
17+
:focus {
18+
outline: dashed magenta 3px;
19+
outline-offset: 10px;
20+
}
21+
* {
22+
accent-color: magenta;
23+
}
24+
div, fieldset {
25+
margin: 20px;
26+
}
27+
textarea:nth-of-type(1) {
28+
cursor: wait;
29+
}
30+
textarea:nth-of-type(2) {
31+
resize: none;
32+
}
33+
textarea:nth-of-type(3) {
34+
pointer-events: none;
35+
}
36+
</style>
37+
</head>
38+
<body>
39+
<div><span contenteditable>Edit this text </span></div>
40+
<fieldset><legend>Play with these fake form controls</legend>
41+
<input type="checkbox" id="check">
42+
<input type="radio" name="a">
43+
<input type="radio" name="a">
44+
<input type="range">
45+
<progress>
46+
</fieldset>
47+
<fieldset>
48+
<legend>Be careful not to ruin usability: try resizing these.</legend>
49+
<textarea>
50+
cursor: wait;
51+
</textarea>
52+
<textarea>
53+
resize: none;
54+
</textarea>
55+
<textarea>
56+
pointer-events: none;
57+
</textarea>
58+
</fieldset>
59+
</body>
60+
</html>

0 commit comments

Comments
 (0)