Files
awx/awx/ui/client/legacy-styles/forms.less
Jared Tabor 187c01e349 Restyling of textarea input fields
This mostly includes the Code Mirror instances as well as textarea fields on the credentials form. Also includes the styling of radio button for the variables textarea box.
2016-01-27 21:54:03 -08:00

256 lines
4.5 KiB
Plaintext

/*********************************************
* Copyright (c) 2016 Ansible, Inc.
*
* Forms.less
*
* custom styles for generated forms
*
*/
@import "awx/ui/client/src/shared/branding/colors.default.less";
.Form{
display:flex;
flex-wrap:wrap;
flex-direction: row;
}
.Form-header{
display: flex;
}
.Form-title{
flex: 1 0 auto;
text-transform: uppercase;
color: @list-header-txt;
font-size: 14px;
font-weight: bold;
white-space: nowrap;
padding-bottom: 25px;
min-height: 45px;
}
.Form-title--is_superuser{
height:15px;
color: @btn-txt;
background-color: @btn-bg;
border-radius: 5px;
border: 1px solid @btn-bord;
font-size: 10px;
padding-left: 10px;
padding-right: 10px;
margin-left: 10px;
text-transform: uppercase;
font-weight: 100;
position: absolute;
margin-top: 2px;
}
.Form-exitHolder{
justify-content: flex-end;
display:flex;
}
.Form-exit{
cursor:pointer;
padding:0px;
border: none;
height:20px;
font-size: 20px;
background-color:@default-bg;
color:@default-second-border;
transition: color 0.2s;
line-height:1;
}
.Form-exit:hover{
color:@default-icon;
}
.Form-tabHolder{
display: flex;
margin-bottom: 20px;
min-height: 30px;
}
.Form-tab {
color: @btn-txt;
background-color: @btn-bg;
font-size: 12px;
border: 1px solid @btn-bord;
height: 30px;
border-radius: 5px;
margin-right: 20px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 5px;
padding-top: 5px;
transition: background-color 0.2s;
text-transform: uppercase;
text-align: center;
white-space: nowrap;
}
.Form-tab:hover {
color: @btn-txt;
background-color: @btn-bg-hov;
cursor: pointer;
}
.Form-tab:active {
color: @btn-txt-sel;
background-color: @btn-bg-sel;
cursor: pointer;
}
.Form-tab:focus {
color: @btn-txt-sel;
}
.Form-tab.is-selected {
color: @btn-txt-sel;
background-color: @btn-bg-sel;
border-color: @btn-bord-sel;
}
.Form-tab--disabled {
opacity: 0.4;
cursor: not-allowed !important;
}
.Form-tab--disabled:hover {
color: @btn-txt;
background-color: @btn-bg;
}
.Form-tabSection{
display: none;
width: 0%;
}
.Form-tabSection.is-selected{
width: 100%;
display: block;
}
.Form-formGroup {
flex: 1 0 auto;
margin-bottom: 25px;
width: 33%;
padding-right: 50px;
}
.Form-textArea{
width:100%;
}
.CodeMirror{
border-radius: 5px;
font-family: 'Open Sans';
font-style: normal;
color: @default-data-txt;
}
.CodeMirror-gutters{
background-color:@code-mirror-gutter !important;
}
input[type='radio'] {
-webkit-appearance:none;
width:14px;
height:14px;
border:1px solid @radio-bg;
border-radius:50%;
outline:none;
vertical-align: sub;
}
input[type='radio']:focus {
outline:none;
}
input[type='radio']:hover {
box-shadow:0 0 5px 0px @btn-bg-hov inset;
}
input[type='radio']:before {
content:'';
display:block;
width:65%;
height:60%;
margin: 20% auto;
border-radius:50%;
}
input[type='radio']:checked:before {
background:@radio-bg;
outline:none;
}
.Form-inputLabel{
text-transform: uppercase;
color: @default-interface-txt;
font-weight: normal;
font-size: small;
padding-right:5px;
}
.Form-buttons{
height: 30px;
display: flex;
justify-content: flex-end;
}
.Form-saveButton{
background-color: @submit-button-bg;
margin-right: 20px;
color: @submit-button-text;
text-transform: uppercase;
transition: background-color 0.2s;
padding-left:15px;
padding-right: 15px;
}
.Form-saveButton:disabled{
background-color: @submit-button-bg-dis;
}
.Form-saveButton:hover{
background-color: @submit-button-bg-hov;
color: @submit-button-text;
}
.Form-cancelButton{
background-color: @default-bg;
color: @btn-txt;
text-transform: uppercase;
border-radius: 5px;
border: 1px solid @btn-bord;
transition: background-color 0.2s;
padding-left:15px;
padding-right: 15px;
}
.Form-cancelButton:hover{
background-color: @btn-bg-hov;
color: @btn-txt;
}
@media only screen and (max-width: 650px) {
.Form-formGroup {
flex: 1 0 auto;
margin-bottom: 25px;
width: 100%;
padding-right: 50px;
}
}
@media (min-width: 651px) and (max-width: 900px) {
.Form-formGroup {
flex: 1 0 auto;
margin-bottom: 25px;
width: 50%;
padding-right: 50px;
}
}