-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
added pricing tables to the examples #18296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| body { | ||
| padding-top: 2rem; | ||
| padding-bottom: 2rem; | ||
| } | ||
| .pricing .card { | ||
| border-radius: 0; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use 2-space indents
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use px instead of em here |
||
| .card-group .card { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
| } | ||
| } | ||
There was a problem hiding this comment.
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 {)