/src/main/resources/org/apache/struts2/static/base/base.css

http://struts2yuiplugin.googlecode.com/ · CSS · 131 lines · 77 code · 20 blank · 34 comment · 0 complexity · deffb23465939d2a46a2c9245c258c47 MD5 · raw file

  1. /*
  2. Copyright (c) 2009, Yahoo! Inc. All rights reserved.
  3. Code licensed under the BSD License:
  4. http://developer.yahoo.net/yui/license.txt
  5. version: 2.7.0
  6. */
  7. /**
  8. * YUI Base
  9. * @module base
  10. * @namespace yui-
  11. * @requires reset, fonts
  12. */
  13. body {
  14. /* For breathing room between content and viewport. */
  15. margin:10px;
  16. }
  17. h1 {
  18. /* 18px via YUI Fonts CSS foundation. */
  19. font-size: 138.5%;
  20. }
  21. h2 {
  22. /* 16px via YUI Fonts CSS foundation. */
  23. font-size: 123.1%;
  24. }
  25. h3 {
  26. /* 14px via YUI Fonts CSS foundation. */
  27. font-size: 108%;
  28. }
  29. h1,h2,h3 {
  30. /* Top & bottom margin based on font size. */
  31. margin: 1em 0;
  32. }
  33. h1,h2,h3,h4,h5,h6,strong,dt {
  34. /* Bringing boldness back to headers and the strong element. */
  35. font-weight: bold;
  36. }
  37. optgroup {
  38. font-weight:normal;
  39. }
  40. abbr,acronym {
  41. /* Indicating to users that more info is available. */
  42. border-bottom: 1px dotted #000;
  43. cursor: help;
  44. }
  45. em {
  46. /* Bringing italics back to the em element. */
  47. font-style: italic;
  48. }
  49. del {
  50. /* Striking deleted phrases. */
  51. text-decoration: line-through;
  52. }
  53. blockquote,ul,ol,dl {
  54. /* Giving blockquotes and lists room to breath. */
  55. margin: 1em;
  56. }
  57. ol,ul,dl {
  58. /* Bringing lists on to the page with breathing room. */
  59. margin-left: 2em;
  60. }
  61. ol li {
  62. /* Giving OL's LIs generated numbers. */
  63. list-style: decimal outside;
  64. }
  65. ul li {
  66. /* Giving UL's LIs generated disc markers. */
  67. list-style: disc outside;
  68. }
  69. dl dd {
  70. /* Giving UL's LIs generated numbers. */
  71. margin-left: 1em;
  72. }
  73. th,td {
  74. /* Borders and padding to make the table readable. */
  75. border: 1px solid #000;
  76. padding: .5em;
  77. }
  78. th {
  79. /* Distinguishing table headers from data cells. */
  80. font-weight: bold;
  81. text-align: center;
  82. }
  83. caption {
  84. /* Coordinated margin to match cell's padding. */
  85. margin-bottom: .5em;
  86. /* Centered so it doesn't blend in to other content. */
  87. text-align: center;
  88. }
  89. sup {
  90. /* to preserve line-height and selector appearance */
  91. vertical-align: super;
  92. }
  93. sub {
  94. /* to preserve line-height and selector appearance */
  95. vertical-align: sub;
  96. }
  97. p,
  98. fieldset,
  99. table,
  100. pre {
  101. /* So things don't run into each other. */
  102. margin-bottom: 1em;
  103. }
  104. /* Opera requires 1px of passing to render with contemporary native chrome */
  105. button,
  106. input[type="checkbox"],
  107. input[type="radio"],
  108. input[type="reset"],
  109. input[type="submit"] {
  110. padding:1px;
  111. }