Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 1
/*
2
	dojo.css
3
	Baseline CSS file for general usage.
4
 
5
	This file is intended to be a "quick and dirty" stylesheet you can use to give
6
	a straight-up web page some basic styling without having to do the dirty work
7
	yourself.  It includes a modified version of YUI's reset.css (we pulled some
8
	of the list reset definitions, among other things), and then provides some very
9
	basic style rules to be applied to general HTML elements.
10
 
11
	This stylesheet is NOT intended to serve as the foundation for more complex things--
12
	including the use of a TABLE for layout purposes.  The table definitions in this
13
	file make the assumption that you will be using tables for thier declared purpose:
14
	displaying tabular data.
15
 
16
	If you are looking for a baseline stylesheet using tables for grid layout, you will
17
	need to supply your own layout rules to override the ones in this stylesheet.
18
 
19
	Applications using Dojo will function correctly without including this
20
	file, but it should provide sane defaults for many common things that page
21
	authors often need to set up manually.
22
 
23
	The Dojo Core uses this stylesheet to quickly style HTML-based tests and demos.  Feel
24
	free to use it as you will.
25
*/
26
 
27
/*****************************************************************************************/
28
 
29
/*
30
	The below are borrowed from YUI's reset style sheets for pages and fonts.
31
	We've verified w/ the YUI development team that these are entirely
32
	copyright Yahoo, written entirely by Nate Koechley and Matt Sweeney without
33
	external contributions.
34
 
35
	Copyright (c) 2007, Yahoo! Inc. All rights reserved.
36
	Code licensed under the BSD License:
37
	http://developer.yahoo.net/yui/license.txt
38
	version: 2.2.1
39
*/
40
 
41
body, div, dl, dt, dd, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
42
	margin: 0;
43
	padding: 0;
44
}
45
 
46
fieldset, img {
47
	border: 0 none;
48
}
49
 
50
address, caption, cite, code, dfn, th, var {
51
	font-style: normal;
52
	font-weight: normal;
53
}
54
 
55
caption, th {
56
	text-align: left;
57
}
58
 
59
q:before, q:after {
60
	content:"";
61
}
62
 
63
abbr, acronym {
64
	border:0;
65
}
66
/* End YUI imported code. */
67
 
68
/*****************************************************************************************/
69
 
70
/*
71
	Begin Dojo additions.
72
 
73
	Style definitions, based loosely on the Dijit Tundra theme.
74
	Relative unit calculations based on "Compose to a Vertical Rhythm",
75
	by Richard Rutter (http://24ways.org/2006/compose-to-a-vertical-rhythm)
76
 
77
	If changing the font size, make sure you do it in both
78
	percent and px (% for IE, px for everything else).
79
	% value based on default size of 16px (in most browsers).
80
	So if you want the default size to be 14px, set the
81
	% to 87% (14 / 16 = 0.875).
82
 
83
	Typical values:
84
	10px: 62.5%
85
	11px: 69% (68.75)
86
	12px: 75%
87
	13px: 81.25%
88
	14px: 87.5%
89
	16px: 100%
90
 
91
	Default: 13px, specified by the YUI imports.
92
*/
93
body {
94
	font: 13px Myriad,Arial,Helvetica,clean,sans-serif;
95
	*font-size: small;
96
	*font: x-small;
97
}
98
 
99
/* Headings */
100
h1 {
101
	font-size: 1.5em;
102
	font-weight: normal;
103
	line-height: 1em;
104
	margin-top: 1em;
105
	margin-bottom:0;
106
}
107
 
108
h2 {
109
	font-size: 1.1667em;
110
	font-weight: bold;
111
	line-height: 1.286em;
112
	margin-top: 1.929em;
113
	margin-bottom:0.643em;
114
}
115
 
116
h3, h4, h5, h6 {
117
	font-size: 1em;
118
	font-weight: bold;
119
	line-height: 1.5em;
120
	margin-top: 1.5em;
121
	margin-bottom: 0;
122
}
123
 
124
/* paragraphs, quotes and lists */
125
p {
126
	font-size: 1em;
127
	margin-top: 1.5em;
128
	margin-bottom: 1.5em;
129
	line-height: 1.5em;
130
}
131
 
132
blockquote {
133
	font-size: 0.916em;
134
	margin-top: 3.272em;
135
	margin-bottom: 3.272em;
136
	line-height: 1.636em;
137
	padding: 1.636em;
138
	border-top: 1px solid #ccc;
139
	border-bottom: 1px solid #ccc;
140
}
141
 
142
ol li, ul li {
143
	font-size: 1em;
144
	line-height: 1.5em;
145
	margin: 0;
146
}
147
 
148
/* pre and code */
149
pre, code {
150
	font-size:115%;
151
	*font-size:100%;
152
	font-family: Courier, "Courier New";
153
	background-color: #efefef;
154
	border: 1px solid #ccc;
155
}
156
 
157
pre {
158
	border-width: 1px 0;
159
	padding: 1.5em;
160
}
161
 
162
/*
163
	Tables
164
 
165
	Note that these table definitions make the assumption that you are using tables
166
	to display tabular data, and NOT using tables as layout mechanisms.  If you are
167
	using tables for layout, you will probably want to override these rules with
168
	more specific ones.
169
 
170
	These definitions make tabular data look presentable, particularly when presented
171
	inline with paragraphs.
172
*/
173
table {  font-size:100%; }
174
 
175
table.dojoTabular {
176
	border-collapse: collapse;
177
	border-spacing: 0;
178
	border: 1px solid #ccc;
179
	margin: 0 1.5em;
180
}
181
 
182
.dojoTabular th {
183
	text-align: center;
184
	font-weight: bold;
185
}
186
 
187
table.dojoTabular thead, table.dojoTabular tfoot {
188
	background-color: #efefef;
189
	border: 1px solid #ccc;
190
	border-width: 1px 0;
191
}
192
 
193
table.dojoTabular thead tr th,
194
table.dojoTabular thead tr td,
195
table.dojoTabular tbody tr td,
196
table.dojoTabular tfoot tr td {
197
	padding: 0.25em 0.5em;
198
}