Comments (6)
👍
The approach we're taking in cfgov-refresh is to have print styles in both @media print
and nested under a .print
class. This allows us to have certain pages that have the print-look in the browser by adding the print
class to the body
. We're doing this with a mixin called respond-to-print
.
Example usage:
.superheader {
.respond-to-print({
color: @green;
});
}
compiles to:
@media print {
.superheader {
color: #2cb34a;
}
}
.print .superheader {
color: #2cb34a;
}
from consumerfinance.gov.
Latest OaH print styles: cfpb/owning-a-home#343
from consumerfinance.gov.
Closing until the design manual guidelines are done. cfpb/design-manual#281
from consumerfinance.gov.
@cfarm what do you think about moving this to CF and updating once Design has a final spec, rather than having no print stylesheet at all?
from consumerfinance.gov.
Yes, please! cf-core would be a great place for this.
from consumerfinance.gov.
This has been moved to our JIRA backlog.
from consumerfinance.gov.
Related Issues (20)
- Merge base-common.html and base.html
- setup regulation page HOT 1
- Reduce duplication in jinja2 templates HOT 1
- Disallow unnamed (autonamed) migrations? HOT 3
- IRegs - Small search terms return too many results from ES HOT 1
- Design System page missing bottom margin HOT 1
- owning-a-home 404s caused by urls.py
- Removing Ask CFPB-specific redirect functionality?
- Outdated documentation about Elasticsearch and Homebrew
- ROUT tool contains detect IE script that can be refined or removed
- Very similar utilities between paying for college and retirement app HOT 1
- Pull Request Preview Environments for increasing maintainer productivity
- Regs3k asynchronous tests aren't testing anything
- ROUT: update jsonp-p to use fetch HOT 1
- PfC: Update promise-request xhr to use native fetch
- Retirement: migrate jquery ajax call to fetch
- Cypress: migrate to version 12 HOT 1
- TDP: uses abandoned aos dependency HOT 1
- External links should not go through interstitial page HOT 3
- PfC: Routing implementation causes long page loads
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consumerfinance.gov.