Skip to content

Commit

Permalink
(fix): Remove copyright of hero block and extra spaces on print
Browse files Browse the repository at this point in the history
  • Loading branch information
dana-cfc4 committed Apr 26, 2023
1 parent 03d08fb commit afbf212
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions theme/themes/eea/elements/segment.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
padding-left: 0;
}

@media print {
.ui.basic.segment.content-area {
margin-top: 0;
padding-top: 0;
}
}

.ui.primary.segment {
border-bottom: @4px solid @greyBorderColor;
font-size: @16px;
Expand Down
6 changes: 6 additions & 0 deletions theme/themes/eea/extras/banner.less
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,14 @@
}

@media print {
.eea.banner .gradient .content,
.eea.banner .image .gradient .content {
padding-top: 15px;
}

.eea.banner .gradient .content > div > div {
padding-top: 0;
padding-bottom: 0;
}
}

Expand Down
18 changes: 18 additions & 0 deletions theme/themes/eea/extras/hero.less
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,19 @@
bottom: @desktopCopyrightBottom;
}
}

@media print {
.eea.hero-block.full-height,
.eea.hero-block.full-height .hero-block-image-wrapper,
.eea.hero-block.full-height .hero-block-inner-wrapper {
min-height: unset;
}

.hero-block-inner-wrapper {
padding-top: 20px;
padding-bottom: 20px;
}

.hero-block-image-wrapper {
left: 0 !important;
right: 0 !important;
Expand All @@ -110,9 +122,15 @@
width: 100% !important;
break-inside: avoid-page;
}

.hero-block {
break-inside: avoid-page;
}

.hero-block-body .eea.copyright {
display: none;
visibility: hidden;
}
}

.loadUIOverrides();

0 comments on commit afbf212

Please sign in to comment.