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
 
@@ -40,12 +40,13 @@
 

	
 
/* 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,
kallithea/public/less/style.less
Show inline comments
 
@@ -52,18 +52,16 @@ a.permalink {
 

	
 
.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;
0 comments (0 inline, 0 general)