summaryrefslogtreecommitdiff
path: root/searx/static/oscar/less/bootstrap/mixins/nav-vertical-align.less
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-11-11 09:36:39 +0100
committerAdam Tauber <asciimoo@gmail.com>2014-11-11 09:36:39 +0100
commit0d80d5d3b45f9c761a7fd6c457538b54f6d25fce (patch)
treea669f19b5f3a6886ae8c9930e97aa97af3e00778 /searx/static/oscar/less/bootstrap/mixins/nav-vertical-align.less
parentb422788eb46906d9befbd8b7399bf4653e1fb14e (diff)
parent25312c53e170deb55bd48029e3b76b87692e1911 (diff)
downloadsearxng-0d80d5d3b45f9c761a7fd6c457538b54f6d25fce.tar.gz
searxng-0d80d5d3b45f9c761a7fd6c457538b54f6d25fce.zip
Merge pull request #105 from pointhi/template_oscar
new template: oscar
Diffstat (limited to 'searx/static/oscar/less/bootstrap/mixins/nav-vertical-align.less')
-rw-r--r--searx/static/oscar/less/bootstrap/mixins/nav-vertical-align.less9
1 files changed, 9 insertions, 0 deletions
diff --git a/searx/static/oscar/less/bootstrap/mixins/nav-vertical-align.less b/searx/static/oscar/less/bootstrap/mixins/nav-vertical-align.less
new file mode 100644
index 000000000..d458c7861
--- /dev/null
+++ b/searx/static/oscar/less/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);
+}