]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add nonresponsive template to examples
authorMark Otto <otto@github.com>
Sat, 17 Aug 2013 22:02:38 +0000 (15:02 -0700)
committerMark Otto <otto@github.com>
Sat, 17 Aug 2013 22:02:38 +0000 (15:02 -0700)
examples/non-responsive/index.html [new file with mode: 0644]
examples/non-responsive/non-responsive.css [new file with mode: 0644]
examples/screenshots/non-responsive.jpg [new file with mode: 0644]
getting-started.html

diff --git a/examples/non-responsive/index.html b/examples/non-responsive/index.html
new file mode 100644 (file)
index 0000000..7eb2138
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <meta name="description" content="">
+    <meta name="author" content="">
+
+    <!-- Note there is no responsive meta tag here -->
+
+    <link rel="shortcut icon" href="../../assets/ico/favicon.png">
+
+    <title>Non-responsive Template for Bootstrap</title>
+
+    <!-- Bootstrap core CSS -->
+    <link href="../../dist/css/bootstrap.css" rel="stylesheet">
+
+    <!-- Custom styles for this template -->
+    <link href="non-responsive.css" rel="stylesheet">
+  </head>
+
+  <body>
+    <div class="container">
+
+      <div class="page-header">
+        <h1>Non-responsive Bootstrap</h1>
+        <p class="lead">Disable the responsiveness of Bootstrap by fixing the width of the container and using the first grid system tier.</p>
+      </div>
+
+      <h3>What changes</h3>
+      <p>Note the lack of the <code>&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;</code>, which disables the zooming aspect of sites in mobile devices. In addition, we reset our container's width and are essentially good to go.</p>
+
+      <h3>Non-responsive grid system</h3>
+      <div class="row">
+        <div class="col-xs-4">One third</div>
+        <div class="col-xs-4">One third</div>
+        <div class="col-xs-4">One third</div>
+      </div>
+
+    </div> <!-- /container -->
+
+
+    <!-- Bootstrap core JavaScript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <script src="../../assets/js/respond.min.js"></script>
+  </body>
+</html>
diff --git a/examples/non-responsive/non-responsive.css b/examples/non-responsive/non-responsive.css
new file mode 100644 (file)
index 0000000..19901ca
--- /dev/null
@@ -0,0 +1,12 @@
+.container {
+  max-width: 970px;
+}
+
+.col-xs-4 {
+  padding-top: 15px;
+  padding-bottom: 15px;
+  background-color: #eee;
+  border: 1px solid #ddd;
+  background-color: rgba(86,61,124,.15);
+  border: 1px solid rgba(86,61,124,.2);
+}
diff --git a/examples/screenshots/non-responsive.jpg b/examples/screenshots/non-responsive.jpg
new file mode 100644 (file)
index 0000000..87a679e
Binary files /dev/null and b/examples/screenshots/non-responsive.jpg differ
index ea5f96e61f567abaa40298d76657439684304487..b83ec90dd1d5e5c141ab60cc72593eec970c28e5 100644 (file)
@@ -234,6 +234,13 @@ bootstrap/
         <h4>Carousel</h4>
         <p>Customize the navbar and carousel, then add some new components.</p>
       </div>
+      <div class="col-xs-6 col-md-4">
+        <a class="thumbnail" href="../examples/non-responsive/">
+          <img src="../examples/screenshots/non-responsive.jpg" alt="">
+        </a>
+        <h4>Non-responsive Bootstrap</h4>
+        <p>Easily disable the responsiveness of Bootstrap <a href="../getting-started/#disable-responsive">per our docs</a>.</p>
+      </div>
 
     </div>