home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 August / PCWorld_2001-08_cd.bin / Komunikace / opera512 / ow32enen512.exe / MIME.CSS < prev    next >
Encoding:
Cascading Style Sheet File  |  2001-06-18  |  2.9 KB  |  202 lines

  1. /* Stylesheet for email/news document */
  2. /* Copyright 2001 Opera Software */
  3.  
  4. /* Headers */
  5.  
  6. mime
  7. {
  8.     display:        block;
  9.     color: WindowText;
  10.     background:        Window;
  11. }
  12.  
  13.  headers
  14. {
  15.     display:        table;
  16.     width:        100%;
  17.     border-spacing:    0;
  18.     color:        ButtonText;
  19.     background:        ThreeDFace; 
  20.     border-left:    1px solid ThreeDHighlight;
  21.     border-top:        1px solid ThreeDHighlight;
  22.     border-right:    1px solid ThreeDShadow;
  23.     border-bottom:    1px solid ThreeDShadow;
  24.     padding:        4px 4px 4px 4px;
  25.     font:            status-bar;
  26. }
  27.  
  28. hdr {display:none;} /* Don't display any headers but the named ones:  */
  29. hdr[name="Date"]{display:table-row;}
  30. hdr[name="From"]{display:table-row;}
  31. hdr[name="To"]{display:table-row;}
  32. hdr[name="Reply-to"]{display:table-row;}
  33. hdr[name="Cc"]{display:table-row;}
  34. hdr[name="Bcc"]{display:table-row;}
  35. hdr[name="Subject"]{display:table-row;}
  36. hdr[name="Organization"]{display:table-row;}
  37.  
  38. showheaders
  39. {
  40.     padding:        5px 7px 5px 7px;
  41.     float:        right;
  42.     use-link-source:    current; 
  43.     set-link-source: attr(href); 
  44.     text-decoration: underline; 
  45.     color:    blue;
  46.     font:            status-bar; 
  47. }
  48.  
  49. hdricon 
  50. {
  51.     -replace: attr(src); 
  52.     width:8px; 
  53.     height:8px; 
  54.     margin:0px 4px
  55. }
  56.  
  57. /* Header name */
  58. n
  59. {
  60.     display:        table-cell;
  61.     width:        8em;
  62.     padding-left:     4px;
  63.     font-weight:    bold;
  64.     vertical-align:    top;
  65. }
  66.  
  67. n:after 
  68. {
  69.     content: ": ";
  70. }
  71.  
  72. /* Header value */
  73. v
  74. {
  75.     vertical-align:    top;
  76.     display: table-cell;  
  77.     padding-left: 4px; 
  78.     color: ButtonText;
  79.     background: ThreeDFace;
  80. }
  81.  
  82.  
  83. /* The "real"  (body) part */
  84.  
  85. body, div
  86. {
  87.     display:            block;
  88.     color: WindowText;
  89.     background-color:        Window;
  90. }    
  91.  
  92. div.plaintext
  93. {
  94.     padding:        0 8px;
  95. }
  96.  
  97. l
  98. {
  99.     display:        block;
  100.     padding:        0;
  101.     margin:        0;
  102. }
  103.  
  104. p
  105. {
  106.     display:        block;
  107.     white-space:    -pre-wrap;
  108.     padding:        0;
  109.     margin:        1em 0;
  110.     font-family:    "Courier New", monospace;
  111.     font-size:    9pt;
  112. }
  113.  
  114.  
  115. /* Attachments */
  116.  
  117. attach
  118. {
  119.     display:        block;
  120.     margin:        4px;
  121. }
  122.  
  123. caption
  124. {
  125.     display: none; 
  126.     color: WindowText;
  127.     background: Window; 
  128.     padding: 3px; 
  129.     margin: 0 8px;
  130. }
  131.  
  132. @media screen, projection
  133. {
  134.     item
  135.     {
  136.         display:        block;
  137.         float:        left;
  138.         use-link-source:    current;
  139.         set-link-source:    attr(href);
  140.         width:        13em;
  141.         height:        2em;
  142.     }
  143.  
  144.     icon
  145.     {
  146.         display: inline;
  147.         -replace: attr(src);
  148.         vertical-align:middle;
  149.     }
  150.  
  151.     filename
  152.     {
  153.         display:        inline;
  154.         color:        blue;
  155.         text-decoration:    underline;
  156.         vertical-align:    middle;
  157.         font:            status-bar; 
  158.     }
  159. }
  160.  
  161. /* Rules for how email messages should be printed out  */
  162.  
  163. @media print
  164. {
  165.     showheaders, hdricon 
  166.     {
  167.         display:none
  168.     }
  169.     
  170.     headers
  171.     {
  172.         border: 1pt solid black; 
  173.     }
  174.     
  175.     caption
  176.     {
  177.         display: block; 
  178.         border-top: 0.5pt solid; 
  179.         margin: 1em 0 0; 
  180.         padding: 0.3em 0;
  181.     }
  182.  
  183.     item, filename
  184.     {
  185.         display:inline; 
  186.         margin:0; 
  187.         padding:0;
  188.     }
  189.  
  190.     filename:before
  191.     {
  192.         content: "  " counter(attachment) ". "; 
  193.         counter-increment: attachment;
  194.     }
  195.  
  196.     icon
  197.     {
  198.         display: none;
  199.     }
  200. }
  201.  
  202.