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