-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2044 from alphagov/add-legacy-govspeak-class
Add legacy `govspeak` class alongside gem govspeak
- Loading branch information
Showing
23 changed files
with
159 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 27 additions & 24 deletions
51
app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
$info-background: #d5e8f3; | ||
$high-alert-border: #cc0000; | ||
|
||
.gem-c-govspeak .advisory { | ||
background-image: image-url("govuk_publishing_components/icon-important.svg"); | ||
background-repeat: no-repeat; | ||
background-size: 30px 30px; | ||
background-position: 98% center; | ||
background-color: $info-background; | ||
line-height: 1.3em; | ||
margin: 0 -1em 1em; | ||
padding: govuk-spacing(3) govuk-spacing(8) govuk-spacing(3) govuk-spacing(3); | ||
text-align: left; | ||
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items. | ||
.gem-c-govspeak { | ||
.advisory { | ||
background-image: image-url("govuk_publishing_components/icon-important.svg"); | ||
background-repeat: no-repeat; | ||
background-size: 30px 30px; | ||
background-position: 98% center; | ||
background-color: $info-background; | ||
line-height: 1.3em; | ||
margin: 0 -1em 1em; | ||
padding: govuk-spacing(3) govuk-spacing(8) govuk-spacing(3) govuk-spacing(3); | ||
text-align: left; | ||
|
||
p { | ||
margin: 0 .75em 0 0; | ||
min-height: 1.75em; | ||
padding-right: 3em; | ||
} | ||
p { | ||
margin: 0 .75em 0 0; | ||
min-height: 1.75em; | ||
padding-right: 3em; | ||
} | ||
|
||
strong { | ||
font-weight: 400; | ||
} | ||
strong { | ||
font-weight: 400; | ||
} | ||
|
||
&.high-alert { | ||
background-color: govuk-colour("light-grey", $legacy: "grey-3"); | ||
border: 1px solid $high-alert-border; | ||
} | ||
&.high-alert { | ||
background-color: govuk-colour("light-grey", $legacy: "grey-3"); | ||
border: 1px solid $high-alert-border; | ||
} | ||
|
||
@include govuk-media-query($until: tablet) { | ||
margin: 0 0 1em; | ||
@include govuk-media-query($until: tablet) { | ||
margin: 0 0 1em; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 19 additions & 16 deletions
35
app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
.gem-c-govspeak .form-download { | ||
padding: .25em 0; | ||
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items. | ||
.gem-c-govspeak { | ||
.form-download { | ||
padding: .25em 0; | ||
|
||
@include govuk-media-query($until: tablet) { | ||
margin: 1em 0 1.5em; | ||
} | ||
@include govuk-media-query($until: tablet) { | ||
margin: 1em 0 1.5em; | ||
} | ||
|
||
p { | ||
padding-right: 3em; | ||
} | ||
p { | ||
padding-right: 3em; | ||
} | ||
|
||
a { | ||
display: block; | ||
font-weight: 600; | ||
background-image: image-url("govuk_publishing_components/icon-file-download.svg"); | ||
background-repeat: no-repeat; | ||
background-size: 40px 40px; | ||
min-height: 2.5em; | ||
padding: 0 0 0 50px; | ||
a { | ||
display: block; | ||
font-weight: 600; | ||
background-image: image-url("govuk_publishing_components/icon-file-download.svg"); | ||
background-repeat: no-repeat; | ||
background-size: 40px 40px; | ||
min-height: 2.5em; | ||
padding: 0 0 0 50px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 26 additions & 21 deletions
47
app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,34 @@ | ||
.gem-c-govspeak .place { | ||
margin: 1.5em 0; | ||
border-bottom: solid 1px govuk-colour("mid-grey", $legacy: "grey-2"); | ||
padding-bottom: 1.5em; | ||
// stylelint-disable max-nesting-depth | ||
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items. | ||
.gem-c-govspeak { | ||
.place { | ||
margin: 1.5em 0; | ||
border-bottom: solid 1px govuk-colour("mid-grey", $legacy: "grey-2"); | ||
padding-bottom: 1.5em; | ||
|
||
.address { | ||
margin: 0; | ||
padding: 0; | ||
width: auto; | ||
display: block; | ||
} | ||
.address { | ||
margin: 0; | ||
padding: 0; | ||
width: auto; | ||
display: block; | ||
} | ||
|
||
.url { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
.url { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.additional-information { | ||
@include govuk-font($size: 16); | ||
.additional-information { | ||
@include govuk-font($size: 16); | ||
|
||
p { | ||
margin: .25em 0; | ||
p { | ||
margin: .25em 0; | ||
} | ||
} | ||
} | ||
|
||
@include govuk-media-query($until: tablet) { | ||
margin: .75em 0; | ||
@include govuk-media-query($until: tablet) { | ||
margin: .75em 0; | ||
} | ||
} | ||
} | ||
// stylelint-enable max-nesting-depth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 19 additions & 16 deletions
35
app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.