Changeset - 4d1837a9b504
[Not reviewed]
default
0 2 0
Mads Kiilerich - 8 years ago 2018-02-16 01:40:00
mads@kiilerich.com
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.
2 files changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/public/less/kallithea-select2.less
Show inline comments
 
@@ -34,24 +34,25 @@
 
    background-color: @navbar-inverse-link-hover-bg;
 
  }
 
  .select2-result-label {
 
    color: white;
 
  }
 
}
 

	
 
/* fix padding of select2 entries in navbar to match .navbar-nav > li > a */
 
.navbar-inverse {
 
  .navbar-nav {
 
    > li > .select2-container a {
 
      padding: @nav-link-padding;
 
      height: @navbar-height;
 
      padding-top:    @navbar-padding-vertical;
 
      padding-bottom: @navbar-padding-vertical;
 
    }
 
    li.active > .select2-container,
 
    .select2-container:hover,
 
    .select2-container:focus,
 
    .select2-container-active {
 
      color: @navbar-inverse-link-hover-color;
 
      background-color: @navbar-inverse-link-hover-bg;
 
    }
 
  }
 
}
kallithea/public/less/style.less
Show inline comments
 
@@ -46,30 +46,28 @@ i[class^='icon-gravatar'] {
 
a.permalink {
 
  visibility: hidden;
 
}
 
.panel-heading:hover .permalink {
 
  visibility: visible;
 
}
 

	
 
.navbar-inverse {
 
  border: none;
 
}
 

	
 
/* 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;
 
    background-image: url(@kallithea-logo-url);
 
    width: @kallithea-logo-width;
 
    height: @kallithea-logo-height;
 
    margin-bottom: -@kallithea-logo-bottom;
 
    margin-top: -12px;
 
  }
 
}
 

	
 
/* code highlighting */
0 comments (0 inline, 0 general)