kernel-dev-style.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988
  1. /*
  2. Generic XHTML / DocBook XHTML CSS Stylesheet.
  3. Browser wrangling and typographic design by
  4. Oyvind Kolas / pippin@gimp.org
  5. Customised for Poky by
  6. Matthew Allum / mallum@o-hand.com
  7. Thanks to:
  8. Liam R. E. Quin
  9. William Skaggs
  10. Jakub Steiner
  11. Structure
  12. ---------
  13. The stylesheet is divided into the following sections:
  14. Positioning
  15. Margins, paddings, width, font-size, clearing.
  16. Decorations
  17. Borders, style
  18. Colors
  19. Colors
  20. Graphics
  21. Graphical backgrounds
  22. Nasty IE tweaks
  23. Workarounds needed to make it work in internet explorer,
  24. currently makes the stylesheet non validating, but up until
  25. this point it is validating.
  26. Mozilla extensions
  27. Transparency for footer
  28. Rounded corners on boxes
  29. */
  30. /*************** /
  31. / Positioning /
  32. / ***************/
  33. body {
  34. font-family: Verdana, Sans, sans-serif;
  35. min-width: 640px;
  36. width: 80%;
  37. margin: 0em auto;
  38. padding: 2em 5em 5em 5em;
  39. color: #333;
  40. }
  41. h1,h2,h3,h4,h5,h6,h7 {
  42. font-family: Arial, Sans;
  43. color: #00557D;
  44. clear: both;
  45. }
  46. h1 {
  47. font-size: 2em;
  48. text-align: left;
  49. padding: 0em 0em 0em 0em;
  50. margin: 2em 0em 0em 0em;
  51. }
  52. h2.subtitle {
  53. margin: 0.10em 0em 3.0em 0em;
  54. padding: 0em 0em 0em 0em;
  55. font-size: 1.8em;
  56. padding-left: 20%;
  57. font-weight: normal;
  58. font-style: italic;
  59. }
  60. h2 {
  61. margin: 2em 0em 0.66em 0em;
  62. padding: 0.5em 0em 0em 0em;
  63. font-size: 1.5em;
  64. font-weight: bold;
  65. }
  66. h3.subtitle {
  67. margin: 0em 0em 1em 0em;
  68. padding: 0em 0em 0em 0em;
  69. font-size: 142.14%;
  70. text-align: right;
  71. }
  72. h3 {
  73. margin: 1em 0em 0.5em 0em;
  74. padding: 1em 0em 0em 0em;
  75. font-size: 140%;
  76. font-weight: bold;
  77. }
  78. h4 {
  79. margin: 1em 0em 0.5em 0em;
  80. padding: 1em 0em 0em 0em;
  81. font-size: 120%;
  82. font-weight: bold;
  83. }
  84. h5 {
  85. margin: 1em 0em 0.5em 0em;
  86. padding: 1em 0em 0em 0em;
  87. font-size: 110%;
  88. font-weight: bold;
  89. }
  90. h6 {
  91. margin: 1em 0em 0em 0em;
  92. padding: 1em 0em 0em 0em;
  93. font-size: 110%;
  94. font-weight: bold;
  95. }
  96. .authorgroup {
  97. background-color: transparent;
  98. background-repeat: no-repeat;
  99. padding-top: 256px;
  100. background-image: url("figures/kernel-dev-title.png");
  101. background-position: left top;
  102. margin-top: -256px;
  103. padding-right: 50px;
  104. margin-left: 0px;
  105. text-align: right;
  106. width: 740px;
  107. }
  108. h3.author {
  109. margin: 0em 0me 0em 0em;
  110. padding: 0em 0em 0em 0em;
  111. font-weight: normal;
  112. font-size: 100%;
  113. color: #333;
  114. clear: both;
  115. }
  116. .author tt.email {
  117. font-size: 66%;
  118. }
  119. .titlepage hr {
  120. width: 0em;
  121. clear: both;
  122. }
  123. .revhistory {
  124. padding-top: 2em;
  125. clear: both;
  126. }
  127. .toc,
  128. .list-of-tables,
  129. .list-of-examples,
  130. .list-of-figures {
  131. padding: 1.33em 0em 2.5em 0em;
  132. color: #00557D;
  133. }
  134. .toc p,
  135. .list-of-tables p,
  136. .list-of-figures p,
  137. .list-of-examples p {
  138. padding: 0em 0em 0em 0em;
  139. padding: 0em 0em 0.3em;
  140. margin: 1.5em 0em 0em 0em;
  141. }
  142. .toc p b,
  143. .list-of-tables p b,
  144. .list-of-figures p b,
  145. .list-of-examples p b{
  146. font-size: 100.0%;
  147. font-weight: bold;
  148. }
  149. .toc dl,
  150. .list-of-tables dl,
  151. .list-of-figures dl,
  152. .list-of-examples dl {
  153. margin: 0em 0em 0.5em 0em;
  154. padding: 0em 0em 0em 0em;
  155. }
  156. .toc dt {
  157. margin: 0em 0em 0em 0em;
  158. padding: 0em 0em 0em 0em;
  159. }
  160. .toc dd {
  161. margin: 0em 0em 0em 2.6em;
  162. padding: 0em 0em 0em 0em;
  163. }
  164. div.glossary dl,
  165. div.variablelist dl {
  166. }
  167. .glossary dl dt,
  168. .variablelist dl dt,
  169. .variablelist dl dt span.term {
  170. font-weight: normal;
  171. width: 20em;
  172. text-align: right;
  173. }
  174. .variablelist dl dt {
  175. margin-top: 0.5em;
  176. }
  177. .glossary dl dd,
  178. .variablelist dl dd {
  179. margin-top: -1em;
  180. margin-left: 25.5em;
  181. }
  182. .glossary dd p,
  183. .variablelist dd p {
  184. margin-top: 0em;
  185. margin-bottom: 1em;
  186. }
  187. div.calloutlist table td {
  188. padding: 0em 0em 0em 0em;
  189. margin: 0em 0em 0em 0em;
  190. }
  191. div.calloutlist table td p {
  192. margin-top: 0em;
  193. margin-bottom: 1em;
  194. }
  195. div p.copyright {
  196. text-align: left;
  197. }
  198. div.legalnotice p.legalnotice-title {
  199. margin-bottom: 0em;
  200. }
  201. p {
  202. line-height: 1.5em;
  203. margin-top: 0em;
  204. }
  205. dl {
  206. padding-top: 0em;
  207. }
  208. hr {
  209. border: solid 1px;
  210. }
  211. .mediaobject,
  212. .mediaobjectco {
  213. text-align: center;
  214. }
  215. img {
  216. border: none;
  217. }
  218. ul {
  219. padding: 0em 0em 0em 1.5em;
  220. }
  221. ul li {
  222. padding: 0em 0em 0em 0em;
  223. }
  224. ul li p {
  225. text-align: left;
  226. }
  227. table {
  228. width :100%;
  229. }
  230. th {
  231. padding: 0.25em;
  232. text-align: left;
  233. font-weight: normal;
  234. vertical-align: top;
  235. }
  236. td {
  237. padding: 0.25em;
  238. vertical-align: top;
  239. }
  240. p a[id] {
  241. margin: 0px;
  242. padding: 0px;
  243. display: inline;
  244. background-image: none;
  245. }
  246. a {
  247. text-decoration: underline;
  248. color: #444;
  249. }
  250. pre {
  251. overflow: auto;
  252. }
  253. a:hover {
  254. text-decoration: underline;
  255. /*font-weight: bold;*/
  256. }
  257. /* This style defines how the permalink character
  258. appears by itself and when hovered over with
  259. the mouse. */
  260. [alt='Permalink'] { color: #eee; }
  261. [alt='Permalink']:hover { color: black; }
  262. div.informalfigure,
  263. div.informalexample,
  264. div.informaltable,
  265. div.figure,
  266. div.table,
  267. div.example {
  268. margin: 1em 0em;
  269. padding: 1em;
  270. page-break-inside: avoid;
  271. }
  272. div.informalfigure p.title b,
  273. div.informalexample p.title b,
  274. div.informaltable p.title b,
  275. div.figure p.title b,
  276. div.example p.title b,
  277. div.table p.title b{
  278. padding-top: 0em;
  279. margin-top: 0em;
  280. font-size: 100%;
  281. font-weight: normal;
  282. }
  283. .mediaobject .caption,
  284. .mediaobject .caption p {
  285. text-align: center;
  286. font-size: 80%;
  287. padding-top: 0.5em;
  288. padding-bottom: 0.5em;
  289. }
  290. .epigraph {
  291. padding-left: 55%;
  292. margin-bottom: 1em;
  293. }
  294. .epigraph p {
  295. text-align: left;
  296. }
  297. .epigraph .quote {
  298. font-style: italic;
  299. }
  300. .epigraph .attribution {
  301. font-style: normal;
  302. text-align: right;
  303. }
  304. span.application {
  305. font-style: italic;
  306. }
  307. .programlisting {
  308. font-family: monospace;
  309. font-size: 80%;
  310. white-space: pre;
  311. margin: 1.33em 0em;
  312. padding: 1.33em;
  313. }
  314. .tip,
  315. .warning,
  316. .caution,
  317. .note {
  318. margin-top: 1em;
  319. margin-bottom: 1em;
  320. }
  321. /* force full width of table within div */
  322. .tip table,
  323. .warning table,
  324. .caution table,
  325. .note table {
  326. border: none;
  327. width: 100%;
  328. }
  329. .tip table th,
  330. .warning table th,
  331. .caution table th,
  332. .note table th {
  333. padding: 0.8em 0.0em 0.0em 0.0em;
  334. margin : 0em 0em 0em 0em;
  335. }
  336. .tip p,
  337. .warning p,
  338. .caution p,
  339. .note p {
  340. margin-top: 0.5em;
  341. margin-bottom: 0.5em;
  342. padding-right: 1em;
  343. text-align: left;
  344. }
  345. .acronym {
  346. text-transform: uppercase;
  347. }
  348. b.keycap,
  349. .keycap {
  350. padding: 0.09em 0.3em;
  351. margin: 0em;
  352. }
  353. .itemizedlist li {
  354. clear: none;
  355. }
  356. .filename {
  357. font-size: medium;
  358. font-family: Courier, monospace;
  359. }
  360. div.navheader, div.heading{
  361. position: absolute;
  362. left: 0em;
  363. top: 0em;
  364. width: 100%;
  365. background-color: #cdf;
  366. width: 100%;
  367. }
  368. div.navfooter, div.footing{
  369. position: fixed;
  370. left: 0em;
  371. bottom: 0em;
  372. background-color: #eee;
  373. width: 100%;
  374. }
  375. div.navheader td,
  376. div.navfooter td {
  377. font-size: 66%;
  378. }
  379. div.navheader table th {
  380. /*font-family: Georgia, Times, serif;*/
  381. /*font-size: x-large;*/
  382. font-size: 80%;
  383. }
  384. div.navheader table {
  385. border-left: 0em;
  386. border-right: 0em;
  387. border-top: 0em;
  388. width: 100%;
  389. }
  390. div.navfooter table {
  391. border-left: 0em;
  392. border-right: 0em;
  393. border-bottom: 0em;
  394. width: 100%;
  395. }
  396. div.navheader table td a,
  397. div.navfooter table td a {
  398. color: #777;
  399. text-decoration: none;
  400. }
  401. /* normal text in the footer */
  402. div.navfooter table td {
  403. color: black;
  404. }
  405. div.navheader table td a:visited,
  406. div.navfooter table td a:visited {
  407. color: #444;
  408. }
  409. /* links in header and footer */
  410. div.navheader table td a:hover,
  411. div.navfooter table td a:hover {
  412. text-decoration: underline;
  413. background-color: transparent;
  414. color: #33a;
  415. }
  416. div.navheader hr,
  417. div.navfooter hr {
  418. display: none;
  419. }
  420. .qandaset tr.question td p {
  421. margin: 0em 0em 1em 0em;
  422. padding: 0em 0em 0em 0em;
  423. }
  424. .qandaset tr.answer td p {
  425. margin: 0em 0em 1em 0em;
  426. padding: 0em 0em 0em 0em;
  427. }
  428. .answer td {
  429. padding-bottom: 1.5em;
  430. }
  431. .emphasis {
  432. font-weight: bold;
  433. }
  434. /************* /
  435. / decorations /
  436. / *************/
  437. .titlepage {
  438. }
  439. .part .title {
  440. }
  441. .subtitle {
  442. border: none;
  443. }
  444. /*
  445. h1 {
  446. border: none;
  447. }
  448. h2 {
  449. border-top: solid 0.2em;
  450. border-bottom: solid 0.06em;
  451. }
  452. h3 {
  453. border-top: 0em;
  454. border-bottom: solid 0.06em;
  455. }
  456. h4 {
  457. border: 0em;
  458. border-bottom: solid 0.06em;
  459. }
  460. h5 {
  461. border: 0em;
  462. }
  463. */
  464. .programlisting {
  465. border: solid 1px;
  466. }
  467. div.figure,
  468. div.table,
  469. div.informalfigure,
  470. div.informaltable,
  471. div.informalexample,
  472. div.example {
  473. border: 1px solid;
  474. }
  475. .tip,
  476. .warning,
  477. .caution,
  478. .note {
  479. border: 1px solid;
  480. }
  481. .tip table th,
  482. .warning table th,
  483. .caution table th,
  484. .note table th {
  485. border-bottom: 1px solid;
  486. }
  487. .question td {
  488. border-top: 1px solid black;
  489. }
  490. .answer {
  491. }
  492. b.keycap,
  493. .keycap {
  494. border: 1px solid;
  495. }
  496. div.navheader, div.heading{
  497. border-bottom: 1px solid;
  498. }
  499. div.navfooter, div.footing{
  500. border-top: 1px solid;
  501. }
  502. /********* /
  503. / colors /
  504. / *********/
  505. body {
  506. color: #333;
  507. background: white;
  508. }
  509. a {
  510. background: transparent;
  511. }
  512. a:hover {
  513. background-color: #dedede;
  514. }
  515. h1,
  516. h2,
  517. h3,
  518. h4,
  519. h5,
  520. h6,
  521. h7,
  522. h8 {
  523. background-color: transparent;
  524. }
  525. hr {
  526. border-color: #aaa;
  527. }
  528. .tip, .warning, .caution, .note {
  529. border-color: #fff;
  530. }
  531. .tip table th,
  532. .warning table th,
  533. .caution table th,
  534. .note table th {
  535. border-bottom-color: #fff;
  536. }
  537. .warning {
  538. background-color: #f0f0f2;
  539. }
  540. .caution {
  541. background-color: #f0f0f2;
  542. }
  543. .tip {
  544. background-color: #f0f0f2;
  545. }
  546. .note {
  547. background-color: #f0f0f2;
  548. }
  549. .glossary dl dt,
  550. .variablelist dl dt,
  551. .variablelist dl dt span.term {
  552. color: #044;
  553. }
  554. div.figure,
  555. div.table,
  556. div.example,
  557. div.informalfigure,
  558. div.informaltable,
  559. div.informalexample {
  560. border-color: #aaa;
  561. }
  562. pre.programlisting {
  563. color: black;
  564. background-color: #fff;
  565. border-color: #aaa;
  566. border-width: 2px;
  567. }
  568. .guimenu,
  569. .guilabel,
  570. .guimenuitem {
  571. background-color: #eee;
  572. }
  573. b.keycap,
  574. .keycap {
  575. background-color: #eee;
  576. border-color: #999;
  577. }
  578. div.navheader {
  579. border-color: black;
  580. }
  581. div.navfooter {
  582. border-color: black;
  583. }
  584. .writernotes {
  585. color: red;
  586. }
  587. /*********** /
  588. / graphics /
  589. / ***********/
  590. /*
  591. body {
  592. background-image: url("images/body_bg.jpg");
  593. background-attachment: fixed;
  594. }
  595. .navheader,
  596. .note,
  597. .tip {
  598. background-image: url("images/note_bg.jpg");
  599. background-attachment: fixed;
  600. }
  601. .warning,
  602. .caution {
  603. background-image: url("images/warning_bg.jpg");
  604. background-attachment: fixed;
  605. }
  606. .figure,
  607. .informalfigure,
  608. .example,
  609. .informalexample,
  610. .table,
  611. .informaltable {
  612. background-image: url("images/figure_bg.jpg");
  613. background-attachment: fixed;
  614. }
  615. */
  616. h1,
  617. h2,
  618. h3,
  619. h4,
  620. h5,
  621. h6,
  622. h7{
  623. }
  624. /*
  625. Example of how to stick an image as part of the title.
  626. div.article .titlepage .title
  627. {
  628. background-image: url("figures/white-on-black.png");
  629. background-position: center;
  630. background-repeat: repeat-x;
  631. }
  632. */
  633. div.preface .titlepage .title,
  634. div.colophon .title,
  635. div.chapter .titlepage .title,
  636. div.article .titlepage .title
  637. {
  638. }
  639. div.section div.section .titlepage .title,
  640. div.sect2 .titlepage .title {
  641. background: none;
  642. }
  643. h1.title {
  644. background-color: transparent;
  645. background-repeat: no-repeat;
  646. height: 256px;
  647. text-indent: -9000px;
  648. overflow:hidden;
  649. }
  650. h2.subtitle {
  651. background-color: transparent;
  652. text-indent: -9000px;
  653. overflow:hidden;
  654. width: 0px;
  655. display: none;
  656. }
  657. /*************************************** /
  658. / pippin.gimp.org specific alterations /
  659. / ***************************************/
  660. /*
  661. div.heading, div.navheader {
  662. color: #777;
  663. font-size: 80%;
  664. padding: 0;
  665. margin: 0;
  666. text-align: left;
  667. position: absolute;
  668. top: 0px;
  669. left: 0px;
  670. width: 100%;
  671. height: 50px;
  672. background: url('/gfx/heading_bg.png') transparent;
  673. background-repeat: repeat-x;
  674. background-attachment: fixed;
  675. border: none;
  676. }
  677. div.heading a {
  678. color: #444;
  679. }
  680. div.footing, div.navfooter {
  681. border: none;
  682. color: #ddd;
  683. font-size: 80%;
  684. text-align:right;
  685. width: 100%;
  686. padding-top: 10px;
  687. position: absolute;
  688. bottom: 0px;
  689. left: 0px;
  690. background: url('/gfx/footing_bg.png') transparent;
  691. }
  692. */
  693. /****************** /
  694. / nasty ie tweaks /
  695. / ******************/
  696. /*
  697. div.heading, div.navheader {
  698. width:expression(document.body.clientWidth + "px");
  699. }
  700. div.footing, div.navfooter {
  701. width:expression(document.body.clientWidth + "px");
  702. margin-left:expression("-5em");
  703. }
  704. body {
  705. padding:expression("4em 5em 0em 5em");
  706. }
  707. */
  708. /**************************************** /
  709. / mozilla vendor specific css extensions /
  710. / ****************************************/
  711. /*
  712. div.navfooter, div.footing{
  713. -moz-opacity: 0.8em;
  714. }
  715. div.figure,
  716. div.table,
  717. div.informalfigure,
  718. div.informaltable,
  719. div.informalexample,
  720. div.example,
  721. .tip,
  722. .warning,
  723. .caution,
  724. .note {
  725. -moz-border-radius: 0.5em;
  726. }
  727. b.keycap,
  728. .keycap {
  729. -moz-border-radius: 0.3em;
  730. }
  731. */
  732. table tr td table tr td {
  733. display: none;
  734. }
  735. hr {
  736. display: none;
  737. }
  738. table {
  739. border: 0em;
  740. }
  741. .photo {
  742. float: right;
  743. margin-left: 1.5em;
  744. margin-bottom: 1.5em;
  745. margin-top: 0em;
  746. max-width: 17em;
  747. border: 1px solid gray;
  748. padding: 3px;
  749. background: white;
  750. }
  751. .seperator {
  752. padding-top: 2em;
  753. clear: both;
  754. }
  755. #validators {
  756. margin-top: 5em;
  757. text-align: right;
  758. color: #777;
  759. }
  760. @media print {
  761. body {
  762. font-size: 8pt;
  763. }
  764. .noprint {
  765. display: none;
  766. }
  767. }
  768. .tip,
  769. .note {
  770. background: #f0f0f2;
  771. color: #333;
  772. padding: 20px;
  773. margin: 20px;
  774. }
  775. .tip h3,
  776. .note h3 {
  777. padding: 0em;
  778. margin: 0em;
  779. font-size: 2em;
  780. font-weight: bold;
  781. color: #333;
  782. }
  783. .tip a,
  784. .note a {
  785. color: #333;
  786. text-decoration: underline;
  787. }
  788. .footnote {
  789. font-size: small;
  790. color: #333;
  791. }
  792. /* Changes the announcement text */
  793. .tip h3,
  794. .warning h3,
  795. .caution h3,
  796. .note h3 {
  797. font-size:large;
  798. color: #00557D;
  799. }