// Gravity forms // Please disable CSS in /admin.php?page=gf_settings // WCAG 2.0 errors /* stylelint-disable selector-class-pattern */ div.validation_error { background: $color-error; color: $color-white; font-size: var(--font-size-medium); font-weight: 700; margin-bottom: 2rem; padding: 2rem; &:focus { color: $color-white; } } body *[aria-invalid="true"] { border-color: $color-error; } .validation_message { color: $color-error; font-size: var(--font-size-small); font-weight: 400; } .validation_list { list-style: none; margin-bottom: 2rem; margin-left: 0; padding: 0; a { color: $color-error; text-decoration: none; } li { color: $color-error; font-weight: 700; } } // Gravity forms minimal default styles .gform_body { // Required star color .gfield_required { color: $color-main; font-size: var(--font-size-huge); position: relative; top: 3px; } // Hide honeypot field .gform_validation_container { @extend .screen-reader-text; } ul { list-style: none; margin: 0; padding: 0; } .gform_fields li { margin-bottom: 1rem; margin-top: 1rem; } .gfieldset li { align-items: center; display: inline-flex; flex-wrap: wrap; justify-content: flex-start; margin: 0; width: 100%; } .gform_fields li:last-child { margin-bottom: 0; } .gfield_label, .ginput_container label { display: inline-block; font-weight: 700; margin-bottom: 1rem; margin-top: 1rem; } input[type="radio"], input[type="checkbox"] { margin-right: 1rem; } input:not([type="radio"]):not([type="checkbox"]), textarea { width: 100%; } @media (min-width: $container-mobile) { // Complex fields .ginput_full { display: block; width: 100%; } .ginput_complex { display: flex; flex-wrap: wrap; margin-left: -.5rem; margin-right: -.5rem; span { margin-left: .5rem; margin-right: .5rem; } } .ginput_left, .ginput_right { display: inline-flex; flex-wrap: wrap; width: calc(50% - 1rem); > label, input { font-size: var(--font-size-small); width: 100%; } } } } /* stylelint-enable selector-class-pattern */