mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-06 11:46:10 +02:00
Merged in feature/css_disable_dropdown (pull request #240)
feature/css_disable_dropdown
This commit is contained in:
@@ -16,7 +16,7 @@ class DropDown extends React.Component<Props> {
|
||||
render() {
|
||||
const { options, optionValues, preselectedOption, className, disabled } = this.props;
|
||||
return (
|
||||
<div className={classNames(className, "select")}>
|
||||
<div className={classNames(className, "select", disabled ? "disabled": "")}>
|
||||
<select
|
||||
value={preselectedOption ? preselectedOption : ""}
|
||||
onChange={this.change}
|
||||
|
||||
@@ -102,10 +102,12 @@ $fa-font-path: "webfonts";
|
||||
&.is-primary {
|
||||
background-color: #00d1df;
|
||||
}
|
||||
&.is-primary:hover, &.is-primary.is-hovered {
|
||||
&.is-primary:hover,
|
||||
&.is-primary.is-hovered {
|
||||
background-color: #00b9c6;
|
||||
}
|
||||
&.is-primary:active, &.is-primary.is-active {
|
||||
&.is-primary:active,
|
||||
&.is-primary.is-active {
|
||||
background-color: #00a1ac;
|
||||
}
|
||||
&.is-primary[disabled] {
|
||||
@@ -144,7 +146,7 @@ $fa-font-path: "webfonts";
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.overlay-half-column{
|
||||
.overlay-half-column {
|
||||
position: absolute;
|
||||
height: calc(120px - 0.5rem);
|
||||
width: calc(100% - 1.5rem);
|
||||
@@ -256,6 +258,15 @@ form .field:not(.is-grouped) {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.select,
|
||||
.select:hover {
|
||||
&:not(.is-multiple):not(.is-loading) {
|
||||
&.disabled::after {
|
||||
border-color: #7a7a7a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// label with help-icon compensation
|
||||
.label-icon-spacing {
|
||||
margin-top: 30px;
|
||||
|
||||
Reference in New Issue
Block a user