/*! * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ //ManifoldCF mixins //=============== //Changes the color and the hovering properties of the navbar .navbar-variant(@color; @font-color: rgba(255, 255, 255, 0.8); @hover-color: #f6f6f6; @hover-bg: rgba(0, 0, 0, 0.1)) { background-color: @color; //Navbar links .nav > li > a { color: @font-color; } .nav > li > a:hover, .nav > li > a:active, .nav > li > a:focus, .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background: @hover-bg; color: @hover-color; } //Add color to the sidebar toggle button .sidebar-toggle { color: @font-color; &:hover { color: @hover-color; background: @hover-bg; } } } //Box solid color variantion creator .box-solid-variant(@color; @text-color: #fff) { border: 1px solid @color; > .box-header { color: @text-color; background: @color; background-color: @color; a, .btn { color: @text-color; } } } //border radius creator .border-radius(@radius) { border-radius: @radius; } //Gradient background .gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) { background: @color; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, @start), color-stop(1, @stop)); background: -ms-linear-gradient(bottom, @start, @stop); background: -moz-linear-gradient(center bottom, @start 0%, @stop 100%); background: -o-linear-gradient(@stop, @start); filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@stop,@start)); } //Added 2.1.0 //Skins Mixins //Dark Sidebar Mixin .skin-dark-sidebar(@link-hover-border-color) { .main-sidebar{ background-color: @sidebar-dark-bg; } //Sidebar Menu. First level links .sidebar-menu > li { //Section Headning &.header { color: lighten(@sidebar-dark-bg, 20%); background: darken(@sidebar-dark-bg, 4%); } //links > a { border-left: 3px solid transparent; } //Hover and active states &:hover > a, &.active > a { color: @sidebar-dark-hover-color; background: @sidebar-dark-hover-bg; border-left-color: @link-hover-border-color; } //First Level Submenu > .treeview-menu { margin: 0 1px; background: @sidebar-dark-submenu-bg; } } //All links within the sidebar menu .sidebar a { color: @sidebar-dark-color; &:hover { text-decoration: none; } } //All submenus .treeview-menu { > li { > a { color: @sidebar-dark-submenu-color; } &.active > a, > a:hover { color: @sidebar-dark-submenu-hover-color; } } } }