home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 June / PersonalComputerWorld-June2009-CoverdiscCD.iso / Software / Freeware / UltraDefrag 3 / ultradefrag-3.0.0.bin.i386.exe / handbook / kde-default.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2008-11-30  |  7.1 KB  |  328 lines

  1. /*
  2.     KDE-wide default CSS for HTML documentation (all media types).
  3.     Copyright (C) 2000 Frederik Fouvry
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  18.  
  19.     Send comments, suggestions, etc. to Frederik Fouvry 
  20.     <fouvry@sfs.nphil.uni-tuebingen.de>. */
  21.  
  22. /*
  23.    Important note: these setting may be overridden by localised CSS.  Do not 
  24.    add here any localization-sensitive style declarations.
  25.    
  26.    Any updates should be validated, e.g. http://jigsaw.w3.org/css-validator/ */
  27.  
  28. /* Note: "should be inherit" means that in a proper browser inherit should work.
  29.    Somehow Netscape manages to interpret "inherit" as bright green. 
  30.    Yuck.  */
  31.  
  32. body {
  33.   background: white none;
  34.   color: black;
  35.   font-family: sans-serif;
  36.   padding: 0 15px 0 0;
  37.   margin: 0; 
  38. }
  39.  
  40. .legalnotice, .copyright {
  41.   padding: 0;
  42.   margin: 0; 
  43. }
  44.  
  45. .abstract {
  46.   font-weight: bolder;
  47.   padding-right: 1em; 
  48. }
  49.  
  50. .toc, .list-of-tables {
  51.   padding-left: 1em;
  52. }
  53.  
  54. .sect1, .chapter, .synopsis, .appendix, .preface, .article, .refsect1, .index, .glossary, .section {
  55.   padding-left: 1em;
  56. }
  57.  
  58. .toc .chapter {
  59. padding: 0em 0em 0em 1em;
  60. }
  61.  
  62. .author {
  63.   color: rgb(82,80,82);
  64.   font-weight: bolder;
  65.   padding: 0;
  66.   margin: 0;
  67. }
  68.  
  69. .othercredit {
  70.   line-height: 1em;
  71. }
  72.  
  73. .chapter .sect1, .chapter .titlepage, .sect1 .titlepage, .article .titlepage {
  74.   padding: 0em;
  75. }
  76.  
  77. .titlepage {
  78.   padding-left: 1em;
  79.   padding-right: 1em;
  80. }
  81.  
  82. /* Links in Navigation */
  83.  
  84. .navLeft a:link, .navCenter a:link, .navRight a:link, .header a:link, .header a:visited, .bottom-nav a:link, .bottom-nav a:visited {
  85.   color: #41597A;
  86.   font-weight: bold;
  87. }
  88.  
  89.  
  90. /* Nice link colors for the main text */
  91.  
  92. :link { 
  93.   color: #41597A;
  94. }
  95.  
  96. :visited { 
  97.   color: #597ba8;
  98. }
  99.  
  100. .navLeft {
  101.   position: absolute; 
  102.   left: 20px;
  103. }
  104.  
  105. .navRight {
  106.   position: absolute; 
  107.   right: 20px;
  108. }
  109.  
  110. .navCenter {
  111.   text-align: center;
  112.   align: center;
  113. }
  114.  
  115. .bannerBottomLeft {
  116.   position: absolute; left: 0px;
  117. }
  118.  
  119. .bannerBottomRight {
  120.   position: absolute; right: 0px;
  121. }
  122.  
  123. .header {
  124.   background: #3E91EB none;
  125.   border-bottom: 1px solid #206dcd;
  126.   border-top: 1px solid white;
  127.   color: white;
  128.   font-size: small;
  129.   height: 1.7em;
  130.   line-height: 1em;
  131.   margin: 0px;
  132.   padding-bottom: 0px;
  133.   padding-left: 1em;
  134.   padding-right: 0px;
  135.   padding-top: 0px;
  136.   vertical-align: middle;
  137. }
  138.  
  139. .bottom-nav { 
  140.   background-color: #3E91EB; 
  141.   border-bottom: 1px solid #206dcd; 
  142.   border-top: 1px solid white;
  143.   color: white; 
  144.   font-size: small; 
  145.   height: 1.7em; 
  146.   line-height: 1em; 
  147.   margin: 0px; 
  148.   padding-bottom: 0px; 
  149.   padding-left: 1em;
  150.   padding-right: 0px; 
  151.   padding-top: 10px; 
  152.   vertical-align: middle; 
  153. }
  154.  
  155. #logo {
  156.   background: url('kde_logo_bg.png') transparent repeat;
  157. }
  158.  
  159. /* A little bit of padding makes the tables for keybindings etc much easier to read */
  160.  
  161. table { 
  162.   padding: 5px; 
  163.  
  164. dl { 
  165.   margin-top: 0em; 
  166.   margin-bottom: 0.5em; 
  167. }
  168.  
  169. dt { 
  170.   margin-top: 1em; 
  171. }
  172. div.toc dt { 
  173.   margin-top: 0px; 
  174. }
  175. div.screenshot { 
  176.   margin-bottom: 1em;
  177.   margin-top: 1em; 
  178. }
  179.  
  180. div.informalexample { 
  181.   border-style: dotted;
  182.   padding: 10px;
  183. }
  184.  
  185. /* But no padding for navigation elements */
  186.  
  187. .toplogo, .navbackground { 
  188.   padding: 0px; 
  189. }
  190.  
  191. table.programlisting
  192. table.screen { 
  193.   border-style: none;
  194.   background-color: rgb(224,224,224);
  195.   table-layout: auto; /* 100%? */
  196.   color: rgb(0,0,0); /* should be inherit */
  197. }
  198.  
  199. /* Same as previous block, but more general (previous is HTML only)
  200.    Not all browsers understand this yet.
  201.    TABLE[class~=programlisting]
  202.    TABLE[class~=screen] { border-style: none;
  203.           background-color: rgb(224,224,224);
  204.           table-layout: auto;
  205.           color: inherit;
  206. }
  207. */
  208.  
  209. p { 
  210.   text-align: justify; 
  211. }
  212.  
  213. /* More specific settings */
  214. /* Temporary patch: browsers break on bad HTML */
  215. /* P, H1, H2, H3, H4, H5, TD, TH { font-family: Helvetica, Arial, sans-serif;
  216.     } */
  217.  
  218. p, h1, h2, h3, h4, h5, h6, td, th { 
  219.   font-family: sans-serif;
  220. }
  221.  
  222. /* Visual cues for GUI elements etc in the text */
  223.  
  224. .guimenu, .guimenuitem, .guisubmenu { 
  225.   background-color: rgb(220,220,220);
  226.   color: rgb(0,0,0); /* should be inherit */
  227. }
  228.  
  229. .guilabel, .interface, .guibutton { 
  230.   background-color: rgb(220,220,220);
  231.   color: rgb(0,0,0); /* should be inherit */
  232. }
  233.  
  234. .shortcut { 
  235.   background-color: rgb(220,220,220);
  236.   color: rgb(0,0,0); /* should be inherit */
  237. }
  238.  
  239. .shortcut .keycap { 
  240.   background-color: rgb(220,220,220);
  241.   color: rgb(0,0,0); /* should be inherit */
  242. }
  243.  
  244. .question { 
  245.   font-weight: bolder; 
  246. }
  247.  
  248. .accel { 
  249.   background-color: rgb(220,220,220);
  250.   color: rgb(0,0,0); 
  251.   text-decoration: underline;
  252. }
  253.  
  254. .option, .command { 
  255.   background-color: rgb(255,255,255);
  256.   color: rgb(0,96,160);
  257.   font-weight: bold;
  258. }
  259.  
  260. h1, h2, h3, h4, h5, h6 { 
  261.   color: rgb(82,80,82);
  262.   background-color: transparent;
  263. }
  264.  
  265. .arg, .parameter, .replaceable { 
  266.   background-color: rgb(255,255,255);
  267.   color: rgb(0,128,64);
  268.   font-style: italic;
  269. }
  270.  
  271. .screen, .programlisting { 
  272.   background-color: rgb(220,220,220);
  273.   color: rgb(0,0,0); /* should be inherit */
  274.   border-style: dotted;
  275.   border-color: rgb(0,0,0);
  276.   border-width: thin; 
  277.   padding: 5px; 
  278.  
  279.  
  280. /* This one is set in inches because the admonitions are set in inches
  281.    and they're more difficult to change.  We can live with it in here, 
  282.    for the meantime, it gives consistent margins */
  283.  
  284. .example { 
  285.   margin-left: 0.5in; 
  286.   margin-right: 0.5in;
  287. }
  288.  
  289. div.mediaobject { 
  290.   /* float: right; */ 
  291.   /* might make it much nicer. although someone has to
  292.      understand the rules ;-)  You also don't want it to be
  293.      surrounded by text it doesn't refer to ...  But that
  294.      may be among others a question of writing style. */
  295.   text-align: center; /* a bit of a hack: it should
  296.                          position _images_ */
  297. }
  298.  
  299. .caption { 
  300.   margin: 0em 2em 3em 2em; 
  301.   text-align: center;
  302. }
  303.  
  304. .inlinemediaobject { 
  305.   vertical-align: baseline; 
  306.   padding-right: 1em;
  307.   padding-left: 1em;        
  308. }
  309.  
  310. /* An idea that could be nice: a search engine looking for specific
  311. classes could display them in some conspicuous color.  All that is
  312. needed is an on the fly generated style element/style sheet. */
  313.  
  314. /* Only used in the hand-made HTML license texts */
  315. body.license { 
  316.   background-color: rgb(255,255,255);
  317.   text-align: justify; 
  318.   color: rgb(0,0,0);
  319. }
  320. pre.license { 
  321.   background-color: rgb(255,255,255);
  322.   font-family: monospace;
  323.   color: rgb(0,0,0);
  324. }
  325.  
  326.