Skip to content

Commit

Permalink
Merge pull request #181 from devgeniem/TMS-1051
Browse files Browse the repository at this point in the history
TMS-1051: Add "Print page"-button to single program
  • Loading branch information
eebbi authored Sep 3, 2024
2 parents 25b62e3 + 2870f1d commit 93658d3
Show file tree
Hide file tree
Showing 11 changed files with 420 additions and 269 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- TMS-1051: Add "Print page"-button to single program

## [1.8.17] - 2024-08-21

- TMS-1057: Increase articles lead-text font-size
Expand Down
88 changes: 88 additions & 0 deletions assets/styles/views/_single-program.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,92 @@
font-size: .94444444rem;
line-height: 1.7;
}

// Print styles
@media print {
#rs-button,
.print-button,
.site-header,
footer,
.breadcrumbs-container,
.icon--external,
.icon--arrow-right,
[aria-hidden="true"],
.section.map,
.video,
.accordion__open-all {
display: none !important;
}

* {
color: $black !important;
}

// Blocks container
.column.is-10.is-offset-1 {
width: 100% !important;
margin: 0 !important;
}

.entry__content > *:not(ul) {
padding: 0 !important;
}

.icon {
fill: $black !important;
}

.button {
border-color: $black !important;
}

.mt-6,
.mb-6,
.mt-5,
.mb-5,
.mt-4,
.mb-4m
h2,
h3,
h4 {
margin: .5rem 0 !important;
}

a {
text-decoration: underline;

&::after {
content: "\00a0(" attr(href) ")\00a0";
}
}

.single-program {
&__hero {
.column,
.p-7 {
padding: 0 !important;
}
}

&__hero-box {
text-align: left;
padding: 0 !important;
}
}

.accordion {
&__title-button,
&__content {
padding: rem(8px) 0 !important;
}

&__title-icon {
display: none !important;
}

&__content {
display: block !important;
}
}
}
}
Binary file modified lang/fi.mo
Binary file not shown.
Loading

0 comments on commit 93658d3

Please sign in to comment.