mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -05:00
Use omega-profile-select in popup menu.
This commit is contained in:
parent
7315d18ed9
commit
a66f604fae
74
omega-web/src/less/common.less
Normal file
74
omega-web/src/less/common.less
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
/* angular */
|
||||||
|
|
||||||
|
.ng-hide {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* helpers */
|
||||||
|
|
||||||
|
.clear-padding {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* basic */
|
||||||
|
|
||||||
|
a[role="button"] {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control.ng-invalid {
|
||||||
|
border-color: #a94442;
|
||||||
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: #843534;
|
||||||
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #CE8483;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.disabled .btn {
|
||||||
|
background-color: #ddd !important;
|
||||||
|
border-color: #ccc !important;
|
||||||
|
cursor: not-allowed !important;
|
||||||
|
pointer-events: none !important;
|
||||||
|
opacity: .65 !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* profile */
|
||||||
|
|
||||||
|
.virtual-profile-icon {
|
||||||
|
border: dotted 1px;
|
||||||
|
margin: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* omega-profile-select */
|
||||||
|
|
||||||
|
.omega-profile-select {
|
||||||
|
width: 100%;
|
||||||
|
.dropdown-menu>li>a {
|
||||||
|
max-width: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
text-align: left;
|
||||||
|
text-align: initial;
|
||||||
|
position: relative;
|
||||||
|
padding-right: 25px;
|
||||||
|
|
||||||
|
.caret {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 12px;
|
||||||
|
margin-top: -2px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu {
|
||||||
|
width: 100%;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
@ -1,11 +1,4 @@
|
|||||||
/* angular */
|
@import 'common.less';
|
||||||
.ng-hide {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
a[role="button"] {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.width-initial {
|
.width-initial {
|
||||||
width: auto !important;
|
width: auto !important;
|
||||||
@ -37,10 +30,6 @@ a[role="button"] {
|
|||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clear-padding {
|
|
||||||
padding: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.align-initial {
|
.align-initial {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
text-align: initial;
|
text-align: initial;
|
||||||
@ -65,16 +54,6 @@ ul.list-style-none, li.list-style-none {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-control.ng-invalid {
|
|
||||||
border-color: #a94442;
|
|
||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
border-color: #843534;
|
|
||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #CE8483;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* alert */
|
/* alert */
|
||||||
|
|
||||||
.alert-top-wrapper {
|
.alert-top-wrapper {
|
||||||
@ -115,43 +94,6 @@ ul.list-style-none, li.list-style-none {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* omega-profile-select */
|
|
||||||
|
|
||||||
.omega-profile-select {
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
width: 100%;
|
|
||||||
display: block;
|
|
||||||
text-align: left;
|
|
||||||
text-align: initial;
|
|
||||||
position: relative;
|
|
||||||
padding-right: 25px;
|
|
||||||
|
|
||||||
.caret {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
right: 12px;
|
|
||||||
margin-top: -2px;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-menu {
|
|
||||||
width: 100%;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.disabled .btn {
|
|
||||||
background-color: #ddd !important;
|
|
||||||
border-color: #ccc !important;
|
|
||||||
cursor: not-allowed !important;
|
|
||||||
pointer-events: none !important;
|
|
||||||
opacity: .65 !important;
|
|
||||||
box-shadow: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* body */
|
/* body */
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
@ -1,15 +1,7 @@
|
|||||||
/* angular */
|
@import 'common.less';
|
||||||
|
|
||||||
.ng-hide {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* popup */
|
/* popup */
|
||||||
|
|
||||||
.clear-padding {
|
|
||||||
padding: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -28,11 +20,6 @@ body.with-condition-form {
|
|||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.virtual-profile-icon {
|
|
||||||
border: dotted 1px;
|
|
||||||
margin: -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
@ -88,7 +75,7 @@ li > a {
|
|||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
li .dropdown-menu {
|
||||||
position: static;
|
position: static;
|
||||||
top: initial;
|
top: initial;
|
||||||
top: -moz-initial;
|
top: -moz-initial;
|
||||||
@ -144,16 +131,6 @@ legend,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-control.ng-invalid {
|
|
||||||
border-color: #a94442;
|
|
||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
border-color: #843534;
|
|
||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #CE8483;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.proxy-not-controllable {
|
.proxy-not-controllable {
|
||||||
min-width: 400px;
|
min-width: 400px;
|
||||||
padding: 10px 5px;
|
padding: 10px 5px;
|
||||||
|
@ -122,8 +122,8 @@ html(lang='en' ng-app='omegaPopup' ng-controller='PopupCtrl' ng-csp)
|
|||||||
input.form-control.condition-details(type='text' required ng-model='rule.condition.pattern')
|
input.form-control.condition-details(type='text' required ng-model='rule.condition.pattern')
|
||||||
div.form-group
|
div.form-group
|
||||||
label {{'options_resultProfile' | tr}}
|
label {{'options_resultProfile' | tr}}
|
||||||
select.form-control(required ng-model="rule.profileName"
|
div(omega-profile-select='validResultProfiles' ng-model='rule.profileName'
|
||||||
ng-options='profile.name as (profile.name | dispName) for profile in validResultProfiles')
|
disp-name='$profile.name | dispName')
|
||||||
div.condition-controls
|
div.condition-controls
|
||||||
button.btn.btn-default(type='button' ng-click='showConditionForm = false')
|
button.btn.btn-default(type='button' ng-click='showConditionForm = false')
|
||||||
| {{'dialog_cancel' | tr}}
|
| {{'dialog_cancel' | tr}}
|
||||||
|
Loading…
Reference in New Issue
Block a user