-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (66 loc) · 1.86 KB
/
index.html
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Placeholders</title>
<style>
div {
position: relative;
width: 200px;
margin-botom: 10px;
}
input, textarea {
display: block;
position: relative;
width: 100%;
padding: 1em 1em;
border: 1px solid #000;
z-index: 1;
background-color: transparent;
color: #000;
}
.__placeholded {
background-color: transparent;
}
.__placeholded-valued {
background-color: #FFF;
}
.__placeholder/*,
::-webkit-input-placeholder,
:-moz-placeholder, ::-moz-placeholder,
:-ms-input-placeholder */{
color: darkgrey;
/* DISABLE TEXT SECURITY */
text-security: none;
-khtml-text-security: none;
-webkit-text-security: none;
-mox-text-security: none;
-moz-user-select: -moz-none;
/* DISABLE TEXT USER SELECT. See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/ AND http://stackoverflow.com/questions/69430/is-there-a-way-to-make-text-unselectable-on-an-html-page*/
user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-mox-user-select: none;
-ms-user-select: none;
}
.__placeholded-focus {
color: darkgrey;
}
</style>
</head>
<body>
<div>
<input id="example01" class="oloko-bicho" type="text" placeholder="I have a value!" value="I have a value"><br>
</div>
<div>
<input id="example02" type="password" placeholder="Password placeholders!"><br>
</div>
<div>
<input id="example01" type="text"><br>
</div>
<div>
<textarea id="example03" placeholder="Textareas too!">OPA OPA OPA</textarea>
</div>
<script src="placeholder.js"></script>
</body>
</html>