Giter VIP home page Giter VIP logo

cf-layout's Introduction

⚠️ THIS REPO IS DEPRECATED (1/15/2016) ⚠️

Please migrate to using capital-framework.

cf-layout

Build Status

A set of HTML & CSS layout helpers. This component can be used by itself, but it was made for Capital Framework, a new front end framework developed at the Consumer Financial Protection Bureau.

The current version number can be found in bower.json and follows Semantic Versioning 2.0. Release notes are recorded on the Releases page.

If you would like to take advantage of more components or if you're new to Capital Framework, we encourage you to start here.

How to use this component

Detailed instructions can be found in the Capital Framework documentation site.

Getting involved

We welcome your feedback and contributions.

Running tests

Before contributing to our codebase, please ensure all tests pass. After cloning this repository to your machine, run:

$ npm install
$ npm test

Open source licensing info

  1. TERMS
  2. LICENSE
  3. CFPB Source Code Policy

Credits and references

Docs and demo built with the excellent Topdoc.

cf-layout's People

Contributors

anselmbradford avatar ascott1 avatar contolini avatar himedlooff avatar jimmynotjim avatar kimberlymunoz avatar scotchester avatar virginiacc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cf-layout's Issues

Testing

Browsers

  • Chrome
  • Safari
  • FF
  • IE10
  • IE9
  • IE8
  • IE7
  • Opera
  • iOS6
  • Android 4
  • Blackberry Bold

Accessibility

  • Screen reader friendly

Other

  • Is useable without CSS
  • Flexible from small to large screens
  • No linting errors or warnings

Condition off column top margin

Currently sibling columns have a default top margin that is removed with a min-width media query that has to specify every possible column combination https://github.com/cfpb/cf-layout/blob/gh-pages/src/cf-layout.less#L453-L466

To reduce complexity, a max-width media query should be set to add the margin to the column siblings.

ex

.content-l_col {
    .respond-to-max(@tablet-min, {
        & + & {
            margin-top: unit(@grid_gutter-width / @base-font-size-px, em);
        }
    });
}

My only concern is how this might affect the .stack-col() mixin https://github.com/cfpb/cf-layout/blob/gh-pages/src/cf-layout.less#L578-L617. Does anyone have examples of that in use I could test on?

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.