Commit 1f28ff68 by Torkel Ödegaard

ux(): added gf-form-select-wrapper

parent 640c9a49
......@@ -20,9 +20,11 @@
<div class="gf-form">
<span class="gf-form-label width-7">Type</span>
<div class="gf-form-select-wrapper">
<select class="gf-form-input gf-size-auto" ng-model="current.type" ng-options="k as v.name for (k, v) in types" ng-change="typeChanged()"></select>
</div>
</div>
</div>
<rebuild-on-change property="datasourceMeta.id">
<plugin-component type="datasource-config-ctrl">
......
......@@ -104,34 +104,31 @@ $gf-form-label-margin: 0.2rem;
&.gf-size-auto { width: auto; }
}
// select.gf-form-input {
// -webkit-appearance: none;
// -moz-appearance: menulist-text; // was set to "window" and caused odd display on windos and linux.
// appearance: none;
//
//
// &:-moz-focusring {
// color: transparent;
// }
// }
//
// .gf-form-select-wrapper {
// position: relative;
// &:after {
// position: absolute;
// top: 50%;
// right: 10px;
// height: 12px;
// margin-top: -6px;
// padding: 0;
// background-color: transparent;
// color: $input-color;
// font: normal normal normal 14px/1 FontAwesome;
// text-align: center;
// content: '\f0d7';
// pointer-events: none;
// }
// }
.gf-form-select-wrapper {
position: relative;
select.gf-form-input {
padding-right: $input-padding-x*2;
-webkit-appearance: none;
-moz-appearance: menulist-text; // was set to "window" and caused odd display on windos and linux.
appearance: none;
&:-moz-focusring {
color: transparent;
}
}
&:after {
position: absolute;
top: 35%;
right: $input-padding-x/2;
background-color: transparent;
color: $input-color;
font: normal normal normal $font-size-sm/1 FontAwesome;
content: '\f0d7';
pointer-events: none;
}
}
.gf-form-btn {
padding: $input-padding-y $input-padding-x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment