/********************************************* * Copyright (c) 2016 Ansible, Inc. * * Forms.less * * custom styles for generated forms * */ .noselect { -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Chrome/Safari/Opera */ -khtml-user-select: none; /* Konqueror */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */ user-select: none; /* Non-prefixed version, currently not supported by any browser */ } .Form { display:flex; flex-wrap:wrap; flex-direction: row; } .Form-header--fields { flex: 1 1 auto; } .Form-header-field { margin-left: 10px; flex: 1 1 auto; } .Form-header { display: flex; } .Form-title { flex: 0 1 auto; color: @list-header-txt; font-size: 14px; font-weight: bold; word-break: break-all; max-width: 90%; word-wrap: break-word; margin-bottom: 20px; } .Form-title--uppercase { text-transform: uppercase; } .Form-secondaryTitle { color: @default-icon; padding-bottom: 20px; min-height: 40px; } .Form-title--is_smartinventory, .Form-title--is_superuser, .Form-title--is_system_auditor, .Form-title--is_ldap_user, .Form-title--is_external_account, .Form-title--roleType { background-color: @default-list-header-bg; border-radius: 5px; color: @default-interface-txt; font-size: 10px; font-weight: 100; height:15px; margin-left: 10px; margin-top: 2.25px; padding: 0 10px; text-transform: uppercase; } .Form-title--last_login { border-radius: 5px; color: @default-interface-txt; font-size: 10px; font-weight: 100; height:15px; margin-left: 10px; margin-top: 2.25px; padding: 0 10px; text-transform: uppercase; } .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:@d7grey; transition: color 0.2s; line-height:1; } .Form-exit:hover { color:@default-icon; } .Form-tabHolder { display: flex; min-height: 30px; flex-wrap:wrap; } .Form-tabHolder--licenseSelected { margin-bottom: -20px; } .Form-tabs { flex: 1 0 auto; display: flex; } .Form-tab { color: @btn-txt; background-color: @btn-bg; font-size: 12px; border: 1px solid @b7grey; height: 30px; border-radius: 5px; margin-right: 20px; margin-bottom: 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; .noselect; } .Form-tab--notitle { margin-bottom: 0px; } .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: @default-icon; border-color: @default-icon; } .Form-tab--disabled, .Form-button--disabled { opacity: 0.65; color: @btn-txt; } .Form-tab--disabled:hover, .Form-button--disabled:hover { color: @btn-txt; background-color: @btn-bg; cursor:not-allowed!important; } .Form-tabSection { display: none; width: 0%; } .Form-tabSection.is-selected { width: 100%; display: block; } .Form-tabActions { display: flex; } .Form-formGroup { flex: 1 0 auto; margin-bottom: 20px; width: 33%; max-width: 33%; padding-right: 30px; } .Form-formGroup--fullWidth { max-width: none !important; width: 100% !important; padding-right: 0px !important; } .Form-formGroup--checkbox{ display: flex; margin-top: 10px; } .Form-formGroup { input.form-control { background-color: @fcgrey; border-color: @b7grey; border-radius: 5px; height: auto; min-height: 30px; padding: 0 10px; } input.form-control[disabled], input.form-control[readonly], fieldset[disabled] input.form-control { border-color: @b7grey; background-color: @ebgrey; } } .Form-checkbox--subCheckbox { font-size: 10px; color: @default-stdout-txt; text-transform: uppercase; margin-top: 2px; input { margin-top: 2px; } } .Form-textUneditable { .Form-textInput { border: none; padding: 0; } } .Form-subForm { width: 100%; margin-bottom: 15px; display: flex; flex-wrap: wrap; flex-direction: row; justify-content: flex-start; position: relative; } .Form-subForm:before { content: ''; left: -20px; position: absolute; width: 5px; background-color: @b7grey; height: 100%; } .Form-subForm--title { font-weight: bold; text-transform: uppercase; color: @default-interface-txt; font-size: small; width: 100%; float: left; margin-bottom: 10px; } .Form-textAreaLabel { width:100%; order: 1; } .Form-formGroup.Form-textAreaLabel { max-width: 100%; } .Form-textArea { border-radius: 5px; color: @field-input-text; background-color: @field-secondary-bg; width:100%!important; } .Form-textInput { height: 30px; background-color: @field-secondary-bg; border-radius: 5px; border:1px solid @field-border; color: @field-input-text; } .Form-textInput:active { border:1px solid @field-border-sel; } .Form-monospace { font-family: Menlo,Monaco,Consolas,"Courier New",monospace!important; } .Form-alertblock { margin: 0; font-size: 12px; width: 100%; padding: 20px; margin-bottom: 15px; border-radius: 4px; border: 1px solid @login-notice-border; background-color: @login-notice-bg; color: @login-notice-text; } .Button-primary--hollow { border: 1px solid @default-link; color: @default-link; background: @default-bg; } .Button-primary--hollow:hover { color: @default-link-hov; border: 1px solid @default-link-hov; } .ui-spinner { height: 30px; background-color: @fcgrey !important; border-radius: 5px; border:1px solid @field-border !important; color: @field-input-text; width:100% } .ui-spinner-input { color: @field-input-text; background-color: @fcgrey; } .ui-spinner-input:focus { outline: none; } .ui-spinner-button { border-left:1px solid @field-border!important; background-color: @field-button-bg !important; } .ui-spinner-button:hover { background-color:@field-button-hov !important; cursor: pointer!important; } .Form-inputButton { border-color: @d7grey; color: @default-data-txt; } .Form-numberInputButton { color: @default-icon!important; font-size: 14px; display: block; } .Form-dropDown { min-height: 30px !important; border-radius: 5px !important; border:1px solid @field-border!important; color: @field-input-text!important; } .select2-selection__arrow { border-left:1px solid @field-border; border-bottom-right-radius: 5px; border-top-right-radius: 5px; width: 30px!important; height: 28px!important; } .select2-container--disabled .select2-selection__arrow { background-color: @ebgrey !important; } .select2-results__option { color: @field-label !important; min-height: 33px; } .select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: @field-button-hov !important; } .select2-container--default .select2-results__option[aria-selected=true] { background-color: @default-white-button-bord !important; } .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: @field-dropdown-icon transparent transparent transparent !important; } .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent @field-dropdown-icon transparent!important; } .select2-container--default.select2-container--open.select2-container--below .select2-selection--single { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; } .select2-dropdown { border:1px solid @field-border; z-index: 1030; } .select2-container--open .select2-dropdown--below { margin-top: -1px; border-top: 1px solid @field-border; } .Form-dropDown:focus { outline: none!important; } .Form-dropDown--scmType { width: 100%; } .Form-browseButton, .Form-passwordButton { height: 30px; color: @default-interface-txt; text-transform: uppercase; line-height: 1.2; padding: 6px 12px; background-color: @default-bg; border:1px solid @b7grey; } .Form-passwordButton:hover { cursor: pointer; background-color: @f2grey; border: 1px solid @b7grey; color: @field-lookup-btn-icon; } .Form-passwordButton:focus { border: 1px solid @field-border; background-color: @field-lookup-btn-hov-bg; } .Form-passwordButton:active { border: 1px solid @field-border; background-color: @field-lookup-btn-hov-bg; } .Form-lookupButton { height: auto; width: 30px; color: @field-lookup-btn-icon!important; font-size: 16px; background-color: @field-lookup-btn-bg; display: flex; align-items: center; justify-content: center; border:1px solid @field-border; } .Form-lookupButton:hover { cursor: pointer; background-color: @field-lookup-btn-hov-bg; color: @default-interface-txt; } .Form-lookupButton:active, .Form-lookupButton:focus { border: 1px solid @field-border; } .CodeMirror { min-height: initial !important; max-height: initial !important; border-radius: 5px; font-style: normal; color: @field-input-text; } .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-inputLabelContainer { width: 100%; display: block !important; } .Form-inputLabelContainer[for=variables], .Form-inputLabelContainer--codeMirror { width: auto; display: inline-block !important; } .Form-mixedInputGroup { display: flex; width: 100%; .form-control { flex-flow: row wrap; padding: 0 12px !important; } .input-group-btn { display: flex; width: auto; } } .FormToggle-container { margin: 0 0 0 10px; display: initial; padding-bottom: 5px; label { &:first-child { border-right: none; } &:last-child { border-left: none; } } input { visibility: hidden; position: absolute; } .btn.btn-xs { padding: 0px 10px; } } .Form-inputLabelContainer { width: 100%; display: block !important; } .Form-inputLabelContainer[for=variables] { width: 100%; display: inline-block !important; } .Form-inputLabel { text-transform: uppercase; color: @default-interface-txt; font-weight: normal; font-size: small; width: 100%; .noselect; } .Form-labelAction { text-transform: uppercase; font-weight: normal; font-size: 0.8em; padding-left:5px; float: right; margin-top: 3px; .noselect; } .Form-buttons { height: 30px; display: flex; justify-content: flex-end; button { margin-left: 20px; } .at-Tab { margin-left: 0px; } } .Form-button { margin-left: 4px; } .Form-buttonDefault { background-color: @default-bg; color: @default-interface-txt; border-color: @default-border; } .Form-saveButton, .Form-launchButton { background-color: @submit-button-bg; color: @submit-button-text; text-transform: uppercase; transition: background-color 0.2s; padding-left:15px; padding-right: 15px; } .Form-saveButton:disabled, .Form-launchButton:disabled { background-color: @submit-button-bg-dis; } .Form-saveButton--disabled { background-color: @submit-button-bg-dis; cursor: not-allowed; } .Form-saveButton:hover, .Form-launchButton:hover { background-color: @submit-button-bg-hov; color: @submit-button-text; } .Form-saveButton--disabled:hover { background-color: @submit-button-bg-dis; } .Form-cancelButton { background-color: @default-bg; color: @btn-txt; text-transform: uppercase; border-radius: 5px; border: 1px solid @field-border; transition: background-color 0.2s; padding-left:15px; padding-right: 15px; } .Form-cancelButton:hover { background-color: @btn-bg-hov; color: @btn-txt; } .Form-primaryButton { background-color: @default-link; color: @default-bg; text-transform: uppercase; padding-left:15px; padding-right: 15px; margin-right: 20px; min-height: 30px; margin-bottom: 20px; } .Form-buttons .Form-primaryButton { margin-right: 0; } .Form-primaryButton:hover { background-color: @default-link-hov; color: @default-bg; } .Form-primaryButton.Form-tab--disabled:hover, .Form-primaryButton.Form-button--disabled:hover { background-color: @default-link; } .Form-primaryButton--noMargin { margin-right: 0px; } .Form-formGroup--singleColumn { width: 100% !important; padding-right: 0px; max-width: 100% !important; } .Form-checkbox { float: right; } .Form-subCheckbox { margin-top: 5px; font-size: small; color: @default-interface-txt; .noselect; } .Form-textInput--variableHeight { height: inherit; min-height: 30px; max-height: 120px; overflow-y: auto; } .Form-variableHeightButtonGroup { display: flex; height: auto; width: 30px; } .Form-requiredAsterisk { color: @red; } @media only screen and (max-width: 650px) { .Form-formGroup { flex: 1 0 auto; margin-bottom: 25px; max-width: 100%; width: 100%; padding-right: 50px; } } @media (min-width: 651px) and (max-width: 900px) { .Form-formGroup { flex: 1 0 auto; margin-bottom: 25px; max-width: 50%; width: 50%; padding-right: 50px; } } .action_column { float: right; } .alert-info { display: flex; align-items: center; justify-content: center; width: 100%; height: 100px; border-radius: 5px; border: 1px solid @default-no-items-bord; background-color: @default-no-items-bord; color: @default-icon; text-transform: uppercase; } .alert-info--noTextTransform { text-transform: none; } .select2-results__option { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .select2-results__option:hover { overflow-wrap: break-word; white-space: normal; } ::-webkit-input-placeholder { /* Chrome/Opera/Safari */ color: @b7grey; } ::-moz-placeholder { /* Firefox 19+ */ color: @b7grey; } :-ms-input-placeholder { /* IE 10+ */ color: @b7grey; } :-moz-placeholder { /* Firefox 18- */ color: @b7grey; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { border-color: @b7grey; background-color: @ebgrey; } .Form-checkbox { label { font-weight: 400; } }