.checkbox input[type="checkbox"] { transform: scale(1.5); margin-left: -18px; margin-top: 3px; + label::before { top: 0.125rem; transition: all 0.2s ease; border-radius: 0.1rem; border-color: #d3d7d8; // default is #ccc } + label:after { font-family: webicons; content: "\E936"; max-width: 0; overflow: hidden; line-height: 1.25rem; color: $neutral-4; text-align: left; -webkit-transition: all 0.4s ease; -moz-transition: all 0.4s ease; transition: all 0.4s ease; } &:checked { + label:before { background-color: $support-1; border-color: $support-1; } + label:after { max-width: 1rem; } } } .radio input[type="radio"] { transform: scale(1.6); margin-left: -17px; margin-top: 5px; + label { cursor: default; &:before { transition: all 0.4s ease; height: 1rem; width: 1rem; } &:after { transform: none; height: 0.4rem; width: 0.4rem; top: 0.3rem; left: 0.3rem; background-color: $neutral-4; } } &:checked { + label:before { background-color: $support-1; border-color: $support-1; } + label:after { background-color: $neutral-4; } } } textarea.zuo-textbox { box-sizing: content-box; max-width: 100%; min-height: 2.5rem; border: 1px solid #e9ebee; } .form-group { position: relative; } .zuo-textbox { width: 100%; border: 0; border-radius: 0.25rem; margin-top: 1.375rem; border: 1px solid $anj-border; color: $anj-text; background: transparent; transition: border-color 0.2s; padding: 0.375rem 0.75rem; &:not([readonly]):focus { border-color: $anj-secondary; } &[disabled="disabled"] { cursor: not-allowed; color: #6e7c89; } &[readonly] { background: $anj-background; } } .zuo-form-group { margin-bottom: 1.5rem; position: relative; > .zuo-support-label { position: absolute; top: 4rem; font-size: 0.75rem; font-weight: normal; line-height: 1; margin-bottom: 0; color: $anj-neutral; } } .has-error { > .zuo-textbox, > .zuo-textbox:focus, .select2-selection { /* select2 thinks they're cool because they use !important, so I have to too */ border-color: $anj-danger !important; } > .zuo-support-label, > .input-group-addon { color: $anj-danger; } } .required > label::after { content: "*"; } .zuo-floating-label { position: relative; top: -3.4375rem; display: block; transition: 0.2s; font-size: 0.75rem; line-height: 0.875rem; font-weight: normal; color: $anj-text; margin-bottom: 0; pointer-events: none; text-transform: uppercase; } select + .select2-container { overflow: auto; } .select2-container { .select2-selection { border: none; } .select2-dropdown { border: 1px solid $neutral-shadow; box-shadow: 0 1px 8px -1px $neutral-shadow; border-radius: 0.25rem; padding: 0.5rem 0; .select2-results__option[role="treeitem"] { padding: 0.25rem 0.75rem; } .select2-results__option[aria-selected="true"] { background-color: $support-1; color: $neutral-4; } .select2-results__options--nested { padding-left: 1rem; padding-right: 1rem; } .select2-results__option--highlighted[aria-selected="false"] { background-color: $neutral-3; color: $neutral-1; } .select2-results__group { font-size: inherit; color: $primary; } } .select2-dropdown--below { top: 0.5rem; } } .select2-container--bootstrap { .select2-selection--multiple .select2-selection__clear { margin-top: 0; } .select2-selection { position: relative; box-shadow: none; height: auto; padding: 0.375rem 2rem 0.375rem 0.75rem; margin-top: 1.375rem; border-radius: 0; &--multiple, .select2-selection__rendered { min-height: 1.25rem; } .select2-selection__choice { margin: 0; padding: 0; padding-right: 1.25rem; border: none; position: relative; .select2-selection__choice__remove { width: 1rem; height: 1rem; font-size: 0.75rem; line-height: 1; position: absolute; right: 0.25rem; top: 3.5px; text-align: center; margin-right: 0; border: 1px solid transparent; font-weight: normal; &:hover { color: $support-1; border-color: $support-1; border-radius: 50%; } } } .select2-search--inline .select2-search__field { height: unset; padding-left: 0; } .select2-selection__arrow { right: 0; top: 4px; width: 1.25rem; &:before { content: "arrow_drop_down"; font-family: "AnjMatIconFont"; font-size: 1rem; color: $anj-neutral; transition: color 0.2s ease; } b { display: none; } } } .select2-selection, &.select2-container--focus .select2-selection, &.select2-container--disabled .select2-selection { border-radius: 0.25rem; border: 1px solid $anj-border; } &.select2-container--open.select2-container--below .select2-selection, &.select2-container--open.select2-container--above .select2-selection { border: 1px solid $support-1; border-radius: 0.25rem; .select2-selection__arrow:before { content: "arrow_drop_up"; } } &.select2-container--disabled .select2-selection--single, &.select2-container--disabled .select2-selection--multiple .select2-selection__choice { background-color: transparent; .select2-selection__rendered { color: #6e7c89; } } } .select2-container.select2-container--focus .select2-selection, .select2-container--bootstrap.select2-container--open .select2-selection { box-shadow: none; } .select2-container .select2-selection--single .select2-selection__arrow b { border-color: $neutral-1 transparent transparent transparent; } .select2-container.select2-container--open .select2-selection .select2-selection__arrow b { border-color: transparent transparent $neutral-1 transparent; }