Advertisement
ErisNotEros

Tutorial: Part07

Apr 10th, 2012
7,569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 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
  6.  
  7. read them.-->
  8.  
  9. <!--Customisation Options (part 2)-->
  10.  
  11. <meta name="color:Background" content="#cccccc" />
  12. <meta name="color:Primary Colour" content="#03999b" />
  13. <meta name="color:Secondary Colour" content="#4cc3c5" />
  14.  
  15. <meta name="font:Body" content="Georgia" />
  16.  
  17. <meta name="image:Background" content="http://i41.tinypic.com/wvztsk.png" />
  18. <meta name="image:Sidebar" content="" />
  19.  
  20. <!--Things that go in the tab (part 1)-->
  21.  
  22. <title>{Title}{block:PostSummary}, {PostSummary}{/block:PostSummary}</title>
  23. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  24. <link rel="shortcut icon" href="{Favicon}" />
  25.  
  26. <!--Custom font (part 4)-->
  27.  
  28. <link href='http://fonts.googleapis.com/css?family=Great+Vibes' rel='stylesheet' type='text/css'>
  29.  
  30.  
  31.  
  32. <style type="text/css">
  33.  
  34. /*Notes in CSS look like this. If you use <!--these--> it will not work*/
  35.  
  36. /*The Background (part 3)*/
  37.  
  38. body {
  39. background-color: {color:Background};
  40. font-family: {font:Body};
  41. background-image: url({image:Background});
  42. background-attachment: fixed;
  43. margin: 0;
  44. word-wrap: break-word;
  45. }
  46.  
  47. /*The Sidebar (part 4)*/
  48.  
  49. #sidebar {
  50. background-color: white;
  51. width: 260px;
  52. position: fixed;
  53. top: 150px;
  54. left: 100px;
  55. }
  56.  
  57. /*The Sidebar: Title*/
  58.  
  59. #sidebar .title {
  60. font-family: 'Great Vibes', cursive;
  61. font-size: 30px;
  62. text-align: center;
  63. padding: 10px;
  64. }
  65.  
  66. #sidebar .title a {
  67. color: {color:Primary Colour};
  68. text-decoration: none;
  69. }
  70.  
  71. #sidebar .title a:hover {
  72. color: {color:Secondary Colour};
  73. }
  74.  
  75. /*The Sidebar: Image*/
  76.  
  77. #sidebar .image {
  78. width: 260px;
  79. height: auto;
  80. }
  81.  
  82. /*The Sidebar: Description*/
  83.  
  84. #sidebar .description {
  85. color: black;
  86. font-size: 11px;
  87. text-align: justify;
  88. padding:10px;
  89. line-height:100%;
  90. }
  91.  
  92. #sidebar .description a {
  93. color: {color:Primary Colour};
  94. text-decoration: none;
  95. }
  96.  
  97. #sidebar .description a:hover {
  98. color: {color:Secondary Colour};
  99. }
  100.  
  101. /*The Sidebar: Links*/
  102.  
  103. #sidebar .links {
  104. background-color: {color:Primary Colour};
  105. color: white;
  106. font-size: 11px;
  107. text-align: center;
  108. padding: 3px 5px;
  109. margin: 2px;
  110. float: left;
  111. width: 116px;
  112. }
  113.  
  114. #sidebar .links a {
  115. text-decoration:none;
  116. }
  117.  
  118. #sidebar .links:hover {
  119. background-color: {color:Secondary Colour};
  120. }
  121.  
  122.  
  123. /***************************/
  124.  
  125. /*The Main Content (Part 6)*/
  126.  
  127. #content {
  128. width: 560px;
  129. background-color: rgba(255, 255, 255, 0.4);
  130. margin: 60px 0 60px 460px;
  131. padding: 20px 0;
  132. color: black;
  133. }
  134.  
  135. #content a {
  136. color: {color:Primary Colour};
  137. text-decoration: none;
  138. }
  139.  
  140. #content a:hover {
  141. color: {color:Secondary Colour};
  142. }
  143.  
  144. #content blockquote {
  145. border-left: solid 2px black;
  146. margin: 0;
  147. padding-left: 10px;
  148. }
  149.  
  150. img {
  151. border: 0;
  152. max-width: 100%;
  153. }
  154.  
  155. #content #posts {
  156. background-color: white;
  157. width: 500px;
  158. margin: 0 auto 20px;
  159. padding:10px;
  160. }
  161.  
  162. #content #posts .title {
  163. font-size: 22px;
  164. }
  165.  
  166. #content #posts .text {
  167. font-size:11px;
  168. }
  169.  
  170. /***************************/
  171.  
  172. /*The Permalink and Tags (part 7)*/
  173.  
  174. #content #posts #permalink {
  175. font-size:9px;
  176. margin-top:10px;
  177. }
  178.  
  179. #content #posts #tags {
  180. font-size:9px;
  181. }
  182.  
  183. #content #posts #tags .comma:last-child {
  184. display: none;
  185. }
  186.  
  187. /*Note Container (part 7)*/
  188.  
  189. #content #notecontainer {
  190. margin: 20px auto;
  191. width: 500px;
  192. font-size: 11px;
  193. }
  194.  
  195. #content #notecontainer ol.notes {
  196. list-style-type: none;
  197. margin: 0;
  198. padding: 0;
  199. }
  200.  
  201. #content #notecontainer img.avatar {
  202. margin-right: 10px;
  203. width: 16px;
  204. height: 16px;
  205. }
  206.  
  207.  
  208. </style>
  209.  
  210. </head>
  211. <body>
  212.  
  213. <!--The Sidebar (part 4)-->
  214.  
  215. <div id="sidebar">
  216. <div class="title"><a href="/">{Title}</a></div>
  217. <img class="image" src="{image:Sidebar}" />
  218. <div class="description">{Description}</div>
  219.  
  220. {block:AskEnabled}<a href="/ask"><div class="links">{AskLabel}</div></a>{/block:AskEnabled}
  221. {block:SubmissionsEnabled}<a href="/submit"><div class="links">{SubmitLabel}</div></a>
  222.  
  223. {/block:SubmissionsEnabled}
  224. {block:HasPages}{block:Pages}<a href="{url}"><div class="links">{Label}</div></a>{/block:Pages}
  225.  
  226. {/block:HasPages}
  227.  
  228. </div> <!--sidebar-->
  229. <!--I like to label my closing divs like I did above to make the code easier to read. It is not
  230.  
  231. compulsary.-->
  232.  
  233. <!--------------------------->
  234.  
  235. <!--The Main Content (part 5 & 6)-->
  236.  
  237. <div id="content">
  238. {block:Posts}
  239. <div id="posts">
  240.  
  241. {block:Photo}
  242. {LinkOpenTag}<img src="{PhotoURL-500}" />{LinkCloseTag}
  243. {block:Caption}<div class="text">{Caption}</div>{/block:Caption}
  244. {/block:Photo}
  245.  
  246. {block:Photoset}
  247. {Photoset-500}
  248. {block:Caption}<div class="text">{Caption}</div>{/block:Caption}
  249. {/block:Photoset}
  250.  
  251. {block:Video}
  252. {Video-500}
  253. {block:Caption}<div class="text">{Caption}</div>{/block:Caption}
  254. {/block:Video}
  255.  
  256. {block:Audio}
  257. {AudioPlayerBlack}
  258. <div class="text">~ {PlayCountWithLabel}</div>
  259. {block:Caption}<div class="text">{Caption}</div>{/block:Caption}
  260. {/block:Audio}
  261.  
  262. {block:Quote}
  263. <div class="title">“{Quote}”</div>
  264. {block:Source}<div class="text"><br>~ {Source}</div>{/block:Source}
  265. {/block:Quote}
  266.  
  267. {block:Text}
  268. {block:Title}<div class="title">{Title}</div>{/block:Title}
  269. <div class="text">{Body}</div>
  270. {/block:Text}
  271.  
  272. {block:Answer}
  273. <div class="title">{Question}</div>
  274. <div class="text">~ {Asker}</div>
  275. <div class="text">{Answer}</div>
  276. {block:Answer}
  277.  
  278. {block:Chat}
  279. {block:Title}<div class="title">{Title}</div>{/block:Title}
  280. <div class="text">
  281. {block:Lines}
  282. {block:Label}<strong>{Label}</strong>{/block:Label} {Line}<br />
  283. {/block:Lines}
  284. </div> <!--text-->
  285. {/block:Chat}
  286.  
  287. {block:Link}
  288. <div class="title"><a href="{URL}">{Name}</a></div>
  289. {block:Description}
  290. <div class="text">{Description}</div>
  291. {/block:Description}
  292. {/block:Link}
  293.  
  294. <!--------------------------->
  295.  
  296. <!--The Permalink (Part 7)-->
  297.  
  298. <div id="permalink">
  299. <a href="{Permalink}">
  300. {block:Date}{lang:Posted TimeAgo}{/block:Date}
  301. {block:NoteCount} with {NoteCountWithLabel}{/block:NoteCount}
  302. </a>
  303. </div> <!--permalink-->
  304.  
  305. <!--The Tags (Part 7)-->
  306.  
  307. {block:HasTags}<div id="tags">
  308. {block:Tags}<a href="{TagURL}">{Tag}</a><span class="comma">, </span>{/block:Tags}.
  309. </div> <!--tags-->
  310. {/block:HasTags}
  311.  
  312. </div> <!--posts-->
  313.  
  314. <!--Note Container (Part 7)-->
  315.  
  316. {block:PostNotes}
  317. <div id="notecontainer">{PostNotes}</div>
  318. {/block:PostNotes}
  319.  
  320.  
  321. {/block:Posts}
  322. </div> <!--content-->
  323.  
  324. </body>
  325. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement