Files
awx/awx/ui/client/lib/components/input/_index.less
gconsidine fa330db9c5 Add UI/UX polish in prep for merge
* Bring UI/UX inline with recent changes
* Use select components as a stopgap for credential_types and orgs
* Add tabs to permissions view
* Add Organization model
2017-06-16 15:23:18 -04:00

209 lines
3.5 KiB
Plaintext

.at-Input {
.at-mixin-Placeholder(@at-gray-dark-3x);
height: @at-input-height;
background: @at-white;
border-radius: @at-border-radius;
color: @at-gray-dark-5x;
&, &:active {
border-color: @at-gray-dark-2x;
}
&:focus {
border-color: @at-blue;
}
}
.at-InputCheckbox {
margin: 0;
padding: 0;
& > label {
& > input[type=checkbox] {
height: @at-input-height;
margin: 0;
padding: 0;
}
& > p {
margin: 0;
padding: 0 0 0 @at-space-6x;
line-height: @at-line-height-tall;
}
}
}
.at-InputContainer {
margin-top: @at-space-6x;
}
.at-Input-button {
min-width: @at-input-button-width;
display: block;
height: @at-input-height;
&, &:active, &:hover, &:focus {
color: @at-gray-dark-3x;
border-color: @at-gray-dark-2x;
background-color: @at-white;
cursor: pointer;
}
}
.at-Input--focus {
border-color: @at-blue;
}
.at-Input--rejected {
&, &:focus {
border-color: @at-red;
}
}
.at-InputFile--hidden {
position: absolute;
height: 100%;
width: 100%;
left: 0;
right: @at-input-button-width;
z-index: -2;
opacity: 0;
}
.at-InputFile--drag {
z-index: 3;
}
.at-InputGroup {
padding: 0;
margin: @at-space-6x 0 0 0;
}
.at-InputGroup-border {
position: absolute;
width: @at-inset-width;
height: 100%;
background: @at-gray-dark;
left: -@at-inset-width;
}
.at-InputGroup-button {
height: 100%;
& > button {
height: 100%;
}
}
.at-InputGroup-title {
.at-mixin-Heading(@at-font-size-2x);
margin: 0 0 0 @at-space-5x;
}
.at-InputGroup-divider {
clear: both;
margin: 0;
padding: 0;
height: @at-space-6x;
}
.at-InputLabel {
display: inline-block;
width: 100%;
}
.at-InputLabel-name {
color: @at-gray-dark-4x;
font-size: @at-font-size-2x;
font-weight: @at-font-weight;
text-transform: uppercase;
}
.at-InputLabel-hint {
margin-left: @at-space-4x;
color: @at-gray-dark-3x;
font-size: @at-font-size;
font-weight: @at-font-weight;
line-height: @at-line-height-short;
}
.at-InputLabel-checkbox {
margin: 0;
padding: 0;
}
.at-InputLabel-checkboxLabel {
margin-bottom: 0;
& > input[type=checkbox] {
margin: 0 @at-space 0 0;
position: relative;
top: @at-space;
}
& > p {
font-size: @at-font-size;
color: @at-gray-dark-4x;
font-weight: @at-font-weight;
display: inline;
margin: 0;
padding: 0;
}
}
.at-InputMessage--rejected {
font-size: @at-font-size;
color: @at-red;
margin: @at-space-3x 0 0 0;
padding: 0;
}
.at-InputLabel-required {
color: @at-red;
font-weight: @at-font-weight-2x;
font-size: @at-font-size-2x;
margin: 0;
}
.at-InputSelect {
position: relative;
width: 100%;
& > i {
font-size: @at-font-size;
position: absolute;
z-index: 3;
pointer-events: none;
top: @at-space-4x;
right: @at-space-4x;
color: @at-gray-dark-2x;
}
}
.at-InputSelect-input {
position: relative;
z-index: 2;
pointer-events: none;
}
.at-InputSelect-select {
height: @at-input-height;
cursor: pointer;
position: absolute;
z-index: 1;
top: 0;
& > optgroup {
text-transform: uppercase;
& > option {
text-transform: none;
}
}
}
.at-InputTextarea {
.at-mixin-FontFixedWidth();
}