Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide UI recap-* UI elements from printed pages #355

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The following changes are not yet released, but are code complete:

Features:
- None yet
- Hide recap UI elements from printed pages([#360](https://github.com/freelawproject/recap/issues/360), [#355](https://github.com/freelawproject/recap-chrome/pull/355)).

Changes:
- None yet
Expand Down
23 changes: 15 additions & 8 deletions src/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ footer #version {
border-top-left-radius: 0;
}

.btn-group .btn+.btn,
.btn-group .btn+.btn-group,
.btn-group .btn-group+.btn,
.btn-group .btn+.btn,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'm not sure why these few lines have different line endings than the rest. I think my IDE just auto-trimmed them. Is that OK?

.btn-group .btn+.btn-group,
.btn-group .btn-group+.btn,
.btn-group .btn-group+.btn-group {
margin-left: -1px;
}
Expand Down Expand Up @@ -492,11 +492,11 @@ footer #version {
}

.full-page-iframe{
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
}

.recap-inline-appellate{
Expand All @@ -521,3 +521,10 @@ footer #version {
.banner-message > img{
margin-right: 0.25rem;
}

/* For printed pages, we want to hide anything that we add. */
@media print {
[class^="recap-"], [id^="recap-"] { /* Any class or ID that starts with `recap-` */
display: none;
}
}
Comment on lines +526 to +530
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual implementation