-
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.
Add publisher_metadata partial and scss
Commit audit trail: - https://github.com/alphagov/government-frontend/blob/0aee348d51cebacd5344115f2ca02bdb17095249/app/views/shared/_publisher_metadata_with_logo.html.erb - https://github.com/alphagov/government-frontend/blob/0aee348d51cebacd5344115f2ca02bdb17095249/app/assets/stylesheets/helpers/_publisher-metadata-with-logo.scss As we dont need the logo part of the partial for case studies, I have removed it and renamed the partial
- Loading branch information
1 parent
407294f
commit acdb67a
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
app/assets/stylesheets/helpers/_publisher-metadata-with-logo.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import "govuk_publishing_components/individual_component_support"; | ||
|
||
.metadata-logo-wrapper { | ||
border-top: 1px solid $govuk-border-colour; | ||
margin-left: govuk-spacing(3); | ||
margin-right: govuk-spacing(3); | ||
@include govuk-clearfix; | ||
|
||
.metadata-column { | ||
padding-left: 0; | ||
padding-top: govuk-spacing(3); | ||
} | ||
|
||
.metadata-logo { | ||
max-height: 90px; | ||
max-width: 100%; | ||
padding-bottom: govuk-spacing(3); | ||
padding-top: govuk-spacing(3); | ||
|
||
@include govuk-media-query($from: tablet) { | ||
float: right; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<% | ||
add_stylesheet_path("helpers/_publisher-metadata-with-logo.css") | ||
%> | ||
|
||
<div class="govuk-grid-row govuk-!-margin-top-3"> | ||
<div class="metadata-logo-wrapper"> | ||
<div class="govuk-grid-column-two-thirds metadata-column"> | ||
<%= render 'govuk_publishing_components/components/metadata', { | ||
from: locals[:from], | ||
first_published: locals[:first_published], | ||
last_updated: locals[:last_updated], | ||
see_updates_link: locals[:see_updates_link], | ||
} %> | ||
</div> | ||
</div> | ||
</div> |
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