File: nav-vertical-align.less

package info (click to toggle)
castle-game-engine 7.0~alpha.3%2Bdfsg1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 977,324 kB
  • sloc: pascal: 911,523; javascript: 28,186; cpp: 14,157; xml: 9,939; ansic: 9,229; java: 3,653; objc: 2,737; sh: 1,282; makefile: 657; php: 65; lisp: 21; ruby: 8
file content (9 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (33)
1
2
3
4
5
6
7
8
9
// Navbar vertical align
//
// Vertically center elements in the navbar.
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.

.navbar-vertical-align(@element-height) {
  margin-top: ((@navbar-height - @element-height) / 2);
  margin-bottom: ((@navbar-height - @element-height) / 2);
}