Advertisement
ErisNotEros

Tutorial: Part06

Apr 8th, 2012
8,051
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 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. background-attachment: fixed;
  41. margin: 0;
  42. word-wrap: break-word;
  43. }
  44.  
  45. /*The Sidebar (part 4)*/
  46.  
  47. #sidebar {
  48. background-color: white;
  49. width: 260px;
  50. position: fixed;
  51. top: 150px;
  52. left: 100px;
  53. }
  54.  
  55. /*The Sidebar: Title*/
  56.  
  57. #sidebar .title {
  58. font-family: 'Great Vibes', cursive;
  59. font-size: 30px;
  60. text-align: center;
  61. padding: 10px;
  62. }
  63.  
  64. #sidebar .title a {
  65. color: {color:Primary Colour};
  66. text-decoration: none;
  67. }
  68.  
  69. #sidebar .title a:hover {
  70. color: {color:Secondary Colour};
  71. }
  72.  
  73. /*The Sidebar: Image*/
  74.  
  75. #sidebar .image {
  76. width: 260px;
  77. height: auto;
  78. }
  79.  
  80. /*The Sidebar: Description*/
  81.  
  82. #sidebar .description {
  83. color: black;
  84. font-size: 11px;
  85. text-align: justify;
  86. padding:10px;
  87. line-height:100%;
  88. }
  89.  
  90. #sidebar .description a {
  91. color: {color:Primary Colour};
  92. text-decoration: none;
  93. }
  94.  
  95. #sidebar .description a:hover {
  96. color: {color:Secondary Colour};
  97. }
  98.  
  99. /*The Sidebar: Links*/
  100.  
  101. #sidebar .links {
  102. background-color: {color:Primary Colour};
  103. color: white;
  104. font-size: 11px;
  105. text-align: center;
  106. padding: 3px 5px;
  107. margin: 2px;
  108. float: left;
  109. width: 116px;
  110. }
  111.  
  112. #sidebar .links a {
  113. text-decoration:none;
  114. }
  115.  
  116. #sidebar .links:hover {
  117. background-color: {color:Secondary Colour};
  118. }
  119.  
  120.  
  121. /***************************/
  122.  
  123. /*The Main Content (Part 6)*/
  124.  
  125. #content {
  126. width: 560px;
  127. background-color: rgba(255, 255, 255, 0.4);
  128. margin: 60px 0 60px 460px;
  129. padding: 20px 0;
  130. color: black;
  131. }
  132.  
  133. #content a {
  134. color: {color:Primary Colour};
  135. text-decoration: none;
  136. }
  137.  
  138. #content a:hover {
  139. color: {color:Secondary Colour};
  140. }
  141.  
  142. #content blockquote {
  143. border-left: solid 2px black;
  144. margin: 0;
  145. padding-left: 10px;
  146. }
  147.  
  148. img {
  149. border: 0;
  150. max-width: 100%;
  151. }
  152.  
  153. #content #posts {
  154. background-color: white;
  155. width: 500px;
  156. margin: 0 auto 20px;
  157. padding:10px;
  158. }
  159.  
  160. #content #posts .title {
  161. font-size: 22px;
  162. }
  163.  
  164. #content #posts .text {
  165. font-size:11px;
  166. }
  167.  
  168.  
  169. </style>
  170.  
  171. </head>
  172. <body>
  173.  
  174. <!--The Sidebar (part 4)-->
  175.  
  176. <div id="sidebar">
  177. <div class="title"><a href="/">{Title}</a></div>
  178. <img class="image" src="{image:Sidebar}" />
  179. <div class="description">{Description}</div>
  180.  
  181. {block:AskEnabled}<a href="/ask"><div class="links">{AskLabel}</div></a>{/block:AskEnabled}
  182. {block:SubmissionsEnabled}<a href="/submit"><div class="links">{SubmitLabel}</div></a>{/block:SubmissionsEnabled}
  183. {block:HasPages}{block:Pages}<a href="{url}"><div class="links">{Label}</div></a>{/block:Pages}{/block:HasPages}
  184.  
  185. </div> <!--sidebar-->
  186. <!--I like to label my closing divs like I did above to make the code easier to read. It is not compulsary.-->
  187.  
  188. <!--------------------------->
  189.  
  190. <!--The Main Content (part 5 & 6)-->
  191.  
  192. <div id="content">
  193. {block:Posts}
  194. <div id="posts">
  195.  
  196. {block:Photo}
  197. {LinkOpenTag}<img src="{PhotoURL-500}" />{LinkCloseTag}
  198. {block:Caption}<div class="text">{Caption}</div>{/block:Caption}
  199. {/block:Photo}
  200.  
  201. {block:Photoset}
  202. {Photoset-500}
  203. {block:Caption}<div class="text">{Caption}</div>{/block:Caption}
  204. {/block:Photoset}
  205.  
  206. {block:Video}
  207. {Video-500}
  208. {block:Caption}<div class="text">{Caption}</div>{/block:Caption}
  209. {/block:Video}
  210.  
  211. {block:Audio}
  212. {AudioPlayerBlack}
  213. <div class="text">~ {PlayCountWithLabel}</div>
  214. {block:Caption}<div class="text">{Caption}</div>{/block:Caption}
  215. {/block:Audio}
  216.  
  217. {block:Quote}
  218. <div class="title">“{Quote}”</div>
  219. {block:Source}<div class="text"><br>~ {Source}</div>{/block:Source}
  220. {/block:Quote}
  221.  
  222. {block:Text}
  223. {block:Title}<div class="title">{Title}</div>{/block:Title}
  224. <div class="text">{Body}</div>
  225. {/block:Text}
  226.  
  227. {block:Answer}
  228. <div class="title">{Question}</div>
  229. <div class="text">~ {Asker}</div>
  230. <div class="text">{Answer}</div>
  231. {/block:Answer}
  232.  
  233. {block:Chat}
  234. {block:Title}<div class="title">{Title}</div>{/block:Title}
  235. <div class="text">
  236. {block:Lines}
  237. {block:Label}<strong>{Label}</strong>{/block:Label} {Line}<br />
  238. {/block:Lines}
  239. </div> <!--text-->
  240. {/block:Chat}
  241.  
  242. {block:Link}
  243. <div class="title"><a href="{URL}">{Name}</a></div>
  244. {block:Description}
  245. <div class="text">{Description}</div>
  246. {/block:Description}
  247. {/block:Link}
  248.  
  249. </div> <!--posts-->
  250. {/block:Posts}
  251. </div> <!--content-->
  252.  
  253. </body>
  254. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement