forked from n3b/umbrUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (56 loc) · 3.11 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!doctype html>
<html lang="en">
<head>
<title>umbrUI - CSS3 Shadow DOM styling</title>
<meta charset="utf-8">
<meta name="author" content="simurai">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.1/build/reset/reset-min.css">
<link rel="stylesheet" type="text/css" href="style.css"/>
<link rel="stylesheet" type="text/css" href="elements/radio.css"/>
<link rel="stylesheet" type="text/css" href="elements/checkbox.css"/>
<link rel="stylesheet" type="text/css" href="elements/range.css"/>
<link rel="stylesheet" type="text/css" href="elements/number.css"/>
</head>
<body>
<ul>
<!-- number -->
<li>
<input type="number" min="1" max="99" value="78" />
</li>
<!-- range -->
<li>
<input type="range" />
</li>
<!-- checkbox -->
<li>
<input type="checkbox" data-icon1="♀" data-icon2="♂" />
</li>
<!-- radio -->
<li>
<input type="radio" name="radio" data-icon="❮❮" /><input type="radio" name="radio" data-icon="►" /><input type="radio" name="radio" data-icon="❯❯" />
</li>
</ul>
<article>
<h1>umbr<span class="glow">UI</span></h1>
<h2>Experimental Shadow DOM styling of <input> elements</h2>
<p><a href="http://glazkov.com/2011/01/14/what-the-heck-is-shadow-dom/">What the Heck is Shadow DOM?</a> So there! Basically this demo is about selecting those special pseudo elements and style them with CSS. And to make this Shadow-DOMing game even more fun, more rules: <strong>No images</strong>, <strong>no extra markup</strong> and <strong>no JavaScript</strong> (the browser already adds the functionality). If you're curious about the name umbrUI.. Umbra means shadow in latin.</p>
<p><strong>Browser support</strong>: <strong>WebKit</strong>. Note that other browsers also allow Shadow DOM styling, but to keep things a little simpler, it's just WebKit for now. In case, here some <a href="http://dribbble.com/simurai/projects/381-umbrUI">screenshots</a>. So, dear Copy&Paste kids.. this is just a demo and not meant to be used in production. As said above, it has no cross-browser support and didn't get tested at all.</p>
<p><strong>Credits</strong>: Made by <a href="http://simurai.com">simurai</a>. The Rocker switch is based on <a href="http://drbl.in/55489"> Mike Bernardo's original design</a>.</p>
<p class="tweet"><a href="http://twitter.com/share" class="twitter-share-button" data-via="simurai">Tweet</a></p>
</article>
<!-- Twitter -->
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<!-- Google -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-599923-1']);
_gaq.push(['_setDomainName', 'simurai.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script><!--/ Google -->
</body>
</html>