.gem-c-feedback { background: govuk-colour("white"); margin-top: govuk-spacing(6); @include govuk-media-query($from: tablet) { margin-top: govuk-spacing(9); border-bottom: 1px solid govuk-colour("white"); } } // hide without js // show with js, unless also has the js-hidden class .gem-c-feedback__js-show, .gem-c-feedback__form, .gem-c-feedback__prompt-success, .gem-c-feedback__prompt-questions, .gem-c-feedback__error-summary { display: none; .js-enabled & { display: block; &.js-hidden { display: none; } } } .gem-c-feedback__prompt-questions { text-align: center; border-bottom: 1px solid govuk-colour("white"); padding: govuk-spacing(5) govuk-spacing(5) govuk-spacing(5) govuk-spacing(5); box-sizing: border-box; @include govuk-media-query($from: tablet) { width: 50%; float: left; text-align: left; border-bottom: 0; } } .gem-c-feedback__prompt-questions--something-is-wrong { text-align: center; @include govuk-media-query($from: tablet) { text-align: right; } } .gem-c-feedback__prompt { @include govuk-clearfix; background-color: govuk-colour("blue"); color: govuk-colour("white"); outline: 0; } .gem-c-feedback__prompt-question, .gem-c-feedback__prompt-success { @include govuk-font(19, $weight: bold); @include govuk-media-query($from: tablet) { @include govuk-font(16, $weight: bold); } } .gem-c-feedback__prompt-question { display: inline-block; // There's a global h3 rule in some layouts that interferes with this component margin: 0; margin-left: govuk-spacing(4); margin-right: govuk-spacing(4); &:focus { outline: 0; } @include govuk-media-query($from: tablet) { margin-left: 0; } } .gem-c-feedback__prompt-link { @include govuk-link-common; @include govuk-font(19); display: inline-block; @include govuk-media-query($from: tablet) { @include govuk-font(16); } } .gem-c-feedback__email-link, .gem-c-feedback__prompt-link { position: relative; &:after { content: ""; position: absolute; top: -14px; right: -14px; left: -14px; bottom: -14px; } } .gem-c-feedback__prompt-link:link, .gem-c-feedback__prompt-link:visited { color: govuk-colour("white"); &:focus { color: $govuk-focus-text-colour; } } .gem-c-feedback__option-list { display: inline-block; list-style-type: none; margin: 0; padding: 0; margin-right: govuk-spacing(2); margin-top: govuk-spacing(2); @include govuk-media-query($from: tablet) { margin-top: 0; } } .gem-c-feedback__option-list-item { display: inline-block; } .gem-c-feedback__option-list-item:first-child { margin-right: govuk-spacing(7); } // Feedback form styles .gem-c-feedback__error-summary { margin-bottom: govuk-spacing(3); padding: govuk-spacing(3); border: solid $govuk-border-width-narrow $govuk-error-colour; clear: both; &:focus { outline: solid 3px $govuk-focus-colour; } @include govuk-media-query($from: tablet) { border-width: $govuk-border-width; } // this comes from the backend so we can't put a class on it h2 { @include govuk-text-colour; @include govuk-font($size: 24, $weight: bold); margin: 0 0 govuk-spacing(3) 0; } p { @include govuk-text-colour; @include govuk-font($size: 19); margin: 0 0 govuk-spacing(3) 0; } a { @include govuk-link-common; @include govuk-link-style-default; @include govuk-link-print-friendly; } } .gem-c-feedback__error-message { @include govuk-font(19, $weight: bold); display: block; padding: 4px 0 0; color: $govuk-error-colour; } .gem-c-feedback__form { padding: govuk-spacing(3) 0; border-top: govuk-spacing(2) solid govuk-colour("blue"); @include govuk-media-query($from: tablet) { padding: govuk-spacing(6) 0; } } .gem-c-feedback__form-heading { @include govuk-text-colour; @include govuk-font(24, $weight: bold); margin: 0 0 govuk-spacing(3) 0; } .gem-c-feedback__form-paragraph { @include govuk-text-colour; @include govuk-font(19); margin: 0 0 govuk-spacing(6) 0; } .gem-c-feedback__form-label { @include govuk-font(16); display: block; padding-bottom: govuk-spacing(3); } .gem-c-feedback__close { @include govuk-link-common; @include govuk-link-style-default; @include govuk-font(19); float: right; margin: 0 govuk-spacing(1) govuk-spacing(2) 0; @include govuk-media-query($from: tablet) { padding-top: 0; } } .gem-c-feedback__email-link { display: block; margin-top: govuk-spacing(4); @include govuk-media-query($from: desktop) { display: inline-block; margin-top: govuk-spacing(2); margin-left: govuk-spacing(3); } } // static.css on GOV.UK overwrites the component styles using input[type="text"] // so we need to apply govuk-input styles using a stronger selector .gem-c-feedback .gem-c-input[type="text"] { @include govuk-font($size: 19); margin: 0; padding: govuk-spacing(1); border: $govuk-border-width-form-element solid $govuk-input-border-colour; &:focus { outline: $govuk-focus-width solid $govuk-focus-colour; } }