Advertisement
ErisNotEros

Tutorial: Part04

Apr 2nd, 2012
12,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <!--Notes are written like this. So long as they are enclosed in tags like these, your browser will not read them.-->
  6.  
  7. <!--Customisation Options (part 2)-->
  8.  
  9. <meta name="color:Background" content="#cccccc" />
  10. <meta name="color:Primary Colour" content="#03999b" />
  11. <meta name="color:Secondary Colour" content="#4cc3c5" />
  12.  
  13. <meta name="font:Body" content="Georgia" />
  14.  
  15. <meta name="image:Background" content="http://i41.tinypic.com/wvztsk.png" />
  16. <meta name="image:Sidebar" content="" />
  17.  
  18. <!--Things that go in the tab (part 1)-->
  19.  
  20. <title>{Title}{block:PostSummary}, {PostSummary}{/block:PostSummary}</title>
  21. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  22. <link rel="shortcut icon" href="{Favicon}" />
  23.  
  24. <!--Custom font (part 4)-->
  25.  
  26. <link href='http://fonts.googleapis.com/css?family=Great+Vibes' rel='stylesheet' type='text/css'>
  27.  
  28.  
  29.  
  30. <style type="text/css">
  31.  
  32. /*Notes in CSS look like this. If you use <!--these--> it will not work*/
  33.  
  34. /*The Background (part 3)*/
  35.  
  36. body {
  37. background-color: {color:Background};
  38. font-family: {font:Body};
  39. background-image: url({image:Background});
  40. margin: 0;
  41. word-wrap: break-word;
  42. }
  43.  
  44. /*The Sidebar (part 4)*/
  45.  
  46. #sidebar {
  47. background-color: white;
  48. width: 260px;
  49. position: fixed;
  50. top: 150px;
  51. left: 100px;
  52. }
  53.  
  54. /*The Sidebar: Title*/
  55.  
  56. #sidebar .title {
  57. font-family: 'Great Vibes', cursive;
  58. font-size: 30px;
  59. text-align: center;
  60. padding: 10px;
  61. }
  62.  
  63. #sidebar .title a {
  64. color: {color:Primary Colour};
  65. text-decoration: none;
  66. }
  67.  
  68. #sidebar .title a:hover {
  69. color: {color:Secondary Colour};
  70. }
  71.  
  72. /*The Sidebar: Image*/
  73.  
  74. #sidebar .image {
  75. width: 260px;
  76. height: auto;
  77. }
  78.  
  79. /*The Sidebar: Description*/
  80.  
  81. #sidebar .description {
  82. color: black;
  83. font-size: 11px;
  84. text-align: justify;
  85. padding:10px;
  86. line-height:100%;
  87. }
  88.  
  89. #sidebar .description a {
  90. color: {color:Primary Colour};
  91. text-decoration: none;
  92. }
  93.  
  94. #sidebar .description a:hover {
  95. color: {color:Secondary Colour};
  96. }
  97.  
  98. /*The Sidebar: Links*/
  99.  
  100. #sidebar .links {
  101. background-color: {color:Primary Colour};
  102. color: white;
  103. font-size: 11px;
  104. text-align: center;
  105. padding: 3px 5px;
  106. margin: 2px;
  107. float: left;
  108. width: 116px;
  109. }
  110.  
  111. #sidebar .links a {
  112. text-decoration:none;
  113. }
  114.  
  115. #sidebar .links:hover {
  116. background-color: {color:Secondary Colour};
  117. }
  118.  
  119. </style>
  120.  
  121. </head>
  122. <body>
  123.  
  124. <!--The Sidebar (part 4)-->
  125.  
  126. <div id="sidebar">
  127. <div class="title"><a href="/">{Title}</a></div>
  128. <img class="image" src="{image:Sidebar}" />
  129. <div class="description">{Description}</div>
  130.  
  131. {block:AskEnabled}<a href="/ask"><div class="links">{AskLabel}</div></a>{/block:AskEnabled}
  132. {block:SubmissionsEnabled}<a href="/submit"><div class="links">{SubmitLabel}</div></a>{/block:SubmissionsEnabled}
  133. {block:HasPages}{block:Pages}<a href="{url}"><div class="links">{Label}</div></a>{/block:Pages}{/block:HasPages}
  134.  
  135. </div> <!--sidebar-->
  136. <!--I like to label my closing divs like I did above to make the code easier to read. It is not compulsary-->
  137.  
  138.  
  139. </body>
  140. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement