Skip to content

Commit 36b29fa

Browse files
Merge pull request #6246 from alphagov/remove-unnecessary-govuk-media-query
2 parents cf1d2c0 + 4a5f7ed commit 36b29fa

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

packages/govuk-frontend/src/govuk/components/header/_index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
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

@@ -502,7 +502,7 @@
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

@@ -523,7 +523,7 @@
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");

packages/govuk-frontend/src/govuk/components/panel/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
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;

packages/govuk-frontend/src/govuk/helpers/_links.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
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://"]

packages/govuk-frontend/src/govuk/helpers/_typography.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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
}
@@ -37,7 +37,7 @@
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
}
@@ -240,7 +240,7 @@
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
}

packages/govuk-frontend/src/govuk/objects/_template.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
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
}

packages/govuk-frontend/src/govuk/objects/_width-container.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
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

packages/govuk-frontend/src/govuk/overrides/_display.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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
}

0 commit comments

Comments
 (0)