GithubHelp home page GithubHelp logo

Print styles about consumerfinance.gov HOT 6 CLOSED

cfpb avatar cfpb commented on August 18, 2024
Print styles

from consumerfinance.gov.

Comments (6)

himedlooff avatar himedlooff commented on August 18, 2024

👍

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.

cfarm avatar cfarm commented on August 18, 2024

Latest OaH print styles: cfpb/owning-a-home#343

from consumerfinance.gov.

KimberlyMunoz avatar KimberlyMunoz commented on August 18, 2024

Closing until the design manual guidelines are done. cfpb/design-manual#281

from consumerfinance.gov.

jimmynotjim avatar jimmynotjim commented on August 18, 2024

@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.

KimberlyMunoz avatar KimberlyMunoz commented on August 18, 2024

Yes, please! cf-core would be a great place for this.

from consumerfinance.gov.

KimberlyMunoz avatar KimberlyMunoz commented on August 18, 2024

This has been moved to our JIRA backlog.

from consumerfinance.gov.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.