.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"); } // Scoped to the feedback component temporarily [hidden] { // stylelint-disable-next-line declaration-no-important display: none !important; } } .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%; display: table-cell; 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; vertical-align: bottom; float: none; } } .gem-c-feedback__prompt { @include govuk-clearfix; background-color: govuk-colour("blue"); color: govuk-colour("white"); outline: 0; @include govuk-media-query($from: tablet) { @include govuk-font(16, $weight: bold); display: table; width: 100%; } } .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 { vertical-align: top; display: inline-block; margin: govuk-spacing(2) govuk-spacing(4); &:focus { outline: 0; } @include govuk-media-query($from: tablet) { margin-left: 0; margin-top: 0; display: block; } // This custom media-query is to account for some awkward positioning where the yes and no buttons are too big to sit inline with the prompt question @include govuk-media-query($from: 950px) { display: inline-block; margin-top: govuk-spacing(2); } } .gem-c-feedback__prompt-link { @include govuk-font(19); background: transparent; box-shadow: 0 2px 0 govuk-colour("white"); border: 1px govuk-colour("white") solid; min-width: 100%; &:hover { // backup style for browsers that don't support rgba background: govuk-colour("black"); background: rgba(govuk-colour("black"), .2); } @include govuk-media-query($from: mobile) { min-width: 100px; margin-bottom: 0; } @include govuk-media-query($from: tablet) { @include govuk-font(16); } } .gem-c-feedback__email-link, .gem-c-feedback__prompt-link { position: relative; } .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 { list-style-type: none; margin: 0; padding: 0; margin-top: govuk-spacing(2); @include govuk-media-query($from: mobile) { display: inline-block; margin-right: govuk-spacing(2); } @include govuk-media-query($from: tablet) { margin-top: 0; } } .gem-c-feedback__option-list-item { @include govuk-media-query($from: mobile) { display: inline-block; } } .gem-c-feedback__option-list-item:first-child { @include govuk-media-query($from: mobile) { margin-right: govuk-spacing(4); } } // 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 { float: right; margin: 0 govuk-spacing(1) govuk-spacing(2) 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; } }