Kingdaro

clicktheboxlove tumblr theme

May 20th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.34 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <style>
  4.             body{
  5.                 background:#def;
  6.                 font:12pt verdana;
  7.             }
  8.            
  9.             a{
  10.                 text-decoration:none;
  11.                 color:#666;
  12.             }
  13.            
  14.             img{
  15.                 max-width:100%;
  16.             }
  17.            
  18.             *::selection{
  19.                 background:#ddd;
  20.             }
  21.            
  22.             #title{
  23.                 font-size:28pt;
  24.                 font-weight:bold;
  25.                 margin-bottom:20px;
  26.                 text-align:center;
  27.             }
  28.            
  29.             #header{
  30.                 margin:auto;
  31.             }
  32.            
  33.             #wrapper{
  34.                 max-width:800px;
  35.                 margin:auto;
  36.                 margin-top:16px;
  37.             }
  38.            
  39.             #description{
  40.                 padding:8px;
  41.                 max-width:800px;
  42.                 margin:auto;
  43.             }
  44.            
  45.             #pages{
  46.                 width:200px;
  47.             }
  48.            
  49.             .whitebox{
  50.                 background:white;
  51.                 border:1px solid #ddd;
  52.                 box-shadow:0 0 6px #333;
  53.             }
  54.            
  55.             .post{
  56.                 width:500px;
  57.                 margin-bottom:16px;
  58.             }
  59.            
  60.             .post .title{
  61.                 padding:6px 10px;
  62.                 border-bottom:1px solid #ddd;
  63.                 font-weight:bold;
  64.                 color:#333;
  65.             }
  66.            
  67.             .post .content{
  68.                 padding:0px 16px;
  69.             }
  70.            
  71.             .post .foot{
  72.                 padding:6px 10px;
  73.                 border-top:1px solid #ddd;
  74.                 text-align:center;
  75.             }
  76.            
  77.            
  78.             .page{
  79.                 padding:6px 8px;
  80.                 color:#666;
  81.             }
  82.            
  83.             .page{
  84.                 border-bottom:1px solid #ddd;
  85.             }
  86.         </style>
  87.        
  88.         <script type='text/javascript'>
  89.             var box = document.createElement('div');
  90.             box.setAttribute('style',' \
  91.             width:50px; height:50px \
  92.             border:2px solid white; \
  93.             background:red; \
  94.             ')
  95.            
  96.             function spawnBox(){
  97.                 document.body.appendChild(box)
  98.             }
  99.         </script>
  100.     </head>
  101.     <body onload='spawnBox();'>
  102.         <div id='header'>
  103.             <div id='title'>{Title}</div>
  104.         </div>
  105.         <div id='description' class='whitebox'>{Description}</div>
  106.         <table id='wrapper'>
  107.             <tr>
  108.                 <td>
  109.                     {Block:HasPages}
  110.                         <div id='pages' class='whitebox'>
  111.                             {Block:Pages}
  112.                                 <a href='{URL}'>
  113.                                     <div class='page'>{Label}</div>
  114.                                 </a>
  115.                             {/Block:Pages}
  116.                         </div>
  117.                     {/Block:HasPages}
  118.                 </td>
  119.                
  120.                 <td id='posts'>
  121.                     {Block:Posts}
  122.                         <div class='post whitebox'>
  123.                             {Block:Text}
  124.                                 {Block:Title}
  125.                                     <div class='title'>
  126.                                         {Title}
  127.                                     </div>
  128.                                 {/Block:Title}
  129.                            
  130.                                 <div class='content'>
  131.                                     {Body}
  132.                                 </div>
  133.                             {/Block:Text}
  134.                            
  135.                             {Block:Photo}
  136.                                 <div class='title'>
  137.                                     <img src='{PhotoURL-HighRes}' />
  138.                                 </div>
  139.                            
  140.                                 <div class='content'>
  141.                                     {Caption}
  142.                                 </div>
  143.                             {/Block:Photo}
  144.                            
  145.                             <div class='foot'>
  146.                                 <a href='{Permalink}'>{TimeAgo}</a>
  147.                             </div>
  148.                         </div>
  149.                     {/Block:Posts}
  150.                 </td>
  151.             </tr>
  152.         <table>
  153.     </body>
  154. </html>
Advertisement
Add Comment
Please, Sign In to add comment