template.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10. <link rel="icon" href="favicon.ico">
  11. <title>Hack Font Specimen</title>
  12. <!-- Bootstrap core CSS -->
  13. <link href="css/bootstrap.min.css" rel="stylesheet">
  14. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  15. <!--[if lt IE 9]>
  16. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  17. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  18. <![endif]-->
  19. </head>
  20. <body>
  21. <div class="container">
  22. <div class="page-header">
  23. <h1>Hack</h1>
  24. <p class="lead">Specimen for the Hack typeface</p>
  25. </div>
  26. <h3>Three equal columns</h3>
  27. <p>Get three equal-width columns
  28. <strong>starting at desktops and scaling to large desktops</strong>. On mobile devices, tablets and below, the columns will automatically stack.</p>
  29. <div class="row">
  30. <div class="col-md-4">.col-md-4</div>
  31. <div class="col-md-4">.col-md-4</div>
  32. <div class="col-md-4">.col-md-4</div>
  33. </div>
  34. <h3>Three unequal columns</h3>
  35. <p>Get three columns
  36. <strong>starting at desktops and scaling to large desktops</strong>of various widths. Remember, grid columns should add up to twelve for a single horizontal block. More than that, and columns start stacking no matter the viewport.</p>
  37. <div class="row">
  38. <div class="col-md-3">.col-md-3</div>
  39. <div class="col-md-6">.col-md-6</div>
  40. <div class="col-md-3">.col-md-3</div>
  41. </div>
  42. <h3>Two columns</h3>
  43. <p>Get two columns
  44. <strong>starting at desktops and scaling to large desktops</strong>.</p>
  45. <div class="row">
  46. <div class="col-md-8">.col-md-8</div>
  47. <div class="col-md-4">.col-md-4</div>
  48. </div>
  49. <h3>Full width, single column</h3>
  50. <p class="text-warning">No grid classes are necessary for full-width elements.</p>
  51. <hr>
  52. <h3>Two columns with two nested columns</h3>
  53. <p>Per the documentation, nesting is easy—just put a row of columns within an existing column. This gives you two columns
  54. <strong>starting at desktops and scaling to large desktops</strong>, with another two (equal widths) within the larger column.</p>
  55. <p>At mobile device sizes, tablets and down, these columns and their nested columns will stack.</p>
  56. <div class="row">
  57. <div class="col-md-8">
  58. .col-md-8
  59. <div class="row">
  60. <div class="col-md-6">.col-md-6</div>
  61. <div class="col-md-6">.col-md-6</div>
  62. </div>
  63. </div>
  64. <div class="col-md-4">.col-md-4</div>
  65. </div>
  66. <hr>
  67. <h3>Mixed: mobile and desktop</h3>
  68. <p>The Bootstrap 3 grid system has four tiers of classes: xs (phones), sm (tablets), md (desktops), and lg (larger desktops). You can use nearly any combination of these classes to create more dynamic and flexible layouts.</p>
  69. <p>Each tier of classes scales up, meaning if you plan on setting the same widths for xs and sm, you only need to specify xs.</p>
  70. <div class="row">
  71. <div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
  72. <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
  73. </div>
  74. <div class="row">
  75. <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
  76. <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
  77. <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
  78. </div>
  79. <div class="row">
  80. <div class="col-xs-6">.col-xs-6</div>
  81. <div class="col-xs-6">.col-xs-6</div>
  82. </div>
  83. <hr>
  84. <h3>Mixed: mobile, tablet, and desktop</h3>
  85. <p></p>
  86. <div class="row">
  87. <div class="col-xs-12 col-sm-6 col-lg-8">.col-xs-12 .col-sm-6 .col-lg-8</div>
  88. <div class="col-xs-6 col-lg-4">.col-xs-6 .col-lg-4</div>
  89. </div>
  90. <div class="row">
  91. <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
  92. <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
  93. <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
  94. </div>
  95. <hr>
  96. <h3>Column clearing</h3>
  97. <p><a href="http://getbootstrap.com/css/#grid-responsive-resets">Clear floats</a> at specific breakpoints to prevent awkward wrapping with uneven content.</p>
  98. <div class="row">
  99. <div class="col-xs-6 col-sm-3">
  100. .col-xs-6 .col-sm-3
  101. <br>Resize your viewport or check it out on your phone for an example.
  102. </div>
  103. <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
  104. <!-- Add the extra clearfix for only the required viewport -->
  105. <div class="clearfix visible-xs"></div>
  106. <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
  107. <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
  108. </div>
  109. <hr>
  110. <h3>Offset, push, and pull resets</h3>
  111. <p>Reset offsets, pushes, and pulls at specific breakpoints.</p>
  112. <div class="row">
  113. <div class="col-sm-5 col-md-6">.col-sm-5 .col-md-6</div>
  114. <div class="col-sm-5 col-sm-offset-2 col-md-6 col-md-offset-0">.col-sm-5 .col-sm-offset-2 .col-md-6 .col-md-offset-0</div>
  115. </div>
  116. <div class="row">
  117. <div class="col-sm-6 col-md-5 col-lg-6">.col-sm-6 .col-md-5 .col-lg-6</div>
  118. <div class="col-sm-6 col-md-5 col-md-offset-2 col-lg-6 col-lg-offset-0">.col-sm-6 .col-md-5 .col-md-offset-2 .col-lg-6 .col-lg-offset-0</div>
  119. </div>
  120. </div>
  121. <!-- /container -->
  122. </body>
  123. </html>