Posted By

bcmoney on 12/17/11


Tagged

css rss html xslt rss2html


Versions (?)

smb_xslrss.css


 / Published in: CSS
 

URL: http://bcmoney-mobiletv.com/blog/2010/12/08/js-transformer/

This was originally from Sean M. Burke (released into the public domain as of 2005-05-02): http://interglacial.com/rss/smb_xslrss.css

It is some styling for an RSS to HTML transformation via XSLT.

  1. /* Time-stamp: "2005-05-02 20:54:36 ADT" sburke
  2.  by [email protected] - I hereby release this CSS code into the public domain.
  3. */
  4.  
  5. * {
  6. display: block;
  7. border-top: 2px groove #000060;
  8. border-left: 2px groove #000060;
  9. padding: 2px 2px 2px 15px;
  10. }
  11.  
  12. link:before { content: "\00a0\00a0 URL:\00a0\00a0\00a0\00a0 " }
  13. webMaster:before { content: "\00a0\00a0 Feed admin: " }
  14. lastBuildDate:before { content: "\00a0\00a0 Last feed update: " }
  15. updateFrequency:before { content: "\00a0\00a0 Update Frequency: " }
  16. updateFrequency:after { content: " times" }
  17. updatePeriod:before { content: "\00a0\00a0 Update Period: " }
  18. updateBase:before { content: "\00a0\00a0 Update Base: " }
  19. language:before { content: "\00a0\00a0 Language: " }
  20. docs:before { content: "\00a0\00a0 Read me: " }
  21. description:before { content: "\21D2 "}
  22.  
  23. docs { color: #fcc; }
  24.  
  25. image, guid, ttl, skipHours, skipDays, updateBase { display: none }
  26.  
  27. channel description { font-size: 150%; }
  28. item description { font-size: 110%; }
  29.  
  30. :root:before {
  31. content: "\2022\00a0\00a0\00a0 Don't panic. This data file is meant to be read in an RSS reader.\00a0\00a0 See http://interglacial.com/rss/about.html \00a0\00a0\00a0\2022";
  32. }
  33.  
  34. :root {
  35. border: none;
  36. padding: 0;
  37. padding-top: .7em;
  38. margin: 2px;
  39. font-size: 11pt;
  40. display: block;
  41. background-color: black;
  42. color: white;
  43. }
  44.  
  45. channel {
  46. border: 0;
  47. padding: 0;
  48. margin-top: .9em;
  49. }
  50.  
  51. channel > title {
  52. font-size: 230%;
  53. font-style: italic;
  54. }
  55.  
  56. item {
  57. padding: 0;
  58. border: 0;
  59. border-left: 9px solid #80d0d0;
  60. margin: 25px 0 20px 0;
  61. }
  62.  
  63. item > * { border: 0; }
  64.  
  65. item > title {
  66. font-size: 150%;
  67. }
  68.  
  69. item > link {
  70. font-size: 80%;
  71. margin-top: 6px;
  72. margin-bottom: 6px;
  73. }
  74.  
  75. /* End */

Report this snippet  

You need to login to post a comment.