git repos / blockattack-game

blame: source/misc/embedded_libs/fmt-8.1.1/doc/bootstrap/mixins/nav-vertical-align.less

normal view · raw

f8deb5b9 Poul Sander 2022-01-15 13:55 1
// Navbar vertical align
f8deb5b9 Poul Sander 2022-01-15 13:55 2
//
f8deb5b9 Poul Sander 2022-01-15 13:55 3
// Vertically center elements in the navbar.
f8deb5b9 Poul Sander 2022-01-15 13:55 4
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
f8deb5b9 Poul Sander 2022-01-15 13:55 5
f8deb5b9 Poul Sander 2022-01-15 13:55 6
.navbar-vertical-align(@element-height) {
f8deb5b9 Poul Sander 2022-01-15 13:55 7
  margin-top: ((@navbar-height - @element-height) / 2);
f8deb5b9 Poul Sander 2022-01-15 13:55 8
  margin-bottom: ((@navbar-height - @element-height) / 2);
f8deb5b9 Poul Sander 2022-01-15 13:55 9
}
1970-01-01 00:00 10