File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed
packages/govuk-frontend/src/govuk Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 117117 fill : #00ffe0 ;
118118
119119 // Override Dot colour when printing
120- @include govuk- media-query ( $media-type : print) {
120+ @media print {
121121 fill : currentcolor ;
122122 }
123123
502502
503503 // When printing, use the normal blue as this contrasts better with the
504504 // white printing header
505- @include govuk- media-query ( $media-type : print) {
505+ @media print {
506506 color : $govuk-brand-colour ;
507507 }
508508
523523 border-bottom : 0 ;
524524 }
525525
526- @include govuk- media-query ( $media-type : print) {
526+ @media print {
527527 .govuk-header {
528528 border-bottom-width : 0 ;
529529 color : govuk-colour (" black" );
Original file line number Diff line number Diff line change 3636 color : govuk-colour (" white" );
3737 background : govuk-colour (" green" );
3838
39- @include govuk- media-query ( $media-type : print) {
39+ @media print {
4040 border-color : currentcolor ;
4141 color : $govuk-print-text-colour ;
4242 background : none ;
Original file line number Diff line number Diff line change 346346/// @access public
347347
348348@mixin govuk-link-print-friendly {
349- @include govuk- media-query ( $media-type : print) {
349+ @media print {
350350 & [href ^= " /" ],
351351 & [href ^= " http://" ],
352352 & [href ^= " https://" ]
Original file line number Diff line number Diff line change 2323 @include _govuk-font-face-gds-transport ;
2424 }
2525
26- @include govuk- media-query ( $media-type : print) {
26+ @media print {
2727 font-family : $govuk-font-family-print ;
2828 }
2929}
3737@mixin govuk-text-colour {
3838 color : $govuk-text-colour ;
3939
40- @include govuk- media-query ( $media-type : print) {
40+ @media print {
4141 color : $govuk-print-text-colour ;
4242 }
4343}
240240 font-size : $font-size-rem ;
241241 line-height : $calculated-line-height ;
242242 } @else if $breakpoint == " print" {
243- @include govuk- media-query ( $media-type : print) {
243+ @media print {
244244 font-size : $font-size ;
245245 line-height : $calculated-line-height ;
246246 }
Original file line number Diff line number Diff line change 3737
3838 // Force the scrollbar to always display in IE, to prevent horizontal page
3939 // jumps as content height changes (e.g. autocomplete results open).
40- @include govuk- media-query ( $media-type : screen ) {
40+ @media screen {
4141 overflow-y : scroll ;
4242 }
4343 }
Original file line number Diff line number Diff line change 5555
5656 // As soon as the viewport is greater than the width of the page plus the
5757 // gutters, just centre the content instead of adding gutters.
58- @include govuk- media-query ( $and : " (min-width: #{($width + $govuk-gutter * 2 )} ) " ) {
58+ @media (min-width : #{($width + $govuk-gutter * 2 )} ) {
5959 margin-right : auto ;
6060 margin-left : auto ;
6161
Original file line number Diff line number Diff line change 1616 display : none !important ;
1717 }
1818
19- @include govuk- media-query ( $media-type : print) {
19+ @media print {
2020 .govuk-\! -display-none-print {
2121 display : none !important ;
2222 }
You can’t perform that action at this time.
0 commit comments