@import './colors.less'; input, select, textarea { display: block; background:transparent; color:@primary; outline:none; border-top-left-radius: 255px 15px; border-top-right-radius: 15px 225px; border-bottom-right-radius: 225px 15px; border-bottom-left-radius:15px 255px; font-size: 1rem; padding: .5rem .5rem; border: 2px solid @primary; &:focus { border: 2px solid @secondary; } &.disabled, &[disabled]{ .disabled; } } .disabled{ cursor: not-allowed; opacity: 0.5; } .form-group { margin-bottom: 1rem; > label, legend { display: inline-block; margin-bottom: .5rem; } .input-block { width: 100%; } textarea{ max-width: 100%; max-height: 90vh; } textarea.no-resize{ resize: none; } // TODO: make these classes implicit. We can find out what class to apply based on its type .paper-radio, .paper-check { display: block; margin-bottom: .5rem; cursor: pointer; input { border: 0; height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; display: none; } input + span { display: block; } /* the basic, unchecked style */ input + span:before { content: ''; display: inline-block; position: relative; width: 1rem; height: 1rem; border: 2px solid @primary; margin-right: 0.75em; vertical-align: -0.25em; } input[type="radio"] + span:before { border-top-left-radius: 1rem 1rem; border-top-right-radius: 1rem .6rem; border-bottom-right-radius: 1rem .9rem; border-bottom-left-radius: .7rem 1rem; } input[type="checkbox"] + span:before { border-top-left-radius: 255px 15px; border-top-right-radius: 15px 225px; border-bottom-right-radius: 225px 15px; border-bottom-left-radius:15px 255px; } /* the checked style using the :checked pseudo class */ input[type="radio"]:checked + span:before { @escaped-svg: escape(""); @radio-fill: "data:image/svg+xml,@{escaped-svg}"; background: url(@radio-fill) left center no-repeat; } input[type="checkbox"]:checked + span:before { @escaped-svg: escape(""); @check-fill: "data:image/svg+xml,@{escaped-svg}"; background: url(@check-fill) left center no-repeat; } } } fieldset.form-group { border: none; padding: 0; }