From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/seastar/fmt/doc/bootstrap/mixins/nav-vertical-align.less | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/seastar/fmt/doc/bootstrap/mixins/nav-vertical-align.less (limited to 'src/seastar/fmt/doc/bootstrap/mixins/nav-vertical-align.less') diff --git a/src/seastar/fmt/doc/bootstrap/mixins/nav-vertical-align.less b/src/seastar/fmt/doc/bootstrap/mixins/nav-vertical-align.less new file mode 100644 index 00000000..d458c786 --- /dev/null +++ b/src/seastar/fmt/doc/bootstrap/mixins/nav-vertical-align.less @@ -0,0 +1,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); +} -- cgit v1.2.3