Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
Merge branch 'maerduq/tweaks'
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Marcelis committed Oct 29, 2015
2 parents 7a0444f + 8a746bc commit e05b2c6
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 3 deletions.
19 changes: 19 additions & 0 deletions dist/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css.map

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions examples/vertical-align/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

<!DOCTYPE html>
<html lang="en" class="vertical-align-middle">
<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="">

<title>Theme Template for Bootstrap</title>

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

</head>

<body role="document">
<div class="table-row">
<section>
<div class="container text-center">
<h1>Part 1</h1>
</div>
</section>
</div>
<div class="table-row">
<section>
<div class="container text-center">
<h1>Part 2</h1>
</div>
</section>
</div>
<!-- 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 src="../../dist/js/bootstrap.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions less/bootstrap.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
@import "forms.less";
@import "buttons.less";

@import "custom/vertical-align.less";

// Components
@import "component-animations.less";
@import "dropdowns.less";
Expand Down
18 changes: 18 additions & 0 deletions less/custom/vertical-align.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
html.vertical-align-middle {
width: 100%;
height: 100%;
body {
display: table;
width: 100%;
height: 100%;
.table-row {
display: table-row;
}
.table-row > section, > section {
display: table-cell;
vertical-align: middle;
padding-top:20px;
padding-bottom:70px;
}
}
}

0 comments on commit e05b2c6

Please sign in to comment.