changeset 7172:4d1837a9b504

less: prepare styling for different navbar-height Use navbar-height in the custom styling of select2 navbar entries so they adjust to the navbar height. The custom navbar-brand styling should however only apply to the main navbar. The contextbar is better without.
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 16 Feb 2018 01:40:00 +0100
parents f91844b26269
children 15f777cd19e6
files kallithea/public/less/kallithea-select2.less kallithea/public/less/style.less
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/less/kallithea-select2.less	Wed Feb 14 09:12:17 2018 +0100
+++ b/kallithea/public/less/kallithea-select2.less	Fri Feb 16 01:40:00 2018 +0100
@@ -43,6 +43,7 @@
   .navbar-nav {
     > li > .select2-container a {
       padding: @nav-link-padding;
+      height: @navbar-height;
       padding-top:    @navbar-padding-vertical;
       padding-bottom: @navbar-padding-vertical;
     }
--- a/kallithea/public/less/style.less	Wed Feb 14 09:12:17 2018 +0100
+++ b/kallithea/public/less/style.less	Fri Feb 16 01:40:00 2018 +0100
@@ -55,12 +55,10 @@
 }
 
 /* logo */
-nav.navbar .navbar-brand {
+nav.navbar.mainmenu > .navbar-header > .navbar-brand {
   font-size: 20px;
   padding-top: 12px;
-}
-nav.navbar.mainmenu .navbar-brand .branding {
-  &:before {
+  > .branding:before {
     content: "";
     display: inline-block;
     margin-right: .2em;