phpvms/resources/sass/admin/paper/_navbars.scss

297 lines
5.5 KiB
SCSS
Raw Normal View History

2017-08-18 03:54:14 +08:00
.nav {
> li{
> a:hover,
> a:focus{
background-color: transparent;
}
2017-08-18 07:26:48 +08:00
}
2017-08-18 03:54:14 +08:00
}
.navbar{
border: $none;
border-radius: 0;
2017-08-18 07:26:48 +08:00
font-size: $font-size-navbar;
z-index: 3;
.navbar-brand{
2017-08-19 01:02:32 +08:00
color: $white-color;
font-weight: $font-weight-light;;
margin: $navbar-margin-brand;
padding: $navbar-padding-brand;
2017-08-18 03:54:14 +08:00
font-size: $font-size-large-navbar;
}
.navbar-nav{
> li > a {
2017-08-18 07:26:48 +08:00
line-height: 1.42857;
margin: $navbar-margin-a;
padding: $navbar-padding-a;
2017-08-18 07:26:48 +08:00
i,
p{
2017-08-18 07:26:48 +08:00
display: inline-block;
margin: 0;
}
i{
2017-08-18 07:26:48 +08:00
position: relative;
2017-08-25 02:37:54 +08:00
margin-right: 5px;
2017-08-18 07:26:48 +08:00
top: 1px;
}
2017-08-18 03:54:14 +08:00
}
> li > a.btn{
margin: $navbar-margin-a-btn;
padding: $padding-base-vertical $padding-base-horizontal;
}
}
.btn{
margin: $navbar-margin-btn;
font-size: $font-size-base;
}
.btn-simple{
font-size: $font-size-medium;
}
}
.navbar-nav > li > .dropdown-menu{
border-radius: $border-radius-extreme;
margin-top: -5px;
}
2017-08-18 07:26:48 +08:00
.navbar-default {
2017-08-19 01:02:32 +08:00
color: $white-color;
background-color: $phpvms-blue;
2017-08-18 07:26:48 +08:00
border-bottom: 1px solid $medium-gray;
2017-08-18 03:54:14 +08:00
2017-08-18 07:26:48 +08:00
.brand{
2017-08-19 01:02:32 +08:00
color: $white-color !important;
2017-08-18 03:54:14 +08:00
}
.navbar-nav{
> li > a:not(.btn){
2017-08-19 01:02:32 +08:00
color: $white-color;
2017-08-18 03:54:14 +08:00
}
2017-08-18 07:26:48 +08:00
> .active > a,
> .active > a:not(.btn):hover,
> .active > a:not(.btn):focus,
> li > a:not(.btn):hover,
2017-08-18 03:54:14 +08:00
> li > a:not(.btn):focus {
background-color: transparent;
border-radius: 3px;
color: $info-color;
@include opacity(1);
}
2017-08-18 07:26:48 +08:00
> .dropdown > a:hover .caret,
2017-08-18 03:54:14 +08:00
> .dropdown > a:focus .caret {
border-bottom-color: $info-color;
border-top-color: $info-color;
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
}
2017-08-18 07:26:48 +08:00
> .open > a,
> .open > a:hover,
2017-08-18 03:54:14 +08:00
> .open > a:focus{
background-color: transparent;
color: $info-color;
}
.navbar-toggle:hover,.navbar-toggle:focus {
background-color: transparent;
}
2017-08-18 07:26:48 +08:00
}
2017-08-18 03:54:14 +08:00
&:not(.navbar-transparent) .btn-default:hover{
color: $info-color;
border-color: $info-color;
}
&:not(.navbar-transparent) .btn-neutral,
&:not(.navbar-transparent) .btn-neutral:hover,
&:not(.navbar-transparent) .btn-neutral:active{
color: $dark-gray;
}
}
.navbar-form{
@include box-shadow(none);
.form-control{
2017-08-18 07:26:48 +08:00
@include light-form();
2017-08-18 03:54:14 +08:00
height: 22px;
font-size: $font-size-navbar;
line-height: $line-height-general;
color: $light-gray;
}
2017-08-18 07:26:48 +08:00
.navbar-transparent & .form-control,
2017-08-18 03:54:14 +08:00
[class*="navbar-ct"] & .form-control{
color: $white-color;
border: $none;
border-bottom: 1px solid rgba($white-color,.6);
}
}
2017-08-18 07:26:48 +08:00
.navbar-ct-primary{
@include navbar-color($bg-primary);
2017-08-18 03:54:14 +08:00
}
2017-08-18 07:26:48 +08:00
.navbar-ct-info{
@include navbar-color($bg-info);
2017-08-18 03:54:14 +08:00
}
2017-08-18 07:26:48 +08:00
.navbar-ct-success{
@include navbar-color($bg-success);
2017-08-18 03:54:14 +08:00
}
2017-08-18 07:26:48 +08:00
.navbar-ct-warning{
@include navbar-color($bg-warning);
2017-08-18 03:54:14 +08:00
}
2017-08-18 07:26:48 +08:00
.navbar-ct-danger{
@include navbar-color($bg-danger);
2017-08-18 03:54:14 +08:00
}
.navbar-transparent{
padding-top: 15px;
background-color: transparent;
border-bottom: 1px solid transparent;
}
.navbar-toggle{
margin-top: 19px;
margin-bottom: 19px;
border: $none;
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
.icon-bar {
background-color: $white-color;
}
2017-08-18 07:26:48 +08:00
.navbar-collapse,
2017-08-18 03:54:14 +08:00
.navbar-form {
border-color: transparent;
}
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
&.navbar-default .navbar-toggle:hover,
&.navbar-default .navbar-toggle:focus {
background-color: transparent;
}
}
2017-08-18 07:26:48 +08:00
.navbar-transparent, [class*="navbar-ct"]{
.navbar-brand{
@include opacity(.9);
&:focus,
&:hover{
background-color: transparent;
@include opacity(1);
}
}
.navbar-brand:not([class*="text"]){
color: $white-color;
}
.navbar-nav{
> li > a:not(.btn){
color: $white-color;
border-color: $white-color;
@include opacity(0.8);
}
> .active > a:not(.btn),
> .active > a:hover:not(.btn),
> .active > a:focus:not(.btn),
> li > a:hover:not(.btn),
> li > a:focus:not(.btn){
background-color: transparent;
border-radius: 3px;
color: $white-color;
@include opacity(1);
}
2017-08-18 03:54:14 +08:00
2017-08-18 07:26:48 +08:00
.nav > li > a.btn:hover{
background-color: transparent;
}
> .dropdown > a .caret,
> .dropdown > a:hover .caret,
> .dropdown > a:focus .caret{
border-bottom-color: $white-color;
border-top-color: $white-color;
}
> .open > a,
> .open > a:hover,
> .open > a:focus {
background-color: transparent;
color: $white-color;
@include opacity(1);
}
}
.btn-default{
color: $white-color;
border-color: $white-color;
}
.btn-default.btn-fill{
color: $dark-gray;
background-color: $white-color;
@include opacity(.9);
}
.btn-default.btn-fill:hover,
.btn-default.btn-fill:focus,
.btn-default.btn-fill:active,
.btn-default.btn-fill.active,
.open .dropdown-toggle.btn-fill.btn-default{
border-color: $white-color;
@include opacity(1);
}
}