Files
awx/awx/ui/client/legacy-styles/forms.less

208 lines
3.7 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-inputLabel{
text-transform: uppercase;
color: @default-interface-txt;
font-weight: normal;
font-size: small;
}
.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;
}
}