refactor(global)
parent
34432efc85
commit
43bce072a3
|
@ -20,7 +20,7 @@
|
||||||
menu.expanded = menu.expanded || menu.selected;
|
menu.expanded = menu.expanded || menu.selected;
|
||||||
if (menu.subMenu) {
|
if (menu.subMenu) {
|
||||||
$.each(menu.subMenu, function (subIndex, subMenu) {
|
$.each(menu.subMenu, function (subIndex, subMenu) {
|
||||||
subMenu.selected = ('#' + $location.$$url).indexOf(subMenu.root) == 0;
|
subMenu.selected = (('#' + $location.$$url).indexOf(subMenu.root) == 0) && !subMenu.disabled;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
subSubitem.title }}</a>
|
subSubitem.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a ng-mouseenter="hoverItem($event, item)" target="{{subitem.root[0]=='#' ? '_self' : '_blank'}}" ng-if="!subitem.subMenu" href="{{ subitem.root }}">{{ subitem.title}}</a>
|
<a ng-mouseenter="hoverItem($event, item)" target="{{subitem.blank ? '_blank' : '_self'}}" ng-if="!subitem.subMenu" href="{{ subitem.root }}">{{ subitem.title}}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -11,28 +11,33 @@
|
||||||
icon: 'ion-document',
|
icon: 'ion-document',
|
||||||
subMenu: [{
|
subMenu: [{
|
||||||
title: 'Sign In',
|
title: 'Sign In',
|
||||||
root: 'auth.html'
|
root: 'auth.html',
|
||||||
|
blank: true
|
||||||
}, {
|
}, {
|
||||||
title: 'Sign Up',
|
title: 'Sign Up',
|
||||||
root: 'reg.html'
|
root: 'reg.html',
|
||||||
|
blank: true
|
||||||
}, {
|
}, {
|
||||||
title: 'User Profile',
|
title: 'User Profile',
|
||||||
root: '#/profile'
|
root: '#/profile'
|
||||||
}, {
|
}, {
|
||||||
title: '404 Page',
|
title: '404 Page',
|
||||||
root: '404.html'
|
root: '404.html',
|
||||||
|
blank: true
|
||||||
}]
|
}]
|
||||||
}, {
|
}, {
|
||||||
title: 'Menu Level 1',
|
title: 'Menu Level 1',
|
||||||
icon: 'ion-ios-more',
|
icon: 'ion-ios-more',
|
||||||
subMenu: [{
|
subMenu: [{
|
||||||
title: 'Menu Level 1.1',
|
title: 'Menu Level 1.1',
|
||||||
root: '#'
|
root: '#',
|
||||||
|
disabled: true
|
||||||
}, {
|
}, {
|
||||||
title: 'Menu Level 1.2',
|
title: 'Menu Level 1.2',
|
||||||
subMenu: [{
|
subMenu: [{
|
||||||
title: 'Menu Level 1.2.1',
|
title: 'Menu Level 1.2.1',
|
||||||
root: '#'
|
root: '#',
|
||||||
|
disabled: true
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
}];
|
}];
|
||||||
|
|
|
@ -85,6 +85,7 @@ $btn-icon-size: 34px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
.row + .row {
|
.row + .row {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
|
|
|
@ -124,7 +124,7 @@ textarea.form-control {
|
||||||
}
|
}
|
||||||
|
|
||||||
.bootstrap-switch {
|
.bootstrap-switch {
|
||||||
border-radius: 0;
|
border-radius: 5px;
|
||||||
border: 1px solid $default;
|
border: 1px solid $default;
|
||||||
transition: border-color ease-in-out .7s, box-shadow ease-in-out .7s;
|
transition: border-color ease-in-out .7s, box-shadow ease-in-out .7s;
|
||||||
&:focus {
|
&:focus {
|
||||||
|
@ -446,7 +446,7 @@ label.custom-input-danger {
|
||||||
.bootstrap-select {
|
.bootstrap-select {
|
||||||
.btn-default {
|
.btn-default {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #555555;
|
color: $default;
|
||||||
&:focus {
|
&:focus {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
@ -459,13 +459,11 @@ label.custom-input-danger {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.open {
|
&.open {
|
||||||
.btn-default + .dropdown-menu {
|
|
||||||
border-top: 1px solid $disabled;
|
|
||||||
}
|
|
||||||
.btn-default.dropdown-toggle {
|
.btn-default.dropdown-toggle {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border-color: $default;
|
border-color: $default;
|
||||||
|
color: $default;
|
||||||
}
|
}
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
border-left: 1px solid $default;
|
border-left: 1px solid $default;
|
||||||
|
@ -483,9 +481,15 @@ label.custom-input-danger {
|
||||||
border-top: none;
|
border-top: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&.with-search.open{
|
||||||
|
.btn-default.btn{
|
||||||
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
|
border-color: 1px solid $default;
|
||||||
|
}
|
||||||
|
}
|
||||||
&.with-search.open .btn-default + .dropdown-menu {
|
&.with-search.open .btn-default + .dropdown-menu {
|
||||||
.bs-searchbox .form-control {
|
.bs-searchbox .form-control {
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
background-color: rgba(0, 0, 0, 0.35);
|
||||||
}
|
}
|
||||||
.no-results {
|
.no-results {
|
||||||
color: $default-text;
|
color: $default-text;
|
||||||
|
|
|
@ -132,10 +132,11 @@ $snPadding: 8px;
|
||||||
a.sn-link {
|
a.sn-link {
|
||||||
transition: none;
|
transition: none;
|
||||||
display: block;
|
display: block;
|
||||||
background-color: #fff;
|
border-radius: 5px;
|
||||||
|
background-color: rgba(0, 0, 0, .15);
|
||||||
padding: $snPadding;
|
padding: $snPadding;
|
||||||
color: $default-text;
|
color: $default;
|
||||||
border: 1px solid $border;
|
border: 1px solid transparent;
|
||||||
margin-bottom: 23px;
|
margin-bottom: 23px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -147,7 +148,7 @@ a.sn-link {
|
||||||
width: auto;
|
width: auto;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
background-color: #666666;
|
background-color: rgba(0,0,0,.15);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
span {
|
span {
|
||||||
|
@ -164,7 +165,7 @@ a.sn-link {
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
padding: $snPadding - 1;
|
padding: $snPadding - 1;
|
||||||
span {
|
span {
|
||||||
color: $snColor;
|
color: $default;
|
||||||
}
|
}
|
||||||
i {
|
i {
|
||||||
background: $snColor;
|
background: $snColor;
|
||||||
|
|
|
@ -37,7 +37,7 @@ $hover: 24;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.open > .dropdown-toggle {
|
.open > .btn.dropdown-toggle {
|
||||||
&.btn.btn-primary {
|
&.btn.btn-primary {
|
||||||
@include styleButton($primary, $primary - $hover);
|
@include styleButton($primary, $primary - $hover);
|
||||||
background-color: $primary-dark;
|
background-color: $primary-dark;
|
||||||
|
@ -45,6 +45,10 @@ $hover: 24;
|
||||||
}
|
}
|
||||||
&.btn-default {
|
&.btn-default {
|
||||||
@include styleButton(transparent, $default);
|
@include styleButton(transparent, $default);
|
||||||
|
&:focus, &:active:hover, &.active:hover, &:hover{
|
||||||
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
|
color: $default;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&.btn-success {
|
&.btn-success {
|
||||||
@include styleButton($success, $success - $hover);
|
@include styleButton($success, $success - $hover);
|
||||||
|
@ -116,6 +120,18 @@ button.btn.btn-danger {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
button.btn.btn-inverse {
|
||||||
|
@include buttonColor($help-text, $help-text);
|
||||||
|
color: $default;
|
||||||
|
&:active, &:target, &:hover {
|
||||||
|
background-color: $help-text;
|
||||||
|
color: $default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.btn-with-icon {
|
.btn-with-icon {
|
||||||
i {
|
i {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
|
Loading…
Reference in New Issue