Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions docs/examples/pricing-tables/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">

<title>Pricing Table Template for Bootstrap</title>

<!-- Bootstrap core CSS -->
<link href="../../dist/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="pricing.css" rel="stylesheet">

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</head>

<body>

<div class="container">
<div class="page-header">
<h1>Pricing Tables</h1>
</div>
<p class="lead">Use card-group to create equal width and height columns. </p>
<hr>
<div class="card-group pricing">
<div class="card">
<div class="card-header">
<h4 class="card-title">Basic</h4>
</div>
<h1 class="card-title">$29 <small class="text-muted">/ mo</small></h1>
<div class="card-block">
<p class="card-text">
<ul>
<li>10 users included</li>
<li>2 GB of storage</li>
<li>Email support</li>
<li>Help center access</li>
</ul>
</p>
<button type="button" class="btn btn-lg btn-block btn-primary-outline">Select Plan</button>
</div>
</div>
<div class="card">
<div class="card-header">
<h4 class="card-title">Standard</h4>
</div>
<h1 class="card-title">$59 <small class="text-muted">/ mo</small></h1>
<div class="card-block">
<p class="card-text">
<ul>
<li>20 users included</li>
<li>10 GB of storage</li>
<li>Priority email support</li>
<li>Help center access</li>
</ul>
</p>
<button type="button" class="btn btn-lg btn-block btn-primary-outline">Select Plan</button>
</div>
</div>
<div class="card">
<div class="card-header">
<h4 class="card-title">Enterprise</h4>
</div>
<h1 class="card-title">$79 <small class="text-muted">/ mo</small></h1>
<div class="card-block">
<p class="card-text">
<ul>
<li>30 users included</li>
<li>15 GB of storage</li>
<li>Phone and email support</li>
<li>Help center access</li>
</ul>
</p>
<button type="button" class="btn btn-lg btn-block btn-primary-outline">Select Plan</button>
</div>
</div>
</div>

</div> <!-- /container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="../../dist/js/bootstrap.min.js"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions docs/examples/pricing-tables/pricing.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
body {
padding-top: 2rem;
padding-bottom: 2rem;
}
.pricing .card {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than using descendant selectors like this, we generally prefer to use dedicated classes instead (e.g. .pricing-card {, .pricing-card-title {)

border-radius: 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 2-space indents

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be indented. Ditto for the next two CSS rules.

}
.pricing .card-title {
text-align: center;
padding-top: 1rem;
}
.pricing .card-inverse {
width: 100%;
}
@media screen and (max-width: 47.938em) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use px instead of em here

.card-group .card {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 2-space indents, not 1-space indents

display: block;
vertical-align: top;
}
}