Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/html/lib/onyx/design/toolbar.html
blob: 495524d8e7667c3232bc61c7b622d42982d64172 (plain)
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
<!doctype html>
<html>
<head>
	<title>inline: onyx toolbar design</title>
	<link href="../source/css/onyx.css" rel="stylesheet" type="text/css" />
	<style>
		/*
			the 'inline' class sets up a left-to-right container, with vertically centered children
		*/
		.inline {
			white-space: nowrap;
		}
		.inline > * { 
			display: inline-block;
			vertical-align: middle;
		}
		/**/
		.toolbar {
			padding: 8px;
			border: 1px solid #3A3A3A;
			background: #4C4C4C url(../images/gradient.png) repeat-x 0 bottom;
			color: white;
		}
		/**/
		.icon {
			width: 32px;
			height: 32px;
			background-image: url(menu-icon-bookmark.png);
		}
		.bord {
			border: 1px solid lightblue;
		}
		.big {
			font-size: 48px;
		}
		.pad {
			padding: 8px;
		}
		.mh {
			min-height: 124px;
		}
		.lh {
			line-height: 86px;
		}
	</style>
</head>
<body>
	<label>"toolbar" tests</label>
	<br /><br />
	<div>
		<label>no content</label>
		<div class="inline toolbar"></div>
		<br />

		<label>text only content</label>
		<div class="inline toolbar">Text</div>
		<br />

		<label>div content</label>
		<div class="inline toolbar">
			<div>Text in Div</div>
		</div>
		<br />

		<label>input content</label>
		<div class="inline toolbar">
			<input class="" />
		</div>
		<br />

		<label>icon content</label>
		<div class="inline toolbar">
			<div class="icon"></div>
		</div>
		<br />

		<label>combo content</label>
		<div class="inline toolbar">
			<div>Text in Div</div>
			<input class="" />
			<div class="icon"></div>
		</div>
		<br />

		<label>combo content: when the text is larger than non-text objects, vertical centering goes wonky</label>
		<div class="inline toolbar big">
			<div>Text in Div</div>
			<input class="" />
			<div class="icon"></div>
		</div>
		<br />

		<label>controlling height</label>
		<div class="inline toolbar big mh">
			<div>Text in Div</div>
			<input class="" />
			<div class="icon"></div>
		</div>
		<br />

		<label>controlling line-height</label>
		<div class="inline toolbar big lh pad">
			<div>Text in Div</div>
			<input class="" />
			<div class="icon"></div>
		</div>
		<br />
	</div>
</body>
</html>