home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / Opera6beta1 / files / ow32enen600b1.exe / MIME.CSS < prev    next >
Encoding:
Cascading Style Sheet File  |  2001-04-06  |  2.7 KB  |  165 lines

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