Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.74 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html>
  4.  
  5. <head>
  6.  
  7.   <meta charset="UTF-8">
  8.  
  9.  
  10.   <style>
  11.  
  12.  
  13. html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, main, menu, nav, section, time, mark, audio, video {
  14.   margin: 0;
  15.   padding: 0;
  16.   border: 0;
  17.   outline: 0;
  18.   font-size: 100%;
  19.   vertical-align: baseline;
  20.   background: transparent; }
  21.  
  22. * {
  23.   -webkit-box-sizing: border-box;
  24.   -moz-box-sizing: border-box;
  25.   box-sizing: border-box; }
  26.  
  27. article, aside, figure, footer, header, main, nav, section, img {
  28.   display: block; }
  29.  
  30. img,
  31. object,
  32. embed {
  33.   max-width: 100%;
  34.   height: auto; }
  35.  
  36.  
  37. html {
  38.   font: normal 62.5%/1.5 serif; }
  39.  
  40. body {
  41.   font-size: 1.6rem;
  42.   color: #646464;
  43.   font-family: 'Lora', Georgia, serif; }
  44.  
  45. a {
  46.   -webkit-transition: all 0.3s ease;
  47.   -moz-transition: all 0.3s ease;
  48.   -o-transition: all 0.3s ease;
  49.   transition: all 0.3s ease;
  50.   color: #ca5250;
  51.   text-decoration: none; }
  52.   a:hover, a:focus {
  53.     text-decoration: underline; }
  54.  
  55. body {
  56.   background: #f6f6f6; }
  57.  
  58. .wrapper {
  59.   max-width: 96rem;
  60.   margin: 8rem auto 2rem; }
  61.  
  62. .image-grid {
  63.   position: relative; }
  64.   .image-grid a {
  65.     float: left;
  66.     display: block;
  67.     position: relative; }
  68.     .image-grid a:hover, .image-grid a:focus {
  69.       opacity: 0.8; }
  70.     .image-grid a:before {
  71.       content: '';
  72.       position: absolute;
  73.       height: 100%;
  74.       width: 100%;
  75.       border: 4px solid #f6f6f6;
  76.       pointer-events: none;
  77.       -webkit-box-sizing: border-box;
  78.       -moz-box-sizing: border-box;
  79.       box-sizing: border-box; }
  80.       @media (max-width: 65em) {
  81.         .image-grid a:before {
  82.           border: 2px solid #f6f6f6; } }
  83.       @media (max-width: 40em) {
  84.         .image-grid a:before {
  85.           border: 1px solid #f6f6f6; } }
  86.     .image-grid a:nth-child(6n+1), .image-grid a:nth-child(6n+2), .image-grid a:nth-child(6n+6) {
  87.       width: 50%; }
  88.     .image-grid a:nth-child(6n+3), .image-grid a:nth-child(6n+4), .image-grid a:nth-child(6n+5) {
  89.       width: 25%; }
  90.     .image-grid a:nth-child(6n+5), .image-grid a:nth-child(6n+6) {
  91.       margin-top: -25%; }
  92.     .image-grid a:nth-child(6n+6) {
  93.       margin-left: 25%; }
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.   </style>
  101.  
  102. </head>
  103.  
  104. <body>
  105.  
  106.  
  107.     <div class="wrapper">
  108.  
  109.         <main class="main" id="main">
  110.  
  111.             <section class="image-grid group">
  112.  
  113.                 <a href="">
  114.  
  115.                                     <img width="960" height="960" src="http://tinktank.in/demo/barber-shop/wp-content/uploads/2014/01/highway-960x960.jpg" class="attachment-1x1" alt="highway"></a>
  116.  
  117.                 <a href="">
  118.  
  119.                                     <img width="960" height="480" src="http://tinktank.in/demo/barber-shop/wp-content/uploads/2014/01/logged-960x480.jpg" class="attachment-2x1" alt="logged"></a>
  120.  
  121.                 <a href="">
  122.  
  123.                                     <img width="960" height="960" src="http://tinktank.in/demo/barber-shop/wp-content/uploads/2014/01/tunnel-960x960.jpg" class="attachment-1x1" alt="tunnel"></a>
  124.  
  125.                 <a href="">
  126.  
  127.                                     <img width="480" height="960" src="http://tinktank.in/demo/barber-shop/wp-content/uploads/2014/01/drops-480x960.jpg" class="attachment-1x2" alt="drops"></a>
  128.  
  129.                 <a href="">
  130.  
  131.                                     <img width="960" height="960" src="http://tinktank.in/demo/barber-shop/wp-content/uploads/2014/01/traaain-960x960.jpg" class="attachment-1x1" alt="traaain"></a>
  132.  
  133.                 <a href="">
  134.  
  135.                                     <img width="960" height="480" src="http://tinktank.in/demo/barber-shop/wp-content/uploads/2014/01/bike-rack-960x480.jpg" class="attachment-2x1" alt="bike-rack"></a>
  136.  
  137.                        
  138.  
  139.                
  140.             </section>
  141.  
  142.         </main>
  143.  
  144.     </div>
  145.  
  146. </body>
  147.  
  148. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement