cartodb/assets/stylesheets/common/account_forms.scss
2020-06-15 10:58:47 +08:00

858 lines
14 KiB
SCSS

@import '../variables/colors';
@import '../variables/sizes';
// Styles for the new account forms
// --------------------------------------------------
$sLabel-width: 140px;
.FormAccount-Section {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-top: 48px;
}
.FormAccount-container {
margin-top: 25px;
}
.FormAccount-container--short {
margin-top: 16px;
}
.FormAccount-Content {
display: block;
position: relative;
width: 65%;
}
.FormAccount-title {
display: inline-block;
width: 100%;
margin: 0 0 28px;
}
.FormAccount-titleHeader {
display: block;
margin-bottom: $sMargin-section;
padding-bottom: 12px;
border-bottom: 1px solid $cStructure-mainLine;
color: $cTypography-headers;
}
.FormAccount-titleText {
color: $cTypography-paragraphs;
}
.FormAccount-titleText--negative {
color: $cHighlight-negative;
}
.FormAccount-subtitleText {
font-size: 75%;
}
.FormAccount-list {
padding: 0 0 20px 160px;
list-style-type: disc;
color: $cTypography-paragraphs;
}
.FormAccount-listItem {
color: $cTypography-paragraphs;
}
.VerticalAligned--FormRow {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.FormAccount-row {
display: flex;
flex-direction: column;
justify-content: flex-start;
margin: 0 0 32px;
}
.FormAccount-row--smallMarginBottom {
margin-bottom: 16px;
}
.FormAccount-row--wideMarginBottom {
margin-bottom: 100px;
}
.FormAccount-title + .FormAccount-row {
padding-top: 0;
}
.FormAccount-row.FormAccount-row--centered {
justify-content: center;
}
.FormAccount-row.FormAccount-row--step {
position: relative;
align-items: center;
justify-content: space-between;
padding-top: 0;
padding-bottom: $sMargin-group;
&::before {
content: '';
margin-right: $sMargin-elementInline;
padding: 5px 10px;
border: 1px solid $cStructure-mainLine;
border-radius: 50px;
color: $cTypography-paragraphs;
}
&:first-child::before {
content: '1';
}
&:nth-child(2)::before {
content: '2';
}
&:nth-child(3)::before {
content: '3';
}
&:nth-child(4)::before {
content: '4';
}
&:nth-child(5)::before {
content: '5';
}
}
.FormAccount-row.FormAccount-row--step:first-child {
padding-top: 0;
}
.FormAccount-row.FormAccount-row--step.is-done {
&::before {
border-color: $cHighlight-stepDone;
color: $cHighlight-stepDone;
}
}
.FormAccount-row.has-label {
flex-direction: row;
// compensate for label width, to make the rowData appear as centered
margin: 0;
margin-left: -$sLabel-width;
padding: 10px 0;
.FormAccount-rowLabel {
width: 140px;
margin-right: 20px;
line-height: 40px;
text-align: right;
}
}
.FormAccount-rowLabel {
margin-bottom: 8px;
text-align: left;
}
.FormAccount-rowLabel.FormAccount-rowLabel--leftAligned {
width: $sLabel-width;
margin-right: $sMargin-element;
text-align: left;
}
.FormAccount-label {
color: $cTypography-paragraphs;
text-transform: capitalize;
}
.FormAccount-label.FormAccount-label--verticalAlignTop {
line-height: inherit;
}
.FormAccount-label--multipleLines {
line-height: 20px;
}
.FormAccount-label.FormAccount-label--large {
font-size: $sFontSize-large;
}
.FormAccount-label.FormAccount-label--step {
flex-grow: 1;
}
.FormAccount-rowPreview {
width: 600px;
}
.FormAccount-separator {
display: block;
position: relative;
z-index: 0;
width: 100%;
height: 1px;
margin-bottom: 16px;
background-color: $cStructure-darkGrey;
}
.FormAccount-separator--marginTop {
margin-top: 30px;
}
.FormAccount-rowData {
display: flex;
position: relative;
align-items: center;
}
.FormAccount-rowData.in-block {
flex-direction: column;
align-items: flex-start;
}
.FormAccount-planTag {
padding: 5px 10px;
border-radius: 4px;
background-color: $cHighlight-positive;
color: #FFF;
}
.FormAccount-rowData.FormAccount-rowData--alignLeft {
justify-content: flex-start;
}
.FormAccount-rowData--withLabel {
margin-bottom: 30px;
}
.FormAccount-rowData--noMargin {
margin: 0;
}
// RowData sizes
.FormAccount-rowData--full {
width: 100%;
}
.FormAccount-rowData--longer {
width: 460px;
}
.FormAccount-rowData--long {
width: 380px;
}
.FormAccount-rowData--med {
width: 300px;
}
.FormAccount-rowData--short {
width: 170px;
}
.FormAccount-rowData--step {
width: 260px;
margin-right: 0;
}
.FormAccount-rowDataExtra {
position: absolute;
right: -52px;
}
.FormAccount-rowData ~ .FormAccount-rowDataExtra {
top: 10px;
} // to compensate for its top-padding
.FormAccount-rowData--step ~ .FormAccount-rowDataExtra {
top: 0;
}
.FormAccount-input {
position: relative;
z-index: 2;
height: 38px;
padding: 0 12px;
border: 1px solid #CCC;
border-radius: 4px;
outline: none;
color: #666;
&:focus {
border-color: #999;
}
}
.FormAccount-input.FormAccount-input--error {
border-color: rgba(#DD3B37, 0.6);
}
.FormAccount-input.FormAccount-input--error:focus,
.FormAccount-input.FormAccount-input--error:hover {
border-color: rgba(#DD3B37, 1);
}
.FormAccount-input::-webkit-input-placeholder {
color: #AAA;
font-style: italic;
}
.FormAccount-input:-moz-placeholder {
color: #AAA;
font-style: italic;
}
.FormAccount-input::-moz-placeholder {
color: #AAA;
font-style: italic;
}
.FormAccount-input:-ms-input-placeholder {
color: #AAA;
font-style: italic;
}
// Sizes
.FormAccount-input--totalwidth {
width: 100% !important;
}
.field_with_errors {
width: 100%;
}
.FormAccount-input--longer {
width: 434px !important;
}
.FormAccount-input--long {
width: 354px !important;
}
.FormAccount-input--med {
width: 274px !important;
}
.FormAccount-input--small {
width: 131px !important;
}
.FormAccount-input--short {
width: 114px !important;
}
.FormAccount-input--number {
width: 54px !important;
}
// Types
.FormAccount-input.has-icon {
padding: 0 42px 0 12px;
&.FormAccount-input--longer {
width: 414px;
}
&.FormAccount-input--long {
width: 324px;
}
&.FormAccount-input--short {
width: 92px;
}
&.FormAccount-input--longerMorePadding {
width: 356px;
padding-right: 100px;
}
}
.FormAccount-input.has-submit {
padding: 0 95px 0 12px;
&.FormAccount-input--longer {
width: 351px;
}
&.FormAccount-input--long {
width: 297px;
}
}
.FormAccount-inputSubmit {
position: absolute;
z-index: 2;
top: 6px;
right: 5px;
height: 28px;
padding: 0 18px;
background: none;
}
.FormAccount-inputIcon {
position: absolute;
z-index: 3;
top: 12px;
right: 14px;
color: $cTypography-help;
font-size: $sFontSize-larger;
}
.FormAccount-inputIcon--clock {
top: 11px;
}
.FormAccount-inputIcon--noIcon {
width: 100%;
height: 100%;
color: $cTypography-help;
font-size: $sFontSize-normal;
line-height: 100px;
text-align: center;
text-transform: uppercase;
}
.FormAccount-inputError {
position: absolute;
z-index: 1;
top: 0;
right: 0;
left: 0;
height: 38px;
padding: 0 12px;
transition: top 200ms ease-in-out;
border: 1px solid #CCC;
border-radius: 4px;
background: #FFF4F4;
color: $cHighlight-negative;
line-height: 38px;
}
.FormAccount-inputError.is-visible {
top: 36px;
}
.FormAccount-input.is-disabled {
background: $cStructure-grayBkg;
}
.FormAccount-input.is-invalid {
border-color: $cHighlight-negative;
}
// Modifiers
.FormAccount-input--noBorder {
border: none;
}
.FormAccount-input--noBkg,
.FormAccount-input--noBkg.is-disabled {
background: transparent;
}
.FormAccount-textarea {
min-height: 60px;
max-height: 110px;
padding: 9px 12px;
}
.FormAccount-textarea.no-resize {
resize: none;
}
.FormAccount-textarea--longHeight {
height: 90px;
}
.FormAccount-textarea.is-disabled {
color: $cTypography-help;
}
.FormAccount-copyIcon {
position: relative;
top: 0;
right: 30px;
font-size: $sFontSize-largest;
}
.FormAccount-copyIcon.hover {
color: $cTypography-paragraphs;
}
.FormAccount-text--preview {
color: $cTypography-secondary;
font-size: $sFontSize-normal;
line-height: $sLineHeight-large;
}
.FormAccount-row.FormAccount-rowHorizontal {
flex-direction: row;
justify-content: space-between;
}
.FormAccount-userRole {
display: flex;
flex-direction: column;
align-items: baseline;
justify-content: space-between;
margin-top: 20px;
}
.FormAccount-avatarPreview {
display: flex;
position: relative;
flex-direction: row;
width: 100px;
height: 100px;
overflow: hidden;
border: 1px solid $cTypography-help;
border-radius: 4px;
background: #FFF;
}
.FormAccount-avatarPreviewImage {
position: relative;
max-width: 100px;
border-radius: 4px;
background: #FFF;
}
.FormAccount-avatarPreviewLoader {
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 100px;
height: 100px;
border-radius: 4px;
background: rgba(#000, 0.4);
}
.Spinner.FormAccount-avatarPreviewSpinner {
position: absolute;
z-index: 1;
top: 50%;
left: 50%;
margin: -20px 0 0 -20px;
}
.FormAccount-fileAvatar {
margin-left: 20px;
}
.FormAccount-avatar .input-group {
position: absolute;
top: 14px;
left: 114px;
}
.FormAccount-avatar .form-control {
display: none;
position: absolute;
top: 0;
left: 0;
width: 250px;
border: none;
color: $cTypography-secondary;
}
.FormAccount-avatar .btn {
position: absolute;
top: 0;
left: 0;
width: 120px;
color: $cTypography-link;
font-size: 12px;
&:hover {
color: $cTypography-linkHover;
text-decoration: underline;
cursor: pointer;
}
}
.FormAccount-avatar .btn[disabled] {
color: $cTypography-help;
&:hover {
color: $cTypography-help;
text-decoration: none;
cursor: default;
}
}
.FormAccount-link {
color: #1181FB;
font-weight: normal;
&:hover {
text-decoration: underline;
cursor: pointer;
}
}
.FormAccount-link.is-disabled {
color: $cTypography-help;
text-decoration: none;
&:hover {
color: $cTypography-help;
cursor: default;
}
}
.FormAccount-file {
&:hover .Button--main {
background: #007FBD;
}
&:hover .Button--negative {
background-color: rgba(#B93F37, 1);
}
}
.FormAccount-file input[type='file'] {
position: absolute;
top: 0;
left: -118px;
margin: 0;
-moz-transform: translate(26px, 0) scale(1);
border: solid transparent;
border-width: 1px 0 24px;
opacity: 0;
cursor: pointer;
filter: alpha(opacity = 0);
direction: ltr;
}
.FormAccount-fileLabel {
width: 300px;
color: $cTypography-secondary;
font-size: $sFontSize-normal;
}
.FormAccount-fileLabel--error {
display: none;
color: $cHighlight-negative;
}
.FormAccount .dz-preview {
display: none;
}
.FormAccount-fileDropzone {
display: none;
position: absolute;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
left: 0;
border: 2px dashed $cStructure-mainLine;
border-radius: 4px;
background: $cStructure-grayBkg;
color: $cTypography-secondary;
font-size: $sFontSize-large;
line-height: 38px;
text-align: center;
}
.FormAccount-rowInfo {
display: flex;
&.FormAccount-rowInfo--marginLeft {
width: 224px;
margin-left: 12px;
}
&.FormAccount-rowInfoText--multipleLines {
width: 500px;
}
}
.FormAccount-rowInfoText {
color: $cTypography-secondary;
font-size: $sFontSize-normal;
font-weight: $sFontWeight-lighter;
&.warning {
color: #FFB713;
}
}
.FormAccount-rowInfoText--centered {
text-align: center;
}
.FormAccount-rowInfoText--smaller {
width: 180px;
}
.FormAccount-rowInfoText--block {
width: 100%;
}
.FormAccount-rowInfoText--maxWidth {
max-width: 480px;
}
.FormAccount-rowInfoText--error {
color: #DD3B37;
}
.FormAccount-rowInfoText--error .FormAccount-link {
color: #DD3B37;
text-decoration: underline;
}
.FormAccount-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin: $sMargin-section 0 100px;
padding: $sMargin-formRow 0;
border-top: 1px solid $cStructure-mainLine;
}
// Allow to reorder items using the flex-order property. E.g. to have "positive" action being trigger on an implicit
// form submit, but for the items to be rendered in a different order.
.FormAccount-footerItemAsFirst {
order: 1;
}
.FormAccount-footerItemAsSecond {
order: 2;
}
.FormAccount-footer--noMarginBottom {
margin-bottom: 0;
}
.FormAccount-footerText {
display: flex;
flex-direction: row;
justify-content: flex-start;
color: $cTypography-secondary;
font-size: $sFontSize-normal;
font-weight: $sFontWeight-lighter;
line-height: 22px;
}
.FormAccount-footerIcon {
width: 20px;
height: 20px;
margin-right: 8px;
border: 1px solid #F2C000;
border-radius: 20px;
background: #F6D35C;
color: #FFF;
font-size: $sFontSize-normal;
line-height: $sLineHeight-normal !important;
text-align: center;
}
.FormAccount-tags {
position: relative;
z-index: 2;
width: 308px;
min-height: 38px;
padding: 0;
border: 1px solid #CCC;
border-radius: 4px;
outline: none;
background: #FFF;
}
.FormAccount-tagsList.tagit {
padding: 0 5px 5px;
}
.FormAccount-tagsList.tagit .tagit-choice {
margin: 5px 5px 0 0;
padding: 0 30px 0 11px;
border-radius: 2px;
background: #EFF8FF;
color: #746E76;
line-height: 28px;
}
.FormAccount-tagsList.tagit .tagit-choice .tagit-close {
right: 10px;
line-height: normal;
}
.FormAccount-tagsList.tagit .tagit-close .text-icon {
display: inline-block;
color: #C5CCD1;
&:hover {
color: #AAA;
}
}
.FormAccount-tagsList.tagit .tagit-new {
width: 160px;
padding: 7px 4px 2px 7px;
}
.FormAccount-tagsList.tagit .ui-autocomplete-input::-webkit-input-placeholder {
color: #AAA;
font-style: italic;
font-weight: $sFontWeight-normal;
}
.FormAccount-tagsList.tagit .ui-autocomplete-input::-moz-placeholder {
color: #AAA;
font-style: italic;
font-weight: $sFontWeight-normal;
}
.FormAccount-tagsList.tagit .ui-autocomplete-input:-ms-placeholder {
color: #AAA;
font-style: italic;
font-weight: $sFontWeight-normal;
}
.FormAccount-tags.is-focus {
border-color: #999;
}
.FormAccount-tags.is-disabled {
background: $cStructure-grayBkg;
.tagit-choice {
padding: 0 11px;
}
.tagit-choice .tagit-close {
display: none;
}
}
.FormAccount-tagsList--placeholder {
position: absolute;
top: 12px;
left: 12px;
font-style: italic;
}
.FormAccount-button--deleteAccount,
.FormAccount-button--deleteOrganization {
color: rgba(247, 24, 0, 1);
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
.FormAccount-GooglePlus-iframe {
display: none;
}
.OrganizationNotification-submissionRow {
display: flex;
flex-direction: row;
justify-content: space-between;
}