mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
142 lines
2.9 KiB
SCSS
142 lines
2.9 KiB
SCSS
$gf-form-margin: 0.25rem;
|
|
$gf-form-label-margin: 0.25rem;
|
|
|
|
.gf-form {
|
|
margin-bottom: $gf-form-margin;
|
|
margin-right: $gf-form-margin;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
text-align: left;
|
|
|
|
.cr1 {
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
|
|
.gf-form-group {
|
|
margin-bottom: $spacer * 2.5;
|
|
}
|
|
|
|
.gf-form-inline {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
align-content: flex-start;
|
|
|
|
.gf-form-flex {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
|
|
.gf-form-button-row {
|
|
padding-top: $spacer * 1.5;
|
|
a, button {
|
|
margin-right: $spacer;
|
|
}
|
|
}
|
|
|
|
.gf-form-label {
|
|
padding: $input-padding-y $input-padding-x;
|
|
line-height: $input-line-height;
|
|
flex-shrink: 0;
|
|
|
|
background-color: $input-label-bg;
|
|
display: block;
|
|
font-size: $font-size-sm;
|
|
margin-right: $gf-form-label-margin;
|
|
|
|
border: $input-btn-border-width solid transparent;
|
|
@include border-radius($label-border-radius-sm);
|
|
}
|
|
|
|
.gf-form-checkbox {
|
|
flex-shrink: 0;
|
|
padding: $input-padding-y $input-padding-x;
|
|
line-height: $input-line-height;
|
|
|
|
.checkbox-label {
|
|
display: inline;
|
|
cursor: pointer;
|
|
padding: $input-padding-y $input-padding-x;
|
|
line-height: $input-line-height;
|
|
}
|
|
}
|
|
|
|
.gf-form-input {
|
|
display: block;
|
|
width: 100%;
|
|
padding: $input-padding-y $input-padding-x;
|
|
font-size: $font-size-base;
|
|
line-height: $input-line-height;
|
|
color: $input-color;
|
|
background-color: $input-bg;
|
|
background-image: none;
|
|
background-clip: padding-box;
|
|
border: $input-btn-border-width solid $input-border-color;
|
|
@include border-radius($input-border-radius-sm);
|
|
@include box-shadow($input-box-shadow);
|
|
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
|
|
|
// Unstyle the caret on `<select>`s in IE10+.
|
|
&::-ms-expand {
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
// Customize the `:focus` state to imitate native WebKit styles.
|
|
@include form-control-focus();
|
|
|
|
// Placeholder
|
|
&::placeholder {
|
|
color: $input-color-placeholder;
|
|
opacity: 1;
|
|
}
|
|
|
|
&:disabled,
|
|
&[readonly] {
|
|
background-color: $input-bg-disabled;
|
|
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
|
|
opacity: 1;
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: $cursor-disabled;
|
|
}
|
|
|
|
&.gf-size-auto { width: auto; }
|
|
}
|
|
|
|
.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;
|
|
line-height: $input-line-height;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
}
|