dojo.css 4.5 KB

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